64 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 68 vl_print (handle, (char *)s); \ 78 s =
format (0,
"SCRIPT: create_loopback ");
89 s =
format (0,
"SCRIPT: create_loopback ");
101 s =
format (0,
"SCRIPT: delete_loopback ");
111 s =
format (0,
"SCRIPT: sw_interface_set_flags ");
116 s =
format (s,
"admin-up ");
118 s =
format (s,
"admin-down ");
128 s =
format (0,
"SCRIPT: sw_interface_set_rx_placement ");
147 s =
format (0,
"SCRIPT: sw_interface_rx_placement_dump ");
149 if (sw_if_index != ~0)
150 s =
format (s,
"sw_if_index %d ", sw_if_index);
159 s =
format (0,
"SCRIPT: sw_interface_event ");
164 s =
format (s,
"admin-up ");
166 s =
format (s,
"admin-down ");
169 s =
format (s,
"link-up");
171 s =
format (s,
"link-down");
174 s =
format (s,
" deleted");
184 s =
format (0,
"SCRIPT: sw_interface_add_del_address ");
198 s =
format (s,
"del-all ");
208 s =
format (0,
"SCRIPT: sw_interface_set_table ");
226 s =
format (0,
"SCRIPT: sw_interface_set_mpls_enable ");
231 s =
format (s,
"disable");
241 s =
format (0,
"SCRIPT: sw_interface_set_vpath ");
246 s =
format (s,
"enable ");
248 s =
format (s,
"disable ");
258 s =
format (0,
"SCRIPT: sw_interface_set_vxlan_bypass ");
266 s =
format (s,
"enable ");
268 s =
format (s,
"disable ");
278 s =
format (0,
"SCRIPT: sw_interface_set_geneve_bypass ");
286 s =
format (s,
"enable ");
288 s =
format (s,
"disable ");
298 s =
format (0,
"SCRIPT: sw_interface_set_l2_xconnect ");
307 s =
format (s,
"delete ");
317 s =
format (0,
"SCRIPT: sw_interface_set_l2_bridge ");
327 s =
format (s,
"uu-fwd ");
331 s =
format (s,
"disable ");
341 s =
format (0,
"SCRIPT: bridge_domain_add_del ");
364 s =
format (0,
"SCRIPT: bridge_domain_set_mac_age ");
379 s =
format (0,
"SCRIPT: bridge_domain_dump ");
382 s =
format (s,
"bd_id %d ", bd_id);
392 s =
format (0,
"SCRIPT: l2fib_flush_all ");
404 s =
format (0,
"SCRIPT: l2fib_flush_bd ");
405 s =
format (s,
"bd_id %d ", bd_id);
416 s =
format (0,
"SCRIPT: l2fib_flush_int ");
417 s =
format (s,
"sw_if_index %d ", sw_if_index);
427 s =
format (0,
"SCRIPT: l2fib_add_del ");
438 s =
format (s,
"%s",
"static ");
440 s =
format (s,
"%s",
"filter ");
442 s =
format (s,
"%s",
"bvi ");
458 s =
format (0,
"SCRIPT: l2_flags ");
465 s =
format (s,
"forward ");
469 s =
format (s,
"uu-flood ");
471 s =
format (s,
"arp-term ");
485 s =
format (0,
"SCRIPT: bridge_flags ");
492 s =
format (s,
"forward ");
496 s =
format (s,
"uu-flood ");
498 s =
format (s,
"arp-term ");
511 s =
format (0,
"SCRIPT: bd_ip_mac_add_del ");
512 s =
format (s,
"bd_id %d ", ntohl (mp->
entry.bd_id));
527 s =
format (0,
"SCRIPT: bd_ip_mac_flush ");
539 s =
format (0,
"SCRIPT: bd_ip_mac_dump ");
552 s =
format (0,
"SCRIPT: tap_create_v2 ");
553 s =
format (s,
"id %u ", ntohl (mp->
id));
555 s =
format (s,
"mac-address %U ",
562 s =
format (s,
"host-mac-addr %U ",
583 s =
format (s,
"gso-enabled");
592 s =
format (0,
"SCRIPT: tap_delete_v2 ");
603 s =
format (0,
"SCRIPT: sw_interface_tap_v2_dump ");
617 s =
format (0,
"SCRIPT: virtio_pci_create ");
620 s =
format (s,
"mac-address %U ",
623 s =
format (s,
"features 0x%llx ", clib_net_to_host_u64 (mp->
features));
625 s =
format (s,
"gso-enabled");
635 s =
format (0,
"SCRIPT: virtio_pci_delete ");
647 s =
format (0,
"SCRIPT: sw_interface_virtio_pci_dump ");
660 s =
format (0,
"SCRIPT: bond_create ");
662 s =
format (s,
"mac-address %U ",
669 s =
format (s,
"numa-only is set in lacp mode");
671 s =
format (s,
"id %u ", ntohl (mp->
id));
680 s =
format (0,
"SCRIPT: bond_delete ");
691 s =
format (0,
"SCRIPT: bond_enslave ");
695 s =
format (s,
"passive ");
697 s =
format (s,
"long-timeout ");
707 s =
format (0,
"SCRIPT: bond_detach_slave ");
718 s =
format (0,
"SCRIPT: sw_interface_bond_dump ");
728 s =
format (0,
"SCRIPT: sw_interface_slave_dump ");
739 s =
format (0,
"SCRIPT: ip_route_add_del ");
756 s =
format (0,
"SCRIPT: mpls_route_add_del ");
769 s =
format (s,
"non-eos ");
772 s =
format (s,
"multicast ");
787 s =
format (0,
"SCRIPT: ip_table_add_del ");
805 s =
format (0,
"SCRIPT: mpls_table_add_del ");
820 s =
format (0,
"SCRIPT: proxy_arp_add_del ");
822 s =
format (s,
"%U - %U ",
839 s =
format (0,
"SCRIPT: proxy_arp_intfc_enable_disable ");
853 s =
format (0,
"SCRIPT: mpls_tunnel_add_del ");
863 s =
format (s,
"l2-only ");
865 s =
format (s,
"multicast ");
867 s =
format (s,
"tunnel-index ");
881 s =
format (0,
"SCRIPT: sr_mpls_policy_add ");
906 s =
format (0,
"SCRIPT: sr_mpls_policy_del ");
918 s =
format (0,
"SCRIPT: sw_interface_set_unnumbered ");
935 s =
format (0,
"SCRIPT: ip_neighbor_add_del ");
937 s =
format (s,
"sw_if_index %d ", ntohl (mp->
neighbor.sw_if_index));
940 s =
format (s,
"is_static ");
943 s =
format (s,
"is_no_fib_entry ");
962 s =
format (0,
"SCRIPT: create_vlan_subif ");
973 #define foreach_create_subif_bit \ 980 _(outer_vlan_id_any) \ 988 s =
format (0,
"SCRIPT: create_subif ");
1000 #define _(a) if (mp->a) s = format (s, "%s ", #a); 1012 s =
format (0,
"SCRIPT: delete_subif ");
1023 s =
format (0,
"SCRIPT: reset_fib ");
1039 s =
format (0,
"SCRIPT: dhcp_proxy_config_2 ");
1069 s =
format (0,
"SCRIPT: dhcp_proxy_set_vss ");
1076 s =
format (s,
"oui %d ", ntohl (mp->
oui));
1095 s =
format (0,
"SCRIPT: dhcp_client_config ");
1117 s =
format (0,
"SCRIPT: set_ip_flow_hash ");
1128 s =
format (s,
"sport ");
1131 s =
format (s,
"dport ");
1134 s =
format (s,
"proto ");
1137 s =
format (s,
"reverse ");
1150 s =
format (0,
"SCRIPT: sw_interface_ip6nd_ra_prefix ");
1164 s =
format (s,
"noadv ");
1170 s =
format (s,
"noauto ");
1173 s =
format (s,
"nolink ");
1186 s =
format (0,
"SCRIPT: sw_interface_ip6nd_ra_config ");
1201 s =
format (s,
"suppress ");
1204 s =
format (s,
"managed ");
1207 s =
format (s,
"other ");
1216 s =
format (s,
"cease ");
1232 s =
format (0,
"SCRIPT: set_arp_neighbor_limit ");
1247 s =
format (0,
"SCRIPT: l2_patch_add_del ");
1265 s =
format (0,
"SCRIPT: sr_localsid_add_del ");
1270 s =
format (s,
"Address: %U\nBehavior: End",
1272 s =
format (s, (mp->
end_psp ?
"End.PSP: True" :
"End.PSP: False"));
1277 "Address: %U\nBehavior: X (Endpoint with Layer-3 cross-connect)" 1282 s =
format (s, (mp->
end_psp ?
"End.PSP: True" :
"End.PSP: False"));
1287 "Address: %U\nBehavior: DX4 (Endpoint with decapsulation with IPv4 cross-connect)" 1296 "Address: %U\nBehavior: DX6 (Endpoint with decapsulation with IPv6 cross-connect)" 1305 "Address: %U\nBehavior: DX2 (Endpoint with decapulation and Layer-2 cross-connect)" 1313 "Address: %U\nBehavior: DT6 (Endpoint with decapsulation and specific IPv6 table lookup)" 1320 "Address: %U\nBehavior: DT4 (Endpoint with decapsulation and specific IPv4 table lookup)" 1327 s =
format (s,
"Address: %U\n Behavior: %u",
1333 s =
format (s,
"Internal error");
1344 s =
format (0,
"SCRIPT: sr_steering_add_del ");
1346 s =
format (s, (mp->
is_del ?
"Del: True" :
"Del: False"));
1391 s =
format (0,
"SCRIPT: sr_policy_add ");
1398 (mp->
is_encap ?
"Behavior: Encapsulation" :
1399 "Behavior: SRH insertion"));
1403 s =
format (s, (mp->
type ?
"Type: Default" :
"Type: Spray"));
1405 s =
format (s,
"SID list weight: %u", ntohl (mp->
weight));
1412 s =
format (s,
"\b\b } ");
1433 s =
format (0,
"SCRIPT: sr_policy_mod ");
1444 s =
format (s,
"SID list weight: %u", ntohl (mp->
weight));
1451 s =
format (s,
"\b\b } ");
1461 s =
format (0,
"SCRIPT: sr_policy_del ");
1462 s =
format (s,
"To be delivered. Good luck.");
1472 s =
format (0,
"SCRIPT: classify_add_del_table ");
1489 s =
format (s,
"current-data-offset %d ",
1491 s =
format (s,
"mask hex ");
1506 s =
format (0,
"SCRIPT: classify_add_del_session ");
1518 s =
format (s,
"match hex ");
1519 for (i = 5 *
sizeof (
u32x4) - 1; i > 0; i--)
1521 if (mp->
match[i] != 0)
1528 for (i = 0; i < limit; i++)
1539 s =
format (0,
"SCRIPT: classify_set_interface_ip_table ");
1555 s =
format (0,
"SCRIPT: classify_set_interface_l2_tables ");
1571 s =
format (0,
"SCRIPT: add_node_next ");
1583 s =
format (0,
"SCRIPT: l2tpv3_create_tunnel ");
1585 s =
format (s,
"client_address %U our_address %U ",
1590 s =
format (s,
"local_cookie %lld ",
1592 s =
format (s,
"remote_cookie %lld ",
1595 s =
format (s,
"l2-sublayer-present ");
1605 s =
format (0,
"SCRIPT: l2tpv3_set_tunnel_cookies ");
1609 s =
format (s,
"new_local_cookie %llu ",
1612 s =
format (s,
"new_remote_cookie %llu ",
1623 s =
format (0,
"SCRIPT: l2tpv3_interface_enable_disable ");
1637 char *str =
"unknown";
1639 s =
format (0,
"SCRIPT: l2tpv3_set_lookup_key ");
1644 str =
"lookup_v6_src";
1647 str =
"lookup_v6_dst";
1650 str =
"lookup_session_id";
1656 s =
format (s,
"%s ", str);
1666 s =
format (0,
"SCRIPT: sw_if_l2tpv3_tunnel_dump ");
1675 s =
format (0,
"SCRIPT: vxlan_add_del_tunnel ");
1681 char *dst_name = is_grp ?
"group" :
"dst";
1695 s =
format (s,
"vni %d ", ntohl (mp->
vni));
1709 s =
format (0,
"SCRIPT: vxlan_offload_rx ");
1724 s =
format (0,
"SCRIPT: vxlan_tunnel_dump ");
1735 s =
format (0,
"SCRIPT: vxlan_gbp_tunnel_add_del ");
1742 s =
format (s,
"instance %d ", ntohl (mp->
tunnel.instance));
1746 format (s,
"mcast_sw_if_index %d ", ntohl (mp->
tunnel.mcast_sw_if_index));
1747 s =
format (s,
"encap_table_id %d ", ntohl (mp->
tunnel.encap_table_id));
1749 s =
format (s,
"sw_if_index %d ", ntohl (mp->
tunnel.sw_if_index));
1759 s =
format (0,
"SCRIPT: vxlan_gbp_tunnel_dump ");
1771 s =
format (0,
"SCRIPT: sw_interface_set_vxlan_gbp_bypass ");
1774 s =
format (s,
"%s ", (mp->
is_ipv6 != 0) ?
"ipv6" :
"ipv4");
1775 s =
format (s,
"%s ", (mp->
enable != 0) ?
"enable" :
"disable");
1784 s =
format (0,
"SCRIPT: geneve_add_del_tunnel ");
1790 char *remote_name = is_grp ?
"group" :
"dst";
1804 s =
format (s,
"vni %d ", ntohl (mp->
vni));
1817 s =
format (0,
"SCRIPT: geneve_tunnel_dump ");
1829 s =
format (0,
"SCRIPT: gre_tunnel_add_del ");
1834 s =
format (s,
"instance %d ", ntohl (mp->
tunnel.instance));
1840 s =
format (s,
"erspan %d ", ntohs (mp->
tunnel.session_id));
1842 if (mp->
tunnel.outer_fib_id)
1843 s =
format (s,
"outer-fib-id %d ", ntohl (mp->
tunnel.outer_fib_id));
1856 s =
format (0,
"SCRIPT: gre_tunnel_dump ");
1868 s =
format (0,
"SCRIPT: l2_fib_clear_table ");
1878 s =
format (0,
"SCRIPT: l2_interface_efp_filter ");
1882 s =
format (s,
"enable ");
1884 s =
format (s,
"disable ");
1894 s =
format (0,
"SCRIPT: l2_interface_vlan_tag_rewrite ");
1899 s =
format (s,
"tag1 %d ", ntohl (mp->
tag1));
1900 s =
format (s,
"tag2 %d ", ntohl (mp->
tag2));
1910 s =
format (0,
"SCRIPT: create_vhost_user_if ");
1914 s =
format (s,
"server ");
1918 s =
format (s,
"disable_mrg_rxbuf ");
1920 s =
format (s,
"disable_indirect_desc ");
1934 s =
format (0,
"SCRIPT: modify_vhost_user_if ");
1939 s =
format (s,
"server ");
1953 s =
format (0,
"SCRIPT: delete_vhost_user_if ");
1964 s =
format (0,
"SCRIPT: sw_interface_vhost_user_dump ");
1974 s =
format (0,
"SCRIPT: sw_interface_dump ");
1979 s =
format (s,
"name_filter %v ", v);
1993 s =
format (0,
"SCRIPT: l2_fib_table_dump ");
2005 s =
format (0,
"SCRIPT: control_ping ");
2015 s =
format (0,
"SCRIPT: want_interface_events pid %d enable %d ",
2026 s =
format (0,
"SCRIPT: cli ");
2041 s =
format (0,
"SCRIPT: exec %v ", cmd);
2052 s =
format (0,
"SCRIPT: memclnt_create name %s ", mp->
name);
2062 s =
format (0,
"SCRIPT: sockclnt_create name %s ", mp->
name);
2072 s =
format (0,
"SCRIPT: show_version ");
2083 s =
format (0,
"SCRIPT: show_threads ");
2093 s =
format (0,
"SCRIPT: vxlan_gpe_add_del_tunnel ");
2099 char *remote_name = is_grp ?
"group" :
"remote";
2109 s =
format (s,
"vni %d ", ntohl (mp->
vni));
2128 s =
format (0,
"SCRIPT: vxlan_gpe_tunnel_dump ");
2140 s =
format (0,
"SCRIPT: interface_renumber ");
2144 s =
format (s,
"new_show_dev_instance %d ",
2155 s =
format (0,
"SCRIPT: ip_probe_neighbor ");
2167 s =
format (0,
"SCRIPT: ip_scan_neighbor_enable_disable ");
2181 s =
format (s,
"disable ");
2198 s =
format (0,
"SCRIPT: want_ip4_arp_events ");
2199 s =
format (s,
"pid %d address %U ", ntohl (mp->
pid),
2212 s =
format (0,
"SCRIPT: want_ip6_nd_events ");
2213 s =
format (s,
"pid %d address %U ", ntohl (mp->
pid),
2226 s =
format (0,
"SCRIPT: want_l2_macs_events ");
2231 s =
format (s,
"disable");
2241 s =
format (0,
"SCRIPT: input_acl_set_interface ");
2259 s =
format (0,
"SCRIPT: output_acl_set_interface ");
2277 s =
format (0,
"SCRIPT: ip6_address_dump ");
2289 s =
format (0,
"SCRIPT: ip_dump ");
2300 s =
format (0,
"SCRIPT: cop_interface_enable_disable ");
2303 s =
format (s,
"enable ");
2305 s =
format (s,
"disable ");
2315 s =
format (0,
"SCRIPT: cop_whitelist_enable_disable ");
2323 s =
format (s,
"default ");
2333 s =
format (0,
"SCRIPT: af_packet_create ");
2336 s =
format (s,
"hw_addr random ");
2348 s =
format (0,
"SCRIPT: af_packet_delete ");
2359 s =
format (0,
"SCRIPT: af_packet_dump ");
2367 u32 action = va_arg (*va,
u32);
2368 u32 dscp = va_arg (*va,
u32);
2374 s =
format (s,
"transmit");
2377 s =
format (s,
"mark-and-transmit ");
2380 #define _(v,f,str) case VNET_DSCP_##f: t = str; break; 2396 s =
format (0,
"SCRIPT: policer_add_del ");
2406 s =
format (s,
"rate_type kbps ");
2409 s =
format (s,
"rate_type pps ");
2418 s =
format (s,
"round_type closest ");
2421 s =
format (s,
"round_type up ");
2424 s =
format (s,
"round_type down ");
2433 s =
format (s,
"type 1r2c ");
2436 s =
format (s,
"type 1r3c ");
2439 s =
format (s,
"type 2r3c-2698 ");
2442 s =
format (s,
"type 2r3c-4115 ");
2445 s =
format (s,
"type 2r3c-mef5cf1 ");
2459 s =
format (s,
"color-aware ");
2471 s =
format (0,
"SCRIPT: policer_dump ");
2483 s =
format (0,
"SCRIPT: policer_classify_set_interface ");
2502 s =
format (0,
"SCRIPT: policer_classify_dump ");
2506 s =
format (s,
"type ip4 ");
2509 s =
format (s,
"type ip6 ");
2512 s =
format (s,
"type l2 ");
2526 s =
format (0,
"SCRIPT: sw_interface_clear_stats ");
2538 s =
format (0,
"SCRIPT: mpls_tunnel_dump ");
2549 s =
format (0,
"SCRIPT: mpls_table_decap_dump ");
2559 s =
format (0,
"SCRIPT: mpls_route_decap_dump ");
2569 s =
format (0,
"SCRIPT: ip_table_dump ");
2579 s =
format (0,
"SCRIPT: ip_route_dump ");
2589 s =
format (0,
"SCRIPT: classify_table_ids ");
2599 s =
format (0,
"SCRIPT: classify_table_by_interface ");
2611 s =
format (0,
"SCRIPT: classify_table_info ");
2623 s =
format (0,
"SCRIPT: classify_session_dump ");
2635 s =
format (0,
"SCRIPT: set_ipfix_exporter ");
2655 s =
format (0,
"SCRIPT: ipfix_exporter_dump ");
2665 s =
format (0,
"SCRIPT: set_ipfix_classify_stream ");
2678 s =
format (0,
"SCRIPT: ipfix_classify_stream_dump ");
2688 s =
format (0,
"SCRIPT: ipfix_classify_table_add_del ");
2702 s =
format (0,
"SCRIPT: ipfix_classify_table_dump ");
2712 s =
format (0,
"SCRIPT: sw_interface_span_enable_disable ");
2722 s =
format (s,
"disable ");
2745 s =
format (0,
"SCRIPT: sw_interface_span_dump ");
2758 s =
format (0,
"SCRIPT: get_next_index ");
2770 s =
format (0,
"SCRIPT: pg_create_interface ");
2783 s =
format (0,
"SCRIPT: pg_capture ");
2786 if (mp->
count != ~0)
2789 s =
format (s,
"disable");
2799 s =
format (0,
"SCRIPT: pg_enable_disable ");
2803 s =
format (s,
"disable");
2814 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_add_del ");
2836 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_interface_add_del ");
2863 s =
format (0,
"SCRIPT: lisp_enable_disable %s",
2864 mp->
is_en ?
"enable" :
"disable");
2874 s =
format (0,
"SCRIPT: gpe_add_del_iface ");
2888 s =
format (0,
"SCRIPT: lisp_pitr_set_locator_set ");
2902 u8 *eid = va_arg (*args,
u8 *);
2903 u32 eid_len = va_arg (*args,
u32);
2923 s =
format (0,
"SCRIPT: lisp_add_del_remote_mapping ");
2926 s =
format (s,
"del-all ");
2929 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2939 rloc_num = clib_net_to_host_u32 (mp->
rloc_num);
2952 s =
format (0,
"SCRIPT: lisp_add_del_adjacency ");
2955 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2956 s =
format (s,
"reid %U leid %U ",
2968 s =
format (0,
"SCRIPT: lisp_add_del_map_request_itr_rlocs ");
2983 s =
format (0,
"SCRIPT: lisp_eid_table_add_del_map ");
2988 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
2990 mp->
is_l2 ?
"bd_index" :
"vrf",
2991 clib_net_to_host_u32 (mp->
dp_table));
3000 s =
format (0,
"SCRIPT: lisp_add_del_local_eid ");
3005 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
3013 s =
format (s,
"secret-key %s", mp->
key);
3023 s =
format (0,
"SCRIPT: gpe_add_del_fwd_entry TODO");
3033 s =
format (0,
"SCRIPT: lisp_add_del_map_resolver ");
3051 s =
format (0,
"SCRIPT: gpe_enable_disable ");
3053 s =
format (s,
"%s ", mp->
is_en ?
"enable" :
"disable");
3063 s =
format (0,
"SCRIPT: lisp_add_del_locator_set ");
3078 s =
format (0,
"SCRIPT: lisp_add_del_locator ");
3095 s =
format (0,
"SCRIPT: lisp_locator_set_dump ");
3098 else if (mp->
filter == 2)
3099 s =
format (s,
"remote");
3109 s =
format (0,
"SCRIPT: lisp_locator_dump ");
3111 s =
format (s,
"ls_index %d", clib_net_to_host_u32 (mp->
ls_index));
3123 s =
format (0,
"SCRIPT: lisp_map_request_mode ");
3128 s =
format (s,
"dst-only");
3131 s =
format (s,
"src-dst");
3144 s =
format (0,
"SCRIPT: lisp_eid_table_dump ");
3148 s =
format (s,
"vni %d ", clib_net_to_host_u32 (mp->
vni));
3154 s =
format (s,
"local ");
3157 s =
format (s,
"remote ");
3169 s =
format (0,
"SCRIPT: lisp_rloc_probe_enable_disable ");
3171 s =
format (s,
"enable");
3173 s =
format (s,
"disable");
3183 s =
format (0,
"SCRIPT: lisp_map_register_enable_disable ");
3185 s =
format (s,
"enable");
3187 s =
format (s,
"disable");
3197 s =
format (0,
"SCRIPT: lisp_adjacencies_get ");
3198 s =
format (s,
"vni %d", clib_net_to_host_u32 (mp->
vni));
3208 s =
format (0,
"SCRIPT: lisp_eid_table_map_dump ");
3223 s =
format (0,
"SCRIPT: ipsec_tunnel_if_add_del ");
3228 s =
format (s,
"anti-replay");
3230 s =
format (s,
"udp-encap");
3260 static const char *policy_strs[] = {
3267 static const char *proto_strs[] = {
3272 static const char *algo_strs[] = {
3288 static const char *integ_strs[] = {
3303 vl_api_ipsec_spd_entry_t *ep;
3304 int policy_host_byte_order;
3306 ep = (vl_api_ipsec_spd_entry_t *) & mp->
entry;
3308 s =
format (0,
"SCRIPT: ipsec_spd_entry ");
3309 s =
format (s,
"is_add %d spd_id %u priority %d is_outbound %d sa_id %u\n",
3311 ntohl (ep->spd_id), ntohl (ep->priority), ep->is_outbound,
3314 policy_host_byte_order = ntohl (ep->policy);
3316 if (policy_host_byte_order <
ARRAY_LEN (policy_strs))
3317 str = policy_strs[policy_host_byte_order];
3321 s =
format (s,
" policy: %s protocol %d\n", str, ep->protocol);
3323 s =
format (s,
" remote_address_start %U remote_address_stop %U\n",
3325 &ep->remote_address_start,
3328 s =
format (s,
" local_address_start %U local_address_stop %U\n",
3330 &ep->local_address_start,
3333 s =
format (s,
" remote_port_start %d remote_port_stop %d\n",
3334 ntohs (ep->remote_port_start), ntohs (ep->remote_port_stop));
3336 s =
format (s,
" local_port_start %d local_port_stop %d ",
3337 ntohs (ep->local_port_start), ntohs (ep->local_port_stop));
3347 s =
format (0,
"SCRIPT: ipsec_interface_add_del_spd ");
3348 s =
format (s,
"is_add %d sw_if_index %d spd_id %u ",
3358 s =
format (0,
"SCRIPT: ipsec_spd_add_del ");
3368 vl_api_ipsec_sad_entry_t *ep;
3369 const char *protocol_str, *algo_str, *integ_str;
3371 protocol_str =
"BOGUS protocol!";
3372 algo_str =
"BOGUS crypto_algorithm!";
3373 integ_str =
"BOGUS integrity_algorithm!";
3375 ep = (vl_api_ipsec_sad_entry_t *) & mp->
entry;
3377 s =
format (0,
"SCRIPT: ipsec_sad_entry_add_del is_add ", mp->
is_add);
3379 tmp = ntohl (ep->protocol);
3381 protocol_str = proto_strs[tmp];
3383 tmp = ntohl (ep->crypto_algorithm);
3385 algo_str = algo_strs[tmp];
3387 tmp = ntohl (ep->integrity_algorithm);
3389 integ_str = integ_strs[tmp];
3391 s =
format (s,
"proto %s crypto alg %s integ alg %s\n",
3392 protocol_str, algo_str, integ_str);
3393 s =
format (s,
" crypto_key len %d value %U\n",
3395 (
int) (ep->crypto_key.length));
3396 s =
format (s,
" integ_key len %d value %U\n",
3398 ep->integrity_key.data, (
int) (ep->integrity_key.length));
3399 s =
format (s,
" flags 0x%x ", ntohl (ep->flags));
3401 s =
format (s,
"tunnel_src %U tunnel_dst %U\n",
3404 s =
format (s,
" tx_table_id %u salt %u ",
3405 ntohl (ep->tx_table_id), ntohl (ep->salt));
3416 s =
format (0,
"SCRIPT: l2_interface_pbb_tag_rewrite ");
3419 s =
format (s,
"vtr_op %d ", vtr_op);
3437 s =
format (0,
"SCRIPT: flow_classify_set_interface ");
3454 s =
format (0,
"SCRIPT: punt ");
3456 switch (clib_net_to_host_u32 (mp->
punt.type))
3461 s =
format (s,
"protocol %d ", mp->
punt.punt.l4.protocol);
3463 if (mp->
punt.punt.l4.port != (
u16) ~ 0)
3464 s =
format (s,
"port %d ", ntohs (mp->
punt.punt.l4.port));
3479 s =
format (0,
"SCRIPT: flow_classify_dump ");
3483 s =
format (s,
"type ip4 ");
3486 s =
format (s,
"type ip6 ");
3500 s =
format (0,
"SCRIPT: get_first_msg_id %s ", mp->
name);
3510 s =
format (0,
"SCRIPT: ioam_enable ");
3513 s =
format (s,
"trace enabled");
3516 s =
format (s,
"POT enabled");
3519 s =
format (s,
"Seqno enabled");
3522 s =
format (s,
"Analyse enabled");
3532 s =
format (0,
"SCRIPT: ioam_disable ");
3533 s =
format (s,
"trace disabled");
3534 s =
format (s,
"POT disabled");
3535 s =
format (s,
"Seqno disabled");
3536 s =
format (s,
"Analyse disabled");
3546 s =
format (0,
"SCRIPT: feature_enable_disable ");
3551 s =
format (s,
"disable");
3561 s =
format (0,
"SCRIPT: sw_interface_tag_add_del ");
3576 s =
format (0,
"SCRIPT: sw_interface_set_mtu ");
3578 s =
format (s,
"tag %d ", ntohs (mp->
mtu));
3588 s =
format (0,
"SCRIPT: p2p_ethernet_add ");
3600 s =
format (0,
"SCRIPT: p2p_ethernet_del ");
3612 s =
format (0,
"SCRIPT: tcp_configure_src_addresses ");
3614 s =
format (s,
"%U - %U ",
3618 s =
format (s,
"%U - %U ",
3635 s =
format (0,
"SCRIPT: app_namespace_add_del ");
3636 s =
format (s,
"ns-id %s secret %lu sw_if_index %d ipv4_fib_id %d " 3652 s =
format (0,
"SCRIPT: sw_interface_set_lldp ");
3668 s =
format (s,
"disable ");
3678 s =
format (0,
"SCRIPT: lldp_config ");
3690 s =
format (0,
"SCRIPT: session_rule_add_del ");
3691 mp->
tag[
sizeof (mp->
tag) - 1] = 0;
3693 s =
format (s,
"appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
3699 s =
format (s,
"appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
3712 s =
format (0,
"SCRIPT: ip_container_proxy_add_del ");
3713 s =
format (s,
"is_add %d prefix %U sw_if_index %d",
3724 s =
format (0,
"SCRIPT: qos_record_enable_disable ");
3725 s =
format (s,
"sw_if_index %d ", ntohl (mp->
record.sw_if_index));
3727 mp->
record.input_source);
3730 s =
format (s,
"disable ");
3735 #define foreach_no_print_function \ 3736 _(memclnt_keepalive_reply) 3739 static void * vl_api_ ## f ## _t_print \ 3740 (vl_api_ ## f ## _t * mp, void * handle) \ 3747 #define foreach_custom_print_no_arg_function \ 3748 _(lisp_eid_table_vni_dump) \ 3749 _(lisp_map_resolver_dump) \ 3750 _(lisp_map_server_dump) \ 3751 _(show_lisp_rloc_probe_state) \ 3752 _(show_lisp_map_register_state) \ 3753 _(show_lisp_map_request_mode) 3756 static void * vl_api_ ## f ## _t_print \ 3757 (vl_api_ ## f ## _t * mp, void * handle) \ 3760 s = format (0, "SCRIPT: " #f ); \ 3765 #define foreach_custom_print_function \ 3766 _(CREATE_LOOPBACK, create_loopback) \ 3767 _(CREATE_LOOPBACK_INSTANCE, create_loopback_instance) \ 3768 _(SW_INTERFACE_SET_FLAGS, sw_interface_set_flags) \ 3769 _(SW_INTERFACE_EVENT, sw_interface_event) \ 3770 _(SW_INTERFACE_ADD_DEL_ADDRESS, sw_interface_add_del_address) \ 3771 _(SW_INTERFACE_SET_TABLE, sw_interface_set_table) \ 3772 _(SW_INTERFACE_SET_MPLS_ENABLE, sw_interface_set_mpls_enable) \ 3773 _(SW_INTERFACE_SET_VPATH, sw_interface_set_vpath) \ 3774 _(SW_INTERFACE_SET_VXLAN_BYPASS, sw_interface_set_vxlan_bypass) \ 3775 _(SW_INTERFACE_SET_GENEVE_BYPASS, sw_interface_set_geneve_bypass) \ 3776 _(BOND_CREATE, bond_create) \ 3777 _(BOND_DELETE, bond_delete) \ 3778 _(BOND_ENSLAVE, bond_enslave) \ 3779 _(BOND_DETACH_SLAVE, bond_detach_slave) \ 3780 _(SW_INTERFACE_SLAVE_DUMP, sw_interface_slave_dump) \ 3781 _(SW_INTERFACE_BOND_DUMP, sw_interface_bond_dump) \ 3782 _(SW_INTERFACE_RX_PLACEMENT_DUMP, sw_interface_rx_placement_dump) \ 3783 _(TAP_CREATE_V2, tap_create_v2) \ 3784 _(TAP_DELETE_V2, tap_delete_v2) \ 3785 _(SW_INTERFACE_TAP_V2_DUMP, sw_interface_tap_v2_dump) \ 3786 _(IP_TABLE_ADD_DEL, ip_table_add_del) \ 3787 _(MPLS_ROUTE_ADD_DEL, mpls_route_add_del) \ 3788 _(MPLS_TABLE_ADD_DEL, mpls_table_add_del) \ 3789 _(IP_ROUTE_ADD_DEL, ip_route_add_del) \ 3790 _(PROXY_ARP_ADD_DEL, proxy_arp_add_del) \ 3791 _(PROXY_ARP_INTFC_ENABLE_DISABLE, proxy_arp_intfc_enable_disable) \ 3792 _(MPLS_TUNNEL_ADD_DEL, mpls_tunnel_add_del) \ 3793 _(SR_MPLS_POLICY_ADD, sr_mpls_policy_add) \ 3794 _(SR_MPLS_POLICY_DEL, sr_mpls_policy_del) \ 3795 _(SW_INTERFACE_SET_UNNUMBERED, sw_interface_set_unnumbered) \ 3796 _(IP_NEIGHBOR_ADD_DEL, ip_neighbor_add_del) \ 3797 _(CREATE_VLAN_SUBIF, create_vlan_subif) \ 3798 _(CREATE_SUBIF, create_subif) \ 3799 _(RESET_FIB, reset_fib) \ 3800 _(DHCP_PROXY_CONFIG, dhcp_proxy_config) \ 3801 _(DHCP_PROXY_SET_VSS, dhcp_proxy_set_vss) \ 3802 _(SET_IP_FLOW_HASH, set_ip_flow_hash) \ 3803 _(SW_INTERFACE_IP6ND_RA_PREFIX, sw_interface_ip6nd_ra_prefix) \ 3804 _(SW_INTERFACE_IP6ND_RA_CONFIG, sw_interface_ip6nd_ra_config) \ 3805 _(SET_ARP_NEIGHBOR_LIMIT, set_arp_neighbor_limit) \ 3806 _(L2_PATCH_ADD_DEL, l2_patch_add_del) \ 3807 _(SR_LOCALSID_ADD_DEL, sr_localsid_add_del) \ 3808 _(SR_STEERING_ADD_DEL, sr_steering_add_del) \ 3809 _(SR_POLICY_ADD, sr_policy_add) \ 3810 _(SR_POLICY_MOD, sr_policy_mod) \ 3811 _(SR_POLICY_DEL, sr_policy_del) \ 3812 _(SW_INTERFACE_SET_L2_XCONNECT, sw_interface_set_l2_xconnect) \ 3813 _(L2FIB_ADD_DEL, l2fib_add_del) \ 3814 _(L2FIB_FLUSH_ALL, l2fib_flush_all) \ 3815 _(L2FIB_FLUSH_BD, l2fib_flush_bd) \ 3816 _(L2FIB_FLUSH_INT, l2fib_flush_int) \ 3817 _(L2_FLAGS, l2_flags) \ 3818 _(BRIDGE_FLAGS, bridge_flags) \ 3819 _(CLASSIFY_ADD_DEL_TABLE, classify_add_del_table) \ 3820 _(CLASSIFY_ADD_DEL_SESSION, classify_add_del_session) \ 3821 _(SW_INTERFACE_SET_L2_BRIDGE, sw_interface_set_l2_bridge) \ 3822 _(BRIDGE_DOMAIN_ADD_DEL, bridge_domain_add_del) \ 3823 _(BRIDGE_DOMAIN_DUMP, bridge_domain_dump) \ 3824 _(BRIDGE_DOMAIN_SET_MAC_AGE, bridge_domain_set_mac_age) \ 3825 _(CLASSIFY_SET_INTERFACE_IP_TABLE, classify_set_interface_ip_table) \ 3826 _(CLASSIFY_SET_INTERFACE_L2_TABLES, classify_set_interface_l2_tables) \ 3827 _(ADD_NODE_NEXT, add_node_next) \ 3828 _(DHCP_CLIENT_CONFIG, dhcp_client_config) \ 3829 _(L2TPV3_CREATE_TUNNEL, l2tpv3_create_tunnel) \ 3830 _(L2TPV3_SET_TUNNEL_COOKIES, l2tpv3_set_tunnel_cookies) \ 3831 _(L2TPV3_INTERFACE_ENABLE_DISABLE, l2tpv3_interface_enable_disable) \ 3832 _(L2TPV3_SET_LOOKUP_KEY, l2tpv3_set_lookup_key) \ 3833 _(SW_IF_L2TPV3_TUNNEL_DUMP, sw_if_l2tpv3_tunnel_dump) \ 3834 _(VXLAN_ADD_DEL_TUNNEL, vxlan_add_del_tunnel) \ 3835 _(VXLAN_TUNNEL_DUMP, vxlan_tunnel_dump) \ 3836 _(VXLAN_OFFLOAD_RX, vxlan_offload_rx) \ 3837 _(GENEVE_ADD_DEL_TUNNEL, geneve_add_del_tunnel) \ 3838 _(GENEVE_TUNNEL_DUMP, geneve_tunnel_dump) \ 3839 _(GRE_TUNNEL_ADD_DEL, gre_tunnel_add_del) \ 3840 _(GRE_TUNNEL_DUMP, gre_tunnel_dump) \ 3841 _(L2_FIB_CLEAR_TABLE, l2_fib_clear_table) \ 3842 _(L2_INTERFACE_EFP_FILTER, l2_interface_efp_filter) \ 3843 _(L2_INTERFACE_VLAN_TAG_REWRITE, l2_interface_vlan_tag_rewrite) \ 3844 _(CREATE_VHOST_USER_IF, create_vhost_user_if) \ 3845 _(MODIFY_VHOST_USER_IF, modify_vhost_user_if) \ 3846 _(DELETE_VHOST_USER_IF, delete_vhost_user_if) \ 3847 _(SW_INTERFACE_DUMP, sw_interface_dump) \ 3848 _(CONTROL_PING, control_ping) \ 3849 _(WANT_INTERFACE_EVENTS, want_interface_events) \ 3851 _(CLI_INBAND, cli_inband) \ 3852 _(MEMCLNT_CREATE, memclnt_create) \ 3853 _(SOCKCLNT_CREATE, sockclnt_create) \ 3854 _(SW_INTERFACE_VHOST_USER_DUMP, sw_interface_vhost_user_dump) \ 3855 _(SHOW_VERSION, show_version) \ 3856 _(L2_FIB_TABLE_DUMP, l2_fib_table_dump) \ 3857 _(VXLAN_GPE_ADD_DEL_TUNNEL, vxlan_gpe_add_del_tunnel) \ 3858 _(VXLAN_GPE_TUNNEL_DUMP, vxlan_gpe_tunnel_dump) \ 3859 _(VXLAN_GBP_TUNNEL_ADD_DEL, vxlan_gbp_tunnel_add_del) \ 3860 _(VXLAN_GBP_TUNNEL_DUMP, vxlan_gbp_tunnel_dump) \ 3861 _(SW_INTERFACE_SET_VXLAN_GBP_BYPASS, sw_interface_set_vxlan_gbp_bypass) \ 3862 _(INTERFACE_NAME_RENUMBER, interface_name_renumber) \ 3863 _(IP_PROBE_NEIGHBOR, ip_probe_neighbor) \ 3864 _(IP_SCAN_NEIGHBOR_ENABLE_DISABLE, ip_scan_neighbor_enable_disable) \ 3865 _(WANT_IP4_ARP_EVENTS, want_ip4_arp_events) \ 3866 _(WANT_IP6_ND_EVENTS, want_ip6_nd_events) \ 3867 _(WANT_L2_MACS_EVENTS, want_l2_macs_events) \ 3868 _(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \ 3869 _(IP_ADDRESS_DUMP, ip_address_dump) \ 3870 _(IP_DUMP, ip_dump) \ 3871 _(DELETE_LOOPBACK, delete_loopback) \ 3872 _(BD_IP_MAC_ADD_DEL, bd_ip_mac_add_del) \ 3873 _(BD_IP_MAC_FLUSH, bd_ip_mac_flush) \ 3874 _(COP_INTERFACE_ENABLE_DISABLE, cop_interface_enable_disable) \ 3875 _(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable) \ 3876 _(AF_PACKET_CREATE, af_packet_create) \ 3877 _(AF_PACKET_DELETE, af_packet_delete) \ 3878 _(AF_PACKET_DUMP, af_packet_dump) \ 3879 _(SW_INTERFACE_CLEAR_STATS, sw_interface_clear_stats) \ 3880 _(MPLS_TABLE_DUMP, mpls_table_dump) \ 3881 _(MPLS_ROUTE_DUMP, mpls_route_dump) \ 3882 _(MPLS_TUNNEL_DUMP, mpls_tunnel_dump) \ 3883 _(CLASSIFY_TABLE_IDS,classify_table_ids) \ 3884 _(CLASSIFY_TABLE_BY_INTERFACE, classify_table_by_interface) \ 3885 _(CLASSIFY_TABLE_INFO,classify_table_info) \ 3886 _(CLASSIFY_SESSION_DUMP,classify_session_dump) \ 3887 _(SET_IPFIX_EXPORTER, set_ipfix_exporter) \ 3888 _(IPFIX_EXPORTER_DUMP, ipfix_exporter_dump) \ 3889 _(SET_IPFIX_CLASSIFY_STREAM, set_ipfix_classify_stream) \ 3890 _(IPFIX_CLASSIFY_STREAM_DUMP, ipfix_classify_stream_dump) \ 3891 _(IPFIX_CLASSIFY_TABLE_ADD_DEL, ipfix_classify_table_add_del) \ 3892 _(IPFIX_CLASSIFY_TABLE_DUMP, ipfix_classify_table_dump) \ 3893 _(SW_INTERFACE_SPAN_ENABLE_DISABLE, sw_interface_span_enable_disable) \ 3894 _(SW_INTERFACE_SPAN_DUMP, sw_interface_span_dump) \ 3895 _(GET_NEXT_INDEX, get_next_index) \ 3896 _(PG_CREATE_INTERFACE,pg_create_interface) \ 3897 _(PG_CAPTURE, pg_capture) \ 3898 _(PG_ENABLE_DISABLE, pg_enable_disable) \ 3899 _(POLICER_ADD_DEL, policer_add_del) \ 3900 _(POLICER_DUMP, policer_dump) \ 3901 _(POLICER_CLASSIFY_SET_INTERFACE, policer_classify_set_interface) \ 3902 _(POLICER_CLASSIFY_DUMP, policer_classify_dump) \ 3903 _(IP_SOURCE_AND_PORT_RANGE_CHECK_ADD_DEL, \ 3904 ip_source_and_port_range_check_add_del) \ 3905 _(IP_SOURCE_AND_PORT_RANGE_CHECK_INTERFACE_ADD_DEL, \ 3906 ip_source_and_port_range_check_interface_add_del) \ 3907 _(LISP_ENABLE_DISABLE, lisp_enable_disable) \ 3908 _(GPE_ENABLE_DISABLE, gpe_enable_disable) \ 3909 _(GPE_ADD_DEL_IFACE, gpe_add_del_iface) \ 3910 _(LISP_PITR_SET_LOCATOR_SET, lisp_pitr_set_locator_set) \ 3911 _(LISP_MAP_REQUEST_MODE, lisp_map_request_mode) \ 3912 _(SHOW_LISP_MAP_REQUEST_MODE, show_lisp_map_request_mode) \ 3913 _(LISP_ADD_DEL_REMOTE_MAPPING, lisp_add_del_remote_mapping) \ 3914 _(LISP_ADD_DEL_ADJACENCY, lisp_add_del_adjacency) \ 3915 _(LISP_ADD_DEL_MAP_REQUEST_ITR_RLOCS, \ 3916 lisp_add_del_map_request_itr_rlocs) \ 3917 _(LISP_EID_TABLE_ADD_DEL_MAP, lisp_eid_table_add_del_map) \ 3918 _(LISP_ADD_DEL_LOCAL_EID, lisp_add_del_local_eid) \ 3919 _(GPE_ADD_DEL_FWD_ENTRY, gpe_add_del_fwd_entry) \ 3920 _(LISP_ADD_DEL_LOCATOR_SET, lisp_add_del_locator_set) \ 3921 _(LISP_ADD_DEL_MAP_RESOLVER, lisp_add_del_map_resolver) \ 3922 _(LISP_ADD_DEL_LOCATOR, lisp_add_del_locator) \ 3923 _(LISP_EID_TABLE_DUMP, lisp_eid_table_dump) \ 3924 _(LISP_EID_TABLE_MAP_DUMP, lisp_eid_table_map_dump) \ 3925 _(LISP_EID_TABLE_VNI_DUMP, lisp_eid_table_vni_dump) \ 3926 _(LISP_MAP_RESOLVER_DUMP, lisp_map_resolver_dump) \ 3927 _(LISP_MAP_SERVER_DUMP, lisp_map_server_dump) \ 3928 _(LISP_LOCATOR_SET_DUMP, lisp_locator_set_dump) \ 3929 _(LISP_LOCATOR_DUMP, lisp_locator_dump) \ 3930 _(LISP_ADJACENCIES_GET, lisp_adjacencies_get) \ 3931 _(SHOW_LISP_RLOC_PROBE_STATE, show_lisp_rloc_probe_state) \ 3932 _(SHOW_LISP_MAP_REGISTER_STATE, show_lisp_map_register_state) \ 3933 _(LISP_RLOC_PROBE_ENABLE_DISABLE, lisp_rloc_probe_enable_disable) \ 3934 _(LISP_MAP_REGISTER_ENABLE_DISABLE, lisp_map_register_enable_disable) \ 3935 _(IPSEC_INTERFACE_ADD_DEL_SPD, ipsec_interface_add_del_spd) \ 3936 _(IPSEC_SAD_ENTRY_ADD_DEL, ipsec_sad_entry_add_del) \ 3937 _(IPSEC_SPD_ADD_DEL, ipsec_spd_add_del) \ 3938 _(IPSEC_SPD_ENTRY_ADD_DEL, ipsec_spd_entry_add_del) \ 3939 _(IPSEC_TUNNEL_IF_ADD_DEL, ipsec_tunnel_if_add_del) \ 3940 _(DELETE_SUBIF, delete_subif) \ 3941 _(L2_INTERFACE_PBB_TAG_REWRITE, l2_interface_pbb_tag_rewrite) \ 3942 _(SET_PUNT, set_punt) \ 3943 _(FLOW_CLASSIFY_SET_INTERFACE, flow_classify_set_interface) \ 3944 _(FLOW_CLASSIFY_DUMP, flow_classify_dump) \ 3945 _(GET_FIRST_MSG_ID, get_first_msg_id) \ 3946 _(IOAM_ENABLE, ioam_enable) \ 3947 _(IOAM_DISABLE, ioam_disable) \ 3948 _(IP_TABLE_DUMP, ip_table_dump) \ 3949 _(IP_ROUTE_DUMP, ip_route_dump) \ 3950 _(FEATURE_ENABLE_DISABLE, feature_enable_disable) \ 3951 _(SW_INTERFACE_TAG_ADD_DEL, sw_interface_tag_add_del) \ 3952 _(HW_INTERFACE_SET_MTU, hw_interface_set_mtu) \ 3953 _(P2P_ETHERNET_ADD, p2p_ethernet_add) \ 3954 _(P2P_ETHERNET_DEL, p2p_ethernet_del) \ 3955 _(TCP_CONFIGURE_SRC_ADDRESSES, tcp_configure_src_addresses) \ 3956 _(APP_NAMESPACE_ADD_DEL, app_namespace_add_del) \ 3957 _(LLDP_CONFIG, lldp_config) \ 3958 _(SW_INTERFACE_SET_LLDP, sw_interface_set_lldp) \ 3959 _(SESSION_RULE_ADD_DEL, session_rule_add_del) \ 3960 _(OUTPUT_ACL_SET_INTERFACE, output_acl_set_interface) \ 3961 _(QOS_RECORD_ENABLE_DISABLE, qos_record_enable_disable) \ 3962 _(MEMCLNT_KEEPALIVE_REPLY, memclnt_keepalive_reply) 3967 #define _(n,f) am->msg_print_handlers[VL_API_##n] \ 3968 = (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)
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
static void * vl_api_create_vhost_user_if_t_print(vl_api_create_vhost_user_if_t *mp, void *handle)
static u8 * format_lisp_flat_eid(u8 *s, va_list *args)
static void * vl_api_sr_mpls_policy_add_t_print(vl_api_sr_mpls_policy_add_t *mp, void *handle)
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)
vl_api_vxlan_gbp_tunnel_t tunnel
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.
IPsec: Add/delete Security Policy Database entry.
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_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)
static void * vl_api_vxlan_offload_rx_t_print(vl_api_vxlan_offload_rx_t *mp, void *handle)
Register for IP6 ND resolution event on recieving NA reply MAC/IP info from ICMP6 Neighbor Solicitati...
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)
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.
static void * vl_api_sw_interface_slave_dump_t_print(vl_api_sw_interface_slave_dump_t *mp, void *handle)
static __clib_unused void * vl_api_virtio_pci_delete_t_print(vl_api_virtio_pci_delete_t *mp, void *handle)
u8 * format_vl_api_mac_address(u8 *s, va_list *args)
#define foreach_create_subif_bit
static void * vl_api_sr_mpls_policy_del_t_print(vl_api_sr_mpls_policy_del_t *mp, void *handle)
static void * vl_api_reset_fib_t_print(vl_api_reset_fib_t *mp, void *handle)
u8 * format_vl_api_fib_path(u8 *s, va_list *args)
static void * vl_api_geneve_tunnel_dump_t_print(vl_api_geneve_tunnel_dump_t *mp, void *handle)
Create or delete a VXLAN-GBP tunnel.
vl_api_l2_port_type_t port_type
static void * vl_api_lisp_add_del_locator_t_print(vl_api_lisp_add_del_locator_t *mp, void *handle)
static void * vl_api_vxlan_gbp_tunnel_dump_t_print(vl_api_vxlan_gbp_tunnel_dump_t *mp, void *handle)
static void * vl_api_cli_inband_t_print(vl_api_cli_inband_t *mp, void *handle)
static void * vl_api_bond_enslave_t_print(vl_api_bond_enslave_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.
static __clib_unused void * vl_api_virtio_pci_create_t_print(vl_api_virtio_pci_create_t *mp, void *handle)
vl_api_ip_neighbor_t neighbor
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_bd_ip_mac_flush_t_print(vl_api_bd_ip_mac_flush_t *mp, void *handle)
static void * vl_api_sr_steering_add_del_t_print(vl_api_sr_steering_add_del_t *mp, void *handle)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
static void * vl_api_ip_table_dump_t_print(vl_api_ip_table_dump_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)
static __clib_unused void * vl_api_show_threads_t_print(vl_api_show_threads_t *mp, void *handle)
Interface set vxlan-bypass request.
u8 * format_vl_api_address(u8 *s, va_list *args)
static void * vl_api_input_acl_set_interface_t_print(vl_api_input_acl_set_interface_t *mp, void *handle)
Set an interface's rx-placement Rx-Queue placement on specific thread is operational for only hardwar...
static void * vl_api_control_ping_t_print(vl_api_control_ping_t *mp, void *handle)
Dump af_packet interfaces request.
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)
#define IP_SCAN_V6_NEIGHBORS
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)
static void * vl_api_mpls_route_dump_t_print(vl_api_mpls_route_dump_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.
for(i=1;i<=collision_buckets;i++)
static void * vl_api_bond_create_t_print(vl_api_bond_create_t *mp, void *handle)
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)
Request for lisp_eid_table_map_details.
Initialize a new virtio pci interface with the given paramters.
Dump virtio pci interfaces request.
Add/Delete classification table request.
IPv6 router advertisement config request.
L2 bridge domain request operational state details.
#define IP_SCAN_V46_NEIGHBORS
static void * vl_api_session_rule_add_del_t_print(vl_api_session_rule_add_del_t *mp, void *handle)
static void * vl_api_output_acl_set_interface_t_print(vl_api_output_acl_set_interface_t *mp, void *handle)
Enable / disable packet generator request.
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
u8 * format_vl_api_ip6_address(u8 *s, va_list *args)
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)
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)
Delete virtio pci interface.
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)
vl_api_address_t remote_ip
vl_api_srv6_sid_list_t sids
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 uword ip46_address_is_multicast(const ip46_address_t *a)
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)
#define clib_memcpy(d, s, n)
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.
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)
vl_api_interface_index_t parent_if_index
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)
u8 * vl_api_from_api_to_vec(vl_api_string_t *astr)
static void * vl_api_lisp_rloc_probe_enable_disable_t_print(vl_api_lisp_rloc_probe_enable_disable_t *mp, void *handle)
static __clib_unused void * vl_api_sw_interface_set_rx_placement_t_print(vl_api_sw_interface_set_rx_placement_t *mp, void *handle)
u8 * format_ethernet_address(u8 *s, va_list *args)
Proxy ARP add / del interface 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.
Add / del table request A table can be added multiple times, but need be deleted only once...
vl_api_interface_index_t sw_if_index
vl_api_srv6_sid_list_t sids
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.
u8 * format_vl_api_address_family(u8 *s, va_list *args)
static u8 * format_policer_action(u8 *s, va_list *va)
static __clib_unused void * vl_api_sw_interface_virtio_pci_dump_t_print(vl_api_sw_interface_virtio_pci_dump_t *mp, void *handle)
Set interface source and L4 port-range request.
Set/unset output ACL interface.
static void * vl_api_ip_table_add_del_t_print(vl_api_ip_table_add_del_t *mp, void *handle)
static void * vl_api_mpls_route_add_del_t_print(vl_api_mpls_route_add_del_t *mp, void *handle)
static void * vl_api_get_next_index_t_print(vl_api_get_next_index_t *mp, void *handle)
vl_api_address_t local_ip
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_qos_record_enable_disable_t_print(vl_api_qos_record_enable_disable_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.
#define IP_SCAN_V4_NEIGHBORS
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)
static __clib_unused void * vl_api_bd_ip_mac_dump_t_print(vl_api_bd_ip_mac_dump_t *mp, void *handle)
static void * vl_api_want_l2_macs_events_t_print(vl_api_want_l2_macs_events_t *mp, void *handle)
vl_api_mac_address_t remote_mac
static void * vl_api_sr_localsid_add_del_t_print(vl_api_sr_localsid_add_del_t *mp, void *handle)
static void * vl_api_ipsec_spd_entry_add_del_t_print(vl_api_ipsec_spd_entry_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)
vl_api_fib_path_t paths[n_paths]
Dump l2 fib (aka bridge domain) table.
Configure IP source and L4 port-range check.
u8 * format_qos_source(u8 *s, va_list *args)
format/unformat QoS source types
vl_api_fib_path_type_t type
vl_api_interface_index_t parent_if_index
static void * vl_api_sw_interface_set_vxlan_gbp_bypass_t_print(vl_api_sw_interface_set_vxlan_gbp_bypass_t *mp, void *handle)
IPsec: Add/delete Security Association Database entry.
Set interface L2 flags (such as L2_LEARN, L2_FWD, L2_FLOOD, L2_UU_FLOOD, or L2_ARP_TERM bits)...
u8 * format_vl_api_prefix(u8 *s, va_list *args)
IP probe neighbor address on an interface by sending an ARP request (for IP4) or ICMP6 Neighbor Solic...
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.
u8 remote_crypto_key[128]
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_rx_placement_dump_t_print(vl_api_sw_interface_rx_placement_dump_t *mp, void *handle)
static void * vl_api_sw_interface_set_lldp_t_print(vl_api_sw_interface_set_lldp_t *mp, void *handle)
static void * vl_api_af_packet_dump_t_print(vl_api_af_packet_dump_t *mp, void *handle)
set LISP map-request mode.
u32 new_show_dev_instance
IPsec: Add/delete Security Policy Database.
static void * vl_api_gre_tunnel_add_del_t_print(vl_api_gre_tunnel_add_del_t *mp, void *handle)
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)
static void * vl_api_ipsec_sad_entry_add_del_t_print(vl_api_ipsec_sad_entry_add_del_t *mp, void *handle)
Request for LISP adjacencies.
Set/unset l2 classification tables for an interface 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]
vl_api_fib_path_t mt_paths[mt_n_paths]
add or delete lisp eid-table
static void * vl_api_gre_tunnel_dump_t_print(vl_api_gre_tunnel_dump_t *mp, void *handle)
MPLS Route Add / del route.
static void * vl_api_classify_add_del_session_t_print(vl_api_classify_add_del_session_t *mp, void *handle)
static void * vl_api_bond_delete_t_print(vl_api_bond_delete_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_sw_interface_bond_dump_t_print(vl_api_sw_interface_bond_dump_t *mp, void *handle)
static __clib_unused void * vl_api_ip_container_proxy_add_del_t_print(vl_api_ip_container_proxy_add_del_t *mp, void *handle)
u32 vl_api_string_len(vl_api_string_t *astr)
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)
static void * vl_api_ip_route_dump_t_print(vl_api_ip_route_dump_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.
vl_api_mpls_route_t mr_route
Enable/Disable QoS recording The QoS bits from the packet at the specified input layer are copied int...
Dump bond interfaces request.
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.
Initialize a new bond interface with the given paramters.
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)
IPsec: Add/delete SPD from interface.
Offload vxlan rx request.
vl_api_srv6_sid_t localsid
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
vl_api_mac_address_t remote_mac
static void * vl_api_policer_add_del_t_print(vl_api_policer_add_del_t *mp, void *handle)
vl_api_gre_tunnel_t tunnel
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
#define vec_free(V)
Free vector's memory (no header).
vl_api_ipsec_sad_entry_t entry
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.
Initialize a new bond interface with the given paramters.
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_bond_detach_slave_t_print(vl_api_bond_detach_slave_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)
Create or delete a VXLAN tunnel.
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
Initialize a new tap interface with the given paramters.
Set/unset flow classify interface.
Request all or filtered subset of sw_interface_details.
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)
static void * vl_api_hw_interface_set_mtu_t_print(vl_api_hw_interface_set_mtu_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.
Dump bridge domain IP to MAC entries.
static void * vl_api_ipsec_tunnel_if_add_del_t_print(vl_api_ipsec_tunnel_if_add_del_t *mp, void *handle)
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)
static void * vl_api_ip_route_add_del_t_print(vl_api_ip_route_add_del_t *mp, void *handle)
static void * vl_api_ipsec_interface_add_del_spd_t_print(vl_api_ipsec_interface_add_del_spd_t *mp, void *handle)
vl_api_mpls_table_t mt_table
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)
vl_api_interface_index_t sw_if_index
u8 * format_vl_api_ip4_address(u8 *s, va_list *args)
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
vl_api_qos_record_t record
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)
static void * vl_api_ip_probe_neighbor_t_print(vl_api_ip_probe_neighbor_t *mp, void *handle)
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 receive L2 MAC events for learned 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_set_punt_t_print(vl_api_set_punt_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)
Punt traffic to the host.
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
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_sr_policy_mod_t_print(vl_api_sr_policy_mod_t *mp, void *handle)
Classify table ids by interface index request.
Interface set vxlan-bypass request.
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.
vl_api_srv6_sid_t sids[16]
static void * vl_api_want_ip4_arp_events_t_print(vl_api_want_ip4_arp_events_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)
vl_api_ipsec_spd_entry_t entry
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_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)
Enable/disable periodic IP neighbor scan.
Set interface physical MTU.
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)
#define foreach_no_print_function
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.
vl_api_dhcp_client_t client
add or delete remote static mapping
Segment Routing MPLS data structures definitions.
L2 interface vlan tag rewrite configure request.
static u8 * format_bond_mode(u8 *s, va_list *args)
Create a new subinterface with the given vlan id.
static void * vl_api_mpls_table_dump_t_print(vl_api_mpls_table_dump_t *mp, void *handle)
static void * vl_api_ip_scan_neighbor_enable_disable_t_print(vl_api_ip_scan_neighbor_enable_disable_t *mp, void *handle)
static void * vl_api_mpls_table_add_del_t_print(vl_api_mpls_table_add_del_t *mp, void *handle)
L2 interface patch add / del request.
vl_api_fib_path_t mr_paths[mr_n_paths]
Dump IP routes from a table.
dump the rx queue placement of interface(s)
u8 * vl_api_from_api_string(vl_api_string_t *astr)
Interface set vpath request.
static void * vl_api_ipfix_exporter_dump_t_print(vl_api_ipfix_exporter_dump_t *mp, void *handle)
configure global parameter for LLDP
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)
static void * vl_api_ipsec_spd_add_del_t_print(vl_api_ipsec_spd_add_del_t *mp, void *handle)
IPv6 SR policy modification.
Register for IP4 ARP resolution event on receing ARP reply or MAC/IP info from ARP requests in L2 BDs...
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.
Set bridge flags request.
IPFIX classify stream dump request.
static void * vl_api_vxlan_gbp_tunnel_add_del_t_print(vl_api_vxlan_gbp_tunnel_add_del_t *mp, void *handle)
static u8 * format_bond_load_balance(u8 *s, va_list *args)
vhost-user interface delete request
vl_api_mpls_tunnel_t mt_tunnel
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)
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)
Flush bridge domain IP to MAC entries.
Add or delete IPsec tunnel interface.
IPFIX add or delete classifier table request.
format_function_t format_vlib_pci_addr
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)
vl_api_fib_path_nh_proto_t proto
DHCP Proxy config add / del request.
u32 unnumbered_sw_if_index
vl_api_interface_index_t 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.
show_threads display the information about vpp threads running on system along with their process id...