mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 17:24:26 +00:00
Merge pull request #5377 from dslicenc/tools-bfd-timer-fix
tools: resolve issue with bfd timer change fix in frr-reload.py
This commit is contained in:
commit
247c9ef645
@ -755,9 +755,10 @@ def ignore_delete_re_add_lines(lines_to_add, lines_to_del):
|
||||
if re_nbr_bfd_timers:
|
||||
nbr = re_nbr_bfd_timers.group(1)
|
||||
bfd_nbr = "neighbor %s" % nbr
|
||||
bfd_search_string = bfd_nbr + r' bfd (\S+) (\S+) (\S+)'
|
||||
|
||||
for (ctx_keys, add_line) in lines_to_add:
|
||||
re_add_nbr_bfd_timers = re.search(r'neighbor bfd_nbr bfd (\S+) (\S+) (\S+)', add_line)
|
||||
re_add_nbr_bfd_timers = re.search(bfd_search_string, add_line)
|
||||
|
||||
if re_add_nbr_bfd_timers:
|
||||
found_add_bfd_nbr = line_exist(lines_to_add, ctx_keys, bfd_nbr, False)
|
||||
|
Loading…
Reference in New Issue
Block a user