1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

nmcli: Add xmit_hash_policy to bond options. (#5149)

* 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>
This commit is contained in:
betuxy 2022-09-08 07:45:23 +02:00 committed by GitHub
parent 946c48d148
commit b4f89b78dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View 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).

View file

@ -319,6 +319,11 @@ options:
description: description:
- This is only used with bond - updelay. - This is only used with bond - updelay.
type: int 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: arp_interval:
description: description:
- This is only used with bond - ARP interval. - This is only used with bond - ARP interval.
@ -1440,6 +1445,7 @@ class Nmcli(object):
self.primary = module.params['primary'] self.primary = module.params['primary']
self.downdelay = module.params['downdelay'] self.downdelay = module.params['downdelay']
self.updelay = module.params['updelay'] self.updelay = module.params['updelay']
self.xmit_hash_policy = module.params['xmit_hash_policy']
self.arp_interval = module.params['arp_interval'] self.arp_interval = module.params['arp_interval']
self.arp_ip_target = module.params['arp_ip_target'] self.arp_ip_target = module.params['arp_ip_target']
self.slavepriority = module.params['slavepriority'] self.slavepriority = module.params['slavepriority']
@ -1580,6 +1586,7 @@ class Nmcli(object):
'mode': self.mode, 'mode': self.mode,
'primary': self.primary, 'primary': self.primary,
'updelay': self.updelay, 'updelay': self.updelay,
'xmit_hash_policy': self.xmit_hash_policy,
}) })
elif self.type == 'bond-slave': elif self.type == 'bond-slave':
options.update({ options.update({
@ -2228,6 +2235,7 @@ def main():
miimon=dict(type='int'), miimon=dict(type='int'),
downdelay=dict(type='int'), downdelay=dict(type='int'),
updelay=dict(type='int'), updelay=dict(type='int'),
xmit_hash_policy=dict(type='str'),
arp_interval=dict(type='int'), arp_interval=dict(type='int'),
arp_ip_target=dict(type='str'), arp_ip_target=dict(type='str'),
primary=dict(type='str'), primary=dict(type='str'),