From e06d4f9d6205716970f562afa96f89dee0c4c7de Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Wed, 4 Oct 2017 17:47:55 +0200 Subject: Fix on monitoring vpp interfaces Change-Id: If05ec7cf3d881d185e660d2ac34a4a49c52808c0 Signed-off-by: Alberto Compagno --- netmodel/interfaces/vpp/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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')) + \ -- cgit 1.2.3-korg