Fixes ios_l2_interface and ios_vlan not working on certain interface types issue (#43819)

* Fixes #43654 and #43582

* Remove q statement

* Fix shippable errors

* Fix more shippable errors

* Fix unittest
This commit is contained in:
Nilashish Chakraborty 2018-08-14 11:35:09 +05:30 committed by GitHub
parent e188073629
commit b14f256d41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 3 deletions

View file

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