We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a74ca3 commit 2420f3eCopy full SHA for 2420f3e
tests/qos/qos_sai_base.py
@@ -1002,13 +1002,7 @@ def dutConfig(
1002
1003
# Build a set of Ethernet ports to exclude (with 18.x.202.0/31 IPs)
1004
excluded_ports = set()
1005
- for item in duthosts[0].show_and_parse("show ip interface"):
1006
- # Match lines starting with "Ethernet" and IP in 18.x.202.0/31
1007
- ip_mask = item.get('ipv4 address/mask', '')
1008
- ip = ip_mask.split('/')[0]
1009
- octets = ip.split('.')
1010
- if len(octets) >= 3 and octets[0] == '18' and octets[2] == '202':
1011
- excluded_ports.add(item['interface'])
+ excluded_ports.update(duthosts[0].get_backplane_ports())
1012
# Filter minigraph_ptf_indices to exclude dynamic ports
1013
src_mgFacts["minigraph_ptf_indices"] = {
1014
key: value
0 commit comments