[PATCH 5/8] ethernet: Allow devices to be reassumed when ip4 config is disabled



Ethernet connections acting as bonding slave will have their ip4
config disabled. Allow such connections to reassume devices.

Signed-off-by: Thomas Graf <tgraf redhat com>
---
 src/nm-device-ethernet.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/nm-device-ethernet.c b/src/nm-device-ethernet.c
index ac28654..88d12b3 100644
--- a/src/nm-device-ethernet.c
+++ b/src/nm-device-ethernet.c
@@ -1761,6 +1761,11 @@ ip4_match_config (NMDevice *self, NMConnection *connection)
 		g_slist_free (leases);
 	}
 
+	if (!strcmp (method, NM_SETTING_IP4_CONFIG_METHOD_DISABLED)) {
+		// FIXME: Enforce no ipv4 addresses?
+		return TRUE;
+	}
+
 	/* 'shared' and 'link-local' aren't supported methods because 'shared'
 	 * requires too much iptables and dnsmasq state to be reclaimed, and
 	 * avahi-autoipd isn't smart enough to allow the link-local address to be
-- 
1.7.7.3



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