FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
lb.api
Go to the documentation of this file.
1 option version = "1.0.0";
2 
3 /** \brief Configure Load-Balancer global parameters
4  @param client_index - opaque cookie to identify the sender
5  @param context - sender context, to match reply w/ request
6  @param ip4_src_address - IPv4 address to be used as source for IPv4 traffic(applicable in GRE4/GRE6/NAT4/NAT6 mode only).
7  @param ip6_src_address - IPv6 address to be used as source for IPv6 traffic(applicable in GRE4/GRE6/NAT4/NAT6 mode only).
8  @param sticky_buckets_per_core - Number of buckets *per worker thread* in the
9  established flow table (must be power of 2).
10  @param flow_timeout - Time in seconds after which, if no packet is received
11  for a given flow, the flow is removed from the established flow table.
12 */
13 autoreply define lb_conf
14 {
18  u8 ip6_src_address[16];
21 };
22 
23 /** \brief Add a virtual address (or prefix)
24  @param client_index - opaque cookie to identify the sender
25  @param context - sender context, to match reply w/ request
26  @param ip_prefix - IP address (IPv4 in lower order 32 bits).
27  @param prefix_length - IP prefix length (96 + 'IPv4 prefix length' for IPv4).
28  @param encap - Encap is ip4 GRE(0) or ip6 GRE(1) or L3DSR(2) or NAT4(3) or NAT6(4).
29  @param dscp - DSCP bit corresponding to VIP(applicable in L3DSR mode only).
30  @param type - service type(applicable in NAT4/NAT6 mode only).
31  @param port - service port(applicable in NAT4/NAT6 mode only).
32  @param target_port - Pod's port corresponding to specific service(applicable in NAT4/NAT6 mode only).
33  @param node_port - Node's port(applicable in NAT4/NAT6 mode only).
34  @param new_flows_table_length - Size of the new connections flow table used
35  for this VIP (must be power of 2).
36  @param is_del - The VIP should be removed.
37 */
38 autoreply define lb_add_del_vip {
41  u8 ip_prefix[16];
51 };
52 
53 /** \brief Add an application server for a given VIP
54  @param client_index - opaque cookie to identify the sender
55  @param context - sender context, to match reply w/ request
56  @param vip_ip_prefix - VIP IP address (IPv4 in lower order 32 bits).
57  @param vip_ip_prefix - VIP IP prefix length (96 + 'IPv4 prefix length' for IPv4).
58  @param as_address - The application server address (IPv4 in lower order 32 bits).
59  @param is_del - The AS should be removed.
60 */
61 autoreply define lb_add_del_as {
64  u8 vip_ip_prefix[16];
66  u8 as_address[16];
68 };
u32 flow_timeout
Definition: lb.api:20
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.
Definition: lb.c:464
unsigned char u8
Definition: types.h:56
u32 client_index
Definition: lb.api:15
option version
Definition: lb.api:1
unsigned int u32
Definition: types.h:88
unsigned short u16
Definition: types.h:57
u32 context
Definition: lb.api:16
u32 new_flows_table_length
Definition: lb.api:49
u32 sticky_buckets_per_core
Definition: lb.api:19
u32 ip4_src_address
Definition: lb.api:17