diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2017-10-06 09:20:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2017-10-06 09:20:14 +0000 |
commit | af2dd545d04cfca7e7ec066035abf78c3d541915 (patch) | |
tree | c9fcd71e3b611b9c7409867781ed8c5aa013261a | |
parent | 17dd3706891040fdd1c92b4531dd1f12493d06e3 (diff) | |
parent | e06d4f9d6205716970f562afa96f89dee0c4c7de (diff) |
Merge "Fix on monitoring vpp interfaces" into vicn/master
-rw-r--r-- | netmodel/interfaces/vpp/__init__.py | 2 |
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')) + \ |