summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-03-10 08:02:58 -0500
committerGitHub <noreply@github.com>2018-03-10 08:02:58 -0500
commit26fa100d47afcd5981939c7cef1649babe7c34c3 (patch)
treeb2f2096001f35150e5bdc41744cb1cc7960268e9
parentb5d82747bde677f3d3b4fea1a3732e2fd5fbe376 (diff)
parent41a13e2cbf9c015713065fe852e74aa2b1047423 (diff)
Merge pull request #1823 from opensourcerouting/stable-3.0-fix-reload-vnc
stable/3.0: fix reload of vnc commands
-rwxr-xr-xtools/frr-reload.py7
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