Skip to content

Commit 09fca00

Browse files
Skip DPU interfaces EthernetBP0 To EthernetBP7 for PFCWD tests (#16466)
* Skip DPU interfaces EthernetBP0 To EthernetBP7 for PFCWD tests
1 parent 37840a5 commit 09fca00

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tests/common/devices/sonic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,7 @@ def active_ip_interfaces(self, ip_ifs, tbinfo, ns_arg=DEFAULT_NAMESPACE, intf_nu
22932293
mg_facts = self.get_extended_minigraph_facts(tbinfo, ns_arg)
22942294
ip_ifaces = {}
22952295
for k, v in list(ip_ifs.items()):
2296-
if ((k.startswith("Ethernet") and not is_inband_port(k)) or
2296+
if ((k.startswith("Ethernet") and (not k.startswith("Ethernet-BP")) and not is_inband_port(k)) or
22972297
(k.startswith("PortChannel") and not
22982298
self.is_backend_portchannel(k, mg_facts))):
22992299
# Ping for some time to get ARP Re-learnt.

tests/pfcwd/conftest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,14 @@ def setup_pfc_test(
150150
# build the port list for the test
151151
tp_handle = TrafficPorts(mg_facts, neighbors, vlan_nw)
152152
test_ports = tp_handle.build_port_list()
153-
153+
mg_facts['minigraph_port_indices'] = {
154+
key: value for key, value in mg_facts['minigraph_ptf_indices'].items()
155+
if not key.startswith('Ethernet-BP')
156+
}
157+
mg_facts['minigraph_ptf_indices'] = {
158+
key: value for key, value in mg_facts['minigraph_ptf_indices'].items()
159+
if not key.startswith('Ethernet-BP')
160+
}
154161
# In T1 topology update test ports by removing inactive ports
155162
topo = tbinfo["topo"]["name"]
156163
if topo in SUPPORTED_T1_TOPOS:

0 commit comments

Comments
 (0)