]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tools/frr-reload: process vnc settings as sub-context
authorChristian Franke <chris@opensourcerouting.org>
Mon, 5 Mar 2018 16:16:04 +0000 (17:16 +0100)
committerChristian Franke <chris@opensourcerouting.org>
Mon, 5 Mar 2018 16:16:32 +0000 (17:16 +0100)
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
tools/frr-reload.py

index a7a04be639843440e9158ddd7cbea719e67f81cd..381183f2a9f2d9bd080b91b89572a9132539c384 100755 (executable)
@@ -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