Skip to content

Commit

Permalink
Fix: if routestr does not exist, skip (#257)
Browse files Browse the repository at this point in the history
Follow up #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 authored and judyjoseph committed May 8, 2022
1 parent 8fd0fe1 commit 079f80a
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 @@ -80,6 +80,9 @@ def update_data(self):
continue

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

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

0 comments on commit 079f80a

Please sign in to comment.