Skip to content

Commit

Permalink
Fix: if routestr does not exist, skip (sonic-net#257)
Browse files Browse the repository at this point in the history
Follow up sonic-net#255.
If route change too fast between keys/hgetall, the original implementation will throw exception and lead to ERR in syslog.
  • Loading branch information
qiluo-msft committed May 5, 2022
1 parent dda69b5 commit 1db8740
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sonic_ax_impl/mibs/ietf/rfc4363.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def update_data(self):
break

ent = self.db_conn.get_all(mibs.ASIC_DB, s, blocking=False)
if not ent:
continue

# Example output: oid:0x3a000000000608
bridge_port_id = ent[b"SAI_FDB_ENTRY_ATTR_BRIDGE_PORT_ID"][6:]
if bridge_port_id not in self.if_bpid_map:
Expand Down

0 comments on commit 1db8740

Please sign in to comment.