Skip to content

Commit 0a9af9b

Browse files
authored
Bug fix to get iface_namingmode tests to work on multi-asic linecards of a T2 chassis (#6528)
What is the motivation for this PR? Currently, the following test isfailing on multi-asic linecards on a T2 VoQ chassis. show pfc counters: This fails as the Inband and Recycle ports show in the 'show pfc counters' table while they are not expected. How did you do it? show pfc counters: 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. How did you verify/test it? Ran the test against a multi-asic linecard in a T2 VoQ chassis.
1 parent bd7d850 commit 0a9af9b

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
@@ -170,7 +170,7 @@ def get_portmap(self, asic_id=None, include_internal=False,
170170
else:
171171
alias = name
172172
add_port = False
173-
if role in {"Ext", "Inb", "Rec"} or (role == "Int" and include_internal):
173+
if role in {"Ext"} or (role in ["Int", "Inb", "Rec"] and include_internal):
174174
add_port = True
175175
aliases.append(
176176
(alias, -1 if port_index == -1 or len(mapping) <= port_index else mapping[port_index]))

0 commit comments

Comments
 (0)