Skip to content

Commit

Permalink
Skip DPU interfaces EthernetBP0 To EthernetBP7 for PFCWD tests (sonic…
Browse files Browse the repository at this point in the history
…-net#16466)

* Skip DPU interfaces EthernetBP0 To EthernetBP7 for PFCWD tests
  • Loading branch information
nnelluri-cisco authored Jan 15, 2025
1 parent 37840a5 commit 09fca00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/common/devices/sonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2293,7 +2293,7 @@ def active_ip_interfaces(self, ip_ifs, tbinfo, ns_arg=DEFAULT_NAMESPACE, intf_nu
mg_facts = self.get_extended_minigraph_facts(tbinfo, ns_arg)
ip_ifaces = {}
for k, v in list(ip_ifs.items()):
if ((k.startswith("Ethernet") and not is_inband_port(k)) or
if ((k.startswith("Ethernet") and (not k.startswith("Ethernet-BP")) and not is_inband_port(k)) or
(k.startswith("PortChannel") and not
self.is_backend_portchannel(k, mg_facts))):
# Ping for some time to get ARP Re-learnt.
Expand Down
9 changes: 8 additions & 1 deletion tests/pfcwd/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,14 @@ def setup_pfc_test(
# build the port list for the test
tp_handle = TrafficPorts(mg_facts, neighbors, vlan_nw)
test_ports = tp_handle.build_port_list()

mg_facts['minigraph_port_indices'] = {
key: value for key, value in mg_facts['minigraph_ptf_indices'].items()
if not key.startswith('Ethernet-BP')
}
mg_facts['minigraph_ptf_indices'] = {
key: value for key, value in mg_facts['minigraph_ptf_indices'].items()
if not key.startswith('Ethernet-BP')
}
# In T1 topology update test ports by removing inactive ports
topo = tbinfo["topo"]["name"]
if topo in SUPPORTED_T1_TOPOS:
Expand Down

0 comments on commit 09fca00

Please sign in to comment.