Skip to content

Commit 07e3c75

Browse files
authored
Replace keys as required by sai_deserialize_neighbor_entry() in sonic-sairedis (#247)
Signed-off-by: IGordynskyi <[email protected]>
1 parent 5f500a5 commit 07e3c75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

common/sai_client/sai_redis_client/sai_redis_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ def operate(self, obj, attrs, op):
9898
obj = obj.replace("bv_id", "bvid")
9999
obj = obj.replace("mac_address", "mac")
100100

101+
# Required by sai_deserialize_neighbor_entry() in sonic-sairedis.
102+
if "ip_address" in obj:
103+
obj = obj.replace("ip_address", "ip")
104+
obj = obj.replace("rif_id", "rif")
105+
101106
self.r.lpush("ASIC_STATE_KEY_VALUE_OP_QUEUE", obj, attrs, op)
102107
self.r.publish(self.asic_channel, "G")
103108

0 commit comments

Comments
 (0)