mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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:
parent
123b5a9a3c
commit
f77aa51ab8
2 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue