f726ebd174
Replace clib_warnings() in the forwarding path with error counters. Change-Id: Ie679d940f056eeddeb8a032c77fe9c2195490cfc Signed-off-by: Ole Troan <otroan@employees.org> Type: fix Signed-off-by: Ole Troan <otroan@employees.org>
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
// 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";
|
|
};
|
|
icmp6_checksum {
|
|
severity error;
|
|
type counter64;
|
|
units "packets";
|
|
description "ICMP6 checksum validation failed";
|
|
};
|
|
icmp6_truncated {
|
|
severity error;
|
|
type counter64;
|
|
units "packets";
|
|
description "ICMP6 packet truncated";
|
|
};
|
|
}; |