From 2fed5dcd9208a5b8bdbc49febd908f9e72603ede Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Thu, 1 Oct 2015 11:23:00 -0700 Subject: [PATCH] 'service quagga reload' breaks with four top level keywords Signed-off-by: Daniel Walton Reviewed-by: Donald Sharp Reviewed-by: Vivek Venkataraman Ticket: CM-7757 Reviewed By: Donald and Vivek --- tools/quagga-reload.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tools/quagga-reload.py b/tools/quagga-reload.py index cc3910760d..343d61ae78 100755 --- a/tools/quagga-reload.py +++ b/tools/quagga-reload.py @@ -219,7 +219,23 @@ end # the keywords that we know are single line contexts. bgp in this case # is not the main router bgp block, but enabling multi-instance - oneline_ctx_keywords = ("ip ", "ipv6 ", "log ", "hostname ", "zebra ", "ptm-enable", "debug ", "service ", "enable ", "password ", "access-list ", "bgp ") + oneline_ctx_keywords = ("access-list ", + "bgp ", + "debug ", + "dump ", + "enable ", + "hostname ", + "ip ", + "ipv6 ", + "log ", + "password ", + "ptm-enable", + "router-id ", + "service ", + "table ", + "username ", + "zebra ") + for line in self.lines: -- 2.39.5