1
0
Fork 0
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:
Gonéri Le Bouder 2021-04-17 04:33:40 -04:00 committed by GitHub
parent 123b5a9a3c
commit f77aa51ab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
---
minor_changes:
- "nmcli - do not set IP configuration on slave connection (https://github.com/ansible-collections/community.general/pull/2223)."

View file

@ -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,