summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-02-24 17:37:50 +0100
committerLubomir Rintel <lkundrak@v3.sk>2016-02-27 20:15:56 +0100
commitfaf70df4805e3da546c9667ee0bff1052617964c (patch)
treecd01a6ecfb1e66ef823a9a5fb59fe81a5b9fcabb
parentf541a17270f3ff69d2ea7a3262d15dc63abb74b7 (diff)
downloadNetworkManager-faf70df4805e3da546c9667ee0bff1052617964c.tar.gz
device: the veth should have the same priority as ethernet
It's supposed to be a virtual ethernet.
-rw-r--r--src/devices/nm-device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 641b429eba..5e089089ce 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -778,6 +778,7 @@ nm_device_get_priority (NMDevice *self)
switch (nm_device_get_device_type (self)) {
/* 50 is reserved for VPN (NM_VPN_ROUTE_METRIC_DEFAULT) */
case NM_DEVICE_TYPE_ETHERNET:
+ case NM_DEVICE_TYPE_VETH:
return 100;
case NM_DEVICE_TYPE_INFINIBAND:
return 150;
@@ -803,8 +804,6 @@ nm_device_get_priority (NMDevice *self)
return 600;
case NM_DEVICE_TYPE_OLPC_MESH:
return 650;
- case NM_DEVICE_TYPE_VETH:
- return 665;
case NM_DEVICE_TYPE_IP_TUNNEL:
return 675;
case NM_DEVICE_TYPE_MODEM: