65 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 69 vl_print (handle, (char *)s); \ 79 s =
format (0,
"SCRIPT: create_loopback ");
90 s =
format (0,
"SCRIPT: create_loopback ");
102 s =
format (0,
"SCRIPT: delete_loopback ");
112 s =
format (0,
"SCRIPT: sw_interface_set_flags ");
117 s =
format (s,
"admin-up ");
119 s =
format (s,
"admin-down ");
129 s =
format (0,
"SCRIPT: sw_interface_set_rx_placement ");
148 s =
format (0,
"SCRIPT: sw_interface_rx_placement_dump ");
150 if (sw_if_index != ~0)
151 s =
format (s,
"sw_if_index %d ", sw_if_index);
160 s =
format (0,
"SCRIPT: sw_interface_event ");
165 s =
format (s,
"admin-up ");
167 s =
format (s,
"admin-down ");
170 s =
format (s,
"link-up");
172 s =
format (s,
"link-down");
175 s =
format (s,
" deleted");
186 s =
format (0,
"SCRIPT: sw_interface_add_del_address ");
192 s =
format (s,
"del-all ");
202 s =
format (0,
"SCRIPT: sw_interface_set_table ");
220 s =
format (0,
"SCRIPT: sw_interface_set_mpls_enable ");
225 s =
format (s,
"disable");
235 s =
format (0,
"SCRIPT: sw_interface_set_vpath ");
240 s =
format (s,
"enable ");
242 s =
format (s,
"disable ");
252 s =
format (0,
"SCRIPT: sw_interface_set_vxlan_bypass ");
260 s =
format (s,
"enable ");
262 s =
format (s,
"disable ");
272 s =
format (0,
"SCRIPT: sw_interface_set_geneve_bypass ");
280 s =
format (s,
"enable ");
282 s =
format (s,
"disable ");
292 s =
format (0,
"SCRIPT: sw_interface_set_l2_xconnect ");
301 s =
format (s,
"delete ");
311 s =
format (0,
"SCRIPT: sw_interface_set_l2_bridge ");
321 s =
format (s,
"uu-fwd ");
325 s =
format (s,
"disable ");
335 s =
format (0,
"SCRIPT: bridge_domain_add_del ");
358 s =
format (0,
"SCRIPT: bridge_domain_set_mac_age ");
373 s =
format (0,
"SCRIPT: bridge_domain_dump ");
376 s =
format (s,
"bd_id %d ", bd_id);
386 s =
format (0,
"SCRIPT: l2fib_flush_all ");
398 s =
format (0,
"SCRIPT: l2fib_flush_bd ");
399 s =
format (s,
"bd_id %d ", bd_id);
410 s =
format (0,
"SCRIPT: l2fib_flush_int ");
411 s =
format (s,
"sw_if_index %d ", sw_if_index);
421 s =
format (0,
"SCRIPT: l2fib_add_del ");
432 s =
format (s,
"%s",
"static ");
434 s =
format (s,
"%s",
"filter ");
436 s =
format (s,
"%s",
"bvi ");
452 s =
format (0,
"SCRIPT: l2_flags ");
459 s =
format (s,
"forward ");
463 s =
format (s,
"uu-flood ");
465 s =
format (s,
"arp-term ");
479 s =
format (0,
"SCRIPT: bridge_flags ");
486 s =
format (s,
"forward ");
490 s =
format (s,
"uu-flood ");
492 s =
format (s,
"arp-term ");
505 s =
format (0,
"SCRIPT: bd_ip_mac_add_del ");
521 s =
format (0,
"SCRIPT: bd_ip_mac_flush ");
533 s =
format (0,
"SCRIPT: bd_ip_mac_dump ");
546 s =
format (0,
"SCRIPT: tap_create_v2 ");
549 s =
format (s,
"mac-address %U ",
552 s =
format (s,
"host-mac-addr %U ",
583 s =
format (s,
"gso-enabled ");
585 s =
format (s,
"csum-offload-enabled ");
587 s =
format (s,
"persist ");
589 s =
format (s,
"attach ");
593 s =
format (s,
"gro-coalesce-enabled ");
595 s =
format (s,
"packed ");
597 s =
format (s,
"in-order ");
606 s =
format (0,
"SCRIPT: tap_delete_v2 ");
617 s =
format (0,
"SCRIPT: sw_interface_tap_v2_dump ");
631 s =
format (0,
"SCRIPT: virtio_pci_create ");
634 s =
format (s,
"mac-address %U ",
637 s =
format (s,
"features 0x%llx ", clib_net_to_host_u64 (mp->
features));
639 s =
format (s,
"gso-enabled ");
641 s =
format (s,
"checksum_offload_enabled");
654 s =
format (0,
"SCRIPT: virtio_pci_create_v2 ");
657 s =
format (s,
"mac-address %U ",
660 s =
format (s,
"features 0x%llx ", clib_net_to_host_u64 (mp->
features));
662 s =
format (s,
"gso-enabled ");
664 s =
format (s,
"checksum_offload_enabled ");
666 s =
format (s,
"gro-coalesce-enabled ");
668 s =
format (s,
"packed ");
670 s =
format (s,
"in-order ");
680 s =
format (0,
"SCRIPT: virtio_pci_delete ");
692 s =
format (0,
"SCRIPT: sw_interface_virtio_pci_dump ");
705 s =
format (0,
"SCRIPT: bond_create ");
707 s =
format (s,
"mac-address %U ",
714 s =
format (s,
"numa-only is set in lacp mode");
728 s =
format (0,
"SCRIPT: bond_create2 ");
730 s =
format (s,
"mac-address %U ",
737 s =
format (s,
"numa-only ");
750 s =
format (0,
"SCRIPT: bond_delete ");
761 s =
format (0,
"SCRIPT: bond_add_member ");
765 s =
format (s,
"passive ");
767 s =
format (s,
"long-timeout ");
777 s =
format (0,
"SCRIPT: sw_interface_set_bond_weight ");
789 s =
format (0,
"SCRIPT: bond_detach_member ");
800 s =
format (0,
"SCRIPT: sw_bond_interface_dump ");
812 s =
format (0,
"SCRIPT: sw_member_interface_dump ");
823 s =
format (0,
"SCRIPT: ip_route_add_del ");
829 for (p = 0; p < mp->
route.n_paths; p++)
840 s =
format (0,
"SCRIPT: mpls_route_add_del ");
853 s =
format (s,
"non-eos ");
856 s =
format (s,
"multicast ");
858 for (p = 0; p < mp->
mr_route.mr_n_paths; p++)
871 s =
format (0,
"SCRIPT: ip_table_add_del ");
876 if (mp->
table.is_ip6)
889 s =
format (0,
"SCRIPT: mpls_table_add_del ");
904 s =
format (0,
"SCRIPT: mpls_tunnel_add_del ");
913 s =
format (s,
"l2-only ");
915 s =
format (s,
"multicast ");
917 s =
format (s,
"tunnel-index ");
919 for (p = 0; p < mp->
mt_tunnel.mt_n_paths; p++)
931 s =
format (0,
"SCRIPT: sr_mpls_policy_add ");
956 s =
format (0,
"SCRIPT: sr_mpls_policy_del ");
968 s =
format (0,
"SCRIPT: sw_interface_set_unnumbered ");
985 s =
format (0,
"SCRIPT: create_vlan_subif ");
996 #define foreach_create_subif_flag \ 1001 _(4, "exact_match") \ 1002 _(5, "default_sub") \ 1003 _(6, "outer_vlan_id_any") \ 1004 _(7, "inner_vlan_id_any") 1011 s =
format (0,
"SCRIPT: create_subif ");
1023 #define _(a,b) if (mp->sub_if_flags & (1 << a)) s = format (s, "%s ", b); 1035 s =
format (0,
"SCRIPT: delete_subif ");
1047 s =
format (0,
"SCRIPT: ip_table_replace_begin ");
1049 s =
format (s,
"v%s-table %d ",
1050 mp->
table.is_ip6 ?
"6" :
"4", (mp->
table.table_id));
1060 s =
format (0,
"SCRIPT: ip_table_flush ");
1062 s =
format (s,
"v%s-table %d ",
1063 mp->
table.is_ip6 ?
"6" :
"4", (mp->
table.table_id));
1074 s =
format (0,
"SCRIPT: ip_table_replace_end ");
1076 s =
format (s,
"v%s-table %d ",
1077 mp->
table.is_ip6 ?
"6" :
"4", (mp->
table.table_id));
1087 s =
format (0,
"SCRIPT: set_ip_flow_hash ");
1098 s =
format (s,
"sport ");
1101 s =
format (s,
"dport ");
1104 s =
format (s,
"proto ");
1107 s =
format (s,
"reverse ");
1121 s =
format (0,
"SCRIPT: l2_patch_add_del ");
1139 s =
format (0,
"SCRIPT: sr_localsid_add_del ");
1144 s =
format (s,
"Address: %U\nBehavior: End",
1146 s =
format (s, (mp->
end_psp ?
"End.PSP: True" :
"End.PSP: False"));
1151 "Address: %U\nBehavior: X (Endpoint with Layer-3 cross-connect)" 1156 s =
format (s, (mp->
end_psp ?
"End.PSP: True" :
"End.PSP: False"));
1161 "Address: %U\nBehavior: DX4 (Endpoint with decapsulation with IPv4 cross-connect)" 1170 "Address: %U\nBehavior: DX6 (Endpoint with decapsulation with IPv6 cross-connect)" 1179 "Address: %U\nBehavior: DX2 (Endpoint with decapulation and Layer-2 cross-connect)" 1187 "Address: %U\nBehavior: DT6 (Endpoint with decapsulation and specific IPv6 table lookup)" 1194 "Address: %U\nBehavior: DT4 (Endpoint with decapsulation and specific IPv4 table lookup)" 1201 s =
format (s,
"Address: %U\n Behavior: %u",
1207 s =
format (s,
"Internal error");
1218 s =
format (0,
"SCRIPT: sr_steering_add_del ");
1220 s =
format (s, (mp->
is_del ?
"Del: True" :
"Del: False"));
1234 (ip6_address_t *) mp->
prefix.address.un.ip6,
1256 ip6_address_t *segments = 0, *seg;
1257 ip6_address_t *this_address = (ip6_address_t *) mp->
sids.sids;
1263 clib_memcpy (seg->as_u8, this_address->as_u8, sizeof (*this_address));
1267 s =
format (0,
"SCRIPT: sr_policy_add ");
1274 (mp->
is_encap ?
"Behavior: Encapsulation" :
1275 "Behavior: SRH insertion"));
1279 s =
format (s, (mp->
is_spray ?
"Type: Default" :
"Type: Spray"));
1288 s =
format (s,
"\b\b } ");
1298 ip6_address_t *segments = 0, *seg;
1299 ip6_address_t *this_address = (ip6_address_t *) mp->
sids.sids;
1305 clib_memcpy (seg->as_u8, this_address->as_u8, sizeof (*this_address));
1309 s =
format (0,
"SCRIPT: sr_policy_mod ");
1327 s =
format (s,
"\b\b } ");
1337 s =
format (0,
"SCRIPT: sr_policy_del ");
1338 s =
format (s,
"To be delivered. Good luck.");
1348 s =
format (0,
"SCRIPT: classify_add_del_table ");
1366 s =
format (s,
"mask hex ");
1381 s =
format (0,
"SCRIPT: classify_add_del_session ");
1393 s =
format (s,
"match hex ");
1394 for (i = 5 *
sizeof (
u32x4) - 1; i > 0; i--)
1396 if (mp->
match[i] != 0)
1403 for (i = 0; i < limit; i++)
1414 s =
format (0,
"SCRIPT: classify_set_interface_ip_table ");
1430 s =
format (0,
"SCRIPT: classify_set_interface_l2_tables ");
1446 s =
format (0,
"SCRIPT: add_node_next ");
1458 s =
format (0,
"SCRIPT: l2tpv3_create_tunnel ");
1460 s =
format (s,
"client_address %U our_address %U ",
1466 s =
format (s,
"local_cookie %lld ",
1468 s =
format (s,
"remote_cookie %lld ",
1471 s =
format (s,
"l2-sublayer-present ");
1481 s =
format (0,
"SCRIPT: l2tpv3_set_tunnel_cookies ");
1485 s =
format (s,
"new_local_cookie %llu ",
1488 s =
format (s,
"new_remote_cookie %llu ",
1499 s =
format (0,
"SCRIPT: l2tpv3_interface_enable_disable ");
1513 char *str =
"unknown";
1515 s =
format (0,
"SCRIPT: l2tpv3_set_lookup_key ");
1520 str =
"lookup_v6_src";
1523 str =
"lookup_v6_dst";
1526 str =
"lookup_session_id";
1532 s =
format (s,
"%s ", str);
1542 s =
format (0,
"SCRIPT: sw_if_l2tpv3_tunnel_dump ");
1551 s =
format (0,
"SCRIPT: vxlan_add_del_tunnel ");
1553 ip46_address_t
src =
1555 ip46_address_t
dst =
1559 char *dst_name = is_grp ?
"group" :
"dst";
1587 s =
format (0,
"SCRIPT: vxlan_offload_rx ");
1602 s =
format (0,
"SCRIPT: vxlan_tunnel_dump ");
1613 s =
format (0,
"SCRIPT: vxlan_gbp_tunnel_add_del ");
1623 s =
format (s,
"mcast_sw_if_index %d ", (mp->
tunnel.mcast_sw_if_index));
1624 s =
format (s,
"encap_table_id %d ", (mp->
tunnel.encap_table_id));
1626 s =
format (s,
"sw_if_index %d ", (mp->
tunnel.sw_if_index));
1636 s =
format (0,
"SCRIPT: vxlan_gbp_tunnel_dump ");
1648 s =
format (0,
"SCRIPT: sw_interface_set_vxlan_gbp_bypass ");
1651 s =
format (s,
"%s ", (mp->
is_ipv6 != 0) ?
"ipv6" :
"ipv4");
1652 s =
format (s,
"%s ", (mp->
enable != 0) ?
"enable" :
"disable");
1661 s =
format (0,
"SCRIPT: geneve_add_del_tunnel ");
1663 ip46_address_t local;
1664 ip46_address_t remote;
1669 char *remote_name = is_grp ?
"group" :
"dst";
1696 s =
format (0,
"SCRIPT: geneve_tunnel_dump ");
1708 s =
format (0,
"SCRIPT: gre_tunnel_add_del ");
1721 if (mp->
tunnel.outer_table_id)
1722 s =
format (s,
"outer-table-id %d ", mp->
tunnel.outer_table_id);
1735 s =
format (0,
"SCRIPT: gre_tunnel_dump ");
1747 s =
format (0,
"SCRIPT: l2_fib_clear_table ");
1757 s =
format (0,
"SCRIPT: l2_interface_efp_filter ");
1761 s =
format (s,
"enable ");
1763 s =
format (s,
"disable ");
1773 s =
format (0,
"SCRIPT: l2_interface_vlan_tag_rewrite ");
1789 s =
format (0,
"SCRIPT: create_vhost_user_if ");
1793 s =
format (s,
"server ");
1797 s =
format (s,
"disable_mrg_rxbuf ");
1799 s =
format (s,
"disable_indirect_desc ");
1805 s =
format (s,
"packed");
1815 s =
format (0,
"SCRIPT: modify_vhost_user_if ");
1820 s =
format (s,
"server ");
1826 s =
format (s,
"packed");
1836 s =
format (0,
"SCRIPT: delete_vhost_user_if ");
1847 s =
format (0,
"SCRIPT: sw_interface_vhost_user_dump ");
1859 s =
format (0,
"SCRIPT: sw_interface_dump ");
1864 s =
format (s,
"name_filter %v ", v);
1878 s =
format (0,
"SCRIPT: l2_fib_table_dump ");
1890 s =
format (0,
"SCRIPT: control_ping ");
1900 s =
format (0,
"SCRIPT: want_interface_events pid %d enable %d ",
1911 s =
format (0,
"SCRIPT: cli ");
1924 s =
format (0,
"SCRIPT: exec %v ", cmd);
1935 s =
format (0,
"SCRIPT: memclnt_create name %s ", mp->
name);
1945 s =
format (0,
"SCRIPT: sockclnt_create name %s ", mp->
name);
1955 s =
format (0,
"SCRIPT: show_version ");
1966 s =
format (0,
"SCRIPT: show_threads ");
1976 s =
format (0,
"SCRIPT: vxlan_gpe_add_del_tunnel ");
1978 ip46_address_t local, remote;
1984 char *remote_name = is_grp ?
"group" :
"remote";
2013 s =
format (0,
"SCRIPT: vxlan_gpe_tunnel_dump ");
2025 s =
format (0,
"SCRIPT: interface_renumber ");
2039 s =
format (0,
"SCRIPT: want_l2_macs_events ");
2044 s =
format (s,
"disable");
2054 s =
format (0,
"SCRIPT: input_acl_set_interface ");
2072 s =
format (0,
"SCRIPT: output_acl_set_interface ");
2090 s =
format (0,
"SCRIPT: ip6_address_dump ");
2102 s =
format (0,
"SCRIPT: ip_dump ");
2113 s =
format (0,
"SCRIPT: cop_interface_enable_disable ");
2116 s =
format (s,
"enable ");
2118 s =
format (s,
"disable ");
2128 s =
format (0,
"SCRIPT: cop_whitelist_enable_disable ");
2136 s =
format (s,
"default ");
2146 s =
format (0,
"SCRIPT: af_packet_create ");
2149 s =
format (s,
"hw_addr random ");
2161 s =
format (0,
"SCRIPT: af_packet_delete ");
2172 s =
format (0,
"SCRIPT: af_packet_dump ");
2187 s =
format (s,
"transmit");
2190 s =
format (s,
"mark-and-transmit ");
2193 #define _(v,f,str) case VNET_DSCP_##f: t = str; break; 2209 s =
format (0,
"SCRIPT: policer_add_del ");
2219 s =
format (s,
"rate_type kbps ");
2222 s =
format (s,
"rate_type pps ");
2231 s =
format (s,
"round_type closest ");
2234 s =
format (s,
"round_type up ");
2237 s =
format (s,
"round_type down ");
2246 s =
format (s,
"type 1r2c ");
2249 s =
format (s,
"type 1r3c ");
2252 s =
format (s,
"type 2r3c-2698 ");
2255 s =
format (s,
"type 2r3c-4115 ");
2258 s =
format (s,
"type 2r3c-mef5cf1 ");
2272 s =
format (s,
"color-aware ");
2284 s =
format (0,
"SCRIPT: policer_dump ");
2296 s =
format (0,
"SCRIPT: policer_classify_set_interface ");
2315 s =
format (0,
"SCRIPT: policer_classify_dump ");
2319 s =
format (s,
"type ip4 ");
2322 s =
format (s,
"type ip6 ");
2325 s =
format (s,
"type l2 ");
2339 s =
format (0,
"SCRIPT: sw_interface_clear_stats ");
2351 s =
format (0,
"SCRIPT: mpls_tunnel_dump ");
2362 s =
format (0,
"SCRIPT: mpls_table_decap_dump ");
2372 s =
format (0,
"SCRIPT: mpls_route_decap_dump ");
2382 s =
format (0,
"SCRIPT: ip_table_dump ");
2392 s =
format (0,
"SCRIPT: ip_route_dump ");
2402 s =
format (0,
"SCRIPT: classify_table_ids ");
2412 s =
format (0,
"SCRIPT: classify_table_by_interface ");
2424 s =
format (0,
"SCRIPT: classify_table_info ");
2436 s =
format (0,
"SCRIPT: classify_session_dump ");
2448 s =
format (0,
"SCRIPT: set_ipfix_exporter ");
2468 s =
format (0,
"SCRIPT: ipfix_exporter_dump ");
2478 s =
format (0,
"SCRIPT: set_ipfix_classify_stream ");
2491 s =
format (0,
"SCRIPT: ipfix_classify_stream_dump ");
2501 s =
format (0,
"SCRIPT: ipfix_classify_table_add_del ");
2515 s =
format (0,
"SCRIPT: ipfix_classify_table_dump ");
2525 s =
format (0,
"SCRIPT: sw_interface_span_enable_disable ");
2535 s =
format (s,
"disable ");
2558 s =
format (0,
"SCRIPT: sw_interface_span_dump ");
2571 s =
format (0,
"SCRIPT: get_next_index ");
2583 s =
format (0,
"SCRIPT: pg_create_interface ");
2596 s =
format (0,
"SCRIPT: pg_capture ");
2599 if (mp->
count != ~0)
2602 s =
format (s,
"disable");
2612 s =
format (0,
"SCRIPT: pg_enable_disable ");
2618 s =
format (s,
"disable");
2628 s =
format (0,
"SCRIPT: pg_interface_enable_disable_coalesce ");
2631 s =
format (s,
"disable");
2633 s =
format (s,
"enable");
2644 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_add_del ");
2666 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_interface_add_del ");
2693 s =
format (0,
"SCRIPT: lisp_enable_disable %s",
2704 s =
format (0,
"SCRIPT: gpe_add_del_iface ");
2718 s =
format (0,
"SCRIPT: lisp_pitr_set_locator_set ");
2732 return format (s,
"SPI:%d SI:%d", clib_net_to_host_u32 (a->
spi), a->
si);
2738 vl_api_eid_t *
eid = va_arg (*args, vl_api_eid_t *);
2743 if (eid->address.prefix.address.af)
2745 eid->address.prefix.address.un.ip6,
2746 eid->address.prefix.len);
2748 eid->address.prefix.address.un.ip4,
2749 eid->address.prefix.len);
2764 s =
format (0,
"SCRIPT: lisp_add_del_remote_mapping ");
2767 s =
format (s,
"del-all ");
2791 s =
format (0,
"SCRIPT: lisp_add_del_adjacency ");
2795 s =
format (s,
"reid %U leid %U ",
2807 s =
format (0,
"SCRIPT: lisp_add_del_map_request_itr_rlocs ");
2822 s =
format (0,
"SCRIPT: lisp_eid_table_add_del_map ");
2837 s =
format (0,
"SCRIPT: lisp_add_del_local_eid ");
2849 s =
format (s,
"secret-key %s", mp->
key.key);
2859 s =
format (0,
"SCRIPT: gpe_add_del_fwd_entry TODO");
2869 s =
format (0,
"SCRIPT: lisp_add_del_map_resolver ");
2887 s =
format (0,
"SCRIPT: gpe_enable_disable ");
2899 s =
format (0,
"SCRIPT: lisp_add_del_locator_set ");
2914 s =
format (0,
"SCRIPT: lisp_add_del_locator ");
2931 s =
format (0,
"SCRIPT: lisp_locator_set_dump ");
2934 else if (mp->
filter == 2)
2935 s =
format (s,
"remote");
2945 s =
format (0,
"SCRIPT: lisp_locator_dump ");
2959 s =
format (0,
"SCRIPT: lisp_map_request_mode ");
2971 s =
format (0,
"SCRIPT: lisp_eid_table_dump ");
2980 s =
format (s,
"local ");
2983 s =
format (s,
"remote ");
2997 s =
format (0,
"SCRIPT: lisp_rloc_probe_enable_disable ");
2999 s =
format (s,
"enable");
3001 s =
format (s,
"disable");
3011 s =
format (0,
"SCRIPT: lisp_map_register_enable_disable ");
3013 s =
format (s,
"enable");
3015 s =
format (s,
"disable");
3025 s =
format (0,
"SCRIPT: lisp_adjacencies_get ");
3036 s =
format (0,
"SCRIPT: lisp_eid_table_map_dump ");
3051 s =
format (0,
"SCRIPT: ipsec_tunnel_if_add_del ");
3056 s =
format (s,
"anti-replay");
3058 s =
format (s,
"udp-encap");
3088 static const char *policy_strs[] = {
3095 static const char *algo_strs[] = {
3111 static const char *integ_strs[] = {
3126 vl_api_ipsec_spd_entry_t *ep;
3127 int policy_host_byte_order;
3129 ep = (vl_api_ipsec_spd_entry_t *) & mp->
entry;
3131 s =
format (0,
"SCRIPT: ipsec_spd_entry ");
3132 s =
format (s,
"is_add %d spd_id %u priority %d is_outbound %d sa_id %u\n",
3134 (ep->spd_id), ntohl (ep->priority), ep->is_outbound,
3137 policy_host_byte_order = (ep->policy);
3139 if (policy_host_byte_order <
ARRAY_LEN (policy_strs))
3140 str = policy_strs[policy_host_byte_order];
3144 s =
format (s,
" policy: %s protocol %d\n", str, ep->protocol);
3146 s =
format (s,
" remote_address_start %U remote_address_stop %U\n",
3148 &ep->remote_address_start,
3151 s =
format (s,
" local_address_start %U local_address_stop %U\n",
3153 &ep->local_address_start,
3156 s =
format (s,
" remote_port_start %d remote_port_stop %d\n",
3157 (ep->remote_port_start),
ntohs (ep->remote_port_stop));
3159 s =
format (s,
" local_port_start %d local_port_stop %d ",
3160 (ep->local_port_start),
ntohs (ep->local_port_stop));
3170 s =
format (0,
"SCRIPT: ipsec_interface_add_del_spd ");
3171 s =
format (s,
"is_add %d sw_if_index %d spd_id %u ",
3181 s =
format (0,
"SCRIPT: ipsec_spd_add_del ");
3191 vl_api_ipsec_sad_entry_t *ep;
3192 const char *protocol_str, *algo_str, *integ_str;
3194 protocol_str =
"BOGUS protocol!";
3195 algo_str =
"BOGUS crypto_algorithm!";
3196 integ_str =
"BOGUS integrity_algorithm!";
3198 ep = (vl_api_ipsec_sad_entry_t *) & mp->
entry;
3200 s =
format (0,
"SCRIPT: ipsec_sad_entry_add_del is_add %d ", mp->
is_add);
3202 tmp = (ep->protocol);
3204 protocol_str =
"ESP";
3206 protocol_str =
"AH";
3208 tmp = (ep->crypto_algorithm);
3210 algo_str = algo_strs[tmp];
3212 tmp = (ep->integrity_algorithm);
3214 integ_str = integ_strs[tmp];
3216 s =
format (s,
"proto %s crypto alg %s integ alg %s\n",
3217 protocol_str, algo_str, integ_str);
3218 s =
format (s,
" crypto_key len %d value %U\n",
3220 (
int) (ep->crypto_key.length));
3221 s =
format (s,
" integ_key len %d value %U\n",
3223 ep->integrity_key.data, (
int) (ep->integrity_key.length));
3224 s =
format (s,
" flags 0x%x ", (ep->flags));
3226 s =
format (s,
"tunnel_src %U tunnel_dst %U\n",
3229 s =
format (s,
" tx_table_id %u salt %u ",
3230 (ep->tx_table_id), ntohl (ep->salt));
3241 s =
format (0,
"SCRIPT: l2_interface_pbb_tag_rewrite ");
3244 s =
format (s,
"vtr_op %d ", vtr_op);
3262 s =
format (0,
"SCRIPT: flow_classify_set_interface ");
3279 s =
format (0,
"SCRIPT: punt ");
3281 switch (mp->
punt.type)
3286 s =
format (s,
"protocol %d ", mp->
punt.punt.l4.protocol);
3288 if (mp->
punt.punt.l4.port != (
u16) ~ 0)
3289 s =
format (s,
"port %d ", (mp->
punt.punt.l4.port));
3307 s =
format (0,
"SCRIPT: flow_classify_dump ");
3311 s =
format (s,
"type ip4 ");
3314 s =
format (s,
"type ip6 ");
3328 s =
format (0,
"SCRIPT: get_first_msg_id %s ", mp->
name);
3338 s =
format (0,
"SCRIPT: ioam_enable ");
3341 s =
format (s,
"trace enabled");
3344 s =
format (s,
"POT enabled");
3347 s =
format (s,
"Seqno enabled");
3350 s =
format (s,
"Analyse enabled");
3360 s =
format (0,
"SCRIPT: ioam_disable ");
3361 s =
format (s,
"trace disabled");
3362 s =
format (s,
"POT disabled");
3363 s =
format (s,
"Seqno disabled");
3364 s =
format (s,
"Analyse disabled");
3374 s =
format (0,
"SCRIPT: feature_enable_disable ");
3379 s =
format (s,
"disable");
3389 s =
format (0,
"SCRIPT: feature_gso_enable_disable ");
3392 s =
format (s,
"enable");
3394 s =
format (s,
"disable");
3404 s =
format (0,
"SCRIPT: sw_interface_tag_add_del ");
3419 s =
format (0,
"SCRIPT: sw_interface_set_mtu ");
3431 s =
format (0,
"SCRIPT: p2p_ethernet_add ");
3443 s =
format (0,
"SCRIPT: p2p_ethernet_del ");
3455 s =
format (0,
"SCRIPT: tcp_configure_src_addresses ");
3456 s =
format (s,
"%U - %U ",
3471 s =
format (0,
"SCRIPT: app_namespace_add_del ");
3472 s =
format (s,
"ns-id %s secret %lu sw_if_index %d ipv4_fib_id %d " 3488 s =
format (0,
"SCRIPT: sw_interface_set_lldp ");
3504 s =
format (s,
"disable ");
3514 s =
format (0,
"SCRIPT: lldp_config ");
3527 s =
format (0,
"SCRIPT: session_rule_add_del ");
3528 mp->
tag[
sizeof (mp->
tag) - 1] = 0;
3533 s =
format (s,
"appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
3539 s =
format (s,
"appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
3552 s =
format (0,
"SCRIPT: ip_container_proxy_add_del ");
3553 s =
format (s,
"is_add %d prefix %U sw_if_index %d",
3564 s =
format (0,
"SCRIPT: qos_record_enable_disable ");
3565 s =
format (s,
"sw_if_index %d ", (mp->
record.sw_if_index));
3567 mp->
record.input_source);
3570 s =
format (s,
"disable ");
3575 #define foreach_no_print_function \ 3576 _(memclnt_keepalive_reply) 3579 static void * vl_api_ ## f ## _t_print \ 3580 (vl_api_ ## f ## _t * mp, void * handle) \ 3587 #define foreach_custom_print_no_arg_function \ 3588 _(lisp_eid_table_vni_dump) \ 3589 _(lisp_map_resolver_dump) \ 3590 _(lisp_map_server_dump) \ 3591 _(show_lisp_rloc_probe_state) \ 3592 _(show_lisp_map_register_state) \ 3593 _(show_lisp_map_request_mode) 3596 static void * vl_api_ ## f ## _t_print \ 3597 (vl_api_ ## f ## _t * mp, void * handle) \ 3600 s = format (0, "SCRIPT: " #f ); \ 3605 #define foreach_custom_print_function \ 3606 _(CREATE_LOOPBACK, create_loopback) \ 3607 _(CREATE_LOOPBACK_INSTANCE, create_loopback_instance) \ 3608 _(SW_INTERFACE_SET_FLAGS, sw_interface_set_flags) \ 3609 _(SW_INTERFACE_EVENT, sw_interface_event) \ 3610 _(SW_INTERFACE_ADD_DEL_ADDRESS, sw_interface_add_del_address) \ 3611 _(SW_INTERFACE_SET_TABLE, sw_interface_set_table) \ 3612 _(SW_INTERFACE_SET_MPLS_ENABLE, sw_interface_set_mpls_enable) \ 3613 _(SW_INTERFACE_SET_VPATH, sw_interface_set_vpath) \ 3614 _(SW_INTERFACE_SET_VXLAN_BYPASS, sw_interface_set_vxlan_bypass) \ 3615 _(SW_INTERFACE_SET_GENEVE_BYPASS, sw_interface_set_geneve_bypass) \ 3616 _(BOND_CREATE, bond_create) \ 3617 _(BOND_CREATE2, bond_create2) \ 3618 _(BOND_DELETE, bond_delete) \ 3619 _(BOND_ADD_MEMBER, bond_add_member) \ 3620 _(BOND_DETACH_MEMBER, bond_detach_member) \ 3621 _(SW_INTERFACE_SET_BOND_WEIGHT, sw_interface_set_bond_weight) \ 3622 _(SW_MEMBER_INTERFACE_DUMP, sw_member_interface_dump) \ 3623 _(SW_BOND_INTERFACE_DUMP, sw_bond_interface_dump) \ 3624 _(SW_INTERFACE_RX_PLACEMENT_DUMP, sw_interface_rx_placement_dump) \ 3625 _(TAP_CREATE_V2, tap_create_v2) \ 3626 _(TAP_DELETE_V2, tap_delete_v2) \ 3627 _(SW_INTERFACE_TAP_V2_DUMP, sw_interface_tap_v2_dump) \ 3628 _(IP_TABLE_ADD_DEL, ip_table_add_del) \ 3629 _(MPLS_ROUTE_ADD_DEL, mpls_route_add_del) \ 3630 _(MPLS_TABLE_ADD_DEL, mpls_table_add_del) \ 3631 _(IP_ROUTE_ADD_DEL, ip_route_add_del) \ 3632 _(MPLS_TUNNEL_ADD_DEL, mpls_tunnel_add_del) \ 3633 _(SR_MPLS_POLICY_ADD, sr_mpls_policy_add) \ 3634 _(SR_MPLS_POLICY_DEL, sr_mpls_policy_del) \ 3635 _(SW_INTERFACE_SET_UNNUMBERED, sw_interface_set_unnumbered) \ 3636 _(CREATE_VLAN_SUBIF, create_vlan_subif) \ 3637 _(CREATE_SUBIF, create_subif) \ 3638 _(IP_TABLE_REPLACE_BEGIN, ip_table_replace_begin) \ 3639 _(IP_TABLE_FLUSH, ip_table_flush) \ 3640 _(IP_TABLE_REPLACE_END, ip_table_replace_end) \ 3641 _(SET_IP_FLOW_HASH, set_ip_flow_hash) \ 3642 _(L2_PATCH_ADD_DEL, l2_patch_add_del) \ 3643 _(SR_LOCALSID_ADD_DEL, sr_localsid_add_del) \ 3644 _(SR_STEERING_ADD_DEL, sr_steering_add_del) \ 3645 _(SR_POLICY_ADD, sr_policy_add) \ 3646 _(SR_POLICY_MOD, sr_policy_mod) \ 3647 _(SR_POLICY_DEL, sr_policy_del) \ 3648 _(SW_INTERFACE_SET_L2_XCONNECT, sw_interface_set_l2_xconnect) \ 3649 _(L2FIB_ADD_DEL, l2fib_add_del) \ 3650 _(L2FIB_FLUSH_ALL, l2fib_flush_all) \ 3651 _(L2FIB_FLUSH_BD, l2fib_flush_bd) \ 3652 _(L2FIB_FLUSH_INT, l2fib_flush_int) \ 3653 _(L2_FLAGS, l2_flags) \ 3654 _(BRIDGE_FLAGS, bridge_flags) \ 3655 _(CLASSIFY_ADD_DEL_TABLE, classify_add_del_table) \ 3656 _(CLASSIFY_ADD_DEL_SESSION, classify_add_del_session) \ 3657 _(SW_INTERFACE_SET_L2_BRIDGE, sw_interface_set_l2_bridge) \ 3658 _(BRIDGE_DOMAIN_ADD_DEL, bridge_domain_add_del) \ 3659 _(BRIDGE_DOMAIN_DUMP, bridge_domain_dump) \ 3660 _(BRIDGE_DOMAIN_SET_MAC_AGE, bridge_domain_set_mac_age) \ 3661 _(CLASSIFY_SET_INTERFACE_IP_TABLE, classify_set_interface_ip_table) \ 3662 _(CLASSIFY_SET_INTERFACE_L2_TABLES, classify_set_interface_l2_tables) \ 3663 _(ADD_NODE_NEXT, add_node_next) \ 3664 _(L2TPV3_CREATE_TUNNEL, l2tpv3_create_tunnel) \ 3665 _(L2TPV3_SET_TUNNEL_COOKIES, l2tpv3_set_tunnel_cookies) \ 3666 _(L2TPV3_INTERFACE_ENABLE_DISABLE, l2tpv3_interface_enable_disable) \ 3667 _(L2TPV3_SET_LOOKUP_KEY, l2tpv3_set_lookup_key) \ 3668 _(SW_IF_L2TPV3_TUNNEL_DUMP, sw_if_l2tpv3_tunnel_dump) \ 3669 _(VXLAN_ADD_DEL_TUNNEL, vxlan_add_del_tunnel) \ 3670 _(VXLAN_TUNNEL_DUMP, vxlan_tunnel_dump) \ 3671 _(VXLAN_OFFLOAD_RX, vxlan_offload_rx) \ 3672 _(GENEVE_ADD_DEL_TUNNEL, geneve_add_del_tunnel) \ 3673 _(GENEVE_TUNNEL_DUMP, geneve_tunnel_dump) \ 3674 _(GRE_TUNNEL_ADD_DEL, gre_tunnel_add_del) \ 3675 _(GRE_TUNNEL_DUMP, gre_tunnel_dump) \ 3676 _(L2_FIB_CLEAR_TABLE, l2_fib_clear_table) \ 3677 _(L2_INTERFACE_EFP_FILTER, l2_interface_efp_filter) \ 3678 _(L2_INTERFACE_VLAN_TAG_REWRITE, l2_interface_vlan_tag_rewrite) \ 3679 _(CREATE_VHOST_USER_IF, create_vhost_user_if) \ 3680 _(MODIFY_VHOST_USER_IF, modify_vhost_user_if) \ 3681 _(DELETE_VHOST_USER_IF, delete_vhost_user_if) \ 3682 _(SW_INTERFACE_DUMP, sw_interface_dump) \ 3683 _(CONTROL_PING, control_ping) \ 3684 _(WANT_INTERFACE_EVENTS, want_interface_events) \ 3686 _(CLI_INBAND, cli_inband) \ 3687 _(MEMCLNT_CREATE, memclnt_create) \ 3688 _(SOCKCLNT_CREATE, sockclnt_create) \ 3689 _(SW_INTERFACE_VHOST_USER_DUMP, sw_interface_vhost_user_dump) \ 3690 _(SHOW_VERSION, show_version) \ 3691 _(L2_FIB_TABLE_DUMP, l2_fib_table_dump) \ 3692 _(VXLAN_GPE_ADD_DEL_TUNNEL, vxlan_gpe_add_del_tunnel) \ 3693 _(VXLAN_GPE_TUNNEL_DUMP, vxlan_gpe_tunnel_dump) \ 3694 _(VXLAN_GBP_TUNNEL_ADD_DEL, vxlan_gbp_tunnel_add_del) \ 3695 _(VXLAN_GBP_TUNNEL_DUMP, vxlan_gbp_tunnel_dump) \ 3696 _(SW_INTERFACE_SET_VXLAN_GBP_BYPASS, sw_interface_set_vxlan_gbp_bypass) \ 3697 _(INTERFACE_NAME_RENUMBER, interface_name_renumber) \ 3698 _(WANT_L2_MACS_EVENTS, want_l2_macs_events) \ 3699 _(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \ 3700 _(IP_ADDRESS_DUMP, ip_address_dump) \ 3701 _(IP_DUMP, ip_dump) \ 3702 _(DELETE_LOOPBACK, delete_loopback) \ 3703 _(BD_IP_MAC_ADD_DEL, bd_ip_mac_add_del) \ 3704 _(BD_IP_MAC_FLUSH, bd_ip_mac_flush) \ 3705 _(COP_INTERFACE_ENABLE_DISABLE, cop_interface_enable_disable) \ 3706 _(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable) \ 3707 _(AF_PACKET_CREATE, af_packet_create) \ 3708 _(AF_PACKET_DELETE, af_packet_delete) \ 3709 _(AF_PACKET_DUMP, af_packet_dump) \ 3710 _(SW_INTERFACE_CLEAR_STATS, sw_interface_clear_stats) \ 3711 _(MPLS_TABLE_DUMP, mpls_table_dump) \ 3712 _(MPLS_ROUTE_DUMP, mpls_route_dump) \ 3713 _(MPLS_TUNNEL_DUMP, mpls_tunnel_dump) \ 3714 _(CLASSIFY_TABLE_IDS,classify_table_ids) \ 3715 _(CLASSIFY_TABLE_BY_INTERFACE, classify_table_by_interface) \ 3716 _(CLASSIFY_TABLE_INFO,classify_table_info) \ 3717 _(CLASSIFY_SESSION_DUMP,classify_session_dump) \ 3718 _(SET_IPFIX_EXPORTER, set_ipfix_exporter) \ 3719 _(IPFIX_EXPORTER_DUMP, ipfix_exporter_dump) \ 3720 _(SET_IPFIX_CLASSIFY_STREAM, set_ipfix_classify_stream) \ 3721 _(IPFIX_CLASSIFY_STREAM_DUMP, ipfix_classify_stream_dump) \ 3722 _(IPFIX_CLASSIFY_TABLE_ADD_DEL, ipfix_classify_table_add_del) \ 3723 _(IPFIX_CLASSIFY_TABLE_DUMP, ipfix_classify_table_dump) \ 3724 _(SW_INTERFACE_SPAN_ENABLE_DISABLE, sw_interface_span_enable_disable) \ 3725 _(SW_INTERFACE_SPAN_DUMP, sw_interface_span_dump) \ 3726 _(GET_NEXT_INDEX, get_next_index) \ 3727 _(PG_CREATE_INTERFACE,pg_create_interface) \ 3728 _(PG_CAPTURE, pg_capture) \ 3729 _(PG_ENABLE_DISABLE, pg_enable_disable) \ 3730 _(PG_INTERFACE_ENABLE_DISABLE_COALESCE, pg_interface_enable_disable_coalesce) \ 3731 _(POLICER_ADD_DEL, policer_add_del) \ 3732 _(POLICER_DUMP, policer_dump) \ 3733 _(POLICER_CLASSIFY_SET_INTERFACE, policer_classify_set_interface) \ 3734 _(POLICER_CLASSIFY_DUMP, policer_classify_dump) \ 3735 _(IP_SOURCE_AND_PORT_RANGE_CHECK_ADD_DEL, \ 3736 ip_source_and_port_range_check_add_del) \ 3737 _(IP_SOURCE_AND_PORT_RANGE_CHECK_INTERFACE_ADD_DEL, \ 3738 ip_source_and_port_range_check_interface_add_del) \ 3739 _(LISP_ENABLE_DISABLE, lisp_enable_disable) \ 3740 _(GPE_ENABLE_DISABLE, gpe_enable_disable) \ 3741 _(GPE_ADD_DEL_IFACE, gpe_add_del_iface) \ 3742 _(LISP_PITR_SET_LOCATOR_SET, lisp_pitr_set_locator_set) \ 3743 _(LISP_MAP_REQUEST_MODE, lisp_map_request_mode) \ 3744 _(SHOW_LISP_MAP_REQUEST_MODE, show_lisp_map_request_mode) \ 3745 _(LISP_ADD_DEL_REMOTE_MAPPING, lisp_add_del_remote_mapping) \ 3746 _(LISP_ADD_DEL_ADJACENCY, lisp_add_del_adjacency) \ 3747 _(LISP_ADD_DEL_MAP_REQUEST_ITR_RLOCS, \ 3748 lisp_add_del_map_request_itr_rlocs) \ 3749 _(LISP_EID_TABLE_ADD_DEL_MAP, lisp_eid_table_add_del_map) \ 3750 _(LISP_ADD_DEL_LOCAL_EID, lisp_add_del_local_eid) \ 3751 _(GPE_ADD_DEL_FWD_ENTRY, gpe_add_del_fwd_entry) \ 3752 _(LISP_ADD_DEL_LOCATOR_SET, lisp_add_del_locator_set) \ 3753 _(LISP_ADD_DEL_MAP_RESOLVER, lisp_add_del_map_resolver) \ 3754 _(LISP_ADD_DEL_LOCATOR, lisp_add_del_locator) \ 3755 _(LISP_EID_TABLE_DUMP, lisp_eid_table_dump) \ 3756 _(LISP_EID_TABLE_MAP_DUMP, lisp_eid_table_map_dump) \ 3757 _(LISP_EID_TABLE_VNI_DUMP, lisp_eid_table_vni_dump) \ 3758 _(LISP_MAP_RESOLVER_DUMP, lisp_map_resolver_dump) \ 3759 _(LISP_MAP_SERVER_DUMP, lisp_map_server_dump) \ 3760 _(LISP_LOCATOR_SET_DUMP, lisp_locator_set_dump) \ 3761 _(LISP_LOCATOR_DUMP, lisp_locator_dump) \ 3762 _(LISP_ADJACENCIES_GET, lisp_adjacencies_get) \ 3763 _(SHOW_LISP_RLOC_PROBE_STATE, show_lisp_rloc_probe_state) \ 3764 _(SHOW_LISP_MAP_REGISTER_STATE, show_lisp_map_register_state) \ 3765 _(LISP_RLOC_PROBE_ENABLE_DISABLE, lisp_rloc_probe_enable_disable) \ 3766 _(LISP_MAP_REGISTER_ENABLE_DISABLE, lisp_map_register_enable_disable) \ 3767 _(IPSEC_INTERFACE_ADD_DEL_SPD, ipsec_interface_add_del_spd) \ 3768 _(IPSEC_SAD_ENTRY_ADD_DEL, ipsec_sad_entry_add_del) \ 3769 _(IPSEC_SPD_ADD_DEL, ipsec_spd_add_del) \ 3770 _(IPSEC_SPD_ENTRY_ADD_DEL, ipsec_spd_entry_add_del) \ 3771 _(IPSEC_TUNNEL_IF_ADD_DEL, ipsec_tunnel_if_add_del) \ 3772 _(DELETE_SUBIF, delete_subif) \ 3773 _(L2_INTERFACE_PBB_TAG_REWRITE, l2_interface_pbb_tag_rewrite) \ 3774 _(SET_PUNT, set_punt) \ 3775 _(FLOW_CLASSIFY_SET_INTERFACE, flow_classify_set_interface) \ 3776 _(FLOW_CLASSIFY_DUMP, flow_classify_dump) \ 3777 _(GET_FIRST_MSG_ID, get_first_msg_id) \ 3778 _(IOAM_ENABLE, ioam_enable) \ 3779 _(IOAM_DISABLE, ioam_disable) \ 3780 _(IP_TABLE_DUMP, ip_table_dump) \ 3781 _(IP_ROUTE_DUMP, ip_route_dump) \ 3782 _(FEATURE_ENABLE_DISABLE, feature_enable_disable) \ 3783 _(FEATURE_GSO_ENABLE_DISABLE, feature_gso_enable_disable) \ 3784 _(SW_INTERFACE_TAG_ADD_DEL, sw_interface_tag_add_del) \ 3785 _(HW_INTERFACE_SET_MTU, hw_interface_set_mtu) \ 3786 _(P2P_ETHERNET_ADD, p2p_ethernet_add) \ 3787 _(P2P_ETHERNET_DEL, p2p_ethernet_del) \ 3788 _(TCP_CONFIGURE_SRC_ADDRESSES, tcp_configure_src_addresses) \ 3789 _(APP_NAMESPACE_ADD_DEL, app_namespace_add_del) \ 3790 _(LLDP_CONFIG, lldp_config) \ 3791 _(SW_INTERFACE_SET_LLDP, sw_interface_set_lldp) \ 3792 _(SESSION_RULE_ADD_DEL, session_rule_add_del) \ 3793 _(OUTPUT_ACL_SET_INTERFACE, output_acl_set_interface) \ 3794 _(QOS_RECORD_ENABLE_DISABLE, qos_record_enable_disable) \ 3795 _(MEMCLNT_KEEPALIVE_REPLY, memclnt_keepalive_reply) 3800 #define _(n,f) am->msg_print_handlers[VL_API_##n] \ 3801 = (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)
static u8 * format_lisp_flat_eid(u8 *s, va_list *args)
vl_api_interface_index_t sw_if_index
fib_protocol_t fp_proto
protocol type
u32 match_n_vectors[default=1]
static void * vl_api_sr_mpls_policy_add_t_print(vl_api_sr_mpls_policy_add_t *mp, void *handle)
bool is_add[default=true]
vl_api_ip_proto_t protocol
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
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t mcast_sw_if_index
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.
vl_api_mac_address_t b_smac
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)
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)
Create a point-to-point (p2p) Ethernet sub-interface.
static void * vl_api_lisp_map_request_mode_t_print(vl_api_lisp_map_request_mode_t *mp, void *handle)
vl_api_l2t_lookup_key_t key
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 __clib_unused void * vl_api_virtio_pci_delete_t_print(vl_api_virtio_pci_delete_t *mp, void *handle)
static void * vl_api_sw_member_interface_dump_t_print(vl_api_sw_member_interface_dump_t *mp, void *handle)
u8 * format_vl_api_mac_address(u8 *s, va_list *args)
static uword ip46_address_is_multicast(const ip46_address_t *a)
vl_api_mac_address_t mac_address
static void * vl_api_sr_mpls_policy_del_t_print(vl_api_sr_mpls_policy_del_t *mp, void *handle)
u8 * format_vl_api_fib_path(u8 *s, va_list *args)
vl_api_wireguard_peer_flags_t flags
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.
void ip_prefix_decode(const vl_api_prefix_t *in, fib_prefix_t *out)
vl_api_sr_steer_t traffic_type
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)
vl_api_interface_index_t sw_if_index
static void * vl_api_cli_inband_t_print(vl_api_cli_inband_t *mp, void *handle)
Interface set bond weight.
vl_api_address_t client_address
vnet_main_t * vnet_get_main(void)
static void * vl_api_bond_detach_member_t_print(vl_api_bond_detach_member_t *mp, void *handle)
static void * vl_api_ioam_enable_t_print(vl_api_ioam_enable_t *mp, void *handle)
vl_api_interface_index_t unnumbered_sw_if_index
static void * vl_api_lisp_adjacencies_get_t_print(vl_api_lisp_adjacencies_get_t *mp, void *handle)
Set/unset policer classify interface.
Delete a point-to-point (p2p) Ethernet sub-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.
vl_api_sse2_qos_policer_type_t type
static __clib_unused void * vl_api_virtio_pci_create_t_print(vl_api_virtio_pci_create_t *mp, void *handle)
static __clib_unused void * vl_api_virtio_pci_create_v2_t_print(vl_api_virtio_pci_create_v2_t *mp, void *handle)
bool enable[default=true]
bool is_add[default=true]
Control ping from client to api server request.
bool mt_is_add[default=true]
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
static void * vl_api_flow_classify_set_interface_t_print(vl_api_flow_classify_set_interface_t *mp, void *handle)
bool is_add[default=true]
static void * vl_api_interface_name_renumber_t_print(vl_api_interface_name_renumber_t *mp, void *handle)
vl_api_transport_proto_t transport_proto
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)
u32 id[default=0xffffffff]
static void * vl_api_sr_steering_add_del_t_print(vl_api_sr_steering_add_del_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
vl_api_interface_index_t sw_if_index
static void * vl_api_ip_table_dump_t_print(vl_api_ip_table_dump_t *mp, void *handle)
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)
bool is_add[default=true]
bool is_add[default=true]
static void * vl_api_input_acl_set_interface_t_print(vl_api_input_acl_set_interface_t *mp, void *handle)
vl_api_session_rule_scope_t scope
vl_api_interface_index_t sw_if_index
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)
Initialize a new bond interface with the given paramters.
Classify add / del session request.
IPFIX exporter dump request.
vl_api_interface_index_t sw_if_index
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
vl_api_interface_index_t sw_if_index
u32 memory_size[default=2097152]
static void * vl_api_bridge_domain_dump_t_print(vl_api_bridge_domain_dump_t *mp, void *handle)
bool is_add[default=true]
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.
string sock_filename[256]
static void * vl_api_l2_interface_vlan_tag_rewrite_t_print(vl_api_l2_interface_vlan_tag_rewrite_t *mp, void *handle)
bool is_add[default=true]
bool is_add[default=true]
bool disable_indirect_desc
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)
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t rx_sw_if_index
static void * vl_api_flow_classify_dump_t_print(vl_api_flow_classify_dump_t *mp, void *handle)
bool is_add[default=true]
vl_api_mac_address_t mac_address
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)
u32 table_index[default=0xffffffff]
Request for lisp_eid_table_map_details.
Initialize a new virtio pci interface with the given parameters.
Dump virtio pci interfaces request.
Add/Delete classification table request.
static void * vl_api_sw_interface_set_bond_weight_t_print(vl_api_sw_interface_set_bond_weight_t *mp, void *handle)
bool is_add[default=true]
u32 bd_id[default=0xffffffff]
L2 bridge domain request operational state details.
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.
vl_api_interface_index_t mcast_sw_if_index
static void * vl_api_classify_add_del_table_t_print(vl_api_classify_add_del_table_t *mp, void *handle)
vhost-user interface create request
bool is_add[default=true]
vl_api_address_t remote_address
Initialize a new bond interface with the given paramters.
vl_api_mac_address_t mac_address
static void * vl_api_vxlan_gpe_add_del_tunnel_t_print(vl_api_vxlan_gpe_add_del_tunnel_t *mp, void *handle)
Dump details of all or just a single GRE tunnel.
vl_api_address_t src_address
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.
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
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_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)
Dump bond interfaces request.
Process a vpe parser cli string request.
vl_api_interface_index_t sw_if_index[default=0xffffffff]
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)
bool enable[default=true]
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)
vl_api_interface_index_t sw_if_index
#define clib_memcpy(d, s, n)
vl_api_mac_address_t mac_address
vl_api_ip6_address_t mgmt_ip6
static void * vl_api_sockclnt_create_t_print(vl_api_sockclnt_create_t *mp, void *handle)
u8 max_macs_in_event[default=10]
static void * vl_api_sr_policy_add_t_print(vl_api_sr_policy_add_t *mp, void *handle)
Vhost-user interface dump request.
Dump tap interfaces request.
vl_api_mac_address_t hw_addr
add or delete LISP adjacency adjacency
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.
vl_api_sse2_qos_action_t exceed_action
vl_api_interface_index_t sw_if_index
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_feature_gso_enable_disable_t_print(vl_api_feature_gso_enable_disable_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)
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)
Clear interface statistics.
static void * vl_api_memclnt_create_t_print(vl_api_memclnt_create_t *mp, void *handle)
Interface set geneve-bypass request.
bool is_enable[default=true]
Add / del table request A table can be added multiple times, but need be deleted only once...
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)
vl_api_interface_index_t sw_if_index
vl_api_address_with_prefix_t prefix
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)
vl_api_interface_index_t sw_if_index
bool enable[default=true]
static __clib_unused void * vl_api_sw_interface_virtio_pci_dump_t_print(vl_api_sw_interface_virtio_pci_dump_t *mp, void *handle)
Enable or disable interface feature gso arc.
vl_api_sr_policy_op_t operation
bool is_add[default=true]
Set interface source and L4 port-range request.
bool is_add[default=true]
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)
vl_api_interface_index_t sw_if_index
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)
bool is_add[default=true]
static void * vl_api_qos_record_enable_disable_t_print(vl_api_qos_record_enable_disable_t *mp, void *handle)
Aggregate type for a prefix.
static void * vl_api_policer_dump_t_print(vl_api_policer_dump_t *mp, void *handle)
vl_api_sr_behavior_t behavior
L2 FIB flush bridge domain entries.
bool is_add[default=true]
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)
vl_api_interface_index_t interface_id
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)
u16 fp_len
The mask length.
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)
u16 tx_ring_sz[default=256]
static void * vl_api_bond_create2_t_print(vl_api_bond_create2_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.
vl_api_interface_index_t sw_if_index
static void * vl_api_sw_interface_set_unnumbered_t_print(vl_api_sw_interface_set_unnumbered_t *mp, void *handle)
u16 rx_ring_sz[default=256]
ip46_type_t ip_address_decode(const vl_api_address_t *in, ip46_address_t *out)
Decode/Encode for struct/union types.
string sock_filename[256]
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.
vl_api_if_status_flags_t flags
vl_api_address_family_t ip_version
Configure IP source and L4 port-range check.
u8 * format_qos_source(u8 *s, va_list *args)
format/unformat QoS source types
IP table flush Flush a table of all routes.
bool checksum_offload_enabled
bool enable_disable[default=true]
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)
vl_api_interface_index_t sw_if_index
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)
vl_api_interface_index_t sw_if_index[default=0xffffffff]
PacketGenerator interface enable/disable packet coalesce.
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]
vl_api_interface_index_t sw_if_index
vl_api_address_t our_address
vl_api_interface_index_t sw_if_index
Enable/Disable span to mirror traffic from one interface to another.
vl_api_mac_address_t mac_address
static void * vl_api_pg_create_interface_t_print(vl_api_pg_create_interface_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
static void * vl_api_sw_interface_set_vpath_t_print(vl_api_sw_interface_set_vpath_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
static void * vl_api_sw_interface_rx_placement_dump_t_print(vl_api_sw_interface_rx_placement_dump_t *mp, void *handle)
ip46_address_t fp_addr
The address type is not deriveable from the fp_addr member.
static void * vl_api_sw_interface_set_lldp_t_print(vl_api_sw_interface_set_lldp_t *mp, void *handle)
vl_api_address_t local_address
vl_api_interface_index_t sw_if_index
static void * vl_api_af_packet_dump_t_print(vl_api_af_packet_dump_t *mp, void *handle)
bool is_del[default=false]
set LISP map-request mode.
u32 new_show_dev_instance
static void * vl_api_ip_table_replace_begin_t_print(vl_api_ip_table_replace_begin_t *mp, void *handle)
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)
bool enable[default=true]
bool enable_disable[default=true]
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.
static void * vl_api_pg_interface_enable_disable_coalesce_t_print(vl_api_pg_interface_enable_disable_coalesce_t *mp, void *handle)
Set/unset l2 classification tables for an interface request.
u32 opaque_index[default=0xffffffff]
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
static u8 * format_nsh_address_vat(u8 *s, va_list *args)
bool is_add[default=true]
vl_api_flow_classify_table_t type
static void * vl_api_l2fib_flush_all_t_print(vl_api_l2fib_flush_all_t *mp, void *handle)
vl_api_lisp_locator_set_filter_t filter
vl_api_interface_index_t sw_if_index
add or delete lisp eid-table
static void * vl_api_gre_tunnel_dump_t_print(vl_api_gre_tunnel_dump_t *mp, void *handle)
u32 id[default=0xFFFFFFFF]
MPLS Route Add / del route.
vl_api_interface_index_t sw_if_index
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)
Initialize a new virtio pci interface with the given parameters.
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)
vl_api_interface_index_t sw_if_index_to
bool enable[default=true]
static void * vl_api_cop_whitelist_enable_disable_t_print(vl_api_cop_whitelist_enable_disable_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
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)
vl_api_span_state_t state
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.
vl_api_interface_index_t tx_sw_if_index
Enable or Disable MPLS on and interface.
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
vl_api_mpls_route_t mr_route
vl_api_ip4_address_with_prefix_t host_ip4_prefix
Enable/Disable QoS recording The QoS bits from the packet at the specified input layer are copied int...
vl_api_address_t collector_address
u32 miss_next_index[default=0xffffffff]
u32 next_table_index[default=0xffffffff]
IOAM enable : Enable in-band OAM.
vl_api_interface_index_t sw_if_index
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.
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t interface_id
API main structure, used by both vpp and binary API clients.
format_function_t format_ip46_address
vl_api_interface_index_t sw_if_index
string locator_set_name[64]
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.
IPFIX classify stream configure request.
vl_api_interface_index_t sw_if_index
static void * vl_api_lisp_locator_dump_t_print(vl_api_lisp_locator_dump_t *mp, void *handle)
PacketGenerator create interface request.
vl_api_interface_index_t sw_if_index
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
bool is_add[default=true]
vl_api_mac_address_t remote_mac
vl_api_ip4_address_t mgmt_ip4
static void * vl_api_policer_add_del_t_print(vl_api_policer_add_del_t *mp, void *handle)
bool is_enabled[default=true]
vl_api_gre_tunnel_t tunnel
sll srl srl sll sra u16x4 i
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_ip6_address_t bsid_addr
vl_api_virtio_flags_t virtio_flags
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.
vl_api_tap_flags_t tap_flags
Initialize a new bond interface with the given paramters.
vl_api_interface_index_t sw_if_index
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)
Create or delete a VXLAN tunnel.
vl_api_sse2_qos_action_t violate_action
static void * vl_api_set_ipfix_exporter_t_print(vl_api_set_ipfix_exporter_t *mp, void *handle)
Feature path enable/disable request.
vl_api_interface_index_t tx_sw_if_index
char * vl_api_from_api_to_new_c_string(vl_api_string_t *astr)
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 parameters.
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)
vl_api_sse2_qos_action_t conform_action
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.
u8 scan_delay[default=10]
void vl_msg_api_custom_dump_configure(api_main_t *am)
bool is_enable[default=true]
Request for map lisp locator status.
static void * vl_api_lldp_config_t_print(vl_api_lldp_config_t *mp, void *handle)
bool is_enabled[default=true]
vl_api_interface_index_t rx_sw_if_index
Delete loopback interface request.
vl_api_ip6_address_t localsid
Dump bridge domain IP to MAC entries.
vl_api_interface_index_t sw_if_index[default=0xffffffff]
static void * vl_api_ipsec_tunnel_if_add_del_t_print(vl_api_ipsec_tunnel_if_add_del_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
bool enable[default=0xffffffff]
vhost-user interface modify request
Register for interface events.
vl_api_classify_action_t action[default=0]
Set L2 XConnect between two interfaces request.
vl_api_lisp_locator_set_filter_t filter
static void * vl_api_tap_create_v2_t_print(vl_api_tap_create_v2_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
static void * vl_api_ipfix_classify_table_add_del_t_print(vl_api_ipfix_classify_table_add_del_t *mp, void *handle)
vl_api_interface_index_t rx_sw_if_index
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
vl_api_interface_index_t sw_if_index
bool enable[default=true]
static void * vl_api_ioam_disable_t_print(vl_api_ioam_disable_t *mp, void *handle)
bool is_add[default=true]
static void * vl_api_create_subif_t_print(vl_api_create_subif_t *mp, void *handle)
vl_api_interface_index_t sw_if_index_from
vl_api_interface_index_t sw_if_index
Request for eid table summary status.
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.
vl_api_interface_index_t bond_sw_if_index
u8 current_data_flag[default=0]
static void * vl_api_vxlan_add_del_tunnel_t_print(vl_api_vxlan_add_del_tunnel_t *mp, void *handle)
static void * vl_api_create_loopback_instance_t_print(vl_api_create_loopback_instance_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
Register to receive L2 MAC events for learned and aged MAC.
vl_api_policer_classify_table_t type
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)
#define foreach_create_subif_flag
vl_api_interface_index_t hw_if_index
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.
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
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
string host_namespace[64]
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
vl_api_interface_index_t sw_if_index
static void * vl_api_ip_table_replace_end_t_print(vl_api_ip_table_replace_end_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
bool is_add[default=true]
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)
i16 current_data_offset[default=0]
static void * vl_api_sw_interface_add_del_address_t_print(vl_api_sw_interface_add_del_address_t *mp, void *handle)
vl_api_address_t ip_address
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.
Interface Event generated by want_interface_events.
vl_api_address_t src_address
bool is_add[default=true]
static void * vl_api_bridge_domain_set_mac_age_t_print(vl_api_bridge_domain_set_mac_age_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
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)
u8 num_rx_queues[default=1]
Interface bridge mode request.
vl_api_interface_index_t sw_if_index
bool is_add[default=true]
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.
vl_api_interface_index_t sw_if_index[default=0xffffffff]
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.
vl_api_interface_index_t sw_if_index
vl_api_mac_address_t host_mac_addr
Add or delete a single GRE tunnel.
vl_api_sse2_qos_round_type_t round_type
static ip46_address_t to_ip46(u32 is_ipv6, u8 *buf)
vl_api_pci_address_t pci_addr
static void * vl_api_pg_capture_t_print(vl_api_pg_capture_t *mp, void *handle)
vl_api_mac_address_t mac_address
vl_api_mac_event_action_t action
Set interface physical MTU.
vl_api_pci_address_t pci_addr
vl_api_interface_index_t sw_if_index
u32 id[default=0xFFFFFFFF]
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.
vl_api_sse2_qos_rate_type_t rate_type
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.
vl_api_ip6_address_t bsid_addr
static void * vl_api_ip_table_flush_t_print(vl_api_ip_table_flush_t *mp, void *handle)
u32 hit_next_index[default=0xffffffff]
Create loopback interface request.
vl_api_mac_address_t b_dmac
Set unnumbered interface add / del request.
bool enable[default=true]
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)
vl_api_interface_index_t sw_if_index
Create a new subinterface with the given vlan id.
u32 skip_n_vectors[default=0]
static void * vl_api_mpls_table_dump_t_print(vl_api_mpls_table_dump_t *mp, void *handle)
bool is_enable[default=true]
bool mt_is_add[default=true]
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_interface_index_t sw_if_index
string locator_set_name[64]
vl_api_interface_index_t sw_if_index
Dump IP routes from a table.
bool enable[default=true]
dump the rx queue placement of interface(s)
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
vl_api_interface_index_t sw_if_index
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)
vl_api_if_status_flags_t flags
bool is_enable[default=true]
u32 learn_limit[default=1000]
static void * vl_api_ipsec_spd_add_del_t_print(vl_api_ipsec_spd_add_del_t *mp, void *handle)
IPv6 SR policy modification.
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.
static void * vl_api_bond_add_member_t_print(vl_api_bond_add_member_t *mp, void *handle)
vl_api_interface_index_t sw_if_index[default=0xffffffff]
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)
vl_api_interface_index_t sw_if_index
static u8 * format_bond_load_balance(u8 *s, va_list *args)
vl_api_interface_index_t sw_if_index
vhost-user interface delete request
vl_api_mpls_tunnel_t mt_tunnel
static void * vl_api_l2tpv3_create_tunnel_t_print(vl_api_l2tpv3_create_tunnel_t *mp, void *handle)
Set / clear software interface tag.
vl_api_ip6_address_t bsid_addr
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)
string locator_set_name[64]
bool is_add[default=true]
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.
vl_api_interface_index_t sw_if_index
u8 * vl_api_from_api_to_new_vec(void *mp, vl_api_string_t *astr)
vl_api_interface_index_t mcast_sw_if_index
Add or delete IPsec tunnel interface.
vl_api_interface_index_t sw_if_index[default=0xffffffff]
IPFIX add or delete classifier table request.
format_function_t format_vlib_pci_addr
vl_api_interface_index_t sw_if_index
vl_api_mac_address_t mac_address
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)
string locator_set_name[64]
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)
vl_api_address_t dst_address
vl_api_ip_proto_t transport_protocol
static void * vl_api_sw_bond_interface_dump_t_print(vl_api_sw_bond_interface_dump_t *mp, void *handle)
vl_api_ip6_address_with_prefix_t host_ip6_prefix
L2 bridge domain add or delete request.
show_threads display the information about vpp threads running on system along with their process id...