mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-09 20:20:31 -07:00
Merge 4c99093186
into 70b5e362f9
This commit is contained in:
commit
07bfa63e1b
2 changed files with 15 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- nmcli - Add support for infiniband mac setting when type is infiniband (https://github.com/ansible-collections/community.general/pull/9962).
|
|
@ -99,6 +99,10 @@ options:
|
|||
type: str
|
||||
choices: [datagram, connected]
|
||||
version_added: 5.8.0
|
||||
infiniband_mac:
|
||||
description:
|
||||
- MAC address of the Infiniband IPoIB devices.
|
||||
type: str
|
||||
slave_type:
|
||||
description:
|
||||
- Type of the device of this slave's master connection (for example V(bond)).
|
||||
|
@ -1764,6 +1768,7 @@ class Nmcli(object):
|
|||
self.wireguard = module.params['wireguard']
|
||||
self.vpn = module.params['vpn']
|
||||
self.transport_mode = module.params['transport_mode']
|
||||
self.infiniband_mac = module.params['infiniband_mac']
|
||||
self.sriov = module.params['sriov']
|
||||
|
||||
if self.method4:
|
||||
|
@ -2034,6 +2039,10 @@ class Nmcli(object):
|
|||
options.update({
|
||||
'infiniband.transport-mode': self.transport_mode,
|
||||
})
|
||||
if self.infiniband_mac:
|
||||
options.update({
|
||||
'infiniband.mac-address': self.infiniband_mac,
|
||||
})
|
||||
elif self.type == 'vrf':
|
||||
options.update({
|
||||
'table': self.table,
|
||||
|
@ -2708,9 +2717,12 @@ def main():
|
|||
tap=dict(type='bool'))),
|
||||
wireguard=dict(type='dict'),
|
||||
vpn=dict(type='dict'),
|
||||
transport_mode=dict(type='str', choices=['datagram', 'connected']),
|
||||
sriov=dict(type='dict'),
|
||||
table=dict(type='int'),
|
||||
# infiniband specific vars
|
||||
transport_mode=dict(type='str', choices=['datagram', 'connected']),
|
||||
infiniband_mac=dict(type='str'),
|
||||
|
||||
),
|
||||
mutually_exclusive=[['never_default4', 'gw4'],
|
||||
['routes4_extended', 'routes4'],
|
||||
|
|
Loading…
Add table
Reference in a new issue