diff options
Diffstat (limited to 'src/plugins/npt66/npt66.api')
-rw-r--r-- | src/plugins/npt66/npt66.api | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/plugins/npt66/npt66.api b/src/plugins/npt66/npt66.api new file mode 100644 index 00000000000..63640ac2097 --- /dev/null +++ b/src/plugins/npt66/npt66.api @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright(c) 2023 Cisco Systems, Inc. + +option version = "0.0.1"; + +import "vnet/interface_types.api"; +import "vnet/ip/ip_types.api"; + +autoendian autoreply define npt66_binding_add_del +{ + u32 client_index; + u32 context; + + bool is_add; + vl_api_interface_index_t sw_if_index; + 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 |