[PATCH 2/2] device: don't assume connection for veth interfaces



They're supposed to behave as Ethernet. Otherwise the LXC domains won't
be able to use their configured connections with the device.
---
 src/devices/nm-device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 4419d90..af9846e 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -1682,7 +1682,8 @@ device_has_config (NMDevice *self)
                return TRUE;
 
        /* The existence of a software device is good enough. */
-       if (nm_device_is_software (self))
+       if (nm_device_is_software (self)
+           && nm_platform_link_get_type (priv->ifindex) != NM_LINK_TYPE_VETH)
                return TRUE;
 
        /* Slaves are also configured by definition */
-- 
1.9.3



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]