diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-10 08:02:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-10 08:02:58 -0500 |
| commit | 26fa100d47afcd5981939c7cef1649babe7c34c3 (patch) | |
| tree | b2f2096001f35150e5bdc41744cb1cc7960268e9 | |
| parent | b5d82747bde677f3d3b4fea1a3732e2fd5fbe376 (diff) | |
| parent | 41a13e2cbf9c015713065fe852e74aa2b1047423 (diff) | |
Merge pull request #1823 from opensourcerouting/stable-3.0-fix-reload-vnc
stable/3.0: fix reload of vnc commands
| -rwxr-xr-x | tools/frr-reload.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py index a7a04be639..381183f2a9 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -398,7 +398,7 @@ end ctx_keys = [] current_context_lines = [] - elif line == "exit-address-family" or line == "exit": + elif line in ["exit-address-family", "exit", "exit-vnc"]: # if this exit is for address-family ipv4 unicast, ignore the pop if main_ctx_key: self.save_contexts(ctx_keys, current_context_lines) @@ -419,7 +419,10 @@ end new_ctx = False log.debug('LINE %-50s: entering new context, %-50s', line, ctx_keys) - elif "address-family " in line: + elif (line.startswith("address-family ") or + line.startswith("vnc defaults") or + line.startswith("vnc l2-group") or + line.startswith("vnc nve-group")): main_ctx_key = [] # Save old context first |
