From 2f263c4e4a5f115cbdc6945d3eb8a4d1f5a3be1b Mon Sep 17 00:00:00 2001 From: shlomibitton <60430976+shlomibitton@users.noreply.github.com> Date: Tue, 8 Dec 2020 12:21:04 +0200 Subject: [PATCH] [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 * Add a comment --- fdbutil/filter_fdb_entries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdbutil/filter_fdb_entries.py b/fdbutil/filter_fdb_entries.py index 5fd7664d81cb..7328395bd95f 100755 --- a/fdbutil/filter_fdb_entries.py +++ b/fdbutil/filter_fdb_entries.py @@ -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: