mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Add xmit_hash_policy to nmcli bond-options.
* #5149 - Add changelog fragment.
* Update plugins/modules/net_tools/nmcli.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update changelogs/fragments/5149-nmcli-bond-option.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Ole Pannbacker <opannbacker@cronon.net>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b4f89b78dd
)
Co-authored-by: betuxy <72452886+betuxy@users.noreply.github.com>
This commit is contained in:
parent
8595601708
commit
005db8177e
2 changed files with 10 additions and 0 deletions
2
changelogs/fragments/5149-nmcli-bond-option.yml
Normal file
2
changelogs/fragments/5149-nmcli-bond-option.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- nmcli - add bond option ``xmit_hash_policy`` to bond options (https://github.com/ansible-collections/community.general/issues/5148).
|
|
@ -319,6 +319,11 @@ options:
|
|||
description:
|
||||
- This is only used with bond - updelay.
|
||||
type: int
|
||||
xmit_hash_policy:
|
||||
description:
|
||||
- This is only used with bond - xmit_hash_policy type.
|
||||
type: str
|
||||
version_added: 5.6.0
|
||||
arp_interval:
|
||||
description:
|
||||
- This is only used with bond - ARP interval.
|
||||
|
@ -1440,6 +1445,7 @@ class Nmcli(object):
|
|||
self.primary = module.params['primary']
|
||||
self.downdelay = module.params['downdelay']
|
||||
self.updelay = module.params['updelay']
|
||||
self.xmit_hash_policy = module.params['xmit_hash_policy']
|
||||
self.arp_interval = module.params['arp_interval']
|
||||
self.arp_ip_target = module.params['arp_ip_target']
|
||||
self.slavepriority = module.params['slavepriority']
|
||||
|
@ -1580,6 +1586,7 @@ class Nmcli(object):
|
|||
'mode': self.mode,
|
||||
'primary': self.primary,
|
||||
'updelay': self.updelay,
|
||||
'xmit_hash_policy': self.xmit_hash_policy,
|
||||
})
|
||||
elif self.type == 'bond-slave':
|
||||
options.update({
|
||||
|
@ -2227,6 +2234,7 @@ def main():
|
|||
miimon=dict(type='int'),
|
||||
downdelay=dict(type='int'),
|
||||
updelay=dict(type='int'),
|
||||
xmit_hash_policy=dict(type='str'),
|
||||
arp_interval=dict(type='int'),
|
||||
arp_ip_target=dict(type='str'),
|
||||
primary=dict(type='str'),
|
||||
|
|
Loading…
Reference in a new issue