1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 2018 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.
17 option version = "2.0.0";
19 import "vnet/ip/ip_types.api";
20 import "vnet/ethernet/ethernet_types.api";
22 enum gbp_bridge_domain_flags
24 GBP_BD_API_FLAG_NONE = 0,
25 GBP_BD_API_FLAG_DO_NOT_LEARN = 1,
28 typedef gbp_bridge_domain
31 vl_api_gbp_bridge_domain_flags_t flags;
33 u32 uu_fwd_sw_if_index;
34 u32 bm_flood_sw_if_index;
37 manual_print autoreply define gbp_bridge_domain_add
41 vl_api_gbp_bridge_domain_t bd;
43 manual_print autoreply define gbp_bridge_domain_del
49 autoreply define gbp_bridge_domain_dump
54 define gbp_bridge_domain_details
57 vl_api_gbp_bridge_domain_t bd;
60 typedef gbp_route_domain
65 u32 ip4_uu_sw_if_index;
66 u32 ip6_uu_sw_if_index;
69 manual_print autoreply define gbp_route_domain_add
73 vl_api_gbp_route_domain_t rd;
75 manual_print autoreply define gbp_route_domain_del
81 autoreply define gbp_route_domain_dump
86 define gbp_route_domain_details
89 vl_api_gbp_route_domain_t rd;
93 @param client_index - opaque cookie to identify the sender
94 @param context - sender context, to match reply w/ request
97 enum gbp_endpoint_flags
99 GBP_API_ENDPOINT_FLAG_NONE = 0,
100 GBP_API_ENDPOINT_FLAG_BOUNCE = 0x1,
101 GBP_API_ENDPOINT_FLAG_REMOTE = 0x2,
102 GBP_API_ENDPOINT_FLAG_LEARNT = 0x4,
103 GBP_API_ENDPOINT_FLAG_EXTERNAL = 0x8,
106 typedef gbp_endpoint_tun
108 vl_api_address_t src;
109 vl_api_address_t dst;
116 vl_api_gbp_endpoint_flags_t flags;
117 vl_api_mac_address_t mac;
118 vl_api_gbp_endpoint_tun_t tun;
120 vl_api_address_t ips[n_ips];
123 manual_print define gbp_endpoint_add
127 vl_api_gbp_endpoint_t endpoint;
130 define gbp_endpoint_add_reply
137 manual_print autoreply define gbp_endpoint_del
144 define gbp_endpoint_dump
150 define gbp_endpoint_details
155 vl_api_gbp_endpoint_t endpoint;
158 typedef gbp_endpoint_retention
160 u32 remote_ep_timeout;
163 typeonly define gbp_endpoint_group
169 u32 uplink_sw_if_index;
170 vl_api_gbp_endpoint_retention_t retention;
173 manual_print autoreply define gbp_endpoint_group_add
177 vl_api_gbp_endpoint_group_t epg;
179 manual_print autoreply define gbp_endpoint_group_del
186 define gbp_endpoint_group_dump
192 define gbp_endpoint_group_details
195 vl_api_gbp_endpoint_group_t epg;
198 typeonly define gbp_recirc
205 manual_print autoreply define gbp_recirc_add_del
210 vl_api_gbp_recirc_t recirc;
213 define gbp_recirc_dump
219 define gbp_recirc_details
222 vl_api_gbp_recirc_t recirc;
227 GBP_API_SUBNET_TRANSPORT,
228 GBP_API_SUBNET_STITCHED_INTERNAL,
229 GBP_API_SUBNET_STITCHED_EXTERNAL,
230 GBP_API_SUBNET_L3_OUT,
233 typeonly define gbp_subnet
238 vl_api_gbp_subnet_type_t type;
239 vl_api_prefix_t prefix;
242 manual_print autoreply define gbp_subnet_add_del
247 vl_api_gbp_subnet_t subnet;
250 define gbp_subnet_dump
256 define gbp_subnet_details
259 vl_api_gbp_subnet_t subnet;
265 vl_api_mac_address_t mac;
272 GBP_API_HASH_MODE_SRC_IP,
273 GBP_API_HASH_MODE_DST_IP,
274 GBP_API_HASH_MODE_SYMMETRIC,
277 typedef gbp_next_hop_set
279 vl_api_gbp_hash_mode_t hash_mode;
281 vl_api_gbp_next_hop_t nhs[8];
288 GBP_API_RULE_REDIRECT,
293 vl_api_gbp_rule_action_t action;
294 vl_api_gbp_next_hop_set_t nh_set;
303 u16 allowed_ethertypes[16];
305 vl_api_gbp_rule_t rules[n_rules];
308 manual_print autoreply define gbp_contract_add_del
313 vl_api_gbp_contract_t contract;
316 define gbp_contract_dump
322 define gbp_contract_details
325 vl_api_gbp_contract_t contract;
329 * @brief Configure a 'base' tunnel from which learned tunnels
330 * are permitted to derive
331 * A base tunnel consists only of the VNI, any src,dst IP
332 * pair is thus allowed.
334 enum gbp_vxlan_tunnel_mode
336 GBP_VXLAN_TUNNEL_MODE_L2,
337 GBP_VXLAN_TUNNEL_MODE_L3,
340 typedef gbp_vxlan_tunnel
343 vl_api_gbp_vxlan_tunnel_mode_t mode;
345 vl_api_ip4_address_t src;
348 manual_print define gbp_vxlan_tunnel_add
352 vl_api_gbp_vxlan_tunnel_t tunnel;
355 define gbp_vxlan_tunnel_add_reply
362 manual_print autoreply define gbp_vxlan_tunnel_del
369 define gbp_vxlan_tunnel_dump
375 define gbp_vxlan_tunnel_details
378 vl_api_gbp_vxlan_tunnel_t tunnel;
381 typeonly define gbp_ext_itf
388 manual_print autoreply define gbp_ext_itf_add_del
393 vl_api_gbp_ext_itf_t ext_itf;
396 define gbp_ext_itf_dump
402 define gbp_ext_itf_details
405 vl_api_gbp_ext_itf_t ext_itf;
410 * eval: (c-set-style "gnu")