mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
nmcli: do not set IP configuration bond slaves (#2223)
The master interface holds the IP configuration. If we try to update the IP configuration of the slaves, NetworkManager raises an error.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
---
|
||||
minor_changes:
|
||||
- "nmcli - do not set IP configuration on slave connection (https://github.com/ansible-collections/community.general/pull/2223)."
|
||||
@@ -695,7 +695,7 @@ class Nmcli(object):
|
||||
}
|
||||
|
||||
# IP address options.
|
||||
if self.ip_conn_type:
|
||||
if self.ip_conn_type and not self.master:
|
||||
options.update({
|
||||
'ipv4.addresses': self.ip4,
|
||||
'ipv4.dhcp-client-id': self.dhcp_client_id,
|
||||
|
||||
Reference in New Issue
Block a user