57 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 61 vl_print (handle, (char *)s); \ 71 s =
format (0,
"SCRIPT: create_loopback ");
82 s =
format (0,
"SCRIPT: create_loopback ");
94 s =
format (0,
"SCRIPT: delete_loopback ");
104 s =
format (0,
"SCRIPT: sw_interface_set_flags ");
109 s =
format (s,
"admin-up ");
111 s =
format (s,
"admin-down ");
120 s =
format (0,
"SCRIPT: sw_interface_event ");
125 s =
format (s,
"admin-up ");
127 s =
format (s,
"admin-down ");
130 s =
format (s,
"link-up");
132 s =
format (s,
"link-down");
135 s =
format (s,
" deleted");
145 s =
format (0,
"SCRIPT: sw_interface_add_del_address ");
159 s =
format (s,
"del-all ");
169 s =
format (0,
"SCRIPT: sw_interface_set_table ");
187 s =
format (0,
"SCRIPT: sw_interface_set_mpls_enable ");
192 s =
format (s,
"disable");
202 s =
format (0,
"SCRIPT: sw_interface_set_vpath ");
207 s =
format (s,
"enable ");
209 s =
format (s,
"disable ");
219 s =
format (0,
"SCRIPT: sw_interface_set_vxlan_bypass ");
227 s =
format (s,
"enable ");
229 s =
format (s,
"disable ");
239 s =
format (0,
"SCRIPT: sw_interface_set_geneve_bypass ");
247 s =
format (s,
"enable ");
249 s =
format (s,
"disable ");
259 s =
format (0,
"SCRIPT: sw_interface_set_l2_xconnect ");
268 s =
format (s,
"delete ");
278 s =
format (0,
"SCRIPT: sw_interface_set_l2_bridge ");
284 s =
format (s,
"bd_id %d shg %d %senable ", ntohl (mp->
bd_id),
285 mp->
shg, ((mp->
bvi) ?
"bvi " :
" "));
288 s =
format (s,
"disable ");
298 s =
format (0,
"SCRIPT: bridge_domain_add_del ");
321 s =
format (0,
"SCRIPT: bridge_domain_set_mac_age ");
336 s =
format (0,
"SCRIPT: bridge_domain_dump ");
339 s =
format (s,
"bd_id %d ", bd_id);
349 s =
format (0,
"SCRIPT: l2fib_flush_all ");
361 s =
format (0,
"SCRIPT: l2fib_flush_bd ");
362 s =
format (s,
"bd_id %d ", bd_id);
373 s =
format (0,
"SCRIPT: l2fib_flush_int ");
374 s =
format (s,
"sw_if_index %d ", sw_if_index);
384 s =
format (0,
"SCRIPT: l2fib_add_del ");
395 s =
format (s,
"%s",
"static ");
397 s =
format (s,
"%s",
"filter ");
399 s =
format (s,
"%s",
"bvi ");
415 s =
format (0,
"SCRIPT: l2_flags ");
422 s =
format (s,
"forward ");
426 s =
format (s,
"uu-flood ");
428 s =
format (s,
"arp-term ");
442 s =
format (0,
"SCRIPT: bridge_flags ");
449 s =
format (s,
"forward ");
453 s =
format (s,
"uu-flood ");
455 s =
format (s,
"arp-term ");
468 s =
format (0,
"SCRIPT: bd_ip_mac_add_del ");
491 memset (null_mac, 0,
sizeof (null_mac));
493 s =
format (0,
"SCRIPT: tap_connect ");
496 s =
format (s,
"random-mac ");
516 memset (null_mac, 0,
sizeof (null_mac));
518 s =
format (0,
"SCRIPT: tap_modify ");
522 s =
format (s,
"random-mac ");
535 s =
format (0,
"SCRIPT: tap_delete ");
546 s =
format (0,
"SCRIPT: sw_interface_tap_dump ");
557 memset (null_mac, 0,
sizeof (null_mac));
559 s =
format (0,
"SCRIPT: tap_create_v2 ");
562 s =
format (s,
"mac-address %U ",
565 s =
format (s,
"host-mac-addr %U ",
591 s =
format (0,
"SCRIPT: tap_delete_v2 ");
602 s =
format (0,
"SCRIPT: sw_interface_tap_v2_dump ");
612 s =
format (0,
"SCRIPT: ip_add_del_route ");
646 s =
format (s,
"multipath ");
649 s =
format (s,
"multipath ");
662 s =
format (0,
"SCRIPT: proxy_arp_add_del ");
681 s =
format (0,
"SCRIPT: proxy_arp_intfc_enable_disable ");
695 s =
format (0,
"SCRIPT: mpls_tunnel_add_del ");
706 s =
format (s,
"l2-only ");
719 s =
format (0,
"SCRIPT: sw_interface_set_unnumbered ");
737 memset (null_mac, 0,
sizeof (null_mac));
739 s =
format (0,
"SCRIPT: ip_neighbor_add_del ");
744 s =
format (s,
"is_static ");
747 s =
format (s,
"is_no_fib_entry ");
772 s =
format (0,
"SCRIPT: create_vlan_subif ");
783 #define foreach_create_subif_bit \ 790 _(outer_vlan_id_any) \ 798 s =
format (0,
"SCRIPT: create_subif ");
810 #define _(a) if (mp->a) s = format (s, "%s ", #a); 822 s =
format (0,
"SCRIPT: delete_subif ");
833 s =
format (0,
"SCRIPT: oam_add_del ");
853 s =
format (0,
"SCRIPT: reset_fib ");
869 s =
format (0,
"SCRIPT: dhcp_proxy_config_2 ");
899 s =
format (0,
"SCRIPT: dhcp_proxy_set_vss ");
906 s =
format (s,
"oui %d ", ntohl (mp->
oui));
925 s =
format (0,
"SCRIPT: dhcp_client_config ");
933 s =
format (s,
"pid %d ", ntohl (mp->
pid));
947 s =
format (0,
"SCRIPT: set_ip_flow_hash ");
967 s =
format (s,
"reverse ");
980 s =
format (0,
"SCRIPT: sw_interface_ip6_set_link_local_address ");
994 s =
format (0,
"SCRIPT: sw_interface_ip6nd_ra_prefix ");
1009 s =
format (s,
"noadv ");
1015 s =
format (s,
"noauto ");
1018 s =
format (s,
"nolink ");
1031 s =
format (0,
"SCRIPT: sw_interface_ip6nd_ra_config ");
1046 s =
format (s,
"suppress ");
1049 s =
format (s,
"managed ");
1052 s =
format (s,
"other ");
1061 s =
format (s,
"cease ");
1077 s =
format (0,
"SCRIPT: set_arp_neighbor_limit ");
1092 s =
format (0,
"SCRIPT: l2_patch_add_del ");
1110 s =
format (0,
"SCRIPT: sr_localsid_add_del ");
1115 s =
format (s,
"Address: %U\nBehavior: End",
1117 s =
format (s, (mp->
end_psp ?
"End.PSP: True" :
"End.PSP: False"));
1122 "Address: %U\nBehavior: X (Endpoint with Layer-3 cross-connect)" 1127 s =
format (s, (mp->
end_psp ?
"End.PSP: True" :
"End.PSP: False"));
1132 "Address: %U\nBehavior: DX4 (Endpoint with decapsulation with IPv4 cross-connect)" 1141 "Address: %U\nBehavior: DX6 (Endpoint with decapsulation with IPv6 cross-connect)" 1150 "Address: %U\nBehavior: DX2 (Endpoint with decapulation and Layer-2 cross-connect)" 1158 "Address: %U\nBehavior: DT6 (Endpoint with decapsulation and specific IPv6 table lookup)" 1165 "Address: %U\nBehavior: DT4 (Endpoint with decapsulation and specific IPv4 table lookup)" 1172 s =
format (s,
"Address: %U\n Behavior: %u",
1178 s =
format (s,
"Internal error");
1189 s =
format (0,
"SCRIPT: sr_steering_add_del ");
1191 s =
format (s, (mp->
is_del ?
"Del: True" :
"Del: False"));
1236 s =
format (0,
"SCRIPT: sr_policy_add ");
1243 (mp->
is_encap ?
"Behavior: Encapsulation" :
1244 "Behavior: SRH insertion"));
1248 s =
format (s, (mp->
type ?
"Type: Default" :
"Type: Spray"));
1250 s =
format (s,
"SID list weight: %u", ntohl (mp->
weight));
1257 s =
format (s,
"\b\b } ");
1278 s =
format (0,
"SCRIPT: sr_policy_mod ");
1289 s =
format (s,
"SID list weight: %u", ntohl (mp->
weight));
1296 s =
format (s,
"\b\b } ");
1306 s =
format (0,
"SCRIPT: sr_policy_del ");
1307 s =
format (s,
"To be delivered. Good luck.");
1317 s =
format (0,
"SCRIPT: classify_add_del_table ");
1334 s =
format (s,
"current-data-offset %d ",
1336 s =
format (s,
"mask hex ");
1351 s =
format (0,
"SCRIPT: classify_add_del_session ");
1363 s =
format (s,
"match hex ");
1364 for (i = 5 *
sizeof (
u32x4) - 1; i > 0; i--)
1366 if (mp->
match[i] != 0)
1373 for (i = 0; i < limit; i++)
1384 s =
format (0,
"SCRIPT: classify_set_interface_ip_table ");
1400 s =
format (0,
"SCRIPT: classify_set_interface_l2_tables ");
1416 s =
format (0,
"SCRIPT: add_node_next ");
1428 s =
format (0,
"SCRIPT: l2tpv3_create_tunnel ");
1430 s =
format (s,
"client_address %U our_address %U ",
1435 s =
format (s,
"local_cookie %lld ",
1437 s =
format (s,
"remote_cookie %lld ",
1440 s =
format (s,
"l2-sublayer-present ");
1450 s =
format (0,
"SCRIPT: l2tpv3_set_tunnel_cookies ");
1454 s =
format (s,
"new_local_cookie %llu ",
1457 s =
format (s,
"new_remote_cookie %llu ",
1468 s =
format (0,
"SCRIPT: l2tpv3_interface_enable_disable ");
1482 char *str =
"unknown";
1484 s =
format (0,
"SCRIPT: l2tpv3_set_lookup_key ");
1489 str =
"lookup_v6_src";
1492 str =
"lookup_v6_dst";
1495 str =
"lookup_session_id";
1501 s =
format (s,
"%s ", str);
1511 s =
format (0,
"SCRIPT: sw_if_l2tpv3_tunnel_dump ");
1520 s =
format (0,
"SCRIPT: vxlan_add_del_tunnel ");
1526 char *dst_name = is_grp ?
"group" :
"dst";
1540 s =
format (s,
"vni %d ", ntohl (mp->
vni));
1553 s =
format (0,
"SCRIPT: vxlan_tunnel_dump ");
1564 s =
format (0,
"SCRIPT: geneve_add_del_tunnel ");
1570 char *remote_name = is_grp ?
"group" :
"dst";
1584 s =
format (s,
"vni %d ", ntohl (mp->
vni));
1597 s =
format (0,
"SCRIPT: geneve_tunnel_dump ");
1609 s =
format (0,
"SCRIPT: gre_add_del_tunnel ");
1636 s =
format (0,
"SCRIPT: gre_tunnel_dump ");
1648 s =
format (0,
"SCRIPT: l2_fib_clear_table ");
1658 s =
format (0,
"SCRIPT: l2_interface_efp_filter ");
1662 s =
format (s,
"enable ");
1664 s =
format (s,
"disable ");
1674 s =
format (0,
"SCRIPT: l2_interface_vlan_tag_rewrite ");
1679 s =
format (s,
"tag1 %d ", ntohl (mp->
tag1));
1680 s =
format (s,
"tag2 %d ", ntohl (mp->
tag2));
1690 s =
format (0,
"SCRIPT: create_vhost_user_if ");
1694 s =
format (s,
"server ");
1708 s =
format (0,
"SCRIPT: modify_vhost_user_if ");
1713 s =
format (s,
"server ");
1725 s =
format (0,
"SCRIPT: delete_vhost_user_if ");
1736 s =
format (0,
"SCRIPT: sw_interface_vhost_user_dump ");
1746 s =
format (0,
"SCRIPT: sw_interface_dump ");
1761 s =
format (0,
"SCRIPT: l2_fib_table_dump ");
1773 s =
format (0,
"SCRIPT: control_ping ");
1783 s =
format (0,
"SCRIPT: want_interface_events pid %d enable %d ",
1794 s =
format (0,
"SCRIPT: cli ");
1804 s =
format (0,
"SCRIPT: cli_inband ");
1814 s =
format (0,
"SCRIPT: memclnt_create name %s ", mp->
name);
1824 s =
format (0,
"SCRIPT: sockclnt_create name %s ", mp->
name);
1834 s =
format (0,
"SCRIPT: show_version ");
1844 s =
format (0,
"SCRIPT: vxlan_gpe_add_del_tunnel ");
1850 char *remote_name = is_grp ?
"group" :
"remote";
1860 s =
format (s,
"vni %d ", ntohl (mp->
vni));
1879 s =
format (0,
"SCRIPT: vxlan_gpe_tunnel_dump ");
1891 s =
format (0,
"SCRIPT: interface_renumber ");
1895 s =
format (s,
"new_show_dev_instance %d ",
1906 s =
format (0,
"SCRIPT: want_ip4_arp_events ");
1907 s =
format (s,
"pid %d address %U ", ntohl (mp->
pid),
1920 s =
format (0,
"SCRIPT: want_ip6_nd_events ");
1921 s =
format (s,
"pid %d address %U ", ntohl (mp->
pid),
1934 s =
format (0,
"SCRIPT: want_l2_macs_events ");
1939 s =
format (s,
"disable");
1949 s =
format (0,
"SCRIPT: input_acl_set_interface ");
1967 s =
format (0,
"SCRIPT: ip6_address_dump ");
1979 s =
format (0,
"SCRIPT: ip_dump ");
1990 s =
format (0,
"SCRIPT: cop_interface_enable_disable ");
1993 s =
format (s,
"enable ");
1995 s =
format (s,
"disable ");
2005 s =
format (0,
"SCRIPT: cop_whitelist_enable_disable ");
2013 s =
format (s,
"default ");
2023 s =
format (0,
"SCRIPT: af_packet_create ");
2026 s =
format (s,
"hw_addr random ");
2038 s =
format (0,
"SCRIPT: af_packet_delete ");
2047 u32 action = va_arg (*va,
u32);
2048 u32 dscp = va_arg (*va,
u32);
2054 s =
format (s,
"transmit");
2057 s =
format (s,
"mark-and-transmit ");
2060 #define _(v,f,str) case VNET_DSCP_##f: t = str; break; 2076 s =
format (0,
"SCRIPT: policer_add_del ");
2086 s =
format (s,
"rate_type kbps ");
2089 s =
format (s,
"rate_type pps ");
2098 s =
format (s,
"round_type closest ");
2101 s =
format (s,
"round_type up ");
2104 s =
format (s,
"round_type down ");
2113 s =
format (s,
"type 1r2c ");
2116 s =
format (s,
"type 1r3c ");
2119 s =
format (s,
"type 2r3c-2698 ");
2122 s =
format (s,
"type 2r3c-4115 ");
2125 s =
format (s,
"type 2r3c-mef5cf1 ");
2139 s =
format (s,
"color-aware ");
2151 s =
format (0,
"SCRIPT: policer_dump ");
2163 s =
format (0,
"SCRIPT: policer_classify_set_interface ");
2182 s =
format (0,
"SCRIPT: policer_classify_dump ");
2186 s =
format (s,
"type ip4 ");
2189 s =
format (s,
"type ip6 ");
2192 s =
format (s,
"type l2 ");
2206 s =
format (0,
"SCRIPT: sw_interface_clear_stats ");
2218 s =
format (0,
"SCRIPT: mpls_tunnel_dump ");
2230 s =
format (0,
"SCRIPT: mpls_fib_decap_dump ");
2240 s =
format (0,
"SCRIPT: ip_fib_dump ");
2250 s =
format (0,
"SCRIPT: ip6_fib_dump ");
2260 s =
format (0,
"SCRIPT: classify_table_ids ");
2270 s =
format (0,
"SCRIPT: classify_table_by_interface ");
2282 s =
format (0,
"SCRIPT: classify_table_info ");
2294 s =
format (0,
"SCRIPT: classify_session_dump ");
2306 s =
format (0,
"SCRIPT: set_ipfix_exporter ");
2326 s =
format (0,
"SCRIPT: ipfix_exporter_dump ");
2336 s =
format (0,
"SCRIPT: set_ipfix_classify_stream ");
2349 s =
format (0,
"SCRIPT: ipfix_classify_stream_dump ");
2359 s =
format (0,
"SCRIPT: ipfix_classify_table_add_del ");
2373 s =
format (0,
"SCRIPT: ipfix_classify_table_dump ");
2383 s =
format (0,
"SCRIPT: sw_interface_span_enable_disable ");
2393 s =
format (s,
"disable ");
2416 s =
format (0,
"SCRIPT: sw_interface_span_dump ");
2429 s =
format (0,
"SCRIPT: get_next_index ");
2441 s =
format (0,
"SCRIPT: pg_create_interface ");
2452 s =
format (0,
"SCRIPT: pg_capture ");
2455 if (mp->
count != ~0)
2458 s =
format (s,
"disable");
2468 s =
format (0,
"SCRIPT: pg_enable_disable ");
2472 s =
format (s,
"disable");
2483 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_add_del ");
2510 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_interface_add_del ");
2537 s =
format (0,
"SCRIPT: lisp_enable_disable %s",
2538 mp->
is_en ?
"enable" :
"disable");
2548 s =
format (0,
"SCRIPT: gpe_add_del_iface ");
2562 s =
format (0,
"SCRIPT: lisp_pitr_set_locator_set ");
2575 u32 type = va_arg (*args,
u32);
2576 u8 *eid = va_arg (*args,
u8 *);
2577 u32 eid_len = va_arg (*args,
u32);
2597 s =
format (0,
"SCRIPT: lisp_add_del_remote_mapping ");
2600 s =
format (s,
"del-all ");
2603 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2613 rloc_num = clib_net_to_host_u32 (mp->
rloc_num);
2626 s =
format (0,
"SCRIPT: lisp_add_del_adjacency ");
2629 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2630 s =
format (s,
"reid %U leid %U ",
2642 s =
format (0,
"SCRIPT: lisp_add_del_map_request_itr_rlocs ");
2657 s =
format (0,
"SCRIPT: lisp_eid_table_add_del_map ");
2662 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2664 mp->
is_l2 ?
"bd_index" :
"vrf",
2665 clib_net_to_host_u32 (mp->
dp_table));
2674 s =
format (0,
"SCRIPT: lisp_add_del_local_eid ");
2679 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2687 s =
format (s,
"secret-key %s", mp->
key);
2697 s =
format (0,
"SCRIPT: gpe_add_del_fwd_entry TODO");
2707 s =
format (0,
"SCRIPT: lisp_add_del_map_resolver ");
2725 s =
format (0,
"SCRIPT: gpe_enable_disable ");
2727 s =
format (s,
"%s ", mp->
is_en ?
"enable" :
"disable");
2737 s =
format (0,
"SCRIPT: lisp_add_del_locator_set ");
2752 s =
format (0,
"SCRIPT: lisp_add_del_locator ");
2769 s =
format (0,
"SCRIPT: lisp_locator_set_dump ");
2772 else if (mp->
filter == 2)
2773 s =
format (s,
"remote");
2783 s =
format (0,
"SCRIPT: lisp_locator_dump ");
2785 s =
format (s,
"ls_index %d", clib_net_to_host_u32 (mp->
ls_index));
2797 s =
format (0,
"SCRIPT: lisp_map_request_mode ");
2802 s =
format (s,
"dst-only");
2805 s =
format (s,
"src-dst");
2818 s =
format (0,
"SCRIPT: lisp_eid_table_dump ");
2822 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2828 s =
format (s,
"local ");
2831 s =
format (s,
"remote ");
2843 s =
format (0,
"SCRIPT: lisp_rloc_probe_enable_disable ");
2845 s =
format (s,
"enable");
2847 s =
format (s,
"disable");
2857 s =
format (0,
"SCRIPT: lisp_map_register_enable_disable ");
2859 s =
format (s,
"enable");
2861 s =
format (s,
"disable");
2871 s =
format (0,
"SCRIPT: lisp_adjacencies_get ");
2872 s =
format (s,
"vni %d", clib_net_to_host_u32 (mp->
vni));
2882 s =
format (0,
"SCRIPT: lisp_eid_table_map_dump ");
2897 s =
format (0,
"SCRIPT: ipsec_gre_add_del_tunnel ");
2920 s =
format (0,
"SCRIPT: ipsec_gre_tunnel_dump ");
2934 s =
format (0,
"SCRIPT: l2_interface_pbb_tag_rewrite ");
2937 s =
format (s,
"vtr_op %d ", vtr_op);
2955 s =
format (0,
"SCRIPT: flow_classify_set_interface ");
2972 s =
format (0,
"SCRIPT: punt ");
2974 if (mp->
ipv != (
u8) ~ 0)
2993 s =
format (0,
"SCRIPT: flow_classify_dump ");
2997 s =
format (s,
"type ip4 ");
3000 s =
format (s,
"type ip6 ");
3014 s =
format (0,
"SCRIPT: get_first_msg_id %s ", mp->
name);
3024 s =
format (0,
"SCRIPT: ioam_enable ");
3027 s =
format (s,
"trace enabled");
3030 s =
format (s,
"POT enabled");
3033 s =
format (s,
"Seqno enabled");
3036 s =
format (s,
"Analyse enabled");
3046 s =
format (0,
"SCRIPT: ioam_disable ");
3047 s =
format (s,
"trace disabled");
3048 s =
format (s,
"POT disabled");
3049 s =
format (s,
"Seqno disabled");
3050 s =
format (s,
"Analyse disabled");
3060 s =
format (0,
"SCRIPT: feature_enable_disable ");
3065 s =
format (s,
"disable");
3075 s =
format (0,
"SCRIPT: sw_interface_tag_add_del ");
3090 s =
format (0,
"SCRIPT: sw_interface_set_mtu ");
3092 s =
format (s,
"tag %d ", ntohs (mp->
mtu));
3102 s =
format (0,
"SCRIPT: p2p_ethernet_add ");
3114 s =
format (0,
"SCRIPT: p2p_ethernet_del ");
3126 s =
format (0,
"SCRIPT: tcp_configure_src_addresses ");
3128 s =
format (s,
"%U - %U ",
3132 s =
format (s,
"%U - %U ",
3149 s =
format (0,
"SCRIPT: app_namespace_add_del ");
3150 s =
format (s,
"ns-id %s secret %lu sw_if_index %d ipv4_fib_id %d " 3163 s =
format (0,
"SCRIPT: lldp_config ");
3175 s =
format (0,
"SCRIPT: dns_enable_disable ");
3176 s =
format (s,
"%s ", mp->
enable ?
"enable" :
"disable");
3187 memset (null_data, 0,
sizeof (null_data));
3189 s =
format (0,
"SCRIPT: sw_interface_set_lldp ");
3205 s =
format (s,
"disable ");
3215 s =
format (0,
"SCRIPT: dns_name_server_add_del ");
3234 s =
format (0,
"SCRIPT: dns_resolve_name ");
3244 s =
format (0,
"SCRIPT: dns_resolve_ip ");
3257 s =
format (0,
"SCRIPT: session_rule_add_del ");
3258 mp->
tag[
sizeof (mp->
tag) - 1] = 0;
3260 s =
format (s,
"appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
3266 s =
format (s,
"appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
3278 s =
format (0,
"SCRIPT: ip_container_proxy_add_del ");
3280 s =
format (s,
"is_add %d address %U/%d sw_if_index %d",
3284 s =
format (s,
"is_add %d address %U/%d sw_if_index %d",
3291 #define foreach_custom_print_no_arg_function \ 3292 _(lisp_eid_table_vni_dump) \ 3293 _(lisp_map_resolver_dump) \ 3294 _(lisp_map_server_dump) \ 3295 _(show_lisp_rloc_probe_state) \ 3296 _(show_lisp_map_register_state) \ 3297 _(show_lisp_map_request_mode) 3300 static void * vl_api_ ## f ## _t_print \ 3301 (vl_api_ ## f ## _t * mp, void * handle) \ 3304 s = format (0, "SCRIPT: " #f ); \ 3309 #define foreach_custom_print_function \ 3310 _(CREATE_LOOPBACK, create_loopback) \ 3311 _(CREATE_LOOPBACK_INSTANCE, create_loopback_instance) \ 3312 _(SW_INTERFACE_SET_FLAGS, sw_interface_set_flags) \ 3313 _(SW_INTERFACE_EVENT, sw_interface_event) \ 3314 _(SW_INTERFACE_ADD_DEL_ADDRESS, sw_interface_add_del_address) \ 3315 _(SW_INTERFACE_SET_TABLE, sw_interface_set_table) \ 3316 _(SW_INTERFACE_SET_MPLS_ENABLE, sw_interface_set_mpls_enable) \ 3317 _(SW_INTERFACE_SET_VPATH, sw_interface_set_vpath) \ 3318 _(SW_INTERFACE_SET_VXLAN_BYPASS, sw_interface_set_vxlan_bypass) \ 3319 _(SW_INTERFACE_SET_GENEVE_BYPASS, sw_interface_set_geneve_bypass) \ 3320 _(TAP_CONNECT, tap_connect) \ 3321 _(TAP_MODIFY, tap_modify) \ 3322 _(TAP_DELETE, tap_delete) \ 3323 _(SW_INTERFACE_TAP_DUMP, sw_interface_tap_dump) \ 3324 _(TAP_CREATE_V2, tap_create_v2) \ 3325 _(TAP_DELETE_V2, tap_delete_v2) \ 3326 _(SW_INTERFACE_TAP_V2_DUMP, sw_interface_tap_v2_dump) \ 3327 _(IP_ADD_DEL_ROUTE, ip_add_del_route) \ 3328 _(PROXY_ARP_ADD_DEL, proxy_arp_add_del) \ 3329 _(PROXY_ARP_INTFC_ENABLE_DISABLE, proxy_arp_intfc_enable_disable) \ 3330 _(MPLS_TUNNEL_ADD_DEL, mpls_tunnel_add_del) \ 3331 _(SW_INTERFACE_SET_UNNUMBERED, sw_interface_set_unnumbered) \ 3332 _(IP_NEIGHBOR_ADD_DEL, ip_neighbor_add_del) \ 3333 _(CREATE_VLAN_SUBIF, create_vlan_subif) \ 3334 _(CREATE_SUBIF, create_subif) \ 3335 _(OAM_ADD_DEL, oam_add_del) \ 3336 _(RESET_FIB, reset_fib) \ 3337 _(DHCP_PROXY_CONFIG, dhcp_proxy_config) \ 3338 _(DHCP_PROXY_SET_VSS, dhcp_proxy_set_vss) \ 3339 _(SET_IP_FLOW_HASH, set_ip_flow_hash) \ 3340 _(SW_INTERFACE_IP6_SET_LINK_LOCAL_ADDRESS, \ 3341 sw_interface_ip6_set_link_local_address) \ 3342 _(SW_INTERFACE_IP6ND_RA_PREFIX, sw_interface_ip6nd_ra_prefix) \ 3343 _(SW_INTERFACE_IP6ND_RA_CONFIG, sw_interface_ip6nd_ra_config) \ 3344 _(SET_ARP_NEIGHBOR_LIMIT, set_arp_neighbor_limit) \ 3345 _(L2_PATCH_ADD_DEL, l2_patch_add_del) \ 3346 _(SR_LOCALSID_ADD_DEL, sr_localsid_add_del) \ 3347 _(SR_STEERING_ADD_DEL, sr_steering_add_del) \ 3348 _(SR_POLICY_ADD, sr_policy_add) \ 3349 _(SR_POLICY_MOD, sr_policy_mod) \ 3350 _(SR_POLICY_DEL, sr_policy_del) \ 3351 _(SW_INTERFACE_SET_L2_XCONNECT, sw_interface_set_l2_xconnect) \ 3352 _(L2FIB_ADD_DEL, l2fib_add_del) \ 3353 _(L2FIB_FLUSH_ALL, l2fib_flush_all) \ 3354 _(L2FIB_FLUSH_BD, l2fib_flush_bd) \ 3355 _(L2FIB_FLUSH_INT, l2fib_flush_int) \ 3356 _(L2_FLAGS, l2_flags) \ 3357 _(BRIDGE_FLAGS, bridge_flags) \ 3358 _(CLASSIFY_ADD_DEL_TABLE, classify_add_del_table) \ 3359 _(CLASSIFY_ADD_DEL_SESSION, classify_add_del_session) \ 3360 _(SW_INTERFACE_SET_L2_BRIDGE, sw_interface_set_l2_bridge) \ 3361 _(BRIDGE_DOMAIN_ADD_DEL, bridge_domain_add_del) \ 3362 _(BRIDGE_DOMAIN_DUMP, bridge_domain_dump) \ 3363 _(BRIDGE_DOMAIN_SET_MAC_AGE, bridge_domain_set_mac_age) \ 3364 _(CLASSIFY_SET_INTERFACE_IP_TABLE, classify_set_interface_ip_table) \ 3365 _(CLASSIFY_SET_INTERFACE_L2_TABLES, classify_set_interface_l2_tables) \ 3366 _(ADD_NODE_NEXT, add_node_next) \ 3367 _(DHCP_CLIENT_CONFIG, dhcp_client_config) \ 3368 _(L2TPV3_CREATE_TUNNEL, l2tpv3_create_tunnel) \ 3369 _(L2TPV3_SET_TUNNEL_COOKIES, l2tpv3_set_tunnel_cookies) \ 3370 _(L2TPV3_INTERFACE_ENABLE_DISABLE, l2tpv3_interface_enable_disable) \ 3371 _(L2TPV3_SET_LOOKUP_KEY, l2tpv3_set_lookup_key) \ 3372 _(SW_IF_L2TPV3_TUNNEL_DUMP, sw_if_l2tpv3_tunnel_dump) \ 3373 _(VXLAN_ADD_DEL_TUNNEL, vxlan_add_del_tunnel) \ 3374 _(VXLAN_TUNNEL_DUMP, vxlan_tunnel_dump) \ 3375 _(GENEVE_ADD_DEL_TUNNEL, geneve_add_del_tunnel) \ 3376 _(GENEVE_TUNNEL_DUMP, geneve_tunnel_dump) \ 3377 _(GRE_ADD_DEL_TUNNEL, gre_add_del_tunnel) \ 3378 _(GRE_TUNNEL_DUMP, gre_tunnel_dump) \ 3379 _(L2_FIB_CLEAR_TABLE, l2_fib_clear_table) \ 3380 _(L2_INTERFACE_EFP_FILTER, l2_interface_efp_filter) \ 3381 _(L2_INTERFACE_VLAN_TAG_REWRITE, l2_interface_vlan_tag_rewrite) \ 3382 _(CREATE_VHOST_USER_IF, create_vhost_user_if) \ 3383 _(MODIFY_VHOST_USER_IF, modify_vhost_user_if) \ 3384 _(DELETE_VHOST_USER_IF, delete_vhost_user_if) \ 3385 _(SW_INTERFACE_DUMP, sw_interface_dump) \ 3386 _(CONTROL_PING, control_ping) \ 3387 _(WANT_INTERFACE_EVENTS, want_interface_events) \ 3389 _(CLI_INBAND, cli_inband) \ 3390 _(MEMCLNT_CREATE, memclnt_create) \ 3391 _(SOCKCLNT_CREATE, sockclnt_create) \ 3392 _(SW_INTERFACE_VHOST_USER_DUMP, sw_interface_vhost_user_dump) \ 3393 _(SHOW_VERSION, show_version) \ 3394 _(L2_FIB_TABLE_DUMP, l2_fib_table_dump) \ 3395 _(VXLAN_GPE_ADD_DEL_TUNNEL, vxlan_gpe_add_del_tunnel) \ 3396 _(VXLAN_GPE_TUNNEL_DUMP, vxlan_gpe_tunnel_dump) \ 3397 _(INTERFACE_NAME_RENUMBER, interface_name_renumber) \ 3398 _(WANT_IP4_ARP_EVENTS, want_ip4_arp_events) \ 3399 _(WANT_IP6_ND_EVENTS, want_ip6_nd_events) \ 3400 _(WANT_L2_MACS_EVENTS, want_l2_macs_events) \ 3401 _(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \ 3402 _(IP_ADDRESS_DUMP, ip_address_dump) \ 3403 _(IP_DUMP, ip_dump) \ 3404 _(DELETE_LOOPBACK, delete_loopback) \ 3405 _(BD_IP_MAC_ADD_DEL, bd_ip_mac_add_del) \ 3406 _(COP_INTERFACE_ENABLE_DISABLE, cop_interface_enable_disable) \ 3407 _(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable) \ 3408 _(AF_PACKET_CREATE, af_packet_create) \ 3409 _(AF_PACKET_DELETE, af_packet_delete) \ 3410 _(SW_INTERFACE_CLEAR_STATS, sw_interface_clear_stats) \ 3411 _(MPLS_FIB_DUMP, mpls_fib_dump) \ 3412 _(MPLS_TUNNEL_DUMP, mpls_tunnel_dump) \ 3413 _(CLASSIFY_TABLE_IDS,classify_table_ids) \ 3414 _(CLASSIFY_TABLE_BY_INTERFACE, classify_table_by_interface) \ 3415 _(CLASSIFY_TABLE_INFO,classify_table_info) \ 3416 _(CLASSIFY_SESSION_DUMP,classify_session_dump) \ 3417 _(SET_IPFIX_EXPORTER, set_ipfix_exporter) \ 3418 _(IPFIX_EXPORTER_DUMP, ipfix_exporter_dump) \ 3419 _(SET_IPFIX_CLASSIFY_STREAM, set_ipfix_classify_stream) \ 3420 _(IPFIX_CLASSIFY_STREAM_DUMP, ipfix_classify_stream_dump) \ 3421 _(IPFIX_CLASSIFY_TABLE_ADD_DEL, ipfix_classify_table_add_del) \ 3422 _(IPFIX_CLASSIFY_TABLE_DUMP, ipfix_classify_table_dump) \ 3423 _(SW_INTERFACE_SPAN_ENABLE_DISABLE, sw_interface_span_enable_disable) \ 3424 _(SW_INTERFACE_SPAN_DUMP, sw_interface_span_dump) \ 3425 _(GET_NEXT_INDEX, get_next_index) \ 3426 _(PG_CREATE_INTERFACE,pg_create_interface) \ 3427 _(PG_CAPTURE, pg_capture) \ 3428 _(PG_ENABLE_DISABLE, pg_enable_disable) \ 3429 _(POLICER_ADD_DEL, policer_add_del) \ 3430 _(POLICER_DUMP, policer_dump) \ 3431 _(POLICER_CLASSIFY_SET_INTERFACE, policer_classify_set_interface) \ 3432 _(POLICER_CLASSIFY_DUMP, policer_classify_dump) \ 3433 _(IP_SOURCE_AND_PORT_RANGE_CHECK_ADD_DEL, \ 3434 ip_source_and_port_range_check_add_del) \ 3435 _(IP_SOURCE_AND_PORT_RANGE_CHECK_INTERFACE_ADD_DEL, \ 3436 ip_source_and_port_range_check_interface_add_del) \ 3437 _(LISP_ENABLE_DISABLE, lisp_enable_disable) \ 3438 _(GPE_ENABLE_DISABLE, gpe_enable_disable) \ 3439 _(GPE_ADD_DEL_IFACE, gpe_add_del_iface) \ 3440 _(LISP_PITR_SET_LOCATOR_SET, lisp_pitr_set_locator_set) \ 3441 _(LISP_MAP_REQUEST_MODE, lisp_map_request_mode) \ 3442 _(SHOW_LISP_MAP_REQUEST_MODE, show_lisp_map_request_mode) \ 3443 _(LISP_ADD_DEL_REMOTE_MAPPING, lisp_add_del_remote_mapping) \ 3444 _(LISP_ADD_DEL_ADJACENCY, lisp_add_del_adjacency) \ 3445 _(LISP_ADD_DEL_MAP_REQUEST_ITR_RLOCS, \ 3446 lisp_add_del_map_request_itr_rlocs) \ 3447 _(LISP_EID_TABLE_ADD_DEL_MAP, lisp_eid_table_add_del_map) \ 3448 _(LISP_ADD_DEL_LOCAL_EID, lisp_add_del_local_eid) \ 3449 _(GPE_ADD_DEL_FWD_ENTRY, gpe_add_del_fwd_entry) \ 3450 _(LISP_ADD_DEL_LOCATOR_SET, lisp_add_del_locator_set) \ 3451 _(LISP_ADD_DEL_MAP_RESOLVER, lisp_add_del_map_resolver) \ 3452 _(LISP_ADD_DEL_LOCATOR, lisp_add_del_locator) \ 3453 _(LISP_EID_TABLE_DUMP, lisp_eid_table_dump) \ 3454 _(LISP_EID_TABLE_MAP_DUMP, lisp_eid_table_map_dump) \ 3455 _(LISP_EID_TABLE_VNI_DUMP, lisp_eid_table_vni_dump) \ 3456 _(LISP_MAP_RESOLVER_DUMP, lisp_map_resolver_dump) \ 3457 _(LISP_MAP_SERVER_DUMP, lisp_map_server_dump) \ 3458 _(LISP_LOCATOR_SET_DUMP, lisp_locator_set_dump) \ 3459 _(LISP_LOCATOR_DUMP, lisp_locator_dump) \ 3460 _(LISP_ADJACENCIES_GET, lisp_adjacencies_get) \ 3461 _(SHOW_LISP_RLOC_PROBE_STATE, show_lisp_rloc_probe_state) \ 3462 _(SHOW_LISP_MAP_REGISTER_STATE, show_lisp_map_register_state) \ 3463 _(LISP_RLOC_PROBE_ENABLE_DISABLE, lisp_rloc_probe_enable_disable) \ 3464 _(LISP_MAP_REGISTER_ENABLE_DISABLE, lisp_map_register_enable_disable) \ 3465 _(IPSEC_GRE_ADD_DEL_TUNNEL, ipsec_gre_add_del_tunnel) \ 3466 _(IPSEC_GRE_TUNNEL_DUMP, ipsec_gre_tunnel_dump) \ 3467 _(DELETE_SUBIF, delete_subif) \ 3468 _(L2_INTERFACE_PBB_TAG_REWRITE, l2_interface_pbb_tag_rewrite) \ 3470 _(FLOW_CLASSIFY_SET_INTERFACE, flow_classify_set_interface) \ 3471 _(FLOW_CLASSIFY_DUMP, flow_classify_dump) \ 3472 _(GET_FIRST_MSG_ID, get_first_msg_id) \ 3473 _(IOAM_ENABLE, ioam_enable) \ 3474 _(IOAM_DISABLE, ioam_disable) \ 3475 _(IP_FIB_DUMP, ip_fib_dump) \ 3476 _(IP6_FIB_DUMP, ip6_fib_dump) \ 3477 _(FEATURE_ENABLE_DISABLE, feature_enable_disable) \ 3478 _(SW_INTERFACE_TAG_ADD_DEL, sw_interface_tag_add_del) \ 3479 _(SW_INTERFACE_SET_MTU, sw_interface_set_mtu) \ 3480 _(P2P_ETHERNET_ADD, p2p_ethernet_add) \ 3481 _(P2P_ETHERNET_DEL, p2p_ethernet_del) \ 3482 _(TCP_CONFIGURE_SRC_ADDRESSES, tcp_configure_src_addresses) \ 3483 _(APP_NAMESPACE_ADD_DEL, app_namespace_add_del) \ 3484 _(LLDP_CONFIG, lldp_config) \ 3485 _(SW_INTERFACE_SET_LLDP, sw_interface_set_lldp) \ 3486 _(DNS_ENABLE_DISABLE, dns_enable_disable) \ 3487 _(DNS_NAME_SERVER_ADD_DEL, dns_name_server_add_del) \ 3488 _(DNS_RESOLVE_NAME, dns_resolve_name) \ 3489 _(DNS_RESOLVE_IP, dns_resolve_ip) \ 3490 _(SESSION_RULE_ADD_DEL, session_rule_add_del) 3494 #define _(n,f) am->msg_print_handlers[VL_API_##n] \ 3495 = (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)
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)
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.
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)
static void * vl_api_dns_enable_disable_t_print(vl_api_dns_enable_disable_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_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)
IPFIX classify tables dump request.
#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)
static void * vl_api_geneve_tunnel_dump_t_print(vl_api_geneve_tunnel_dump_t *mp, void *handle)
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)
vnet_main_t * vnet_get_main(void)
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_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)
static void * vl_api_sr_steering_add_del_t_print(vl_api_sr_steering_add_del_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)
L2 bridge domain set mac age.
static void * vl_api_l2_interface_vlan_tag_rewrite_t_print(vl_api_l2_interface_vlan_tag_rewrite_t *mp, void *handle)
#define vec_add2(V, P, N)
Add N elements to end of vector V, return pointer to new elements in P.
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_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)
static void * vl_api_session_rule_add_del_t_print(vl_api_session_rule_add_del_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)
DNS IP -> name resolution request.
static void * vl_api_bridge_flags_t_print(vl_api_bridge_flags_t *mp, void *handle)
format_function_t format_vnet_sw_if_index_name
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)
Process a vpe parser cli string request.
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_l2fib_flush_bd_t_print(vl_api_l2fib_flush_bd_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)
static void * vl_api_sockclnt_create_t_print(vl_api_sockclnt_create_t *mp, void *handle)
static void * vl_api_sr_policy_add_t_print(vl_api_sr_policy_add_t *mp, void *handle)
Dump tap interfaces request.
Dump ipsec gre tunnel table.
add or delete LISP adjacency adjacency
u8 pcap_file_name[pcap_name_length]
static void * vl_api_p2p_ethernet_del_t_print(vl_api_p2p_ethernet_del_t *mp, void *handle)
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)
Interface set geneve-bypass request.
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)
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)
add/del application namespace
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)
L2 FIB flush bridge domain entries.
add or delete map request itr rlocs
static void * vl_api_cli_t_print(vl_api_cli_t *mp, void *handle)
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.
static void * vl_api_want_l2_macs_events_t_print(vl_api_want_l2_macs_events_t *mp, void *handle)
static void * vl_api_sr_localsid_add_del_t_print(vl_api_sr_localsid_add_del_t *mp, void *handle)
static void * vl_api_l2fib_flush_int_t_print(vl_api_l2fib_flush_int_t *mp, void *handle)
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)
static void * vl_api_tap_delete_v2_t_print(vl_api_tap_delete_v2_t *mp, void *handle)
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.
static void * vl_api_dns_name_server_add_del_t_print(vl_api_dns_name_server_add_del_t *mp, void *handle)
Set interface L2 flags (such as L2_LEARN, L2_FWD, L2_FLOOD, L2_UU_FLOOD, or L2_ARP_TERM bits)...
static void * vl_api_gpe_add_del_fwd_entry_t_print(vl_api_gpe_add_del_fwd_entry_t *mp, void *handle)
L2 FIB flush all entries.
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)
static void * vl_api_sw_interface_set_lldp_t_print(vl_api_sw_interface_set_lldp_t *mp, void *handle)
set LISP map-request mode.
u32 new_show_dev_instance
DNS name resolution request.
static void * vl_api_geneve_add_del_tunnel_t_print(vl_api_geneve_add_del_tunnel_t *mp, void *handle)
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.
static void * vl_api_l2fib_flush_all_t_print(vl_api_l2fib_flush_all_t *mp, void *handle)
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_p2p_ethernet_add_t_print(vl_api_p2p_ethernet_add_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_af_packet_delete_t_print(vl_api_af_packet_delete_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)
static void * vl_api_sw_interface_event_t_print(vl_api_sw_interface_event_t *mp, void *handle)
Call from VLIB_INIT_FUNCTION to set the Linux kernel inject node name.
API main structure, used by both vpp and binary API clients.
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_gpe_enable_disable_t_print(vl_api_gpe_enable_disable_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)
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)
#define clib_memcpy(a, b, c)
static void * vl_api_set_ipfix_exporter_t_print(vl_api_set_ipfix_exporter_t *mp, void *handle)
Feature path enable/disable request.
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)
IPv6 SR steering add/del.
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)
Initialize a new tap interface with the given paramters.
Set/unset flow classify interface.
static void * vl_api_sr_policy_del_t_print(vl_api_sr_policy_del_t *mp, void *handle)
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.
static void * vl_api_lldp_config_t_print(vl_api_lldp_config_t *mp, void *handle)
Delete loopback interface request.
vhost-user interface modify request
Register for interface events.
Set L2 XConnect between two interfaces request.
static void * vl_api_tap_create_v2_t_print(vl_api_tap_create_v2_t *mp, void *handle)
static void * vl_api_ipfix_classify_table_add_del_t_print(vl_api_ipfix_classify_table_add_del_t *mp, void *handle)
static ip46_address_t to_ip46(u32 is_ipv6, u8 *buf)
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.
Reply for lisp_add_del_map_request_itr_rlocs.
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_create_loopback_instance_t_print(vl_api_create_loopback_instance_t *mp, void *handle)
Register to recive L2 MAC events for leanred and aged MAC.
static void * vl_api_sw_interface_set_geneve_bypass_t_print(vl_api_sw_interface_set_geneve_bypass_t *mp, void *handle)
static void * vl_api_sw_interface_tap_v2_dump_t_print(vl_api_sw_interface_tap_v2_dump_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)
static void * vl_api_gpe_add_del_iface_t_print(vl_api_gpe_add_del_iface_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)
static void * vl_api_dns_resolve_name_t_print(vl_api_dns_resolve_name_t *mp, void *handle)
add or delete an upstream name server
static void * vl_api_sr_policy_mod_t_print(vl_api_sr_policy_mod_t *mp, void *handle)
Classify table ids by interface index request.
enable/disable name resolution
static void * vl_api_set_arp_neighbor_limit_t_print(vl_api_set_arp_neighbor_limit_t *mp, void *handle)
Interface Event generated by want_interface_events.
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_bridge_domain_set_mac_age_t_print(vl_api_bridge_domain_set_mac_age_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)
Create loopback interface instance request.
static void * vl_api_bd_ip_mac_add_del_t_print(vl_api_bd_ip_mac_add_del_t *mp, void *handle)
L2 FIB flush interface entries.
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)
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)
Interface set LLDP request.
Create loopback interface request.
Set unnumbered interface add / del request.
add or delete remote static mapping
Segment Routing MPLS data structures definitions.
L2 interface vlan tag rewrite configure request.
Create a new subinterface with the given vlan id.
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)
configure global parameter for LLDP
Modify a tap interface with the given paramters.
Segment Routing data structures definitions.
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)
IPv6 SR policy modification.
Register for ip4 arp resolution events.
static void * vl_api_sw_interface_dump_t_print(vl_api_sw_interface_dump_t *mp, void *handle)
#define vec_foreach(var, vec)
Vector iterator.
static void * vl_api_dns_resolve_ip_t_print(vl_api_dns_resolve_ip_t *mp, void *handle)
Set bridge flags (such as L2_LEARN, L2_FWD, L2_FLOOD, L2_UU_FLOOD, or L2_ARP_TERM bits) request...
static void * vl_api_punt_t_print(vl_api_punt_t *mp, void *handle)
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.
static void * vl_api_tcp_configure_src_addresses_t_print(vl_api_tcp_configure_src_addresses_t *mp, void *handle)
l2tpv3 tunnel interface create request
IPv6 SR LocalSID add/del 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)
static void * vl_api_ip_container_proxy_add_del_t_print(vl_api_ip_container_proxy_add_del_t *mp, void *handle)
DHCP Client config add / del request.
static void * vl_api_app_namespace_add_del_t_print(vl_api_app_namespace_add_del_t *mp, void *handle)
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)
enable or disable gpe protocol
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)
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.