wired: allow devices to be reassumed when ip4 config is disabled

Wired 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>
This commit is contained in:
Thomas Graf 2011-12-07 13:15:21 +01:00 committed by Dan Williams
parent 40164fbc1f
commit 200a7e142a

View file

@ -391,6 +391,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