aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/npt66/npt66.api
diff options
context:
space:
mode:
authorOle Troan <otroan@employees.org>2023-10-12 13:38:38 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2023-10-13 08:27:26 +0000
commitbdeee2194b09c85ec1087550177555a24cc5d875 (patch)
tree94715e7acfcaad49d143afb2b47e1b3d4a0e77ca /src/plugins/npt66/npt66.api
parent054aa8c2f2681e3a4a4af02d9119fb6eaa5dbad6 (diff)
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 <otroan@employees.org>
Diffstat (limited to 'src/plugins/npt66/npt66.api')
-rw-r--r--src/plugins/npt66/npt66.api22
1 files changed, 22 insertions, 0 deletions
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