[PATCH 2/2] device: don't assume connection for veth interfaces
- From: Lubomir Rintel <lkundrak v3 sk>
- To: networkmanager-list gnome org
- Subject: [PATCH 2/2] device: don't assume connection for veth interfaces
- Date: Thu, 16 Oct 2014 13:08:50 +0200
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]