Skip to content

Commit

Permalink
interface: add ip_mtu parameter with example
Browse files Browse the repository at this point in the history
Close: aruba#38
  • Loading branch information
alagoutte committed Jun 4, 2024
1 parent 9315901 commit a9039dd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/modules/aoscx_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@
- none
- global
required: false
ip_mtu:
description: Configure IP MTU value of the interface
type: int
required: false
state:
description: Create, Update or Delete the Interface.
type: str
Expand Down Expand Up @@ -300,6 +304,11 @@
aoscx_interface:
name: 1/1/17
mtu: 1300
- name: Set the IP MTU 9000 to the vlan23 Interface
aoscx_interface:
name: vlan23
mtu: 9000
"""

RETURN = r""" # """
Expand Down Expand Up @@ -449,6 +458,10 @@ def get_argument_spec():
},
},
},
"ip_mtu": {
"type": "int",
"required": False,
},
"state": {
"type": "str",
"required": False,
Expand Down Expand Up @@ -539,6 +552,7 @@ def main():
duplex = ansible_module.params["duplex"]
speeds = ansible_module.params["speeds"]

ip_mtu = ansible_module.params["ip_mtu"]
session = get_pyaoscx_session(ansible_module)
device = Device(session)

Expand Down Expand Up @@ -598,6 +612,8 @@ def main():
vsx_sync_features_mapping(feature) for feature in vsx_sync
]
interface.vsx_sync = clean_vsx_features
if ip_mtu:
interface.ip_mtu_value = ip_mtu

modified |= interface.apply()
if acl_type:
Expand Down

0 comments on commit a9039dd

Please sign in to comment.