diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-02-17 21:34:48 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-02-17 21:34:48 +0100 |
| commit | 8ba835eb69d897d67a46ede418c81387bd1cc55b (patch) | |
| tree | 572ed632436ac5e766acd5bfb0a1761a7653358c /tools/frr-reload.py | |
| parent | 7fb5ee68c9a76467218d7955d8310a58cd9488ee (diff) | |
| parent | 53bddc224c88c8457ae051ff0e865e6ab72cbe62 (diff) | |
Merge branch 'frr/pull/210' ("tools: frr-reload removes "ipv6 nd ra-interval" ...")
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tools/frr-reload.py')
| -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 2dbc60d1f4..80e259961a 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -993,7 +993,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" quagga + # 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 == '!': |
