Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fdbutil/filter_fdb_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_arp_entries_map(arp_filename, config_db_filename):
for key, config in arp.items():
if "NEIGH_TABLE" not in key:
continue
table, vlan, ip = tuple(key.split(':'))
table, vlan, ip = tuple(key.split(':', 2)) # split with max of 2 is used here because IPv6 addresses contain ':' causing a creation of a non tuple object
if "NEIGH_TABLE" in table and vlan in vlan_cidr \
and ip_address(ip) in ip_network(vlan_cidr[vlan][ip_interface(ip).version]) \
and "neigh" in config:
Expand Down