Skip to content

Commit 2f263c4

Browse files
authored
[fast-reboot] Fix fast-reboot when NDP entries are present (sonic-net#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 326e534 commit 2f263c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fdbutil/filter_fdb_entries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ 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(':'))
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
6767
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:

0 commit comments

Comments
 (0)