mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
[PR #7499/d0870a02 backport][stable-8] infiniband and bond interfaces can receive MTU settings too (#7527)
infiniband and bond interfaces can receive MTU settings too (#7499)
* infiniband and bond interfaces can receive MTU settings too
* adding test for default mtu setting
* the mtu parameter for infiniband is different than for ethernet
* adding changelog fragment
* Update changelogs/fragments/7499-allow-mtu-setting-on-bond-and-infiniband-interfaces.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit d0870a022e
)
Co-authored-by: mark-tomich <tomichms@nih.gov>
This commit is contained in:
parent
c1f9aeaac8
commit
bf284a01cb
3 changed files with 10 additions and 2 deletions
|
@ -1950,15 +1950,20 @@ class Nmcli(object):
|
|||
@property
|
||||
def mtu_conn_type(self):
|
||||
return self.type in (
|
||||
'bond',
|
||||
'dummy',
|
||||
'ethernet',
|
||||
'infiniband',
|
||||
'team-slave',
|
||||
'vlan',
|
||||
)
|
||||
|
||||
@property
|
||||
def mtu_setting(self):
|
||||
return '802-3-ethernet.mtu'
|
||||
if self.type == 'infiniband':
|
||||
return 'infiniband.mtu'
|
||||
else:
|
||||
return '802-3-ethernet.mtu'
|
||||
|
||||
@staticmethod
|
||||
def mtu_to_string(mtu):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue