mirror of https://github.com/FRRouting/frr.git
Merge pull request #7942 from donaldsharp/rpki_reload_fix
frr-reload: rpki context exiting uses exit and not end
This commit is contained in:
commit
82451d0cc7
|
@ -629,6 +629,16 @@ end
|
||||||
ctx_keys = []
|
ctx_keys = []
|
||||||
current_context_lines = []
|
current_context_lines = []
|
||||||
|
|
||||||
|
elif line == "exit" and ctx_keys[0].startswith("rpki"):
|
||||||
|
self.save_contexts(ctx_keys, current_context_lines)
|
||||||
|
log.debug("LINE %-50s: exiting old context, %-50s", line, ctx_keys)
|
||||||
|
|
||||||
|
# Start a new context
|
||||||
|
new_ctx = True
|
||||||
|
main_ctx_key = []
|
||||||
|
ctx_keys = []
|
||||||
|
current_context_lines = []
|
||||||
|
|
||||||
elif line == "exit-vrf":
|
elif line == "exit-vrf":
|
||||||
self.save_contexts(ctx_keys, current_context_lines)
|
self.save_contexts(ctx_keys, current_context_lines)
|
||||||
current_context_lines.append(line)
|
current_context_lines.append(line)
|
||||||
|
|
Loading…
Reference in New Issue