From a9b4261f61e885155ce66b0fc5d110e510a4f2ed Mon Sep 17 00:00:00 2001 From: AmithGspn Date: Tue, 18 Jul 2023 11:11:53 -0700 Subject: [PATCH] Add support for port_id in object discovery --- common/sai.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/common/sai.py b/common/sai.py index 9131eb22..f878d4a0 100644 --- a/common/sai.py +++ b/common/sai.py @@ -489,17 +489,6 @@ def objects_discovery(self): for idx, oid in enumerate(port_oids): self.create_alias(f"PORT_{idx}", 'SAI_OBJECT_TYPE_PORT', oid) - - status, data = self.get(dot1q_br_oid, ["SAI_BRIDGE_ATTR_PORT_LIST", "1:oid:0x0"], False) - bport_num = data.uint32() - assert (status == "SAI_STATUS_BUFFER_OVERFLOW") - assert (bport_num > 0) - - dot1q_bp_oids = self.get(dot1q_br_oid, - ["SAI_BRIDGE_ATTR_PORT_LIST", self.make_list(bport_num, "oid:0x0")]).oids() - for idx, oid in enumerate(dot1q_bp_oids): - self.create_alias(f"BRIDGE_PORT_{idx}", 'SAI_OBJECT_TYPE_BRIDGE_PORT', oid) - def __apply_rec(self, fname): # Since it's expected that sairedis.rec file contains a full configuration, # we must flush both Redis and NPU state before we start.