Skip to content

Commit

Permalink
Fixed Thrift RPC to create LAG from sairedis.rec (#230)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Kokhan <[email protected]>
  • Loading branch information
andriy-kokhan authored Nov 9, 2023
1 parent 246df91 commit 2d357dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/sai_client/sai_thrift_client/sai_thrift_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2d357dc

Please sign in to comment.