]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tools: handle exit-vrf as end of context block
authorDon Slice <dslice@cumulusnetworks.com>
Thu, 19 Jul 2018 18:26:38 +0000 (18:26 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Thu, 19 Jul 2018 18:38:54 +0000 (18:38 +0000)
Ticket: CM-21048
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
tools/frr-reload.py

index 208fb116e689aced77130b37b4d1e4b5eba6248f..a9f183ed7ba85f2ffd4ecd4b5c14841c2581f407 100755 (executable)
@@ -403,7 +403,7 @@ end
                 self.save_contexts(ctx_keys, current_context_lines)
                 new_ctx = True
 
-            elif line == "end":
+            elif line in ["end", "exit-vrf"]:
                 self.save_contexts(ctx_keys, current_context_lines)
                 log.debug('LINE %-50s: exiting old context, %-50s', line, ctx_keys)