From f0a057b63abfb8ae3a6f37b64ca0554c11a01a89 Mon Sep 17 00:00:00 2001 From: Nilashish Chakraborty Date: Wed, 31 Oct 2018 19:09:53 +0530 Subject: [PATCH] Add support for 25G and 100G interfaces (#47852) Signed-off-by: NilashishC --- lib/ansible/module_utils/network/ios/ios.py | 4 ++++ lib/ansible/modules/network/ios/ios_l2_interface.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/network/ios/ios.py b/lib/ansible/module_utils/network/ios/ios.py index c2a7c3d4b6..0331d58bf1 100644 --- a/lib/ansible/module_utils/network/ios/ios.py +++ b/lib/ansible/module_utils/network/ios/ios.py @@ -168,6 +168,10 @@ def normalize_interface(name): if_type = 'port-channel' elif name.lower().startswith('nv'): if_type = 'nve' + elif name.lower().startswith('twe'): + if_type = 'TwentyFiveGigE' + elif name.lower().startswith('hu'): + if_type = 'HundredGigE' else: if_type = None diff --git a/lib/ansible/modules/network/ios/ios_l2_interface.py b/lib/ansible/modules/network/ios/ios_l2_interface.py index dca199b859..e20062a36f 100644 --- a/lib/ansible/modules/network/ios/ios_l2_interface.py +++ b/lib/ansible/modules/network/ios/ios_l2_interface.py @@ -118,7 +118,7 @@ from ansible.module_utils.network.ios.ios import ios_argument_spec def get_interface_type(interface): intf_type = 'unknown' - if interface.upper()[:2] in ('ET', 'GI', 'FA', 'TE', 'FO'): + if interface.upper()[:2] in ('ET', 'GI', 'FA', 'TE', 'FO', 'HU', 'TWE'): intf_type = 'ethernet' elif interface.upper().startswith('VL'): intf_type = 'svi'