Backport PR to Fix ios_l2_interfaces skipping relevant L2 interfaces facts (#63893)
* Fix ios_l2_interfaces skipping relevant L2 interfaces facts (#63779)
* fix bug 63777
* fix comment
(cherry picked from commit d620a209a5
)
* changelog
This commit is contained in:
parent
cdc6577395
commit
7ca3b677c4
2 changed files with 4 additions and 1 deletions
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- "Fix ios_l2_interfaces skipping relevant L2 interfaces facts(https://github.com/ansible/ansible/pull/63779)"
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue