Skip to content

Commit 46bae1b

Browse files
committed
Bug fix to get iface_namingmode tests to work on multi-asic linecards of a T2 chassis
- Treat Inband and Recycle ports on a VoQ chassis as internal ports Since the inband and recycle ports do not show up in 'show' commands unless we specify '-d all' option, they should be treated similar to internal ports. This fixes iface_namingmode::test_show_pfc_counters test case
1 parent 36914d4 commit 46bae1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/library/port_alias.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def get_portmap(self, asic_id=None, include_internal=False,
165165
else:
166166
alias = name
167167
add_port = False
168-
if role in {"Ext", "Inb", "Rec"} or (role == "Int" and include_internal):
168+
if role in {"Ext"} or (role in ["Int", "Inb", "Rec"] and include_internal):
169169
add_port = True
170170
aliases.append((alias, -1 if port_index == -1 or len(mapping) <= port_index else mapping[port_index]))
171171
portmap[name] = alias

0 commit comments

Comments
 (0)