mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
nmcli: Changed parameter ordering in create_connection_bond (#23571)
nmcli: Changed parameter ordering in create_connection_bond
This commit is contained in:
@@ -810,6 +810,9 @@ class Nmcli(object):
|
|||||||
cmd.append(self.ifname)
|
cmd.append(self.ifname)
|
||||||
elif self.conn_name is not None:
|
elif self.conn_name is not None:
|
||||||
cmd.append(self.conn_name)
|
cmd.append(self.conn_name)
|
||||||
|
if self.mode is not None:
|
||||||
|
cmd.append('mode')
|
||||||
|
cmd.append(self.mode)
|
||||||
if self.ip4 is not None:
|
if self.ip4 is not None:
|
||||||
cmd.append('ip4')
|
cmd.append('ip4')
|
||||||
cmd.append(self.ip4)
|
cmd.append(self.ip4)
|
||||||
@@ -825,9 +828,6 @@ class Nmcli(object):
|
|||||||
if self.autoconnect is not None:
|
if self.autoconnect is not None:
|
||||||
cmd.append('autoconnect')
|
cmd.append('autoconnect')
|
||||||
cmd.append(self.bool_to_string(self.autoconnect))
|
cmd.append(self.bool_to_string(self.autoconnect))
|
||||||
if self.mode is not None:
|
|
||||||
cmd.append('mode')
|
|
||||||
cmd.append(self.mode)
|
|
||||||
if self.miimon is not None:
|
if self.miimon is not None:
|
||||||
cmd.append('miimon')
|
cmd.append('miimon')
|
||||||
cmd.append(self.miimon)
|
cmd.append(self.miimon)
|
||||||
|
|||||||
Reference in New Issue
Block a user