61 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 65 vl_print (handle, (char *)s); \ 75 s =
format (0,
"SCRIPT: create_loopback ");
86 s =
format (0,
"SCRIPT: create_loopback ");
98 s =
format (0,
"SCRIPT: delete_loopback ");
108 s =
format (0,
"SCRIPT: sw_interface_set_flags ");
113 s =
format (s,
"admin-up ");
115 s =
format (s,
"admin-down ");
125 s =
format (0,
"SCRIPT: sw_interface_set_rx_placement ");
144 s =
format (0,
"SCRIPT: sw_interface_rx_placement_dump ");
146 if (sw_if_index != ~0)
147 s =
format (s,
"sw_if_index %d ", sw_if_index);
156 s =
format (0,
"SCRIPT: sw_interface_event ");
161 s =
format (s,
"admin-up ");
163 s =
format (s,
"admin-down ");
166 s =
format (s,
"link-up");
168 s =
format (s,
"link-down");
171 s =
format (s,
" deleted");
182 s =
format (0,
"SCRIPT: sw_interface_add_del_address ");
188 s =
format (s,
"del-all ");
198 s =
format (0,
"SCRIPT: sw_interface_set_table ");
216 s =
format (0,
"SCRIPT: sw_interface_set_mpls_enable ");
221 s =
format (s,
"disable");
231 s =
format (0,
"SCRIPT: sw_interface_set_vpath ");
236 s =
format (s,
"enable ");
238 s =
format (s,
"disable ");
248 s =
format (0,
"SCRIPT: sw_interface_set_vxlan_bypass ");
256 s =
format (s,
"enable ");
258 s =
format (s,
"disable ");
268 s =
format (0,
"SCRIPT: sw_interface_set_l2_xconnect ");
277 s =
format (s,
"delete ");
287 s =
format (0,
"SCRIPT: sw_interface_set_l2_bridge ");
297 s =
format (s,
"uu-fwd ");
301 s =
format (s,
"disable ");
311 s =
format (0,
"SCRIPT: bridge_domain_add_del ");
334 s =
format (0,
"SCRIPT: bridge_domain_set_mac_age ");
349 s =
format (0,
"SCRIPT: bridge_domain_dump ");
352 s =
format (s,
"bd_id %d ", bd_id);
362 s =
format (0,
"SCRIPT: l2fib_flush_all ");
374 s =
format (0,
"SCRIPT: l2fib_flush_bd ");
375 s =
format (s,
"bd_id %d ", bd_id);
386 s =
format (0,
"SCRIPT: l2fib_flush_int ");
387 s =
format (s,
"sw_if_index %d ", sw_if_index);
397 s =
format (0,
"SCRIPT: l2fib_add_del ");
408 s =
format (s,
"%s",
"static ");
410 s =
format (s,
"%s",
"filter ");
412 s =
format (s,
"%s",
"bvi ");
428 s =
format (0,
"SCRIPT: l2_flags ");
435 s =
format (s,
"forward ");
439 s =
format (s,
"uu-flood ");
441 s =
format (s,
"arp-term ");
455 s =
format (0,
"SCRIPT: bridge_flags ");
462 s =
format (s,
"forward ");
466 s =
format (s,
"uu-flood ");
468 s =
format (s,
"arp-term ");
481 s =
format (0,
"SCRIPT: bd_ip_mac_add_del ");
497 s =
format (0,
"SCRIPT: bd_ip_mac_flush ");
509 s =
format (0,
"SCRIPT: bd_ip_mac_dump ");
522 s =
format (0,
"SCRIPT: tap_create_v2 ");
525 s =
format (s,
"mac-address %U ",
528 s =
format (s,
"host-mac-addr %U ",
559 s =
format (s,
"gso-enabled ");
561 s =
format (s,
"csum-offload-enabled ");
563 s =
format (s,
"persist ");
565 s =
format (s,
"attach ");
569 s =
format (s,
"gro-coalesce-enabled ");
571 s =
format (s,
"packed ");
573 s =
format (s,
"in-order ");
582 s =
format (0,
"SCRIPT: tap_delete_v2 ");
593 s =
format (0,
"SCRIPT: sw_interface_tap_v2_dump ");
607 s =
format (0,
"SCRIPT: virtio_pci_create ");
610 s =
format (s,
"mac-address %U ",
613 s =
format (s,
"features 0x%llx ", clib_net_to_host_u64 (mp->
features));
615 s =
format (s,
"gso-enabled ");
617 s =
format (s,
"checksum_offload_enabled");
630 s =
format (0,
"SCRIPT: virtio_pci_create_v2 ");
633 s =
format (s,
"mac-address %U ",
636 s =
format (s,
"features 0x%llx ", clib_net_to_host_u64 (mp->
features));
638 s =
format (s,
"gso-enabled ");
640 s =
format (s,
"checksum_offload_enabled ");
642 s =
format (s,
"gro-coalesce-enabled ");
644 s =
format (s,
"packed ");
646 s =
format (s,
"in-order ");
648 s =
format (s,
"buffering ");
658 s =
format (0,
"SCRIPT: virtio_pci_delete ");
670 s =
format (0,
"SCRIPT: sw_interface_virtio_pci_dump ");
683 s =
format (0,
"SCRIPT: bond_create ");
685 s =
format (s,
"mac-address %U ",
692 s =
format (s,
"numa-only is set in lacp mode");
706 s =
format (0,
"SCRIPT: bond_create2 ");
708 s =
format (s,
"mac-address %U ",
715 s =
format (s,
"numa-only ");
728 s =
format (0,
"SCRIPT: bond_delete ");
739 s =
format (0,
"SCRIPT: bond_add_member ");
743 s =
format (s,
"passive ");
745 s =
format (s,
"long-timeout ");
755 s =
format (0,
"SCRIPT: sw_interface_set_bond_weight ");
767 s =
format (0,
"SCRIPT: bond_detach_member ");
778 s =
format (0,
"SCRIPT: sw_bond_interface_dump ");
790 s =
format (0,
"SCRIPT: sw_member_interface_dump ");
801 s =
format (0,
"SCRIPT: ip_route_add_del ");
807 for (p = 0; p < mp->
route.n_paths; p++)
818 s =
format (0,
"SCRIPT: mpls_route_add_del ");
831 s =
format (s,
"non-eos ");
834 s =
format (s,
"multicast ");
836 for (p = 0; p < mp->
mr_route.mr_n_paths; p++)
849 s =
format (0,
"SCRIPT: ip_table_add_del ");
854 if (mp->
table.is_ip6)
867 s =
format (0,
"SCRIPT: mpls_table_add_del ");
882 s =
format (0,
"SCRIPT: mpls_tunnel_add_del ");
891 s =
format (s,
"l2-only ");
893 s =
format (s,
"multicast ");
895 s =
format (s,
"tunnel-index ");
897 for (p = 0; p < mp->
mt_tunnel.mt_n_paths; p++)
909 s =
format (0,
"SCRIPT: sr_mpls_policy_add ");
934 s =
format (0,
"SCRIPT: sr_mpls_policy_del ");
946 s =
format (0,
"SCRIPT: sw_interface_set_unnumbered ");
963 s =
format (0,
"SCRIPT: create_vlan_subif ");
974 #define foreach_create_subif_flag \ 979 _(4, "exact_match") \ 980 _(5, "default_sub") \ 981 _(6, "outer_vlan_id_any") \ 982 _(7, "inner_vlan_id_any") 989 s =
format (0,
"SCRIPT: create_subif ");
1001 #define _(a,b) if (mp->sub_if_flags & (1 << a)) s = format (s, "%s ", b); 1013 s =
format (0,
"SCRIPT: delete_subif ");
1025 s =
format (0,
"SCRIPT: ip_table_replace_begin ");
1027 s =
format (s,
"v%s-table %d ",
1028 mp->
table.is_ip6 ?
"6" :
"4", (mp->
table.table_id));
1038 s =
format (0,
"SCRIPT: ip_table_flush ");
1040 s =
format (s,
"v%s-table %d ",
1041 mp->
table.is_ip6 ?
"6" :
"4", (mp->
table.table_id));
1052 s =
format (0,
"SCRIPT: ip_table_replace_end ");
1054 s =
format (s,
"v%s-table %d ",
1055 mp->
table.is_ip6 ?
"6" :
"4", (mp->
table.table_id));
1065 s =
format (0,
"SCRIPT: set_ip_flow_hash ");
1076 s =
format (s,
"sport ");
1079 s =
format (s,
"dport ");
1082 s =
format (s,
"proto ");
1085 s =
format (s,
"reverse ");
1099 s =
format (0,
"SCRIPT: l2_patch_add_del ");
1117 s =
format (0,
"SCRIPT: sr_localsid_add_del ");
1122 s =
format (s,
"Address: %U\nBehavior: End",
1124 s =
format (s, (mp->
end_psp ?
"End.PSP: True" :
"End.PSP: False"));
1129 "Address: %U\nBehavior: X (Endpoint with Layer-3 cross-connect)" 1134 s =
format (s, (mp->
end_psp ?
"End.PSP: True" :
"End.PSP: False"));
1139 "Address: %U\nBehavior: DX4 (Endpoint with decapsulation with IPv4 cross-connect)" 1148 "Address: %U\nBehavior: DX6 (Endpoint with decapsulation with IPv6 cross-connect)" 1157 "Address: %U\nBehavior: DX2 (Endpoint with decapulation and Layer-2 cross-connect)" 1165 "Address: %U\nBehavior: DT6 (Endpoint with decapsulation and specific IPv6 table lookup)" 1172 "Address: %U\nBehavior: DT4 (Endpoint with decapsulation and specific IPv4 table lookup)" 1179 s =
format (s,
"Address: %U\n Behavior: %u",
1185 s =
format (s,
"Internal error");
1196 s =
format (0,
"SCRIPT: sr_steering_add_del ");
1198 s =
format (s, (mp->
is_del ?
"Del: True" :
"Del: False"));
1212 (ip6_address_t *) mp->
prefix.address.un.ip6,
1234 ip6_address_t *segments = 0, *seg;
1235 ip6_address_t *this_address = (ip6_address_t *) mp->
sids.sids;
1241 clib_memcpy (seg->as_u8, this_address->as_u8, sizeof (*this_address));
1245 s =
format (0,
"SCRIPT: sr_policy_add ");
1252 (mp->
is_encap ?
"Behavior: Encapsulation" :
1253 "Behavior: SRH insertion"));
1257 s =
format (s, (mp->
is_spray ?
"Type: Default" :
"Type: Spray"));
1266 s =
format (s,
"\b\b } ");
1276 ip6_address_t *segments = 0, *seg;
1277 ip6_address_t *this_address = (ip6_address_t *) mp->
sids.sids;
1283 clib_memcpy (seg->as_u8, this_address->as_u8, sizeof (*this_address));
1287 s =
format (0,
"SCRIPT: sr_policy_mod ");
1305 s =
format (s,
"\b\b } ");
1315 s =
format (0,
"SCRIPT: sr_policy_del ");
1316 s =
format (s,
"To be delivered. Good luck.");
1326 s =
format (0,
"SCRIPT: classify_add_del_table ");
1344 s =
format (s,
"mask hex ");
1359 s =
format (0,
"SCRIPT: classify_add_del_session ");
1371 s =
format (s,
"match hex ");
1372 for (i = 5 *
sizeof (
u32x4) - 1; i > 0; i--)
1374 if (mp->
match[i] != 0)
1381 for (i = 0; i < limit; i++)
1392 s =
format (0,
"SCRIPT: classify_set_interface_ip_table ");
1408 s =
format (0,
"SCRIPT: classify_set_interface_l2_tables ");
1424 s =
format (0,
"SCRIPT: add_node_next ");
1435 s =
format (0,
"SCRIPT: vxlan_add_del_tunnel ");
1437 ip46_address_t
src =
1439 ip46_address_t
dst =
1443 char *dst_name = is_grp ?
"group" :
"dst";
1471 s =
format (0,
"SCRIPT: vxlan_offload_rx ");
1486 s =
format (0,
"SCRIPT: vxlan_tunnel_dump ");
1497 s =
format (0,
"SCRIPT: vxlan_gbp_tunnel_add_del ");
1507 s =
format (s,
"mcast_sw_if_index %d ", (mp->
tunnel.mcast_sw_if_index));
1508 s =
format (s,
"encap_table_id %d ", (mp->
tunnel.encap_table_id));
1510 s =
format (s,
"sw_if_index %d ", (mp->
tunnel.sw_if_index));
1520 s =
format (0,
"SCRIPT: vxlan_gbp_tunnel_dump ");
1532 s =
format (0,
"SCRIPT: sw_interface_set_vxlan_gbp_bypass ");
1535 s =
format (s,
"%s ", (mp->
is_ipv6 != 0) ?
"ipv6" :
"ipv4");
1536 s =
format (s,
"%s ", (mp->
enable != 0) ?
"enable" :
"disable");
1546 s =
format (0,
"SCRIPT: l2_fib_clear_table ");
1556 s =
format (0,
"SCRIPT: l2_interface_efp_filter ");
1560 s =
format (s,
"enable ");
1562 s =
format (s,
"disable ");
1572 s =
format (0,
"SCRIPT: l2_interface_vlan_tag_rewrite ");
1588 s =
format (0,
"SCRIPT: create_vhost_user_if ");
1592 s =
format (s,
"server ");
1596 s =
format (s,
"disable_mrg_rxbuf ");
1598 s =
format (s,
"disable_indirect_desc ");
1604 s =
format (s,
"packed");
1614 s =
format (0,
"SCRIPT: modify_vhost_user_if ");
1619 s =
format (s,
"server ");
1625 s =
format (s,
"packed");
1635 s =
format (0,
"SCRIPT: delete_vhost_user_if ");
1646 s =
format (0,
"SCRIPT: sw_interface_vhost_user_dump ");
1658 s =
format (0,
"SCRIPT: sw_interface_dump ");
1663 s =
format (s,
"name_filter %v ", v);
1677 s =
format (0,
"SCRIPT: l2_fib_table_dump ");
1689 s =
format (0,
"SCRIPT: control_ping ");
1699 s =
format (0,
"SCRIPT: want_interface_events pid %d enable %d ",
1710 s =
format (0,
"SCRIPT: cli ");
1723 s =
format (0,
"SCRIPT: exec %v ", cmd);
1734 s =
format (0,
"SCRIPT: memclnt_create name %s ", mp->
name);
1744 s =
format (0,
"SCRIPT: sockclnt_create name %s ", mp->
name);
1754 s =
format (0,
"SCRIPT: show_version ");
1765 s =
format (0,
"SCRIPT: show_threads ");
1775 s =
format (0,
"SCRIPT: vxlan_gpe_add_del_tunnel ");
1777 ip46_address_t local, remote;
1783 char *remote_name = is_grp ?
"group" :
"remote";
1812 s =
format (0,
"SCRIPT: vxlan_gpe_tunnel_dump ");
1824 s =
format (0,
"SCRIPT: interface_renumber ");
1838 s =
format (0,
"SCRIPT: want_l2_macs_events ");
1843 s =
format (s,
"disable");
1853 s =
format (0,
"SCRIPT: input_acl_set_interface ");
1871 s =
format (0,
"SCRIPT: output_acl_set_interface ");
1889 s =
format (0,
"SCRIPT: ip6_address_dump ");
1901 s =
format (0,
"SCRIPT: ip_dump ");
1912 s =
format (0,
"SCRIPT: cop_interface_enable_disable ");
1915 s =
format (s,
"enable ");
1917 s =
format (s,
"disable ");
1927 s =
format (0,
"SCRIPT: cop_whitelist_enable_disable ");
1935 s =
format (s,
"default ");
1945 s =
format (0,
"SCRIPT: af_packet_create ");
1948 s =
format (s,
"hw_addr random ");
1960 s =
format (0,
"SCRIPT: af_packet_delete ");
1971 s =
format (0,
"SCRIPT: af_packet_dump ");
1986 s =
format (s,
"transmit");
1989 s =
format (s,
"mark-and-transmit ");
1992 #define _(v,f,str) case VNET_DSCP_##f: t = str; break; 2008 s =
format (0,
"SCRIPT: policer_add_del ");
2018 s =
format (s,
"rate_type kbps ");
2021 s =
format (s,
"rate_type pps ");
2030 s =
format (s,
"round_type closest ");
2033 s =
format (s,
"round_type up ");
2036 s =
format (s,
"round_type down ");
2045 s =
format (s,
"type 1r2c ");
2048 s =
format (s,
"type 1r3c ");
2051 s =
format (s,
"type 2r3c-2698 ");
2054 s =
format (s,
"type 2r3c-4115 ");
2057 s =
format (s,
"type 2r3c-mef5cf1 ");
2071 s =
format (s,
"color-aware ");
2083 s =
format (0,
"SCRIPT: policer_dump ");
2095 s =
format (0,
"SCRIPT: policer_classify_set_interface ");
2114 s =
format (0,
"SCRIPT: policer_classify_dump ");
2118 s =
format (s,
"type ip4 ");
2121 s =
format (s,
"type ip6 ");
2124 s =
format (s,
"type l2 ");
2138 s =
format (0,
"SCRIPT: sw_interface_clear_stats ");
2150 s =
format (0,
"SCRIPT: mpls_tunnel_dump ");
2161 s =
format (0,
"SCRIPT: mpls_table_decap_dump ");
2171 s =
format (0,
"SCRIPT: mpls_route_decap_dump ");
2181 s =
format (0,
"SCRIPT: classify_table_ids ");
2191 s =
format (0,
"SCRIPT: classify_table_by_interface ");
2203 s =
format (0,
"SCRIPT: classify_table_info ");
2215 s =
format (0,
"SCRIPT: classify_session_dump ");
2227 s =
format (0,
"SCRIPT: set_ipfix_exporter ");
2247 s =
format (0,
"SCRIPT: ipfix_exporter_dump ");
2257 s =
format (0,
"SCRIPT: set_ipfix_classify_stream ");
2270 s =
format (0,
"SCRIPT: ipfix_classify_stream_dump ");
2280 s =
format (0,
"SCRIPT: ipfix_classify_table_add_del ");
2294 s =
format (0,
"SCRIPT: ipfix_classify_table_dump ");
2304 s =
format (0,
"SCRIPT: sw_interface_span_enable_disable ");
2314 s =
format (s,
"disable ");
2337 s =
format (0,
"SCRIPT: sw_interface_span_dump ");
2350 s =
format (0,
"SCRIPT: get_next_index ");
2362 s =
format (0,
"SCRIPT: pg_create_interface ");
2375 s =
format (0,
"SCRIPT: pg_capture ");
2378 if (mp->
count != ~0)
2381 s =
format (s,
"disable");
2391 s =
format (0,
"SCRIPT: pg_enable_disable ");
2397 s =
format (s,
"disable");
2407 s =
format (0,
"SCRIPT: pg_interface_enable_disable_coalesce ");
2410 s =
format (s,
"disable");
2412 s =
format (s,
"enable");
2423 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_add_del ");
2445 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_interface_add_del ");
2472 s =
format (0,
"SCRIPT: ipsec_tunnel_if_add_del ");
2477 s =
format (s,
"anti-replay");
2479 s =
format (s,
"udp-encap");
2516 static const char *policy_strs[] = {
2523 static const char *algo_strs[] = {
2539 static const char *integ_strs[] = {
2554 vl_api_ipsec_spd_entry_t *ep;
2555 int policy_host_byte_order;
2557 ep = (vl_api_ipsec_spd_entry_t *) & mp->
entry;
2559 s =
format (0,
"SCRIPT: ipsec_spd_entry ");
2560 s =
format (s,
"is_add %d spd_id %u priority %d is_outbound %d sa_id %u\n",
2562 (ep->spd_id), ntohl (ep->priority), ep->is_outbound,
2565 policy_host_byte_order = (ep->policy);
2567 if (policy_host_byte_order <
ARRAY_LEN (policy_strs))
2568 str = policy_strs[policy_host_byte_order];
2572 s =
format (s,
" policy: %s protocol %d\n", str, ep->protocol);
2574 s =
format (s,
" remote_address_start %U remote_address_stop %U\n",
2576 &ep->remote_address_start,
2579 s =
format (s,
" local_address_start %U local_address_stop %U\n",
2581 &ep->local_address_start,
2584 s =
format (s,
" remote_port_start %d remote_port_stop %d\n",
2585 (ep->remote_port_start),
ntohs (ep->remote_port_stop));
2587 s =
format (s,
" local_port_start %d local_port_stop %d ",
2588 (ep->local_port_start),
ntohs (ep->local_port_stop));
2598 s =
format (0,
"SCRIPT: ipsec_interface_add_del_spd ");
2599 s =
format (s,
"is_add %d sw_if_index %d spd_id %u ",
2609 s =
format (0,
"SCRIPT: ipsec_spd_add_del ");
2619 vl_api_ipsec_sad_entry_t *ep;
2620 const char *protocol_str, *algo_str, *integ_str;
2622 protocol_str =
"BOGUS protocol!";
2623 algo_str =
"BOGUS crypto_algorithm!";
2624 integ_str =
"BOGUS integrity_algorithm!";
2626 ep = (vl_api_ipsec_sad_entry_t *) & mp->
entry;
2628 s =
format (0,
"SCRIPT: ipsec_sad_entry_add_del is_add %d ", mp->
is_add);
2630 tmp = (ep->protocol);
2632 protocol_str =
"ESP";
2634 protocol_str =
"AH";
2636 tmp = (ep->crypto_algorithm);
2638 algo_str = algo_strs[tmp];
2640 tmp = (ep->integrity_algorithm);
2642 integ_str = integ_strs[tmp];
2644 s =
format (s,
"proto %s crypto alg %s integ alg %s\n",
2645 protocol_str, algo_str, integ_str);
2646 s =
format (s,
" crypto_key len %d value %U\n",
2648 (
int) (ep->crypto_key.length));
2649 s =
format (s,
" integ_key len %d value %U\n",
2651 ep->integrity_key.data, (
int) (ep->integrity_key.length));
2652 s =
format (s,
" flags 0x%x ", (ep->flags));
2654 s =
format (s,
"tunnel_src %U tunnel_dst %U\n",
2657 s =
format (s,
" tx_table_id %u salt %u ",
2658 (ep->tx_table_id), ntohl (ep->salt));
2669 s =
format (0,
"SCRIPT: l2_interface_pbb_tag_rewrite ");
2672 s =
format (s,
"vtr_op %d ", vtr_op);
2690 s =
format (0,
"SCRIPT: flow_classify_set_interface ");
2707 s =
format (0,
"SCRIPT: punt ");
2709 switch (mp->
punt.type)
2714 s =
format (s,
"protocol %d ", mp->
punt.punt.l4.protocol);
2716 if (mp->
punt.punt.l4.port != (
u16) ~ 0)
2717 s =
format (s,
"port %d ", (mp->
punt.punt.l4.port));
2735 s =
format (0,
"SCRIPT: flow_classify_dump ");
2739 s =
format (s,
"type ip4 ");
2742 s =
format (s,
"type ip6 ");
2756 s =
format (0,
"SCRIPT: get_first_msg_id %s ", mp->
name);
2766 s =
format (0,
"SCRIPT: ioam_enable ");
2769 s =
format (s,
"trace enabled");
2772 s =
format (s,
"POT enabled");
2775 s =
format (s,
"Seqno enabled");
2778 s =
format (s,
"Analyse enabled");
2788 s =
format (0,
"SCRIPT: ioam_disable ");
2789 s =
format (s,
"trace disabled");
2790 s =
format (s,
"POT disabled");
2791 s =
format (s,
"Seqno disabled");
2792 s =
format (s,
"Analyse disabled");
2802 s =
format (0,
"SCRIPT: feature_enable_disable ");
2807 s =
format (s,
"disable");
2817 s =
format (0,
"SCRIPT: feature_gso_enable_disable ");
2820 s =
format (s,
"enable");
2822 s =
format (s,
"disable");
2832 s =
format (0,
"SCRIPT: sw_interface_tag_add_del ");
2847 s =
format (0,
"SCRIPT: sw_interface_set_mtu ");
2859 s =
format (0,
"SCRIPT: p2p_ethernet_add ");
2871 s =
format (0,
"SCRIPT: p2p_ethernet_del ");
2883 s =
format (0,
"SCRIPT: tcp_configure_src_addresses ");
2884 s =
format (s,
"%U - %U ",
2899 s =
format (0,
"SCRIPT: app_namespace_add_del ");
2900 s =
format (s,
"ns-id %s secret %lu sw_if_index %d ipv4_fib_id %d " 2914 s =
format (0,
"SCRIPT: session_rule_add_del ");
2915 mp->
tag[
sizeof (mp->
tag) - 1] = 0;
2920 s =
format (s,
"appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
2926 s =
format (s,
"appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
2939 s =
format (0,
"SCRIPT: ip_container_proxy_add_del ");
2940 s =
format (s,
"is_add %d prefix %U sw_if_index %d",
2951 s =
format (0,
"SCRIPT: qos_record_enable_disable ");
2952 s =
format (s,
"sw_if_index %d ", (mp->
record.sw_if_index));
2954 mp->
record.input_source);
2957 s =
format (s,
"disable ");
2962 #define foreach_no_print_function \ 2963 _(memclnt_keepalive_reply) 2966 static void * vl_api_ ## f ## _t_print \ 2967 (vl_api_ ## f ## _t * mp, void * handle) \ 2974 #define foreach_custom_print_function \ 2975 _(CREATE_LOOPBACK, create_loopback) \ 2976 _(CREATE_LOOPBACK_INSTANCE, create_loopback_instance) \ 2977 _(SW_INTERFACE_SET_FLAGS, sw_interface_set_flags) \ 2978 _(SW_INTERFACE_EVENT, sw_interface_event) \ 2979 _(SW_INTERFACE_ADD_DEL_ADDRESS, sw_interface_add_del_address) \ 2980 _(SW_INTERFACE_SET_TABLE, sw_interface_set_table) \ 2981 _(SW_INTERFACE_SET_MPLS_ENABLE, sw_interface_set_mpls_enable) \ 2982 _(SW_INTERFACE_SET_VPATH, sw_interface_set_vpath) \ 2983 _(SW_INTERFACE_SET_VXLAN_BYPASS, sw_interface_set_vxlan_bypass) \ 2984 _(BOND_CREATE, bond_create) \ 2985 _(BOND_CREATE2, bond_create2) \ 2986 _(BOND_DELETE, bond_delete) \ 2987 _(BOND_ADD_MEMBER, bond_add_member) \ 2988 _(BOND_DETACH_MEMBER, bond_detach_member) \ 2989 _(SW_INTERFACE_SET_BOND_WEIGHT, sw_interface_set_bond_weight) \ 2990 _(SW_MEMBER_INTERFACE_DUMP, sw_member_interface_dump) \ 2991 _(SW_BOND_INTERFACE_DUMP, sw_bond_interface_dump) \ 2992 _(SW_INTERFACE_RX_PLACEMENT_DUMP, sw_interface_rx_placement_dump) \ 2993 _(TAP_CREATE_V2, tap_create_v2) \ 2994 _(TAP_DELETE_V2, tap_delete_v2) \ 2995 _(SW_INTERFACE_TAP_V2_DUMP, sw_interface_tap_v2_dump) \ 2996 _(IP_TABLE_ADD_DEL, ip_table_add_del) \ 2997 _(MPLS_ROUTE_ADD_DEL, mpls_route_add_del) \ 2998 _(MPLS_TABLE_ADD_DEL, mpls_table_add_del) \ 2999 _(IP_ROUTE_ADD_DEL, ip_route_add_del) \ 3000 _(MPLS_TUNNEL_ADD_DEL, mpls_tunnel_add_del) \ 3001 _(SR_MPLS_POLICY_ADD, sr_mpls_policy_add) \ 3002 _(SR_MPLS_POLICY_DEL, sr_mpls_policy_del) \ 3003 _(SW_INTERFACE_SET_UNNUMBERED, sw_interface_set_unnumbered) \ 3004 _(CREATE_VLAN_SUBIF, create_vlan_subif) \ 3005 _(CREATE_SUBIF, create_subif) \ 3006 _(IP_TABLE_REPLACE_BEGIN, ip_table_replace_begin) \ 3007 _(IP_TABLE_FLUSH, ip_table_flush) \ 3008 _(IP_TABLE_REPLACE_END, ip_table_replace_end) \ 3009 _(SET_IP_FLOW_HASH, set_ip_flow_hash) \ 3010 _(L2_PATCH_ADD_DEL, l2_patch_add_del) \ 3011 _(SR_LOCALSID_ADD_DEL, sr_localsid_add_del) \ 3012 _(SR_STEERING_ADD_DEL, sr_steering_add_del) \ 3013 _(SR_POLICY_ADD, sr_policy_add) \ 3014 _(SR_POLICY_MOD, sr_policy_mod) \ 3015 _(SR_POLICY_DEL, sr_policy_del) \ 3016 _(SW_INTERFACE_SET_L2_XCONNECT, sw_interface_set_l2_xconnect) \ 3017 _(L2FIB_ADD_DEL, l2fib_add_del) \ 3018 _(L2FIB_FLUSH_ALL, l2fib_flush_all) \ 3019 _(L2FIB_FLUSH_BD, l2fib_flush_bd) \ 3020 _(L2FIB_FLUSH_INT, l2fib_flush_int) \ 3021 _(L2_FLAGS, l2_flags) \ 3022 _(BRIDGE_FLAGS, bridge_flags) \ 3023 _(CLASSIFY_ADD_DEL_TABLE, classify_add_del_table) \ 3024 _(CLASSIFY_ADD_DEL_SESSION, classify_add_del_session) \ 3025 _(SW_INTERFACE_SET_L2_BRIDGE, sw_interface_set_l2_bridge) \ 3026 _(BRIDGE_DOMAIN_ADD_DEL, bridge_domain_add_del) \ 3027 _(BRIDGE_DOMAIN_DUMP, bridge_domain_dump) \ 3028 _(BRIDGE_DOMAIN_SET_MAC_AGE, bridge_domain_set_mac_age) \ 3029 _(CLASSIFY_SET_INTERFACE_IP_TABLE, classify_set_interface_ip_table) \ 3030 _(CLASSIFY_SET_INTERFACE_L2_TABLES, classify_set_interface_l2_tables) \ 3031 _(ADD_NODE_NEXT, add_node_next) \ 3032 _(VXLAN_ADD_DEL_TUNNEL, vxlan_add_del_tunnel) \ 3033 _(VXLAN_TUNNEL_DUMP, vxlan_tunnel_dump) \ 3034 _(VXLAN_OFFLOAD_RX, vxlan_offload_rx) \ 3035 _(L2_FIB_CLEAR_TABLE, l2_fib_clear_table) \ 3036 _(L2_INTERFACE_EFP_FILTER, l2_interface_efp_filter) \ 3037 _(L2_INTERFACE_VLAN_TAG_REWRITE, l2_interface_vlan_tag_rewrite) \ 3038 _(CREATE_VHOST_USER_IF, create_vhost_user_if) \ 3039 _(MODIFY_VHOST_USER_IF, modify_vhost_user_if) \ 3040 _(DELETE_VHOST_USER_IF, delete_vhost_user_if) \ 3041 _(SW_INTERFACE_DUMP, sw_interface_dump) \ 3042 _(CONTROL_PING, control_ping) \ 3043 _(WANT_INTERFACE_EVENTS, want_interface_events) \ 3045 _(CLI_INBAND, cli_inband) \ 3046 _(MEMCLNT_CREATE, memclnt_create) \ 3047 _(SOCKCLNT_CREATE, sockclnt_create) \ 3048 _(SW_INTERFACE_VHOST_USER_DUMP, sw_interface_vhost_user_dump) \ 3049 _(SHOW_VERSION, show_version) \ 3050 _(L2_FIB_TABLE_DUMP, l2_fib_table_dump) \ 3051 _(VXLAN_GPE_ADD_DEL_TUNNEL, vxlan_gpe_add_del_tunnel) \ 3052 _(VXLAN_GPE_TUNNEL_DUMP, vxlan_gpe_tunnel_dump) \ 3053 _(VXLAN_GBP_TUNNEL_ADD_DEL, vxlan_gbp_tunnel_add_del) \ 3054 _(VXLAN_GBP_TUNNEL_DUMP, vxlan_gbp_tunnel_dump) \ 3055 _(SW_INTERFACE_SET_VXLAN_GBP_BYPASS, sw_interface_set_vxlan_gbp_bypass) \ 3056 _(INTERFACE_NAME_RENUMBER, interface_name_renumber) \ 3057 _(WANT_L2_MACS_EVENTS, want_l2_macs_events) \ 3058 _(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \ 3059 _(IP_ADDRESS_DUMP, ip_address_dump) \ 3060 _(IP_DUMP, ip_dump) \ 3061 _(DELETE_LOOPBACK, delete_loopback) \ 3062 _(BD_IP_MAC_ADD_DEL, bd_ip_mac_add_del) \ 3063 _(BD_IP_MAC_FLUSH, bd_ip_mac_flush) \ 3064 _(COP_INTERFACE_ENABLE_DISABLE, cop_interface_enable_disable) \ 3065 _(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable) \ 3066 _(AF_PACKET_CREATE, af_packet_create) \ 3067 _(AF_PACKET_DELETE, af_packet_delete) \ 3068 _(AF_PACKET_DUMP, af_packet_dump) \ 3069 _(SW_INTERFACE_CLEAR_STATS, sw_interface_clear_stats) \ 3070 _(MPLS_TABLE_DUMP, mpls_table_dump) \ 3071 _(MPLS_ROUTE_DUMP, mpls_route_dump) \ 3072 _(MPLS_TUNNEL_DUMP, mpls_tunnel_dump) \ 3073 _(CLASSIFY_TABLE_IDS,classify_table_ids) \ 3074 _(CLASSIFY_TABLE_BY_INTERFACE, classify_table_by_interface) \ 3075 _(CLASSIFY_TABLE_INFO,classify_table_info) \ 3076 _(CLASSIFY_SESSION_DUMP,classify_session_dump) \ 3077 _(SET_IPFIX_EXPORTER, set_ipfix_exporter) \ 3078 _(IPFIX_EXPORTER_DUMP, ipfix_exporter_dump) \ 3079 _(SET_IPFIX_CLASSIFY_STREAM, set_ipfix_classify_stream) \ 3080 _(IPFIX_CLASSIFY_STREAM_DUMP, ipfix_classify_stream_dump) \ 3081 _(IPFIX_CLASSIFY_TABLE_ADD_DEL, ipfix_classify_table_add_del) \ 3082 _(IPFIX_CLASSIFY_TABLE_DUMP, ipfix_classify_table_dump) \ 3083 _(SW_INTERFACE_SPAN_ENABLE_DISABLE, sw_interface_span_enable_disable) \ 3084 _(SW_INTERFACE_SPAN_DUMP, sw_interface_span_dump) \ 3085 _(GET_NEXT_INDEX, get_next_index) \ 3086 _(PG_CREATE_INTERFACE,pg_create_interface) \ 3087 _(PG_CAPTURE, pg_capture) \ 3088 _(PG_ENABLE_DISABLE, pg_enable_disable) \ 3089 _(PG_INTERFACE_ENABLE_DISABLE_COALESCE, pg_interface_enable_disable_coalesce) \ 3090 _(POLICER_ADD_DEL, policer_add_del) \ 3091 _(POLICER_DUMP, policer_dump) \ 3092 _(POLICER_CLASSIFY_SET_INTERFACE, policer_classify_set_interface) \ 3093 _(POLICER_CLASSIFY_DUMP, policer_classify_dump) \ 3094 _(IP_SOURCE_AND_PORT_RANGE_CHECK_ADD_DEL, \ 3095 ip_source_and_port_range_check_add_del) \ 3096 _(IP_SOURCE_AND_PORT_RANGE_CHECK_INTERFACE_ADD_DEL, \ 3097 ip_source_and_port_range_check_interface_add_del) \ 3098 _(IPSEC_INTERFACE_ADD_DEL_SPD, ipsec_interface_add_del_spd) \ 3099 _(IPSEC_SAD_ENTRY_ADD_DEL, ipsec_sad_entry_add_del) \ 3100 _(IPSEC_SPD_ADD_DEL, ipsec_spd_add_del) \ 3101 _(IPSEC_SPD_ENTRY_ADD_DEL, ipsec_spd_entry_add_del) \ 3102 _(IPSEC_TUNNEL_IF_ADD_DEL, ipsec_tunnel_if_add_del) \ 3103 _(DELETE_SUBIF, delete_subif) \ 3104 _(L2_INTERFACE_PBB_TAG_REWRITE, l2_interface_pbb_tag_rewrite) \ 3105 _(SET_PUNT, set_punt) \ 3106 _(FLOW_CLASSIFY_SET_INTERFACE, flow_classify_set_interface) \ 3107 _(FLOW_CLASSIFY_DUMP, flow_classify_dump) \ 3108 _(GET_FIRST_MSG_ID, get_first_msg_id) \ 3109 _(IOAM_ENABLE, ioam_enable) \ 3110 _(IOAM_DISABLE, ioam_disable) \ 3111 _(FEATURE_ENABLE_DISABLE, feature_enable_disable) \ 3112 _(FEATURE_GSO_ENABLE_DISABLE, feature_gso_enable_disable) \ 3113 _(SW_INTERFACE_TAG_ADD_DEL, sw_interface_tag_add_del) \ 3114 _(HW_INTERFACE_SET_MTU, hw_interface_set_mtu) \ 3115 _(P2P_ETHERNET_ADD, p2p_ethernet_add) \ 3116 _(P2P_ETHERNET_DEL, p2p_ethernet_del) \ 3117 _(TCP_CONFIGURE_SRC_ADDRESSES, tcp_configure_src_addresses) \ 3118 _(APP_NAMESPACE_ADD_DEL, app_namespace_add_del) \ 3119 _(SESSION_RULE_ADD_DEL, session_rule_add_del) \ 3120 _(OUTPUT_ACL_SET_INTERFACE, output_acl_set_interface) \ 3121 _(QOS_RECORD_ENABLE_DISABLE, qos_record_enable_disable) \ 3122 _(MEMCLNT_KEEPALIVE_REPLY, memclnt_keepalive_reply) 3127 #define _(n,f) am->msg_print_handlers[VL_API_##n] \ 3128 = (void *) vl_api_##f##_t_print; static void * vl_api_sw_interface_set_flags_t_print(vl_api_sw_interface_set_flags_t *mp, void *handle)
static void * vl_api_create_vhost_user_if_t_print(vl_api_create_vhost_user_if_t *mp, void *handle)
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)
vl_api_vxlan_gbp_tunnel_t tunnel
vl_api_interface_index_t 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
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_vxlan_offload_rx_t_print(vl_api_vxlan_offload_rx_t *mp, void *handle)
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)
Create a point-to-point (p2p) Ethernet sub-interface.
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
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_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.
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
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)
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
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
vl_api_interface_index_t sw_if_index
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)
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]
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)
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]
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
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)
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
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)
vl_api_interface_index_t sw_if_index
#define clib_memcpy(d, s, n)
vl_api_mac_address_t mac_address
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
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 __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)
Add / del table request A table can be added multiple times, but need be deleted only once...
vl_api_srv6_sid_list_t sids
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)
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
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)
description fragment has unexpected format
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)
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.
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)
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.
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_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)
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.
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]
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.
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)
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
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_interface_index_t sw_if_index
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
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
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
PacketGenerator create interface request.
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)
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)
bool is_enabled[default=true]
sll srl srl sll sra u16x4 i
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)
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.
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_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_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.
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_qos_record_t record
Get list of policer classify interfaces and tables.
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_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)
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.
#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
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)
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
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
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_mac_address_t host_mac_addr
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)
Configure IPFIX exporter process request.
#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)
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]
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 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
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)
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
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
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)
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)
Associate the specified interface with a fib table.
static void * vl_api_feature_enable_disable_t_print(vl_api_feature_enable_disable_t *mp, void *handle)
static void * vl_api_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
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_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...