From 2d357dc0aefb25e78fb2145d92f0b1def2960e51 Mon Sep 17 00:00:00 2001 From: Andriy Kokhan Date: Thu, 9 Nov 2023 09:43:11 +0200 Subject: [PATCH] Fixed Thrift RPC to create LAG from sairedis.rec (#230) Signed-off-by: Andriy Kokhan --- common/sai_client/sai_thrift_client/sai_thrift_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/sai_client/sai_thrift_client/sai_thrift_utils.py b/common/sai_client/sai_thrift_client/sai_thrift_utils.py index 6f2b1093..7d682428 100644 --- a/common/sai_client/sai_thrift_client/sai_thrift_utils.py +++ b/common/sai_client/sai_thrift_client/sai_thrift_utils.py @@ -15,6 +15,8 @@ def convert_attributes_to_thrift(attributes): [ "SAI_SWITCH_ATTR_PORT_LIST", "2:oid:0x0,oid:0x0" ] => { "port_list": sai_thrift_object_list_t(count=2, idlist=[0x0, 0x0]) } """ for name, value in ThriftConverter.chunks(attributes, 2): + if name == "NULL": + continue yield ThriftConverter.convert_attribute_name_to_thrift(name), ThriftConverter.convert_value_to_thrift(value, attr_name=name) def convert_key_to_thrift(object_type, key = None):