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 autoreply define gbp_bridge_domain_add
41 vl_api_gbp_bridge_domain_t bd;
43 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 autoreply define gbp_route_domain_add
73 vl_api_gbp_route_domain_t rd;
75 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,
104 GBP_API_ENDPOINT_FLAG_REMOTE_LEARNT = 0x6,
105 GBP_API_ENDPOINT_FLAG_EXTERNAL = 0x8,
108 typedef gbp_endpoint_tun
110 vl_api_address_t src;
111 vl_api_address_t dst;
118 vl_api_gbp_endpoint_flags_t flags;
119 vl_api_mac_address_t mac;
120 vl_api_gbp_endpoint_tun_t tun;
122 vl_api_address_t ips[n_ips];
125 define gbp_endpoint_add
129 vl_api_gbp_endpoint_t endpoint;
132 define gbp_endpoint_add_reply
139 autoreply define gbp_endpoint_del
146 define gbp_endpoint_dump
152 define gbp_endpoint_details
157 vl_api_gbp_endpoint_t endpoint;
160 typedef gbp_endpoint_retention
162 u32 remote_ep_timeout;
165 typeonly define gbp_endpoint_group
171 u32 uplink_sw_if_index;
172 vl_api_gbp_endpoint_retention_t retention;
175 autoreply define gbp_endpoint_group_add
179 vl_api_gbp_endpoint_group_t epg;
181 autoreply define gbp_endpoint_group_del
188 define gbp_endpoint_group_dump
194 define gbp_endpoint_group_details
197 vl_api_gbp_endpoint_group_t epg;
200 typeonly define gbp_recirc
207 autoreply define gbp_recirc_add_del
212 vl_api_gbp_recirc_t recirc;
215 define gbp_recirc_dump
221 define gbp_recirc_details
224 vl_api_gbp_recirc_t recirc;
229 GBP_API_SUBNET_TRANSPORT,
230 GBP_API_SUBNET_STITCHED_INTERNAL,
231 GBP_API_SUBNET_STITCHED_EXTERNAL,
232 GBP_API_SUBNET_L3_OUT,
235 typeonly define gbp_subnet
240 vl_api_gbp_subnet_type_t type;
241 vl_api_prefix_t prefix;
244 autoreply define gbp_subnet_add_del
249 vl_api_gbp_subnet_t subnet;
252 define gbp_subnet_dump
258 define gbp_subnet_details
261 vl_api_gbp_subnet_t subnet;
267 vl_api_mac_address_t mac;
274 GBP_API_HASH_MODE_SRC_IP,
275 GBP_API_HASH_MODE_DST_IP,
276 GBP_API_HASH_MODE_SYMMETRIC,
279 typedef gbp_next_hop_set
281 vl_api_gbp_hash_mode_t hash_mode;
283 vl_api_gbp_next_hop_t nhs[8];
290 GBP_API_RULE_REDIRECT,
295 vl_api_gbp_rule_action_t action;
296 vl_api_gbp_next_hop_set_t nh_set;
305 vl_api_gbp_rule_t rules[n_rules];
307 u16 allowed_ethertypes[n_ether_types];
310 autoreply define gbp_contract_add_del
315 vl_api_gbp_contract_t contract;
318 define gbp_contract_dump
324 define gbp_contract_details
327 vl_api_gbp_contract_t contract;
331 * @brief Configure a 'base' tunnel from which learned tunnels
332 * are permitted to derive
333 * A base tunnel consists only of the VNI, any src,dst IP
334 * pair is thus allowed.
336 enum gbp_vxlan_tunnel_mode
338 GBP_VXLAN_TUNNEL_MODE_L2,
339 GBP_VXLAN_TUNNEL_MODE_L3,
342 typedef gbp_vxlan_tunnel
345 vl_api_gbp_vxlan_tunnel_mode_t mode;
347 vl_api_ip4_address_t src;
350 define gbp_vxlan_tunnel_add
354 vl_api_gbp_vxlan_tunnel_t tunnel;
357 define gbp_vxlan_tunnel_add_reply
364 autoreply define gbp_vxlan_tunnel_del
371 define gbp_vxlan_tunnel_dump
377 define gbp_vxlan_tunnel_details
380 vl_api_gbp_vxlan_tunnel_t tunnel;
383 typeonly define gbp_ext_itf
390 autoreply define gbp_ext_itf_add_del
395 vl_api_gbp_ext_itf_t ext_itf;
398 define gbp_ext_itf_dump
404 define gbp_ext_itf_details
407 vl_api_gbp_ext_itf_t ext_itf;
412 * eval: (c-set-style "gnu")