Skip to content

Commit

Permalink
Updated regexp to match protocols without template
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenowak authored Mar 25, 2018
1 parent 3edbf0d commit d3e7db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion birdagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]+);")
Expand Down

0 comments on commit d3e7db9

Please sign in to comment.