From 53d3c04ec1d7001bb4e24cad2a060534ee1d8328 Mon Sep 17 00:00:00 2001 From: Mike Nowak Date: Fri, 17 Aug 2018 21:56:33 +0900 Subject: [PATCH] Updated to support vlan tagged interfaces ss regex ignored vlan tagged interfaces parts as %eth0.941 --- birdagent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdagent.py b/birdagent.py index 2b8eacf..6a3fb49 100644 --- a/birdagent.py +++ b/birdagent.py @@ -79,7 +79,7 @@ def __init__(self, cfgfile, birdcli, sscmd): _re_birdcli_bgp_end = re.compile("^$") _re_ss = re.compile( - "^[0-9]+\s+[0-9]+\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(?:%[a-z0-9-]+)?:([0-9]+)\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(?:%[a-z0-9-]+?)?:([0-9]+)") + "^[0-9]+\s+[0-9]+\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(?:%[a-z0-9-\.]+)?:([0-9]+)\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(?:%[a-z0-9-\.]+?)?:([0-9]+)") bgp_keys = [ 'bgpPeerIdentifier',