diff --git a/changelogs/fragments/7389-nmcli-issue-with-creating-a-wifi-bridge-slave.yml b/changelogs/fragments/7389-nmcli-issue-with-creating-a-wifi-bridge-slave.yml new file mode 100644 index 0000000000..f5f07dc230 --- /dev/null +++ b/changelogs/fragments/7389-nmcli-issue-with-creating-a-wifi-bridge-slave.yml @@ -0,0 +1,2 @@ +bugfixes: + - nmcli - fix ``connection.slave-type`` wired to ``bond`` and not with parameter ``slave_type`` in case of connection type ``wifi`` (https://github.com/ansible-collections/community.general/issues/7389). \ No newline at end of file diff --git a/plugins/modules/nmcli.py b/plugins/modules/nmcli.py index af78dab40a..4ca4198e35 100644 --- a/plugins/modules/nmcli.py +++ b/plugins/modules/nmcli.py @@ -1832,7 +1832,7 @@ class Nmcli(object): elif self.type == 'wifi': options.update({ '802-11-wireless.ssid': self.ssid, - 'connection.slave-type': 'bond' if self.master else None, + 'connection.slave-type': ('bond' if self.slave_type is None else self.slave_type) if self.master else None, }) if self.wifi: for name, value in self.wifi.items():