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,
26 GBP_BD_API_FLAG_UU_FWD_DROP = 2,
27 GBP_BD_API_FLAG_MCAST_DROP = 4,
28 GBP_BD_API_FLAG_UCAST_ARP = 8,
31 typedef gbp_bridge_domain
35 vl_api_gbp_bridge_domain_flags_t flags;
37 u32 uu_fwd_sw_if_index;
38 u32 bm_flood_sw_if_index;
41 manual_print autoreply define gbp_bridge_domain_add
45 vl_api_gbp_bridge_domain_t bd;
47 manual_print autoreply define gbp_bridge_domain_del
53 autoreply define gbp_bridge_domain_dump
58 define gbp_bridge_domain_details
61 vl_api_gbp_bridge_domain_t bd;
64 typedef u16 gbp_scope;
66 typedef gbp_route_domain
71 u32 ip4_uu_sw_if_index;
72 u32 ip6_uu_sw_if_index;
73 vl_api_gbp_scope_t scope;
76 manual_print autoreply define gbp_route_domain_add
80 vl_api_gbp_route_domain_t rd;
82 manual_print autoreply define gbp_route_domain_del
88 autoreply define gbp_route_domain_dump
93 define gbp_route_domain_details
96 vl_api_gbp_route_domain_t rd;
100 @param client_index - opaque cookie to identify the sender
101 @param context - sender context, to match reply w/ request
104 enum gbp_endpoint_flags
106 GBP_API_ENDPOINT_FLAG_NONE = 0,
107 GBP_API_ENDPOINT_FLAG_BOUNCE = 0x1,
108 GBP_API_ENDPOINT_FLAG_REMOTE = 0x2,
109 GBP_API_ENDPOINT_FLAG_LEARNT = 0x4,
110 GBP_API_ENDPOINT_FLAG_EXTERNAL = 0x8,
113 typedef gbp_endpoint_tun
115 vl_api_address_t src;
116 vl_api_address_t dst;
123 vl_api_gbp_endpoint_flags_t flags;
124 vl_api_mac_address_t mac;
125 vl_api_gbp_endpoint_tun_t tun;
127 vl_api_address_t ips[n_ips];
130 manual_print define gbp_endpoint_add
134 vl_api_gbp_endpoint_t endpoint;
137 define gbp_endpoint_add_reply
144 manual_print autoreply define gbp_endpoint_del
151 define gbp_endpoint_dump
157 define gbp_endpoint_details
162 vl_api_gbp_endpoint_t endpoint;
165 typedef gbp_endpoint_retention
167 u32 remote_ep_timeout;
170 typeonly define gbp_endpoint_group
176 u32 uplink_sw_if_index;
177 vl_api_gbp_endpoint_retention_t retention;
180 manual_print autoreply define gbp_endpoint_group_add
184 vl_api_gbp_endpoint_group_t epg;
186 manual_print autoreply define gbp_endpoint_group_del
193 define gbp_endpoint_group_dump
199 define gbp_endpoint_group_details
202 vl_api_gbp_endpoint_group_t epg;
205 typeonly define gbp_recirc
212 manual_print autoreply define gbp_recirc_add_del
217 vl_api_gbp_recirc_t recirc;
220 define gbp_recirc_dump
226 define gbp_recirc_details
229 vl_api_gbp_recirc_t recirc;
234 GBP_API_SUBNET_TRANSPORT,
235 GBP_API_SUBNET_STITCHED_INTERNAL,
236 GBP_API_SUBNET_STITCHED_EXTERNAL,
237 GBP_API_SUBNET_L3_OUT,
238 GBP_API_SUBNET_ANON_L3_OUT,
241 typeonly define gbp_subnet
246 vl_api_gbp_subnet_type_t type;
247 vl_api_prefix_t prefix;
250 manual_print autoreply define gbp_subnet_add_del
255 vl_api_gbp_subnet_t subnet;
258 define gbp_subnet_dump
264 define gbp_subnet_details
267 vl_api_gbp_subnet_t subnet;
273 vl_api_mac_address_t mac;
280 GBP_API_HASH_MODE_SRC_IP,
281 GBP_API_HASH_MODE_DST_IP,
282 GBP_API_HASH_MODE_SYMMETRIC,
285 typedef gbp_next_hop_set
287 vl_api_gbp_hash_mode_t hash_mode;
289 vl_api_gbp_next_hop_t nhs[8];
296 GBP_API_RULE_REDIRECT,
301 vl_api_gbp_rule_action_t action;
302 vl_api_gbp_next_hop_set_t nh_set;
307 vl_api_gbp_scope_t scope;
312 u16 allowed_ethertypes[16];
314 vl_api_gbp_rule_t rules[n_rules];
317 manual_print define gbp_contract_add_del
322 vl_api_gbp_contract_t contract;
324 define gbp_contract_add_del_reply
331 define gbp_contract_dump
337 define gbp_contract_details
340 vl_api_gbp_contract_t contract;
344 * @brief Configure a 'base' tunnel from which learned tunnels
345 * are permitted to derive
346 * A base tunnel consists only of the VNI, any src,dst IP
347 * pair is thus allowed.
349 enum gbp_vxlan_tunnel_mode
351 GBP_VXLAN_TUNNEL_MODE_L2,
352 GBP_VXLAN_TUNNEL_MODE_L3,
355 typedef gbp_vxlan_tunnel
358 vl_api_gbp_vxlan_tunnel_mode_t mode;
360 vl_api_ip4_address_t src;
363 manual_print define gbp_vxlan_tunnel_add
367 vl_api_gbp_vxlan_tunnel_t tunnel;
370 define gbp_vxlan_tunnel_add_reply
377 manual_print autoreply define gbp_vxlan_tunnel_del
384 define gbp_vxlan_tunnel_dump
390 define gbp_vxlan_tunnel_details
393 vl_api_gbp_vxlan_tunnel_t tunnel;
396 enum gbp_ext_itf_flags
398 GBP_API_EXT_ITF_F_NONE = 0,
399 GBP_API_EXT_ITF_F_ANON = 1,
402 typeonly define gbp_ext_itf
407 vl_api_gbp_ext_itf_flags_t flags;
410 manual_print autoreply define gbp_ext_itf_add_del
415 vl_api_gbp_ext_itf_t ext_itf;
418 define gbp_ext_itf_dump
424 define gbp_ext_itf_details
427 vl_api_gbp_ext_itf_t ext_itf;
432 * eval: (c-set-style "gnu")