16 #ifndef __GBP_API_PRINT_H__ 17 #define __GBP_API_PRINT_H__ 24 vl_print (handle, (char *)s); \ 33 s =
format (s,
"SCRIPT: gbp_bridge_domain_add ");
34 s =
format (s,
"bd_id %d ", ntohl (a->
bd.bd_id));
35 s =
format (s,
"rd_id %d ", ntohl (a->
bd.rd_id));
36 s =
format (s,
"flags %d ", ntohl (a->
bd.flags));
37 s =
format (s,
"uu-fwd %d ", ntohl (a->
bd.uu_fwd_sw_if_index));
38 s =
format (s,
"bvi %d ", ntohl (a->
bd.bvi_sw_if_index));
39 s =
format (s,
"bm-flood %d", ntohl (a->
bd.bm_flood_sw_if_index));
54 s =
format (s,
"SCRIPT: gbp_bridge_domain_del ");
70 s =
format (s,
"SCRIPT: gbp_route_domain_add ");
71 s =
format (s,
"rd_id %d ", ntohl (a->
rd.rd_id));
72 s =
format (s,
"ip4_table_id %d ", ntohl (a->
rd.ip4_table_id));
73 s =
format (s,
"ip6_table_id %d ", ntohl (a->
rd.ip6_table_id));
74 s =
format (s,
"ip4_uu_sw_if_index %d ", ntohl (a->
rd.ip4_uu_sw_if_index));
75 s =
format (s,
"ip6_uu_sw_if_index %d", ntohl (a->
rd.ip6_uu_sw_if_index));
90 s =
format (s,
"SCRIPT: gbp_route_domain_del ");
105 s =
format (s,
"SCRIPT: gbp_endpoint_add ");
106 s =
format (s,
"sw_if_index %d ", ntohl (a->
endpoint.sw_if_index));
117 s =
format (s,
"\n\t ips");
133 s =
format (s,
"SCRIPT: gbp_endpoint_del ");
149 s =
format (s,
"SCRIPT: gbp_endpoint_group_add ");
150 s =
format (s,
"vnid %d ", ntohl (a->
epg.vnid));
151 s =
format (s,
"sclass %d ", ntohs (a->
epg.sclass));
152 s =
format (s,
"bd_id %d ", ntohl (a->
epg.bd_id));
153 s =
format (s,
"rd_id %d ", ntohl (a->
epg.rd_id));
154 s =
format (s,
"uplink_sw_if_index %d ", ntohl (a->
epg.uplink_sw_if_index));
156 format (s,
"remote_ep_timeout %d",
157 ntohl (a->
epg.retention.remote_ep_timeout));
172 s =
format (s,
"SCRIPT: gbp_endpoint_group_del ");
188 s =
format (s,
"SCRIPT: gbp_recirc_add_del ");
194 s =
format (s,
"sw_if_index %d ", ntohl (a->
recirc.sw_if_index));
211 s =
format (s,
"SCRIPT: gbp_subnet_add_del ");
217 s =
format (s,
"sw_if_index %d ", ntohl (a->
subnet.sw_if_index));
237 s =
format (s,
"SCRIPT: gbp_contract_add_del ");
250 format (s,
"\t hash_mode %d",
251 ntohl (a->
contract.rules[
i].nh_set.hash_mode));
252 for (
int j = 0; j < a->
contract.rules[
i].nh_set.n_nhs; j++)
261 format (s,
"nhs bd_id %d ",
262 ntohl (a->
contract.rules[
i].nh_set.nhs[j].bd_id));
264 format (s,
"nhs rd_id %d",
265 ntohl (a->
contract.rules[
i].nh_set.nhs[j].rd_id));
271 s =
format (s,
"\tethertypes");
272 for (
int i = 0;
i < a->
contract.n_ether_types;
i++)
290 s =
format (s,
"SCRIPT: gbp_vxlan_tunnel_add ");
294 s =
format (s,
"bd_rd_id %d ", ntohl (a->
tunnel.bd_rd_id));
310 s =
format (s,
"SCRIPT: gbp_vxlan_tunnel_del ");
311 s =
format (s,
"vni %d ", ntohl (a->
vni));
326 s =
format (s,
"SCRIPT: gbp_ext_itf_add_del ");
332 s =
format (s,
"sw_if_index %d ", ntohl (a->
ext_itf.sw_if_index));
static void * vl_api_gbp_recirc_add_del_t_print(vl_api_gbp_recirc_add_del_t *a, void *handle)
vl_api_gbp_endpoint_group_t epg
static void * vl_api_gbp_contract_add_del_t_print(vl_api_gbp_contract_add_del_t *a, void *handle)
u8 * format_vl_api_mac_address(u8 *s, va_list *args)
vl_api_gbp_endpoint_t endpoint
static void * vl_api_gbp_subnet_add_del_t_print(vl_api_gbp_subnet_add_del_t *a, void *handle)
static void * vl_api_gbp_route_domain_add_t_print(vl_api_gbp_route_domain_add_t *a, void *handle)
static void * vl_api_gbp_vxlan_tunnel_del_t_print(vl_api_gbp_vxlan_tunnel_del_t *a, void *handle)
u8 * format_vl_api_address(u8 *s, va_list *args)
vl_api_gbp_vxlan_tunnel_t tunnel
static void * vl_api_gbp_vxlan_tunnel_add_t_print(vl_api_gbp_vxlan_tunnel_add_t *a, void *handle)
static void * vl_api_gbp_bridge_domain_del_t_print(vl_api_gbp_bridge_domain_del_t *a, void *handle)
vl_api_gbp_bridge_domain_t bd
static void * vl_api_gbp_endpoint_group_del_t_print(vl_api_gbp_endpoint_group_del_t *a, void *handle)
static void * vl_api_gbp_endpoint_add_t_print(vl_api_gbp_endpoint_add_t *a, void *handle)
vl_api_gbp_subnet_t subnet
static void * vl_api_gbp_ext_itf_add_del_t_print(vl_api_gbp_ext_itf_add_del_t *a, void *handle)
vl_api_gbp_contract_t contract
static void * vl_api_gbp_bridge_domain_add_t_print(vl_api_gbp_bridge_domain_add_t *a, void *handle)
u8 * format_vl_api_ip4_address(u8 *s, va_list *args)
vl_api_gbp_recirc_t recirc
static void * vl_api_gbp_endpoint_group_add_t_print(vl_api_gbp_endpoint_group_add_t *a, void *handle)
static void * vl_api_gbp_route_domain_del_t_print(vl_api_gbp_route_domain_del_t *a, void *handle)
vl_api_gbp_ext_itf_t ext_itf
static void * vl_api_gbp_endpoint_del_t_print(vl_api_gbp_endpoint_del_t *a, void *handle)
vl_api_gbp_route_domain_t rd