aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2017-10-04 17:47:55 +0200
committerAlberto Compagno <acompagn+fdio@cisco.com>2017-10-04 17:47:55 +0200
commite06d4f9d6205716970f562afa96f89dee0c4c7de (patch)
tree4b610e4b8c061281a376fde7921e1f71ebc75ce0
parentf2abfbf085491ad039575feb3aa2b2252078dcf4 (diff)
Fix on monitoring vpp interfaces
Change-Id: If05ec7cf3d881d185e660d2ac34a4a49c52808c0 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
-rw-r--r--netmodel/interfaces/vpp/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/netmodel/interfaces/vpp/__init__.py b/netmodel/interfaces/vpp/__init__.py
index 34d106fd..b234c0c1 100644
--- a/netmodel/interfaces/vpp/__init__.py
+++ b/netmodel/interfaces/vpp/__init__.py
@@ -43,6 +43,7 @@ def parse(s):
kw_ip6 = pp.CaselessKeyword('ip6')
kw_tx_error = pp.CaselessKeyword('tx-error')
kw_rx_miss = pp.CaselessKeyword('rx-miss')
+ kw_punts = pp.CaselessKeyword('punts')
header = kw_name + kw_idx + kw_state + kw_counter + kw_count
@@ -54,6 +55,7 @@ def parse(s):
pp.Optional(kw_tx_packets + pp.Word(pp.nums).setResultsName('tx_packets')) + \
pp.Optional(kw_tx_bytes + pp.Word(pp.nums).setResultsName('tx_bytes')) + \
pp.Optional(kw_drops + pp.Word(pp.nums).setResultsName('drops')) + \
+ pp.Optional(kw_punts + pp.Word(pp.nums).setResultsName('punts')) + \
pp.Optional(kw_ip4 + pp.Word(pp.nums).setResultsName('ip4')) + \
pp.Optional(kw_ip6 + pp.Word(pp.nums).setResultsName('ip6')) + \
pp.Optional(kw_rx_miss + pp.Word(pp.nums).setResultsName('rx_miss')) + \