npt66: add show command and rx/tx counters
[vpp.git] / src / plugins / npt66 / npt66.api
1 // SPDX-License-Identifier: Apache-2.0
2 // Copyright(c) 2023 Cisco Systems, Inc.
3
4 option version = "0.0.1";
5
6 import "vnet/interface_types.api";
7 import "vnet/ip/ip_types.api";
8
9 autoendian autoreply define npt66_binding_add_del
10 {
11     u32 client_index;
12     u32 context;
13
14     bool is_add;
15     vl_api_interface_index_t sw_if_index;
16     vl_api_ip6_prefix_t internal;
17     vl_api_ip6_prefix_t external;
18 };
19
20 counters npt66 {
21     rx {
22         severity info;
23         type counter64;
24         units "packets";
25         description "packets translated from external to internal";
26     };
27     tx {
28         severity info;
29         type counter64;
30         units "packets";
31         description "packets translated from internal to external";
32     };
33     translation {
34         severity error;
35         type counter64;
36         units "packets";
37         description "packet translation failed";
38     };
39
40 };