diff --git a/scripts/fdbshow b/scripts/fdbshow index 169bf7cf3c..53badedc69 100755 --- a/scripts/fdbshow +++ b/scripts/fdbshow @@ -87,6 +87,10 @@ class FdbShow(object): elif 'bvid' in fdb: try: vlan_id = port_util.get_vlan_id_from_bvid(self.db, fdb["bvid"]) + if vlan_id is None: + # the situation could be faced if the system has an FDB entries, + # which are linked to default Vlan(caused by untagged trafic) + continue except Exception: vlan_id = fdb["bvid"] print("Failed to get Vlan id for bvid {}\n".format(fdb["bvid"]))