Skip to content

Commit 67f9f96

Browse files
authored
Continue processing next fdb entry if bridge port index not in list (sonic-net#136)
1 parent 4804711 commit 67f9f96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/fdbshow

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ class FdbShow(object):
7171

7272
ent = self.db.get_all('ASIC_DB', s, blocking=True)
7373
br_port_id = ent[b"SAI_FDB_ENTRY_ATTR_BRIDGE_PORT_ID"][oid_pfx:]
74+
if br_port_id not in self.if_br_oid_map:
75+
continue
7476
port_id = self.if_br_oid_map[br_port_id]
7577
if_name = self.if_oid_map[port_id]
7678

0 commit comments

Comments
 (0)