aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2017-10-06 09:20:14 +0000
committerGerrit Code Review <gerrit@fd.io>2017-10-06 09:20:14 +0000
commitaf2dd545d04cfca7e7ec066035abf78c3d541915 (patch)
treec9fcd71e3b611b9c7409867781ed8c5aa013261a
parent17dd3706891040fdd1c92b4531dd1f12493d06e3 (diff)
parente06d4f9d6205716970f562afa96f89dee0c4c7de (diff)
Merge "Fix on monitoring vpp interfaces" into vicn/master
-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')) + \