Skip to content

Commit

Permalink
Updating _re_birdcli_bgp_begin to cope with Bird 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenowak authored Jan 26, 2019
1 parent 0d1b515 commit cc0a343
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 @@ -62,7 +62,7 @@ def __init__(self, cfgfile, birdcli, sscmd):
_re_config_proto_end = re.compile("^\}$")

_re_birdcli_bgp_begin = re.compile(
"^([a-zA-Z0-9_]+)\s+BGP\s+[a-zA-Z0-9_]+\s+[a-zA-Z0-9]+\s+(\d\d\d\d-\d\d-\d\d\s\d\d:\d\d:\d\d).*$")
"^([a-zA-Z0-9_]+)\s+BGP\s+[a-zA-Z0-9-_]+\s+[a-zA-Z0-9]+\s+(\d\d\d\d-\d\d-\d\d\s\d\d:\d\d:\d\d).*$")
_re_birdcli_bgp_peer = {
"bgpPeerIdentifier": re.compile("^\s+Neighbor ID:\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)$"),
"bgpPeerState": re.compile("^\s+BGP state:\s+([a-zA-Z]+)$"),
Expand Down

0 comments on commit cc0a343

Please sign in to comment.