1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 2016 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 This file defines the vpp control-plane API messages
19 used to control the ABF plugin
22 option version = "0.1.0";
23 import "vnet/ip/ip_types.api";
24 import "vnet/fib/fib_types.api";
26 enum cnat_translation_flags:u8
28 CNAT_TRANSLATION_ALLOC_PORT = 1,
33 vl_api_address_t addr;
37 typedef cnat_endpoint_tuple
39 vl_api_cnat_endpoint_t dst_ep;
40 vl_api_cnat_endpoint_t src_ep;
43 typedef cnat_translation
45 vl_api_cnat_endpoint_t vip;
47 vl_api_ip_proto_t ip_proto;
51 vl_api_cnat_endpoint_tuple_t paths[n_paths];
54 define cnat_translation_update
58 vl_api_cnat_translation_t translation;
61 define cnat_translation_update_reply
68 autoreply define cnat_translation_del
75 define cnat_translation_details
78 vl_api_cnat_translation_t translation;
81 define cnat_translation_dump
87 autoreply define cnat_session_purge
95 vl_api_cnat_endpoint_t src;
96 vl_api_cnat_endpoint_t dst;
97 vl_api_cnat_endpoint_t new;
98 vl_api_ip_proto_t ip_proto;
102 define cnat_session_details
105 vl_api_cnat_session_t session;
108 define cnat_session_dump
114 autoreply define cnat_set_snat_addresses
118 vl_api_ip4_address_t snat_ip4;
119 vl_api_ip6_address_t snat_ip6;
122 autoreply define cnat_add_del_snat_prefix
127 vl_api_prefix_t prefix;
131 * fd.io coding-style-patch-verification: ON
134 * eval: (c-set-style "gnu")