From 0c9d8752cc602c133181430cd8ecaab40daeb11c Mon Sep 17 00:00:00 2001 From: Yurii Lisovskyi Date: Wed, 13 Sep 2023 17:37:38 +0300 Subject: [PATCH] Fix oper status check (#192) Signed-off-by: Yurii Lisovskyi Signed-off-by: selldinesh --- common/sai_npu.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/sai_npu.py b/common/sai_npu.py index 5a380aeb..edb69c46 100644 --- a/common/sai_npu.py +++ b/common/sai_npu.py @@ -276,8 +276,7 @@ def set_sku_mode(self, sku): def assert_port_oper_up(self, port_oid, tout=15): for i in range(tout): - status, data = self.get(port_oid, ["SAI_PORT_ATTR_OPER_STATUS"]) - assert status == "SAI_STATUS_SUCCESS" + data = self.get(port_oid, ["SAI_PORT_ATTR_OPER_STATUS"]) if data.value() == "SAI_PORT_OPER_STATUS_UP": return if i + 1 < tout: