Skip to content

Commit ccb5245

Browse files
shlomibittonabdosi
authored andcommitted
[fast-reboot] Fix fast-reboot when NDP entries are present (#1295)
* Fix fast-reboot when NDP present The IPv6 address delimiter ':' caused an exception Signed-off-by: Shlomi Bitton <[email protected]> * Add a comment
1 parent d09667b commit ccb5245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fdbutil/filter_fdb_entries.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def get_arp_entries_map(arp_filename, config_db_filename):
6363
for key, config in arp.items():
6464
if "NEIGH_TABLE" not in key:
6565
continue
66-
table, vlan, ip = tuple(key.split(':'))
67-
if "NEIGH_TABLE" in table and vlan in vlan_cidr.keys() \
66+
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
67+
if "NEIGH_TABLE" in table and vlan in vlan_cidr \
6868
and ip_address(ip) in ip_network(vlan_cidr[vlan][ip_interface(ip).version]) \
6969
and "neigh" in config.keys():
7070
arp_map[config["neigh"].replace(':', '-').upper()] = ""

0 commit comments

Comments
 (0)