mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 20:30:08 +01:00
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 <tgraf@redhat.com>
This commit is contained in:
parent
b496355b2a
commit
ae22fffe23
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue