Skip to content

Commit

Permalink
[fast-reboot] Fix fast-reboot when NDP entries are present (#1295)
Browse files Browse the repository at this point in the history
* Fix fast-reboot when NDP present
The IPv6 address delimiter ':' caused an exception

Signed-off-by: Shlomi Bitton <[email protected]>

* Add a comment
  • Loading branch information
shlomibitton authored Dec 8, 2020
1 parent 326e534 commit 2f263c4
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 2f263c4

Please sign in to comment.