From: Don Slice Date: Thu, 19 Jul 2018 18:26:38 +0000 (+0000) Subject: tools: handle exit-vrf as end of context block X-Git-Tag: frr-6.1-dev~155^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cc27402c4d78823f81bbf3d77663d0dc36735195;p=matthieu%2Ffrr.git tools: handle exit-vrf as end of context block Ticket: CM-21048 Signed-off-by: Don Slice --- diff --git a/tools/frr-reload.py b/tools/frr-reload.py index 208fb116e6..a9f183ed7b 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -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)