From c8b1ef86105ecba64d3e1a51816568ff0e94a86d Mon Sep 17 00:00:00 2001 From: Vaibhav Hemant Dixit Date: Mon, 5 Apr 2021 19:31:37 +0000 Subject: [PATCH] Fix fast-reboot fdb filtering for IPv6 addresses --- 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 736827d34e..7c9fecb684 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.keys() \ and ip_address(ip) in ip_network(vlan_cidr[vlan][ip_interface(ip).version]) \ and "neigh" in config.keys():