From d3e7db9955a668b0a913e065070278029a7ab1d4 Mon Sep 17 00:00:00 2001 From: Mike Nowak Date: Mon, 26 Mar 2018 02:00:03 +0900 Subject: [PATCH] Updated regexp to match protocols without template --- birdagent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdagent.py b/birdagent.py index c29428c..b03c292 100644 --- a/birdagent.py +++ b/birdagent.py @@ -49,7 +49,7 @@ def __init__(self, cfgfile, birdcli, sscmd): _re_config_include = re.compile("^include\s*\"(/[^\"]*)\".*$") _re_config_bgp_proto_begin = re.compile( - "^protocol bgp ([a-zA-Z0-9_]+) .* \{$") + "^protocol bgp ([a-zA-Z0-9_]+).*\{$") _re_config_local_as = re.compile( "local ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+) as ([0-9]+);") _re_config_bgp_holdtime = re.compile("hold time ([0-9]+);")