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

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