56 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 60 vl_print (handle, (char *)s); \ 70 s =
format (0,
"SCRIPT: create_loopback ");
81 s =
format (0,
"SCRIPT: delete_loopback ");
91 s =
format (0,
"SCRIPT: sw_interface_set_flags ");
96 s =
format (s,
"admin-up ");
98 s =
format (s,
"admin-down ");
101 s =
format (s,
"link-up");
103 s =
format (s,
"link-down");
113 s =
format (0,
"SCRIPT: sw_interface_add_del_address ");
127 s =
format (s,
"del-all ");
137 s =
format (0,
"SCRIPT: sw_interface_set_table ");
155 s =
format (0,
"SCRIPT: sw_interface_set_mpls_enable ");
160 s =
format (s,
"disable");
170 s =
format (0,
"SCRIPT: sw_interface_set_vpath ");
175 s =
format (s,
"enable ");
177 s =
format (s,
"disable ");
187 s =
format (0,
"SCRIPT: sw_interface_set_vxlan_bypass ");
195 s =
format (s,
"enable ");
197 s =
format (s,
"disable ");
207 s =
format (0,
"SCRIPT: sw_interface_set_l2_xconnect ");
216 s =
format (s,
"delete ");
226 s =
format (0,
"SCRIPT: sw_interface_set_l2_bridge ");
232 s =
format (s,
"bd_id %d shg %d %senable ", ntohl (mp->
bd_id),
233 mp->
shg, ((mp->
bvi) ?
"bvi " :
" "));
236 s =
format (s,
"disable ");
246 s =
format (0,
"SCRIPT: sw_interface_set_dpdk_hqos_pipe ");
250 s =
format (s,
"subport %u pipe %u profile %u ",
261 s =
format (0,
"SCRIPT: sw_interface_set_dpdk_hqos_subport ");
267 "subport %u rate %u bkt_size %u tc0 %u tc1 %u tc2 %u tc3 %u period %u",
281 s =
format (0,
"SCRIPT: sw_interface_set_dpdk_hqos_tctbl ");
285 s =
format (s,
"entry %u tc %u queue %u",
296 s =
format (0,
"SCRIPT: bridge_domain_add_del ");
302 s =
format (s,
"flood %d uu-flood %d forward %d learn %d arp-term %d",
318 s =
format (0,
"SCRIPT: bridge_domain_dump ");
321 s =
format (s,
"bd_id %d ", bd_id);
331 s =
format (0,
"SCRIPT: l2fib_add_del ");
342 s =
format (s,
"%s",
"static ");
344 s =
format (s,
"%s",
"filter ");
346 s =
format (s,
"%s",
"bvi ");
362 s =
format (0,
"SCRIPT: l2_flags ");
367 if (flags & L2INPUT_FEAT_ ## a) s = format (s, #a " "); 380 s =
format (0,
"SCRIPT: bridge_flags ");
387 s =
format (s,
"forward ");
391 s =
format (s,
"uu-flood ");
393 s =
format (s,
"arp-term ");
406 s =
format (0,
"SCRIPT: bd_ip_mac_add_del ");
429 memset (null_mac, 0,
sizeof (null_mac));
431 s =
format (0,
"SCRIPT: tap_connect ");
434 s =
format (s,
"random-mac ");
449 memset (null_mac, 0,
sizeof (null_mac));
451 s =
format (0,
"SCRIPT: tap_modify ");
455 s =
format (s,
"random-mac ");
468 s =
format (0,
"SCRIPT: tap_delete ");
479 s =
format (0,
"SCRIPT: sw_interface_tap_dump ");
490 s =
format (0,
"SCRIPT: ip_add_del_route ");
521 s =
format (s,
"create-vrf ");
527 s =
format (s,
"not-last ");
530 s =
format (s,
"multipath ");
533 s =
format (s,
"multipath ");
546 s =
format (0,
"SCRIPT: proxy_arp_add_del ");
565 s =
format (0,
"SCRIPT: proxy_arp_intfc_enable_disable ");
579 s =
format (0,
"SCRIPT: mpls_tunnel_add_del ");
590 s =
format (s,
"l2-only ");
603 s =
format (0,
"SCRIPT: sw_interface_set_unnumbered ");
621 memset (null_mac, 0,
sizeof (null_mac));
623 s =
format (0,
"SCRIPT: ip_neighbor_add_del ");
628 s =
format (s,
"is_static ");
655 s =
format (0,
"SCRIPT: reset_vrf ");
671 s =
format (0,
"SCRIPT: create_vlan_subif ");
682 #define foreach_create_subif_bit \ 689 _(outer_vlan_id_any) \ 697 s =
format (0,
"SCRIPT: create_subif ");
709 #define _(a) if (mp->a) s = format (s, "%s ", #a); 721 s =
format (0,
"SCRIPT: delete_subif ");
732 s =
format (0,
"SCRIPT: oam_add_del ");
752 s =
format (0,
"SCRIPT: reset_fib ");
768 s =
format (0,
"SCRIPT: dhcp_proxy_config ");
799 s =
format (0,
"SCRIPT: dhcp_proxy_config_2 ");
831 s =
format (0,
"SCRIPT: dhcp_proxy_set_vss ");
837 s =
format (s,
"oui %d ", ntohl (mp->
oui));
853 s =
format (0,
"SCRIPT: dhcp_client_config ");
875 s =
format (0,
"SCRIPT: set_ip_flow_hash ");
895 s =
format (s,
"reverse ");
908 s =
format (0,
"SCRIPT: sw_interface_ip6_set_link_local_address ");
923 s =
format (0,
"SCRIPT: sw_interface_ip6nd_ra_prefix ");
944 s =
format (s,
"noauto ");
947 s =
format (s,
"nolink ");
960 s =
format (0,
"SCRIPT: sw_interface_ip6nd_ra_config ");
975 s =
format (s,
"suppress ");
978 s =
format (s,
"managed ");
1006 s =
format (0,
"SCRIPT: set_arp_neighbor_limit ");
1021 s =
format (0,
"SCRIPT: l2_patch_add_del ");
1039 u16 flags_host_byte_order;
1042 s =
format (0,
"SCRIPT: sr_tunnel_add_del ");
1058 for (i = 0; i < mp->
n_tags; i++)
1067 s =
format (s,
" clean ");
1070 s =
format (s,
"protected ");
1072 for (i = 1; i <= 4; i++)
1082 s =
format (s,
"InPE %d ", i);
1086 s =
format (s,
"EgPE %d ", i);
1090 s =
format (s,
"OrgSrc %d ", i);
1114 s =
format (0,
"SCRIPT: sr_policy_add_del ");
1125 deser_tun_names += 1;
1128 int tun_name_len = 0;
1130 for (i = 0; i < num_tunnels; i++)
1132 tun_name_len = *deser_tun_names;
1133 deser_tun_names += 1;
1135 memcpy (tun_name, deser_tun_names, tun_name_len);
1136 s =
format (s,
"tunnel %s ", tun_name);
1137 deser_tun_names += tun_name_len;
1155 s =
format (0,
"SCRIPT: sr_multicast_map_add_del ");
1177 s =
format (0,
"SCRIPT: classify_add_del_table ");
1194 s =
format (s,
"current-data-offset %d ",
1196 s =
format (s,
"mask hex ");
1211 s =
format (0,
"SCRIPT: classify_add_del_session ");
1223 s =
format (s,
"match hex ");
1224 for (i = 5 *
sizeof (
u32x4) - 1; i > 0; i--)
1226 if (mp->
match[i] != 0)
1233 for (i = 0; i < limit; i++)
1244 s =
format (0,
"SCRIPT: classify_set_interface_ip_table ");
1260 s =
format (0,
"SCRIPT: classify_set_interface_l2_tables ");
1276 s =
format (0,
"SCRIPT: add_node_next ");
1288 s =
format (0,
"SCRIPT: l2tpv3_create_tunnel ");
1290 s =
format (s,
"client_address %U our_address %U ",
1295 s =
format (s,
"local_cookie %lld ",
1297 s =
format (s,
"remote_cookie %lld ",
1300 s =
format (s,
"l2-sublayer-present ");
1310 s =
format (0,
"SCRIPT: l2tpv3_set_tunnel_cookies ");
1314 s =
format (s,
"new_local_cookie %llu ",
1317 s =
format (s,
"new_remote_cookie %llu ",
1328 s =
format (0,
"SCRIPT: l2tpv3_interface_enable_disable ");
1342 char *str =
"unknown";
1344 s =
format (0,
"SCRIPT: l2tpv3_set_lookup_key ");
1349 str =
"lookup_v6_src";
1352 str =
"lookup_v6_dst";
1355 str =
"lookup_session_id";
1361 s =
format (s,
"%s ", str);
1371 s =
format (0,
"SCRIPT: sw_if_l2tpv3_tunnel_dump ");
1380 s =
format (0,
"SCRIPT: vxlan_add_del_tunnel ");
1382 ip46_address_t src, dst;
1388 char *dst_name = is_grp ?
"group" :
"dst";
1402 s =
format (s,
"vni %d ", ntohl (mp->
vni));
1418 s =
format (0,
"SCRIPT: vxlan_tunnel_dump ");
1430 s =
format (0,
"SCRIPT: gre_add_del_tunnel ");
1457 s =
format (0,
"SCRIPT: gre_tunnel_dump ");
1469 s =
format (0,
"SCRIPT: l2_fib_clear_table ");
1479 s =
format (0,
"SCRIPT: l2_interface_efp_filter ");
1483 s =
format (s,
"enable ");
1485 s =
format (s,
"disable ");
1495 s =
format (0,
"SCRIPT: l2_interface_vlan_tag_rewrite ");
1500 s =
format (s,
"tag1 %d ", ntohl (mp->
tag1));
1501 s =
format (s,
"tag2 %d ", ntohl (mp->
tag2));
1511 s =
format (0,
"SCRIPT: create_vhost_user_if ");
1515 s =
format (s,
"server ");
1529 s =
format (0,
"SCRIPT: modify_vhost_user_if ");
1534 s =
format (s,
"server ");
1546 s =
format (0,
"SCRIPT: delete_vhost_user_if ");
1557 s =
format (0,
"SCRIPT: sw_interface_vhost_user_dump ");
1567 s =
format (0,
"SCRIPT: sw_interface_dump ");
1582 s =
format (0,
"SCRIPT: l2_fib_table_dump ");
1594 s =
format (0,
"SCRIPT: control_ping ");
1604 s =
format (0,
"SCRIPT: want_interface_events pid %d enable %d ",
1615 s =
format (0,
"SCRIPT: cli_request ");
1625 s =
format (0,
"SCRIPT: cli_inband ");
1635 s =
format (0,
"SCRIPT: memclnt_create name %s ", mp->
name);
1645 s =
format (0,
"SCRIPT: show_version ");
1655 s =
format (0,
"SCRIPT: vxlan_gpe_add_del_tunnel ");
1663 s =
format (s,
"vni %d ", ntohl (mp->
vni));
1682 s =
format (0,
"SCRIPT: vxlan_gpe_tunnel_dump ");
1694 s =
format (0,
"SCRIPT: interface_renumber ");
1698 s =
format (s,
"new_show_dev_instance %d ",
1709 s =
format (0,
"SCRIPT: want_ip4_arp_events ");
1710 s =
format (s,
"pid %d address %U ", mp->
pid,
1723 s =
format (0,
"SCRIPT: want_ip6_nd_events ");
1724 s =
format (s,
"pid %d address %U ", mp->
pid,
1737 s =
format (0,
"SCRIPT: input_acl_set_interface ");
1755 s =
format (0,
"SCRIPT: ip6_address_dump ");
1767 s =
format (0,
"SCRIPT: ip_dump ");
1778 s =
format (0,
"SCRIPT: cop_interface_enable_disable ");
1781 s =
format (s,
"enable ");
1783 s =
format (s,
"disable ");
1793 s =
format (0,
"SCRIPT: cop_whitelist_enable_disable ");
1801 s =
format (s,
"default ");
1811 s =
format (0,
"SCRIPT: af_packet_create ");
1814 s =
format (s,
"hw_addr random ");
1826 s =
format (0,
"SCRIPT: af_packet_delete ");
1835 u32 action = va_arg (*va,
u32);
1836 u32 dscp = va_arg (*va,
u32);
1842 s =
format (s,
"transmit");
1845 s =
format (s,
"mark-and-transmit ");
1848 #define _(v,f,str) case VNET_DSCP_##f: t = str; break; 1865 s =
format (0,
"SCRIPT: policer_add_del ");
1875 s =
format (s,
"rate_type kbps ");
1878 s =
format (s,
"rate_type pps ");
1887 s =
format (s,
"round_type closest ");
1890 s =
format (s,
"round_type up ");
1893 s =
format (s,
"round_type down ");
1902 s =
format (s,
"type 1r2c ");
1905 s =
format (s,
"type 1r3c ");
1908 s =
format (s,
"type 2r3c-2698 ");
1911 s =
format (s,
"type 2r3c-4115 ");
1914 s =
format (s,
"type 2r3c-mef5cf1 ");
1928 s =
format (s,
"color-aware ");
1940 s =
format (0,
"SCRIPT: policer_dump ");
1952 s =
format (0,
"SCRIPT: policer_classify_set_interface ");
1971 s =
format (0,
"SCRIPT: policer_classify_dump ");
1975 s =
format (s,
"type ip4 ");
1978 s =
format (s,
"type ip6 ");
1981 s =
format (s,
"type l2 ");
1995 s =
format (0,
"SCRIPT: sw_interface_clear_stats ");
2007 s =
format (0,
"SCRIPT: mpls_tunnel_dump ");
2019 s =
format (0,
"SCRIPT: mpls_fib_decap_dump ");
2029 s =
format (0,
"SCRIPT: ip_fib_dump ");
2039 s =
format (0,
"SCRIPT: ip6_fib_dump ");
2049 s =
format (0,
"SCRIPT: classify_table_ids ");
2059 s =
format (0,
"SCRIPT: classify_table_by_interface ");
2071 s =
format (0,
"SCRIPT: classify_table_info ");
2083 s =
format (0,
"SCRIPT: classify_session_dump ");
2095 s =
format (0,
"SCRIPT: set_ipfix_exporter ");
2115 s =
format (0,
"SCRIPT: ipfix_exporter_dump ");
2125 s =
format (0,
"SCRIPT: set_ipfix_classify_stream ");
2138 s =
format (0,
"SCRIPT: ipfix_classify_stream_dump ");
2148 s =
format (0,
"SCRIPT: ipfix_classify_table_add_del ");
2162 s =
format (0,
"SCRIPT: ipfix_classify_table_dump ");
2172 s =
format (0,
"SCRIPT: sw_interface_span_enable_disable ");
2179 s =
format (s,
"disable ");
2202 s =
format (0,
"SCRIPT: sw_interface_span_dump ");
2212 s =
format (0,
"SCRIPT: get_next_index ");
2224 s =
format (0,
"SCRIPT: pg_create_interface ");
2235 s =
format (0,
"SCRIPT: pg_capture ");
2238 if (mp->
count != ~0)
2241 s =
format (s,
"disable");
2251 s =
format (0,
"SCRIPT: pg_enable_disable ");
2255 s =
format (s,
"disable");
2266 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_add_del ");
2293 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_interface_add_del ");
2320 s =
format (0,
"SCRIPT: lisp_enable_disable %s",
2321 mp->
is_en ?
"enable" :
"disable");
2331 s =
format (0,
"SCRIPT: lisp_gpe_add_del_iface ");
2345 s =
format (0,
"SCRIPT: lisp_pitr_set_locator_set ");
2359 u8 *eid = va_arg (*args,
u8 *);
2360 u32 eid_len = va_arg (*args,
u32);
2388 format_rloc (
u8 * s, va_list * args)
2390 rloc_t *rloc = va_arg (*args, rloc_t *);
2397 s =
format (s,
"p %d w %d", rloc->priority, rloc->weight);
2406 u32 i, rloc_num = 0;
2408 s =
format (0,
"SCRIPT: lisp_add_del_remote_mapping ");
2411 s =
format (s,
"del-all ");
2414 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2425 rloc_num = clib_net_to_host_u32 (mp->
rloc_num);
2431 rloc_t *rloc = (rloc_t *) mp->
rlocs;
2432 for (i = 0; i < rloc_num; i++)
2433 s =
format (s,
"%U ", format_rloc, &rloc[i]);
2444 s =
format (0,
"SCRIPT: lisp_add_del_adjacency ");
2447 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2448 s =
format (s,
"reid %U leid %U ",
2460 s =
format (0,
"SCRIPT: lisp_add_del_map_request_itr_rlocs ");
2475 s =
format (0,
"SCRIPT: lisp_eid_table_add_del_map ");
2480 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2482 mp->
is_l2 ?
"bd_index" :
"vrf",
2483 clib_net_to_host_u32 (mp->
dp_table));
2492 s =
format (0,
"SCRIPT: lisp_add_del_local_eid ");
2497 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2505 s =
format (s,
"secret-key %s", mp->
key);
2515 s =
format (0,
"SCRIPT: lisp_gpe_add_del_fwd_entry TODO");
2525 s =
format (0,
"SCRIPT: lisp_add_del_map_resolver ");
2543 s =
format (0,
"SCRIPT: lisp_gpe_enable_disable ");
2545 s =
format (s,
"%s ", mp->
is_en ?
"enable" :
"disable");
2561 format_locator (
u8 * s, va_list * args)
2563 ls_locator_t *l = va_arg (*args, ls_locator_t *);
2565 return format (s,
"sw_if_index %d p %d w %d",
2566 l->sw_if_index, l->priority, l->weight);
2576 s =
format (0,
"SCRIPT: lisp_add_del_locator_set ");
2584 locs = (ls_locator_t *) mp->
locators;
2586 for (
i = 0;
i < loc_num;
i++)
2587 s =
format (s,
"%U ", format_locator, &locs[
i]);
2597 s =
format (0,
"SCRIPT: lisp_add_del_locator ");
2614 s =
format (0,
"SCRIPT: lisp_locator_set_dump ");
2617 else if (mp->
filter == 2)
2618 s =
format (s,
"remote");
2628 s =
format (0,
"SCRIPT: lisp_locator_dump ");
2630 s =
format (s,
"ls_index %d", clib_net_to_host_u32 (mp->
ls_index));
2642 s =
format (0,
"SCRIPT: lisp_map_request_mode ");
2647 s =
format (s,
"dst-only");
2650 s =
format (s,
"src-dst");
2663 s =
format (0,
"SCRIPT: lisp_eid_table_dump ");
2667 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2673 s =
format (s,
"local ");
2676 s =
format (s,
"remote ");
2689 s =
format (0,
"SCRIPT: lisp_rloc_probe_enable_disable ");
2691 s =
format (s,
"enable");
2693 s =
format (s,
"disable");
2703 s =
format (0,
"SCRIPT: lisp_map_register_enable_disable ");
2705 s =
format (s,
"enable");
2707 s =
format (s,
"disable");
2717 s =
format (0,
"SCRIPT: lisp_adjacencies_get ");
2718 s =
format (s,
"vni %d", clib_net_to_host_u32 (mp->
vni));
2728 s =
format (0,
"SCRIPT: lisp_eid_table_map_dump ");
2743 s =
format (0,
"SCRIPT: ipsec_gre_add_del_tunnel ");
2766 s =
format (0,
"SCRIPT: ipsec_gre_tunnel_dump ");
2780 s =
format (0,
"SCRIPT: l2_interface_pbb_tag_rewrite ");
2783 s =
format (s,
"vtr_op %d ", vtr_op);
2802 s =
format (0,
"SCRIPT: flow_classify_set_interface ");
2819 s =
format (0,
"SCRIPT: punt ");
2821 if (mp->
ipv != (
u8) ~ 0)
2840 s =
format (0,
"SCRIPT: flow_classify_dump ");
2844 s =
format (s,
"type ip4 ");
2847 s =
format (s,
"type ip6 ");
2861 s =
format (0,
"SCRIPT: get_first_msg_id %s ", mp->
name);
2871 s =
format (0,
"SCRIPT: ioam_enable ");
2874 s =
format (s,
"trace enabled");
2877 s =
format (s,
"POT enabled");
2880 s =
format (s,
"Seqno enabled");
2883 s =
format (s,
"Analyse enabled");
2893 s =
format (0,
"SCRIPT: ioam_disable ");
2894 s =
format (s,
"trace disabled");
2895 s =
format (s,
"POT disabled");
2896 s =
format (s,
"Seqno disabled");
2897 s =
format (s,
"Analyse disabled");
2907 s =
format (0,
"SCRIPT: feature_enable_disable ");
2912 s =
format (s,
"disable");
2922 s =
format (0,
"SCRIPT: sw_interface_tag_add_del ");
2937 s =
format (0,
"SCRIPT: sw_interface_set_mtu ");
2939 s =
format (s,
"tag %d ", ntohs (mp->
mtu));
2944 #define foreach_custom_print_no_arg_function \ 2945 _(lisp_eid_table_vni_dump) \ 2946 _(lisp_map_resolver_dump) \ 2947 _(lisp_map_server_dump) \ 2948 _(show_lisp_rloc_probe_state) \ 2949 _(show_lisp_map_register_state) \ 2950 _(show_lisp_map_request_mode) \ 2951 _(lisp_gpe_tunnel_dump) 2954 static void * vl_api_ ## f ## _t_print \ 2955 (vl_api_ ## f ## _t * mp, void * handle) \ 2958 s = format (0, "SCRIPT: " #f ); \ 2963 #define foreach_custom_print_function \ 2964 _(CREATE_LOOPBACK, create_loopback) \ 2965 _(SW_INTERFACE_SET_FLAGS, sw_interface_set_flags) \ 2966 _(SW_INTERFACE_ADD_DEL_ADDRESS, sw_interface_add_del_address) \ 2967 _(SW_INTERFACE_SET_TABLE, sw_interface_set_table) \ 2968 _(SW_INTERFACE_SET_MPLS_ENABLE, sw_interface_set_mpls_enable) \ 2969 _(SW_INTERFACE_SET_VPATH, sw_interface_set_vpath) \ 2970 _(SW_INTERFACE_SET_VXLAN_BYPASS, sw_interface_set_vxlan_bypass) \ 2971 _(TAP_CONNECT, tap_connect) \ 2972 _(TAP_MODIFY, tap_modify) \ 2973 _(TAP_DELETE, tap_delete) \ 2974 _(SW_INTERFACE_TAP_DUMP, sw_interface_tap_dump) \ 2975 _(IP_ADD_DEL_ROUTE, ip_add_del_route) \ 2976 _(PROXY_ARP_ADD_DEL, proxy_arp_add_del) \ 2977 _(PROXY_ARP_INTFC_ENABLE_DISABLE, proxy_arp_intfc_enable_disable) \ 2978 _(MPLS_TUNNEL_ADD_DEL, mpls_tunnel_add_del) \ 2979 _(SW_INTERFACE_SET_UNNUMBERED, sw_interface_set_unnumbered) \ 2980 _(IP_NEIGHBOR_ADD_DEL, ip_neighbor_add_del) \ 2981 _(RESET_VRF, reset_vrf) \ 2982 _(CREATE_VLAN_SUBIF, create_vlan_subif) \ 2983 _(CREATE_SUBIF, create_subif) \ 2984 _(OAM_ADD_DEL, oam_add_del) \ 2985 _(RESET_FIB, reset_fib) \ 2986 _(DHCP_PROXY_CONFIG, dhcp_proxy_config) \ 2987 _(DHCP_PROXY_SET_VSS, dhcp_proxy_set_vss) \ 2988 _(SET_IP_FLOW_HASH, set_ip_flow_hash) \ 2989 _(SW_INTERFACE_IP6_SET_LINK_LOCAL_ADDRESS, \ 2990 sw_interface_ip6_set_link_local_address) \ 2991 _(SW_INTERFACE_IP6ND_RA_PREFIX, sw_interface_ip6nd_ra_prefix) \ 2992 _(SW_INTERFACE_IP6ND_RA_CONFIG, sw_interface_ip6nd_ra_config) \ 2993 _(SET_ARP_NEIGHBOR_LIMIT, set_arp_neighbor_limit) \ 2994 _(L2_PATCH_ADD_DEL, l2_patch_add_del) \ 2995 _(SR_TUNNEL_ADD_DEL, sr_tunnel_add_del) \ 2996 _(SR_POLICY_ADD_DEL, sr_policy_add_del) \ 2997 _(SR_MULTICAST_MAP_ADD_DEL, sr_multicast_map_add_del) \ 2998 _(SW_INTERFACE_SET_L2_XCONNECT, sw_interface_set_l2_xconnect) \ 2999 _(L2FIB_ADD_DEL, l2fib_add_del) \ 3000 _(L2_FLAGS, l2_flags) \ 3001 _(BRIDGE_FLAGS, bridge_flags) \ 3002 _(CLASSIFY_ADD_DEL_TABLE, classify_add_del_table) \ 3003 _(CLASSIFY_ADD_DEL_SESSION, classify_add_del_session) \ 3004 _(SW_INTERFACE_SET_L2_BRIDGE, sw_interface_set_l2_bridge) \ 3005 _(SW_INTERFACE_SET_DPDK_HQOS_PIPE, sw_interface_set_dpdk_hqos_pipe) \ 3006 _(SW_INTERFACE_SET_DPDK_HQOS_SUBPORT, sw_interface_set_dpdk_hqos_subport)\ 3007 _(SW_INTERFACE_SET_DPDK_HQOS_TCTBL, sw_interface_set_dpdk_hqos_tctbl) \ 3008 _(BRIDGE_DOMAIN_ADD_DEL, bridge_domain_add_del) \ 3009 _(BRIDGE_DOMAIN_DUMP, bridge_domain_dump) \ 3010 _(CLASSIFY_SET_INTERFACE_IP_TABLE, classify_set_interface_ip_table) \ 3011 _(CLASSIFY_SET_INTERFACE_L2_TABLES, classify_set_interface_l2_tables) \ 3012 _(ADD_NODE_NEXT, add_node_next) \ 3013 _(DHCP_PROXY_CONFIG_2, dhcp_proxy_config_2) \ 3014 _(DHCP_CLIENT_CONFIG, dhcp_client_config) \ 3015 _(L2TPV3_CREATE_TUNNEL, l2tpv3_create_tunnel) \ 3016 _(L2TPV3_SET_TUNNEL_COOKIES, l2tpv3_set_tunnel_cookies) \ 3017 _(L2TPV3_INTERFACE_ENABLE_DISABLE, l2tpv3_interface_enable_disable) \ 3018 _(L2TPV3_SET_LOOKUP_KEY, l2tpv3_set_lookup_key) \ 3019 _(SW_IF_L2TPV3_TUNNEL_DUMP, sw_if_l2tpv3_tunnel_dump) \ 3020 _(VXLAN_ADD_DEL_TUNNEL, vxlan_add_del_tunnel) \ 3021 _(VXLAN_TUNNEL_DUMP, vxlan_tunnel_dump) \ 3022 _(GRE_ADD_DEL_TUNNEL, gre_add_del_tunnel) \ 3023 _(GRE_TUNNEL_DUMP, gre_tunnel_dump) \ 3024 _(L2_FIB_CLEAR_TABLE, l2_fib_clear_table) \ 3025 _(L2_INTERFACE_EFP_FILTER, l2_interface_efp_filter) \ 3026 _(L2_INTERFACE_VLAN_TAG_REWRITE, l2_interface_vlan_tag_rewrite) \ 3027 _(CREATE_VHOST_USER_IF, create_vhost_user_if) \ 3028 _(MODIFY_VHOST_USER_IF, modify_vhost_user_if) \ 3029 _(DELETE_VHOST_USER_IF, delete_vhost_user_if) \ 3030 _(SW_INTERFACE_DUMP, sw_interface_dump) \ 3031 _(CONTROL_PING, control_ping) \ 3032 _(WANT_INTERFACE_EVENTS, want_interface_events) \ 3033 _(CLI_REQUEST, cli_request) \ 3034 _(CLI_INBAND, cli_inband) \ 3035 _(MEMCLNT_CREATE, memclnt_create) \ 3036 _(SW_INTERFACE_VHOST_USER_DUMP, sw_interface_vhost_user_dump) \ 3037 _(SHOW_VERSION, show_version) \ 3038 _(L2_FIB_TABLE_DUMP, l2_fib_table_dump) \ 3039 _(VXLAN_GPE_ADD_DEL_TUNNEL, vxlan_gpe_add_del_tunnel) \ 3040 _(VXLAN_GPE_TUNNEL_DUMP, vxlan_gpe_tunnel_dump) \ 3041 _(INTERFACE_NAME_RENUMBER, interface_name_renumber) \ 3042 _(WANT_IP4_ARP_EVENTS, want_ip4_arp_events) \ 3043 _(WANT_IP6_ND_EVENTS, want_ip6_nd_events) \ 3044 _(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \ 3045 _(IP_ADDRESS_DUMP, ip_address_dump) \ 3046 _(IP_DUMP, ip_dump) \ 3047 _(DELETE_LOOPBACK, delete_loopback) \ 3048 _(BD_IP_MAC_ADD_DEL, bd_ip_mac_add_del) \ 3049 _(COP_INTERFACE_ENABLE_DISABLE, cop_interface_enable_disable) \ 3050 _(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable) \ 3051 _(AF_PACKET_CREATE, af_packet_create) \ 3052 _(AF_PACKET_DELETE, af_packet_delete) \ 3053 _(SW_INTERFACE_CLEAR_STATS, sw_interface_clear_stats) \ 3054 _(MPLS_FIB_DUMP, mpls_fib_dump) \ 3055 _(MPLS_TUNNEL_DUMP, mpls_tunnel_dump) \ 3056 _(CLASSIFY_TABLE_IDS,classify_table_ids) \ 3057 _(CLASSIFY_TABLE_BY_INTERFACE, classify_table_by_interface) \ 3058 _(CLASSIFY_TABLE_INFO,classify_table_info) \ 3059 _(CLASSIFY_SESSION_DUMP,classify_session_dump) \ 3060 _(SET_IPFIX_EXPORTER, set_ipfix_exporter) \ 3061 _(IPFIX_EXPORTER_DUMP, ipfix_exporter_dump) \ 3062 _(SET_IPFIX_CLASSIFY_STREAM, set_ipfix_classify_stream) \ 3063 _(IPFIX_CLASSIFY_STREAM_DUMP, ipfix_classify_stream_dump) \ 3064 _(IPFIX_CLASSIFY_TABLE_ADD_DEL, ipfix_classify_table_add_del) \ 3065 _(IPFIX_CLASSIFY_TABLE_DUMP, ipfix_classify_table_dump) \ 3066 _(SW_INTERFACE_SPAN_ENABLE_DISABLE, sw_interface_span_enable_disable) \ 3067 _(SW_INTERFACE_SPAN_DUMP, sw_interface_span_dump) \ 3068 _(GET_NEXT_INDEX, get_next_index) \ 3069 _(PG_CREATE_INTERFACE,pg_create_interface) \ 3070 _(PG_CAPTURE, pg_capture) \ 3071 _(PG_ENABLE_DISABLE, pg_enable_disable) \ 3072 _(POLICER_ADD_DEL, policer_add_del) \ 3073 _(POLICER_DUMP, policer_dump) \ 3074 _(POLICER_CLASSIFY_SET_INTERFACE, policer_classify_set_interface) \ 3075 _(POLICER_CLASSIFY_DUMP, policer_classify_dump) \ 3076 _(IP_SOURCE_AND_PORT_RANGE_CHECK_ADD_DEL, \ 3077 ip_source_and_port_range_check_add_del) \ 3078 _(IP_SOURCE_AND_PORT_RANGE_CHECK_INTERFACE_ADD_DEL, \ 3079 ip_source_and_port_range_check_interface_add_del) \ 3080 _(LISP_ENABLE_DISABLE, lisp_enable_disable) \ 3081 _(LISP_GPE_ENABLE_DISABLE, lisp_gpe_enable_disable) \ 3082 _(LISP_GPE_ADD_DEL_IFACE, lisp_gpe_add_del_iface) \ 3083 _(LISP_PITR_SET_LOCATOR_SET, lisp_pitr_set_locator_set) \ 3084 _(LISP_MAP_REQUEST_MODE, lisp_map_request_mode) \ 3085 _(SHOW_LISP_MAP_REQUEST_MODE, show_lisp_map_request_mode) \ 3086 _(LISP_ADD_DEL_REMOTE_MAPPING, lisp_add_del_remote_mapping) \ 3087 _(LISP_ADD_DEL_ADJACENCY, lisp_add_del_adjacency) \ 3088 _(LISP_ADD_DEL_MAP_REQUEST_ITR_RLOCS, \ 3089 lisp_add_del_map_request_itr_rlocs) \ 3090 _(LISP_EID_TABLE_ADD_DEL_MAP, lisp_eid_table_add_del_map) \ 3091 _(LISP_ADD_DEL_LOCAL_EID, lisp_add_del_local_eid) \ 3092 _(LISP_GPE_ADD_DEL_FWD_ENTRY, lisp_gpe_add_del_fwd_entry) \ 3093 _(LISP_ADD_DEL_LOCATOR_SET, lisp_add_del_locator_set) \ 3094 _(LISP_ADD_DEL_MAP_RESOLVER, lisp_add_del_map_resolver) \ 3095 _(LISP_ADD_DEL_LOCATOR, lisp_add_del_locator) \ 3096 _(LISP_EID_TABLE_DUMP, lisp_eid_table_dump) \ 3097 _(LISP_EID_TABLE_MAP_DUMP, lisp_eid_table_map_dump) \ 3098 _(LISP_EID_TABLE_VNI_DUMP, lisp_eid_table_vni_dump) \ 3099 _(LISP_GPE_TUNNEL_DUMP, lisp_gpe_tunnel_dump) \ 3100 _(LISP_MAP_RESOLVER_DUMP, lisp_map_resolver_dump) \ 3101 _(LISP_MAP_SERVER_DUMP, lisp_map_server_dump) \ 3102 _(LISP_LOCATOR_SET_DUMP, lisp_locator_set_dump) \ 3103 _(LISP_LOCATOR_DUMP, lisp_locator_dump) \ 3104 _(LISP_ADJACENCIES_GET, lisp_adjacencies_get) \ 3105 _(SHOW_LISP_RLOC_PROBE_STATE, show_lisp_rloc_probe_state) \ 3106 _(SHOW_LISP_MAP_REGISTER_STATE, show_lisp_map_register_state) \ 3107 _(LISP_RLOC_PROBE_ENABLE_DISABLE, lisp_rloc_probe_enable_disable) \ 3108 _(LISP_MAP_REGISTER_ENABLE_DISABLE, lisp_map_register_enable_disable) \ 3109 _(IPSEC_GRE_ADD_DEL_TUNNEL, ipsec_gre_add_del_tunnel) \ 3110 _(IPSEC_GRE_TUNNEL_DUMP, ipsec_gre_tunnel_dump) \ 3111 _(DELETE_SUBIF, delete_subif) \ 3112 _(L2_INTERFACE_PBB_TAG_REWRITE, l2_interface_pbb_tag_rewrite) \ 3114 _(FLOW_CLASSIFY_SET_INTERFACE, flow_classify_set_interface) \ 3115 _(FLOW_CLASSIFY_DUMP, flow_classify_dump) \ 3116 _(GET_FIRST_MSG_ID, get_first_msg_id) \ 3117 _(IOAM_ENABLE, ioam_enable) \ 3118 _(IOAM_DISABLE, ioam_disable) \ 3119 _(IP_FIB_DUMP, ip_fib_dump) \ 3120 _(IP6_FIB_DUMP, ip6_fib_dump) \ 3121 _(FEATURE_ENABLE_DISABLE, feature_enable_disable) \ 3122 _(SW_INTERFACE_TAG_ADD_DEL, sw_interface_tag_add_del) \ 3123 _(SW_INTERFACE_SET_MTU, sw_interface_set_mtu) 3127 #define _(n,f) am->msg_print_handlers[VL_API_##n] \ 3128 = (void *) vl_api_##f##_t_print;
static void * vl_api_sw_interface_set_flags_t_print(vl_api_sw_interface_set_flags_t *mp, void *handle)
DPDK interface HQoS subport parameters set request.
static void * vl_api_create_vhost_user_if_t_print(vl_api_create_vhost_user_if_t *mp, void *handle)
IPv6 set link local address on interface request.
static u8 * format_lisp_flat_eid(u8 *s, va_list *args)
static void * vl_api_bridge_domain_add_del_t_print(vl_api_bridge_domain_add_del_t *mp, void *handle)
static void * vl_api_classify_set_interface_l2_tables_t_print(vl_api_classify_set_interface_l2_tables_t *mp, void *handle)
static void * vl_api_lisp_add_del_adjacency_t_print(vl_api_lisp_add_del_adjacency_t *mp, void *handle)
static void * vl_api_lisp_gpe_add_del_fwd_entry_t_print(vl_api_lisp_gpe_add_del_fwd_entry_t *mp, void *handle)
DHCP Proxy set / unset vss request.
Proxy ARP add / del request.
static void * vl_api_sw_interface_set_mpls_enable_t_print(vl_api_sw_interface_set_mpls_enable_t *mp, void *handle)
Classify get table IDs request.
Reset VRF (remove all routes etc) request.
static void * vl_api_mpls_fib_dump_t_print(vl_api_mpls_fib_dump_t *mp, void *handle)
Add / del ipsec gre tunnel request.
static void * vl_api_lisp_pitr_set_locator_set_t_print(vl_api_lisp_pitr_set_locator_set_t *mp, void *handle)
L2 FIB add entry request.
cop: enable/disable whitelist filtration features on an interface Note: the supplied fib_id must matc...
static void * vl_api_sr_tunnel_add_del_t_print(vl_api_sr_tunnel_add_del_t *mp, void *handle)
static void * vl_api_l2tpv3_set_tunnel_cookies_t_print(vl_api_l2tpv3_set_tunnel_cookies_t *mp, void *handle)
static void * vl_api_sw_if_l2tpv3_tunnel_dump_t_print(vl_api_sw_if_l2tpv3_tunnel_dump_t *mp, void *handle)
Register for ip6 nd resolution events.
u8 * format_hmac_key_id(u8 *s, va_list *args)
static void * vl_api_delete_subif_t_print(vl_api_delete_subif_t *mp, void *handle)
sll srl srl sll sra u16x4 i
static void * vl_api_l2_patch_add_del_t_print(vl_api_l2_patch_add_del_t *mp, void *handle)
static void * vl_api_lisp_locator_set_dump_t_print(vl_api_lisp_locator_set_dump_t *mp, void *handle)
static void * vl_api_lisp_map_request_mode_t_print(vl_api_lisp_map_request_mode_t *mp, void *handle)
enable/disable LISP RLOC probing
static void * vl_api_delete_loopback_t_print(vl_api_delete_loopback_t *mp, void *handle)
static void * vl_api_reset_vrf_t_print(vl_api_reset_vrf_t *mp, void *handle)
IPFIX classify tables dump request.
#define IP6_SR_HEADER_FLAG_PL_ELT_EGRESS_PE
Flag bits.
#define foreach_create_subif_bit
static void * vl_api_sw_interface_ip6_set_link_local_address_t_print(vl_api_sw_interface_ip6_set_link_local_address_t *mp, void *handle)
static void * vl_api_reset_fib_t_print(vl_api_reset_fib_t *mp, void *handle)
add or delete lisp gpe tunnel
static uword ip46_address_is_multicast(ip46_address_t *a)
static void * vl_api_lisp_add_del_locator_t_print(vl_api_lisp_add_del_locator_t *mp, void *handle)
static void * vl_api_cli_inband_t_print(vl_api_cli_inband_t *mp, void *handle)
static void ip46_from_addr_buf(u32 is_ipv6, u8 *buf, ip46_address_t *ip)
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
#define IP6_SR_HEADER_FLAG_PROTECTED
Flag bits.
static void * vl_api_ioam_enable_t_print(vl_api_ioam_enable_t *mp, void *handle)
static void * vl_api_lisp_adjacencies_get_t_print(vl_api_lisp_adjacencies_get_t *mp, void *handle)
Set/unset policer classify interface.
static void * vl_api_sw_interface_tag_add_del_t_print(vl_api_sw_interface_tag_add_del_t *mp, void *handle)
configure or disable LISP PITR node
Set flags on the interface.
Control ping from client to api server request.
static void * vl_api_flow_classify_set_interface_t_print(vl_api_flow_classify_set_interface_t *mp, void *handle)
static void * vl_api_interface_name_renumber_t_print(vl_api_interface_name_renumber_t *mp, void *handle)
static void * vl_api_sr_multicast_map_add_del_t_print(vl_api_sr_multicast_map_add_del_t *mp, void *handle)
static void * vl_api_add_node_next_t_print(vl_api_add_node_next_t *mp, void *handle)
static void * vl_api_l2_fib_clear_table_t_print(vl_api_l2_fib_clear_table_t *mp, void *handle)
Set max allowed ARP or ip6 neighbor entries request.
static void * vl_api_lisp_eid_table_add_del_map_t_print(vl_api_lisp_eid_table_add_del_map_t *mp, void *handle)
Interface set vxlan-bypass request.
static void * vl_api_tap_modify_t_print(vl_api_tap_modify_t *mp, void *handle)
static void * vl_api_input_acl_set_interface_t_print(vl_api_input_acl_set_interface_t *mp, void *handle)
static void * vl_api_control_ping_t_print(vl_api_control_ping_t *mp, void *handle)
static void * vl_api_ip_add_del_route_t_print(vl_api_ip_add_del_route_t *mp, void *handle)
static void * vl_api_mpls_tunnel_add_del_t_print(vl_api_mpls_tunnel_add_del_t *mp, void *handle)
static void * vl_api_lisp_add_del_locator_set_t_print(vl_api_lisp_add_del_locator_set_t *mp, void *handle)
Classify add / del session request.
IPFIX exporter dump request.
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
static void * vl_api_bridge_domain_dump_t_print(vl_api_bridge_domain_dump_t *mp, void *handle)
static void * vl_api_lisp_eid_table_map_dump_t_print(vl_api_lisp_eid_table_map_dump_t *mp, void *handle)
static void * vl_api_l2_interface_vlan_tag_rewrite_t_print(vl_api_l2_interface_vlan_tag_rewrite_t *mp, void *handle)
Dump tap interfaces request.
static void * vl_api_flow_classify_dump_t_print(vl_api_flow_classify_dump_t *mp, void *handle)
static void * vl_api_sw_interface_set_dpdk_hqos_tctbl_t_print(vl_api_sw_interface_set_dpdk_hqos_tctbl_t *mp, void *handle)
static void * vl_api_want_interface_events_t_print(vl_api_want_interface_events_t *mp, void *handle)
static void * vl_api_sw_interface_clear_stats_t_print(vl_api_sw_interface_clear_stats_t *mp, void *handle)
static void * vl_api_gre_add_del_tunnel_t_print(vl_api_gre_add_del_tunnel_t *mp, void *handle)
Request for lisp_eid_table_map_details.
Add/Delete classification table request.
IPv6 router advertisement config request.
L2 bridge domain request operational state details.
static void * vl_api_tap_delete_t_print(vl_api_tap_delete_t *mp, void *handle)
u32 mt_next_hop_sw_if_index
Enable / disable packet generator request.
static void * vl_api_ipsec_gre_tunnel_dump_t_print(vl_api_ipsec_gre_tunnel_dump_t *mp, void *handle)
static void * vl_api_classify_add_del_table_t_print(vl_api_classify_add_del_table_t *mp, void *handle)
static void * vl_api_dhcp_proxy_set_vss_t_print(vl_api_dhcp_proxy_set_vss_t *mp, void *handle)
vhost-user interface create request
static void * vl_api_vxlan_gpe_add_del_tunnel_t_print(vl_api_vxlan_gpe_add_del_tunnel_t *mp, void *handle)
static void * vl_api_bridge_flags_t_print(vl_api_bridge_flags_t *mp, void *handle)
static void * vl_api_l2tpv3_interface_enable_disable_t_print(vl_api_l2tpv3_interface_enable_disable_t *mp, void *handle)
static void * vl_api_proxy_arp_intfc_enable_disable_t_print(vl_api_proxy_arp_intfc_enable_disable_t *mp, void *handle)
static void * vl_api_sw_interface_set_l2_xconnect_t_print(vl_api_sw_interface_set_l2_xconnect_t *mp, void *handle)
static void * vl_api_proxy_arp_add_del_t_print(vl_api_proxy_arp_add_del_t *mp, void *handle)
static void * vl_api_ip_dump_t_print(vl_api_ip_dump_t *mp, void *handle)
static void * vl_api_l2fib_add_del_t_print(vl_api_l2fib_add_del_t *mp, void *handle)
static void * vl_api_l2_flags_t_print(vl_api_l2_flags_t *mp, void *handle)
static void * vl_api_create_vlan_subif_t_print(vl_api_create_vlan_subif_t *mp, void *handle)
static void * vl_api_lisp_enable_disable_t_print(vl_api_lisp_enable_disable_t *mp, void *handle)
static void * vl_api_oam_add_del_t_print(vl_api_oam_add_del_t *mp, void *handle)
Dump ipsec gre tunnel table.
add or delete LISP adjacency adjacency
u8 pcap_file_name[pcap_name_length]
PacketGenerator capture packets on given interface request.
static void * vl_api_vxlan_gpe_tunnel_dump_t_print(vl_api_vxlan_gpe_tunnel_dump_t *mp, void *handle)
static void * vl_api_ipfix_classify_stream_dump_t_print(vl_api_ipfix_classify_stream_dump_t *mp, void *handle)
static void * vl_api_ip_fib_dump_t_print(vl_api_ip_fib_dump_t *mp, void *handle)
static void * vl_api_lisp_rloc_probe_enable_disable_t_print(vl_api_lisp_rloc_probe_enable_disable_t *mp, void *handle)
u8 * format_ethernet_address(u8 *s, va_list *args)
Proxy ARP add / del request.
Clear interface statistics.
static void * vl_api_memclnt_create_t_print(vl_api_memclnt_create_t *mp, void *handle)
static void * vl_api_l2tpv3_set_lookup_key_t_print(vl_api_l2tpv3_set_lookup_key_t *mp, void *handle)
static void * vl_api_dhcp_proxy_config_t_print(vl_api_dhcp_proxy_config_t *mp, void *handle)
DHCP Proxy config 2 add / del request.
Classify sessions dump request.
static u8 * format_policer_action(u8 *s, va_list *va)
Set interface source and L4 port-range request.
static void * vl_api_get_next_index_t_print(vl_api_get_next_index_t *mp, void *handle)
static void * vl_api_ip_address_dump_t_print(vl_api_ip_address_dump_t *mp, void *handle)
static void * vl_api_policer_dump_t_print(vl_api_policer_dump_t *mp, void *handle)
add or delete map request itr rlocs
#define clib_warning(format, args...)
#define vec_resize(V, N)
Resize a vector (no header, unspecified alignment) Add N elements to end of given vector V...
static void * vl_api_set_ipfix_classify_stream_t_print(vl_api_set_ipfix_classify_stream_t *mp, void *handle)
static void * vl_api_lisp_eid_table_dump_t_print(vl_api_lisp_eid_table_dump_t *mp, void *handle)
static void * vl_api_sw_interface_set_table_t_print(vl_api_sw_interface_set_table_t *mp, void *handle)
Initialize a new tap interface with the given paramters.
Dump mpls eth tunnel table.
static void * vl_api_want_ip6_nd_events_t_print(vl_api_want_ip6_nd_events_t *mp, void *handle)
static void * vl_api_sw_interface_set_unnumbered_t_print(vl_api_sw_interface_set_unnumbered_t *mp, void *handle)
#define IP6_SR_HEADER_FLAG_CLEANUP
Flag bits.
static void * vl_api_ip_source_and_port_range_check_add_del_t_print(vl_api_ip_source_and_port_range_check_add_del_t *mp, void *handle)
Dump l2 fib (aka bridge domain) table.
Configure IP source and L4 port-range check.
Set L2 flags request !!! TODO - need more info, feature bits in l2_input.h.
L2 fib clear table request, clear all mac entries in the l2 fib.
Enable/Disable span to mirror traffic from one interface to another.
static void * vl_api_pg_create_interface_t_print(vl_api_pg_create_interface_t *mp, void *handle)
static void * vl_api_sw_interface_set_vpath_t_print(vl_api_sw_interface_set_vpath_t *mp, void *handle)
The Segment Routing Header (SRH).
set LISP map-request mode.
u32 new_show_dev_instance
IPv6 segment routing tunnel add / del request.
IPv6 segment routing multicast map to policy add / del request.
static void * vl_api_sw_interface_span_dump_t_print(vl_api_sw_interface_span_dump_t *mp, void *handle)
u8 mt_next_hop_proto_is_ip4
Request for LISP adjacencies.
Set/unset l2 classification tables for an interface request.
Set bridge domain ip to mac entry request.
u8 stream_name[stream_name_length]
add or delete lisp eid-table
static void * vl_api_gre_tunnel_dump_t_print(vl_api_gre_tunnel_dump_t *mp, void *handle)
static void * vl_api_classify_add_del_session_t_print(vl_api_classify_add_del_session_t *mp, void *handle)
static void * vl_api_ip6_fib_dump_t_print(vl_api_ip6_fib_dump_t *mp, void *handle)
static void * vl_api_ip_neighbor_add_del_t_print(vl_api_ip_neighbor_add_del_t *mp, void *handle)
static void * vl_api_cop_whitelist_enable_disable_t_print(vl_api_cop_whitelist_enable_disable_t *mp, void *handle)
Get list of flow classify interfaces and tables.
static void * vl_api_lisp_gpe_add_del_iface_t_print(vl_api_lisp_gpe_add_del_iface_t *mp, void *handle)
static void * vl_api_af_packet_delete_t_print(vl_api_af_packet_delete_t *mp, void *handle)
static void * vl_api_lisp_gpe_enable_disable_t_print(vl_api_lisp_gpe_enable_disable_t *mp, void *handle)
static void * vl_api_pg_enable_disable_t_print(vl_api_pg_enable_disable_t *mp, void *handle)
Set or delete one or all ip addresses on a specified interface.
Enable or Disable MPLS on and interface.
IOAM enable : Enable in-band OAM.
static void * vl_api_af_packet_create_t_print(vl_api_af_packet_create_t *mp, void *handle)
Call from VLIB_INIT_FUNCTION to set the Linux kernel inject node name.
static void * vl_api_modify_vhost_user_if_t_print(vl_api_modify_vhost_user_if_t *mp, void *handle)
static void * vl_api_classify_table_by_interface_t_print(vl_api_classify_table_by_interface_t *mp, void *handle)
static void * vl_api_show_version_t_print(vl_api_show_version_t *mp, void *handle)
static void * vl_api_set_ip_flow_hash_t_print(vl_api_set_ip_flow_hash_t *mp, void *handle)
IPFIX classify stream configure request.
static void * vl_api_lisp_locator_dump_t_print(vl_api_lisp_locator_dump_t *mp, void *handle)
PacketGenerator create interface request.
static void * vl_api_lisp_add_del_map_resolver_t_print(vl_api_lisp_add_del_map_resolver_t *mp, void *handle)
Set the ip flow hash config for a fib request.
static void * vl_api_create_loopback_t_print(vl_api_create_loopback_t *mp, void *handle)
enable or disable LISP feature
static void * vl_api_policer_add_del_t_print(vl_api_policer_add_del_t *mp, void *handle)
static void * vl_api_dhcp_proxy_config_2_t_print(vl_api_dhcp_proxy_config_2_t *mp, void *handle)
cop: enable/disable junk filtration features on an interface
static void * vl_api_cop_interface_enable_disable_t_print(vl_api_cop_interface_enable_disable_t *mp, void *handle)
Set/unset the classification table for an interface request.
static void * vl_api_l2_interface_pbb_tag_rewrite_t_print(vl_api_l2_interface_pbb_tag_rewrite_t *mp, void *handle)
DPDK interface HQoS tctbl entry set request.
static void * vl_api_policer_classify_dump_t_print(vl_api_policer_classify_dump_t *mp, void *handle)
static void * vl_api_lisp_map_register_enable_disable_t_print(vl_api_lisp_map_register_enable_disable_t *mp, void *handle)
static void * vl_api_set_ipfix_exporter_t_print(vl_api_set_ipfix_exporter_t *mp, void *handle)
Feature path enable/disable request.
#define IP6_SR_HEADER_FLAG_PL_ELT_ORIG_SRC_ADDR
Flag bits.
static void * vl_api_ip_source_and_port_range_check_interface_add_del_t_print(vl_api_ip_source_and_port_range_check_interface_add_del_t *mp, void *handle)
#define IP6_SR_HEADER_FLAG_PL_ELT_NOT_PRESENT
Flag bits.
add or delete map-resolver
static void * vl_api_ipsec_gre_add_del_tunnel_t_print(vl_api_ipsec_gre_add_del_tunnel_t *mp, void *handle)
Set/unset flow classify interface.
static void * vl_api_lisp_add_del_local_eid_t_print(vl_api_lisp_add_del_local_eid_t *mp, void *handle)
Delete sub interface request.
void vl_msg_api_custom_dump_configure(api_main_t *am)
Request for map lisp locator status.
Delete loopback interface request.
vhost-user interface modify request
Register for interface events.
Set L2 XConnect between two interfaces request.
static void * vl_api_ipfix_classify_table_add_del_t_print(vl_api_ipfix_classify_table_add_del_t *mp, void *handle)
IP neighbor add / del request.
static void * vl_api_ioam_disable_t_print(vl_api_ioam_disable_t *mp, void *handle)
static void * vl_api_create_subif_t_print(vl_api_create_subif_t *mp, void *handle)
Request for eid table summary status.
static void * vl_api_dhcp_client_config_t_print(vl_api_dhcp_client_config_t *mp, void *handle)
enable/disable LISP map-register
Request for locator_set summary status.
Get list of policer classify interfaces and tables.
map/unmap vni/bd_index to vrf
static void * vl_api_vxlan_add_del_tunnel_t_print(vl_api_vxlan_add_del_tunnel_t *mp, void *handle)
MPLS tunnel Add / del route.
IPv6 router advertisement prefix config request.
static void * vl_api_sw_interface_set_dpdk_hqos_subport_t_print(vl_api_sw_interface_set_dpdk_hqos_subport_t *mp, void *handle)
Set the next node for a given node request.
Query relative index via node names.
static void * vl_api_classify_session_dump_t_print(vl_api_classify_session_dump_t *mp, void *handle)
add or delete locator_set
static void * vl_api_get_first_msg_id_t_print(vl_api_get_first_msg_id_t *mp, void *handle)
#define foreach_custom_print_function
OAM add / del target request.
static void * vl_api_lisp_add_del_map_request_itr_rlocs_t_print(vl_api_lisp_add_del_map_request_itr_rlocs_t *mp, void *handle)
static void * vl_api_sw_interface_add_del_address_t_print(vl_api_sw_interface_add_del_address_t *mp, void *handle)
#define IP6_SR_HEADER_FLAG_PL_ELT_INGRESS_PE
Flag bits.
Classify table ids by interface index request.
typedef CLIB_PACKED(struct{u8 is_ip4;u8 priority;u8 weight;u8 addr[16];})
Used for transferring locators via VPP API.
static void * vl_api_set_arp_neighbor_limit_t_print(vl_api_set_arp_neighbor_limit_t *mp, void *handle)
static void * vl_api_want_ip4_arp_events_t_print(vl_api_want_ip4_arp_events_t *mp, void *handle)
static void * vl_api_tap_connect_t_print(vl_api_tap_connect_t *mp, void *handle)
static void * vl_api_classify_set_interface_ip_table_t_print(vl_api_classify_set_interface_ip_table_t *mp, void *handle)
static void * vl_api_classify_table_ids_t_print(vl_api_classify_table_ids_t *mp, void *handle)
Interface bridge mode request.
static void * vl_api_sw_interface_set_mtu_t_print(vl_api_sw_interface_set_mtu_t *mp, void *handle)
static void * vl_api_l2_interface_efp_filter_t_print(vl_api_l2_interface_efp_filter_t *mp, void *handle)
static void * vl_api_bd_ip_mac_add_del_t_print(vl_api_bd_ip_mac_add_del_t *mp, void *handle)
static void * vl_api_sr_policy_add_del_t_print(vl_api_sr_policy_add_del_t *mp, void *handle)
static void * vl_api_pg_capture_t_print(vl_api_pg_capture_t *mp, void *handle)
static void * vl_api_delete_vhost_user_if_t_print(vl_api_delete_vhost_user_if_t *mp, void *handle)
Process a vpe parser cli string request.
add or delete locator for locator_set
Configure IPFIX exporter process request.
static void * vl_api_lisp_add_del_remote_mapping_t_print(vl_api_lisp_add_del_remote_mapping_t *mp, void *handle)
L2 interface ethernet flow point filtering enable/disable request.
static void * vl_api_sw_interface_set_l2_bridge_t_print(vl_api_sw_interface_set_l2_bridge_t *mp, void *handle)
static void * vl_api_sw_interface_set_vxlan_bypass_t_print(vl_api_sw_interface_set_vxlan_bypass_t *mp, void *handle)
static void * vl_api_ipfix_classify_table_dump_t_print(vl_api_ipfix_classify_table_dump_t *mp, void *handle)
Create loopback interface request.
Set unnumbered interface add / del request.
add or delete remote static mapping
L2 interface vlan tag rewrite configure request.
Create a new subinterface with the given vlan id.
static void * vl_api_sw_interface_set_dpdk_hqos_pipe_t_print(vl_api_sw_interface_set_dpdk_hqos_pipe_t *mp, void *handle)
L2 interface patch add / del request.
Interface set vpath request.
static void * vl_api_ipfix_exporter_dump_t_print(vl_api_ipfix_exporter_dump_t *mp, void *handle)
static void * vl_api_sw_interface_tap_dump_t_print(vl_api_sw_interface_tap_dump_t *mp, void *handle)
Modify a tap interface with the given paramters.
static void * vl_api_mpls_tunnel_dump_t_print(vl_api_mpls_tunnel_dump_t *mp, void *handle)
L2 interface pbb tag rewrite configure request.
static void * vl_api_l2_fib_table_dump_t_print(vl_api_l2_fib_table_dump_t *mp, void *handle)
static void * vl_api_cli_request_t_print(vl_api_cli_request_t *mp, void *handle)
Register for ip4 arp resolution events.
DPDK interface HQoS pipe profile set request.
static void * vl_api_sw_interface_dump_t_print(vl_api_sw_interface_dump_t *mp, void *handle)
Set bridge flags (such as L2_LEARN, L2_FWD, L2_FLOOD, L2_UU_FLOOD, or L2_ARP_TERM) request...
static void * vl_api_punt_t_print(vl_api_punt_t *mp, void *handle)
enable or disable lisp-gpe protocol
IPFIX classify stream dump request.
vhost-user interface delete request
static void * vl_api_sw_interface_ip6nd_ra_config_t_print(vl_api_sw_interface_ip6nd_ra_config_t *mp, void *handle)
static void * vl_api_l2tpv3_create_tunnel_t_print(vl_api_l2tpv3_create_tunnel_t *mp, void *handle)
Set / clear software interface tag.
l2tpv3 tunnel interface create request
static void * vl_api_sw_interface_span_enable_disable_t_print(vl_api_sw_interface_span_enable_disable_t *mp, void *handle)
#define foreach_custom_print_no_arg_function
Associate the specified interface with a fib table.
static void * vl_api_feature_enable_disable_t_print(vl_api_feature_enable_disable_t *mp, void *handle)
DHCP Client config add / del request.
Punt traffic to the host.
IPFIX add or delete classifier table request.
static void * vl_api_sw_interface_ip6nd_ra_prefix_t_print(vl_api_sw_interface_ip6nd_ra_prefix_t *mp, void *handle)
static void * vl_api_policer_classify_set_interface_t_print(vl_api_policer_classify_set_interface_t *mp, void *handle)
static void * vl_api_vxlan_tunnel_dump_t_print(vl_api_vxlan_tunnel_dump_t *mp, void *handle)
static int ip6_sr_policy_list_flags(u16 flags_host_byte_order, int pl_index)
pl_index is one-origined
DHCP Proxy config add / del request.
u32 unnumbered_sw_if_index
static void * vl_api_sw_interface_vhost_user_dump_t_print(vl_api_sw_interface_vhost_user_dump_t *mp, void *handle)
static void * vl_api_classify_table_info_t_print(vl_api_classify_table_info_t *mp, void *handle)
L2 bridge domain add or delete request.
IPv6 segment routing policy add / del request.