Skip to content

Commit

Permalink
Replace keys as required by sai_deserialize_neighbor_entry() in sonic…
Browse files Browse the repository at this point in the history
…-sairedis (#247)

Signed-off-by: IGordynskyi <[email protected]>
  • Loading branch information
IGordynskyi authored Dec 20, 2024
1 parent 5f500a5 commit 07e3c75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/sai_client/sai_redis_client/sai_redis_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ def operate(self, obj, attrs, op):
obj = obj.replace("bv_id", "bvid")
obj = obj.replace("mac_address", "mac")

# Required by sai_deserialize_neighbor_entry() in sonic-sairedis.
if "ip_address" in obj:
obj = obj.replace("ip_address", "ip")
obj = obj.replace("rif_id", "rif")

self.r.lpush("ASIC_STATE_KEY_VALUE_OP_QUEUE", obj, attrs, op)
self.r.publish(self.asic_channel, "G")

Expand Down

0 comments on commit 07e3c75

Please sign in to comment.