aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/npt66/npt66.api
blob: dab09cda31faaf2ab0594b5cb269c2dc015b609b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// 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";
    };
};