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,
"flags %d ", ntohl (a->
bd.flags));
36 s =
format (s,
"uu-fwd %d ", ntohl (a->
bd.uu_fwd_sw_if_index));
37 s =
format (s,
"bvi %d ", ntohl (a->
bd.bvi_sw_if_index));
38 s =
format (s,
"bm-flood %d", ntohl (a->
bd.bm_flood_sw_if_index));
53 s =
format (s,
"SCRIPT: gbp_bridge_domain_del ");
69 s =
format (s,
"SCRIPT: gbp_route_domain_add ");
70 s =
format (s,
"rd_id %d ", ntohl (a->
rd.rd_id));
71 s =
format (s,
"ip4_table_id %d ", ntohl (a->
rd.ip4_table_id));
72 s =
format (s,
"ip6_table_id %d ", ntohl (a->
rd.ip6_table_id));
73 s =
format (s,
"ip4_uu_sw_if_index %d ", ntohl (a->
rd.ip4_uu_sw_if_index));
74 s =
format (s,
"ip6_uu_sw_if_index %d", ntohl (a->
rd.ip6_uu_sw_if_index));
89 s =
format (s,
"SCRIPT: gbp_route_domain_del ");
104 s =
format (s,
"SCRIPT: gbp_endpoint_add ");
105 s =
format (s,
"sw_if_index %d ", ntohl (a->
endpoint.sw_if_index));
116 s =
format (s,
"\n\t ips");
132 s =
format (s,
"SCRIPT: gbp_endpoint_del ");
148 s =
format (s,
"SCRIPT: gbp_endpoint_group_add ");
155 format (s,
"remote_ep_timeout %d",
171 s =
format (s,
"SCRIPT: gbp_endpoint_group_del ");
187 s =
format (s,
"SCRIPT: gbp_recirc_add_del ");
210 s =
format (s,
"SCRIPT: gbp_subnet_add_del ");
236 s =
format (s,
"SCRIPT: gbp_contract_add_del ");
248 format (s,
"\t hash_mode %d",
249 ntohl (a->
contract.rules[
i].nh_set.hash_mode));
250 for (
int j = 0; j < a->
contract.rules[
i].nh_set.n_nhs; j++)
259 format (s,
"nhs bd_id %d ",
260 ntohl (a->
contract.rules[
i].nh_set.nhs[j].bd_id));
262 format (s,
"nhs rd_id %d",
263 ntohl (a->
contract.rules[
i].nh_set.nhs[j].rd_id));
269 s =
format (s,
"\tethertypes");
270 for (
int i = 0;
i < a->
contract.n_ether_types;
i++)
288 s =
format (s,
"SCRIPT: gbp_vxlan_tunnel_add ");
292 s =
format (s,
"bd_rd_id %d ", ntohl (a->
tunnel.bd_rd_id));
308 s =
format (s,
"SCRIPT: gbp_vxlan_tunnel_del ");
309 s =
format (s,
"vni %d ", ntohl (a->
vni));
324 s =
format (s,
"SCRIPT: gbp_ext_itf_add_del ");
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
vl_api_gbp_endpoint_retention_t retention
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)
vl_api_gbp_subnet_type_t type
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