diff --git a/scripts/fdbshow b/scripts/fdbshow index 1c06d5a27d..666f68e80f 100755 --- a/scripts/fdbshow +++ b/scripts/fdbshow @@ -85,6 +85,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: vlan_id = fdb["bvid"] print "Failed to get Vlan id for bvid {}\n".format(fdb["bvid"])