2 import "plugins/lb/lb_types.api";
3 import "vnet/interface_types.api";
21 u32 sticky_buckets_per_core [
default=0xffffffff];
22 u32 flow_timeout [
default=0xffffffff];
23 option vat_help =
"[ip4-src-address <addr>] [ip6-src-address <addr>] [buckets <n>] [timeout <s>]";
41 autoreply manual_print define lb_add_del_vip {
44 vl_api_address_with_prefix_t
pfx;
49 vl_api_lb_srv_type_t
type ;
52 u32 new_flows_table_length [
default=1024];
54 option vat_help =
"<prefix> [protocol (tcp|udp) port <n>] [encap (gre6|gre4|l3dsr|nat4|nat6)] [dscp <n>] [type (nodeport|clusterip) target_port <n>] [new_len <n>] [del]";
67 autoreply manual_print define lb_add_del_as {
70 vl_api_address_with_prefix_t
pfx;
76 option vat_help =
"<vip-prefix> [protocol (tcp|udp) port <n>] [<address>] [del] [flush]";
86 autoreply manual_print define lb_flush_vip {
89 vl_api_address_with_prefix_t
pfx;
101 vl_api_address_with_prefix_t
pfx;
112 define lb_vip_details {
133 vl_api_address_with_prefix_t
pfx;
136 option vat_help =
"<vip-prefix> [protocol (tcp|udp) port <n>]";
143 define lb_as_details {
157 autoreply define lb_add_del_intf_nat4 {
170 autoreply define lb_add_del_intf_nat6 {
vl_api_address_t as_address
vl_api_lb_srv_type_t srv_type
int lb_conf(ip4_address_t *ip4_address, ip6_address_t *ip6_address, u32 per_cpu_sticky_buckets, u32 flow_timeout)
Fix global load-balancer parameters.
vl_api_ip_proto_t protocol
vl_api_address_with_prefix_t pfx
vl_api_address_with_prefix_t pfx
vl_api_lb_encap_type_t encap
vl_api_ip6_address_t ip6_src_address
vl_api_lb_srv_type_t type
vl_api_address_with_prefix_t pfx
vl_api_address_with_prefix_t pfx
vl_api_interface_index_t sw_if_index
vl_api_address_with_prefix_t pfx
vl_api_ip4_address_t ip4_src_address
vl_api_interface_index_t sw_if_index
vl_api_lb_encap_type_t encap
vl_api_prefix_matcher_t pfx_matcher