From bdeee2194b09c85ec1087550177555a24cc5d875 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Thu, 12 Oct 2023 13:38:38 +0200 Subject: npt66: add show command and rx/tx counters Add show npt66 bindings. Add RX/TX and translation error counters. Type: improvement Change-Id: I4513b111f815a15d5a7537ce503f0c084b523aa1 Signed-off-by: Ole Troan --- src/plugins/npt66/npt66.api | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/plugins/npt66/npt66.api') diff --git a/src/plugins/npt66/npt66.api b/src/plugins/npt66/npt66.api index 01ce7759799..63640ac2097 100644 --- a/src/plugins/npt66/npt66.api +++ b/src/plugins/npt66/npt66.api @@ -16,3 +16,25 @@ autoendian autoreply define npt66_binding_add_del vl_api_ip6_prefix_t internal; vl_api_ip6_prefix_t external; }; + +counters npt66 { + rx { + severity info; + type counter64; + units "packets"; + description "packets translated from external to internal"; + }; + tx { + severity info; + type counter64; + units "packets"; + description "packets translated from internal to external"; + }; + translation { + severity error; + type counter64; + units "packets"; + description "packet translation failed"; + }; + +}; \ No newline at end of file -- cgit 1.2.3-korg