aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2017-10-12 09:44:33 +0200
committerJordan Augé <jordan.auge+fdio@cisco.com>2017-10-12 09:44:33 +0200
commit593aaf3440b67927bed19d247481a50f95e3b998 (patch)
tree6caf6ca7fabe3e1a578525e1f0592815306199f5
parent5f8867a3454164ad20ae427dc9d2c7d65ea00a90 (diff)
Fixed interface name parsing for vpp monitoring to allow for VLANs
Change-Id: I4a9408783d7cf87511fa941ed0318122f53fab26 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
-rw-r--r--netmodel/interfaces/vpp/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netmodel/interfaces/vpp/__init__.py b/netmodel/interfaces/vpp/__init__.py
index b234c0c1..0c3abb9a 100644
--- a/netmodel/interfaces/vpp/__init__.py
+++ b/netmodel/interfaces/vpp/__init__.py
@@ -47,7 +47,7 @@ def parse(s):
header = kw_name + kw_idx + kw_state + kw_counter + kw_count
- interface = (pp.Word(pp.alphanums + '/' + '-').setResultsName('device_name') + \
+ interface = (pp.Word(pp.alphanums + '/-.').setResultsName('device_name') + \
pp.Word(pp.nums).setResultsName('index') + \
pp.oneOf(['up', 'down']).setResultsName('state') + \
pp.Optional(kw_rx_packets + pp.Word(pp.nums).setResultsName('rx_packets')) + \