Skip to content

Commit a9b4261

Browse files
committed
Add support for port_id in object discovery
1 parent 0f16887 commit a9b4261

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

common/sai.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -489,17 +489,6 @@ def objects_discovery(self):
489489
for idx, oid in enumerate(port_oids):
490490
self.create_alias(f"PORT_{idx}", 'SAI_OBJECT_TYPE_PORT', oid)
491491

492-
493-
status, data = self.get(dot1q_br_oid, ["SAI_BRIDGE_ATTR_PORT_LIST", "1:oid:0x0"], False)
494-
bport_num = data.uint32()
495-
assert (status == "SAI_STATUS_BUFFER_OVERFLOW")
496-
assert (bport_num > 0)
497-
498-
dot1q_bp_oids = self.get(dot1q_br_oid,
499-
["SAI_BRIDGE_ATTR_PORT_LIST", self.make_list(bport_num, "oid:0x0")]).oids()
500-
for idx, oid in enumerate(dot1q_bp_oids):
501-
self.create_alias(f"BRIDGE_PORT_{idx}", 'SAI_OBJECT_TYPE_BRIDGE_PORT', oid)
502-
503492
def __apply_rec(self, fname):
504493
# Since it's expected that sairedis.rec file contains a full configuration,
505494
# we must flush both Redis and NPU state before we start.

0 commit comments

Comments
 (0)