Fix ios_l2_interfaces skipping relevant L2 interfaces facts (#63779)

* fix bug 63777

* fix comment
This commit is contained in:
Sumit Jaiswal 2019-10-23 21:13:37 +05:30 committed by GitHub
parent 3e4ae42256
commit d620a209a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ class L2_InterfacesFacts(object):
if get_interface_type(intf) == 'unknown':
return {}
if intf.lower().startswith('gi'):
if intf.upper()[:2] in ('HU', 'FO', 'TW', 'TE', 'GI', 'FA', 'ET', 'PO'):
# populate the facts from the configuration
config['name'] = normalize_interface(intf)