Update _ios_l2_interface.py (#61401)

Add support for TwoGigabitEthernet switchports in IOS-XE
This commit is contained in:
thetriforce 2019-08-27 12:21:15 -07:00 committed by Sumit Jaiswal
parent e7a9d71ac0
commit 0696fcacf0

View file

@ -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', 'HU', 'TWE'): if interface.upper()[:2] in ('ET', 'GI', 'FA', 'TE', 'FO', 'HU', 'TWE', 'TW'):
intf_type = 'ethernet' intf_type = 'ethernet'
elif interface.upper().startswith('VL'): elif interface.upper().startswith('VL'):
intf_type = 'svi' intf_type = 'svi'