Skip to content

Commit

Permalink
Merge pull request #16723 from jklaiber/fix-reload-interface-deletion
Browse files Browse the repository at this point in the history
tools: fix reload interface deletion
  • Loading branch information
ton31337 authored Jan 21, 2025
2 parents 4f65107 + f1a1703 commit 5f23128
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tools/frr-reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -1757,12 +1757,13 @@ def compare_context_objects(newconf, running):
delete_bgpd = True
lines_to_del.append((running_ctx_keys, None))

# We cannot do 'no interface' or 'no vrf' in FRR, and so deal with it
elif (
running_ctx_keys[0].startswith("interface")
or running_ctx_keys[0].startswith("vrf")
or running_ctx_keys[0].startswith("router pim")
):
elif running_ctx_keys[0].startswith("interface"):
lines_to_del.append((running_ctx_keys, None))

# We cannot do 'no vrf' in FRR, and so deal with it
elif running_ctx_keys[0].startswith("vrf") or running_ctx_keys[
0
].startswith("router pim"):
for line in running_ctx.lines:
lines_to_del.append((running_ctx_keys, line))

Expand Down

0 comments on commit 5f23128

Please sign in to comment.