Add support for 25G and 100G interfaces (#47852)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
This commit is contained in:
parent
6775ec3cf2
commit
f0a057b63a
2 changed files with 5 additions and 1 deletions
|
@ -168,6 +168,10 @@ def normalize_interface(name):
|
||||||
if_type = 'port-channel'
|
if_type = 'port-channel'
|
||||||
elif name.lower().startswith('nv'):
|
elif name.lower().startswith('nv'):
|
||||||
if_type = 'nve'
|
if_type = 'nve'
|
||||||
|
elif name.lower().startswith('twe'):
|
||||||
|
if_type = 'TwentyFiveGigE'
|
||||||
|
elif name.lower().startswith('hu'):
|
||||||
|
if_type = 'HundredGigE'
|
||||||
else:
|
else:
|
||||||
if_type = None
|
if_type = None
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ from ansible.module_utils.network.ios.ios import ios_argument_spec
|
||||||
|
|
||||||
def get_interface_type(interface):
|
def get_interface_type(interface):
|
||||||
intf_type = 'unknown'
|
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'
|
intf_type = 'ethernet'
|
||||||
elif interface.upper().startswith('VL'):
|
elif interface.upper().startswith('VL'):
|
||||||
intf_type = 'svi'
|
intf_type = 'svi'
|
||||||
|
|
Loading…
Reference in a new issue