diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-05-17 02:18:33 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-05-17 02:18:33 +0200 |
commit | 970c956816599fe3d58bc45ca3a18b9542467337 (patch) | |
tree | a99bb00851d71a85cd30b8cb86e3689e5195d049 /tools/frr-reload.py | |
parent | tools: reload handle removal of entire address-family section under BGP (diff) | |
download | frr-970c956816599fe3d58bc45ca3a18b9542467337.tar.xz frr-970c956816599fe3d58bc45ca3a18b9542467337.zip |
tools: frr-reload removes "ipv6 nd ra-interval" and "no ipv6 nd supp"
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to '')
-rwxr-xr-x | tools/frr-reload.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py index 1ef6920d0..f6cb6d991 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -1009,7 +1009,20 @@ if __name__ == '__main__': (lines_to_add, lines_to_del) = compare_context_objects(newconf, running) - if lines_to_del: + # Only do deletes on the first pass. The reason being if we + # configure a bgp neighbor via "neighbor swp1 interface" frr + # will automatically add: + # + # interface swp1 + # ipv6 nd ra-interval 10 + # no ipv6 nd suppress-ra + # ! + # + # but those lines aren't in the config we are reloading against so + # on the 2nd pass they will show up in lines_to_del. This could + # apply to other scenarios as well where configuring FOO adds BAR + # to the config. + if lines_to_del and x == 0: for (ctx_keys, line) in lines_to_del: if line == '!': |