Skip to content

Commit

Permalink
Fetch Local AS from birdc output
Browse files Browse the repository at this point in the history
  • Loading branch information
jplitza committed Sep 12, 2019
1 parent 46e4637 commit 527e969
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions birdagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def __init__(self, cfgfile, birdcli, sscmd):
"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]+)$"),
"bgpPeerLocalAddr": re.compile("^\s+Source address:\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)$"),
"bgpPeerLocalAs": re.compile("^\s+Local AS:\s+([0-9]+)$"),
"bgpPeerRemoteAddr": re.compile("^\s+Neighbor address:\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)$"),
"bgpPeerRemoteAs": re.compile("^\s+Neighbor AS:\s+([0-9]+)$"),
"bgpPeerInUpdates": re.compile("^\s+Import updates:\s+([0-9]+)\s+[0-9\-]+\s+[0-9\-]+\s+[0-9\-]+\s+[0-9\-]+$"),
Expand All @@ -88,6 +89,7 @@ def __init__(self, cfgfile, birdcli, sscmd):
'bgpPeerNegotiatedVersion',
'bgpPeerLocalAddr',
'bgpPeerLocalPort',
'bgpPeerLocalAs',
'bgpPeerRemoteAddr',
'bgpPeerRemotePort',
'bgpPeerRemoteAs',
Expand Down

0 comments on commit 527e969

Please sign in to comment.