device: the veth should have the same priority as ethernet
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 24 Feb 2016 16:37:50 +0000 (17:37 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Sat, 27 Feb 2016 19:15:56 +0000 (20:15 +0100)
It's supposed to be a virtual ethernet.

src/devices/nm-device.c

index 641b429..5e08908 100644 (file)
@@ -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: