From ae22fffe23f4255b2624a88d52ccdc7349c38ea2 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Tue, 18 Oct 2011 13:48:49 +0200 Subject: [PATCH] bonding: don't fall back to DHCP if IP config is missing If the IP config is missing, we just don't do any IP config, instead of treating it as DHCP as happens for all other interface types. Signed-off-by: Thomas Graf --- src/nm-device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nm-device.c b/src/nm-device.c index 8f243320d1..b606f08964 100644 --- a/src/nm-device.c +++ b/src/nm-device.c @@ -1529,6 +1529,8 @@ real_act_stage3_ip4_config_start (NMDevice *self, s_ip4 = nm_connection_get_setting_ip4_config (connection); if (s_ip4) method = nm_setting_ip4_config_get_method (s_ip4); + else if (nm_connection_is_type (connection, NM_SETTING_BOND_SETTING_NAME)) + method = NM_SETTING_IP4_CONFIG_METHOD_DISABLED; /* Start IPv4 addressing based on the method requested */ if (strcmp (method, NM_SETTING_IP4_CONFIG_METHOD_AUTO) == 0)