mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +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:
@@ -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