We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71c696e commit ce9a36eCopy full SHA for ce9a36e
1 file changed
scripts/fdbshow
@@ -75,8 +75,11 @@ class FdbShow(object):
75
continue
76
port_id = self.if_br_oid_map[br_port_id]
77
if_name = self.if_oid_map[port_id]
78
-
79
- self.bridge_mac_list.append((int(fdb["vlan"]),) + (fdb["mac"],) + (if_name,))
+ if 'vlan' in fdb:
+ vlan_id = fdb["vlan"]
80
+ elif 'bvid' in fdb:
81
+ vlan_id = port_util.get_vlan_id_from_bvid(self.db, fdb["bvid"])
82
+ self.bridge_mac_list.append((int(vlan_id),) + (fdb["mac"],) + (if_name,))
83
84
self.bridge_mac_list.sort(key = lambda x: x[0])
85
return
0 commit comments