mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
nmcli: Add 'slave-type bridge' to nmcli command if type is bridge-slave (#2409)
This commit is contained in:
parent
26aba8e766
commit
b5f8ae4320
3 changed files with 4 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- nmcli - if type is ``bridge-slave`` add ``slave-type bridge`` to ``nmcli`` command (https://github.com/ansible-collections/community.general/issues/2408).
|
|
@ -780,6 +780,7 @@ class Nmcli(object):
|
||||||
})
|
})
|
||||||
elif self.type == 'bridge-slave':
|
elif self.type == 'bridge-slave':
|
||||||
options.update({
|
options.update({
|
||||||
|
'connection.slave-type': 'bridge',
|
||||||
'bridge-port.path-cost': self.path_cost,
|
'bridge-port.path-cost': self.path_cost,
|
||||||
'bridge-port.hairpin-mode': self.hairpin,
|
'bridge-port.hairpin-mode': self.hairpin,
|
||||||
'bridge-port.priority': self.slavepriority,
|
'bridge-port.priority': self.slavepriority,
|
||||||
|
|
|
@ -223,6 +223,7 @@ TESTCASE_BRIDGE_SLAVE_SHOW_OUTPUT = """\
|
||||||
connection.id: non_existent_nw_device
|
connection.id: non_existent_nw_device
|
||||||
connection.interface-name: br0_non_existant
|
connection.interface-name: br0_non_existant
|
||||||
connection.autoconnect: yes
|
connection.autoconnect: yes
|
||||||
|
connection.slave-type: bridge
|
||||||
ipv4.never-default: no
|
ipv4.never-default: no
|
||||||
bridge-port.path-cost: 100
|
bridge-port.path-cost: 100
|
||||||
bridge-port.hairpin-mode: yes
|
bridge-port.hairpin-mode: yes
|
||||||
|
|
Loading…
Reference in a new issue