FD.io VPP  v20.05-21-gb1500e9ff
Vector Packet Processing
cli.c File Reference
+ Include dependency graph for cli.c:

Go to the source code of this file.

Functions

static clib_error_tlb_vip_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlb_as_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlb_conf_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlb_show_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlb_show_vips_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlb_set_interface_nat_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd, u8 is_nat6)
 
static clib_error_tlb_set_interface_nat4_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlb_set_interface_nat6_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlb_flowtable_flush_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlb_flush_vip_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t lb_vip_command
 (constructor) VLIB_CLI_COMMAND (lb_vip_command) More...
 
static vlib_cli_command_t lb_as_command
 (constructor) VLIB_CLI_COMMAND (lb_as_command) More...
 
static vlib_cli_command_t lb_conf_command
 (constructor) VLIB_CLI_COMMAND (lb_conf_command) More...
 
static vlib_cli_command_t lb_show_command
 (constructor) VLIB_CLI_COMMAND (lb_show_command) More...
 
static vlib_cli_command_t lb_show_vips_command
 (constructor) VLIB_CLI_COMMAND (lb_show_vips_command) More...
 
static vlib_cli_command_t lb_set_interface_nat4_command
 (constructor) VLIB_CLI_COMMAND (lb_set_interface_nat4_command) More...
 
static vlib_cli_command_t lb_set_interface_nat6_command
 (constructor) VLIB_CLI_COMMAND (lb_set_interface_nat6_command) More...
 
static vlib_cli_command_t lb_flush_vip_command
 (constructor) VLIB_CLI_COMMAND (lb_flush_vip_command) More...
 
static vlib_cli_command_t lb_flowtable_flush_command
 (constructor) VLIB_CLI_COMMAND (lb_flowtable_flush_command) More...
 

Function Documentation

◆ lb_as_command_fn()

static clib_error_t* lb_as_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 193 of file cli.c.

+ Here is the call graph for this function:

◆ lb_conf_command_fn()

static clib_error_t* lb_conf_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 301 of file cli.c.

+ Here is the call graph for this function:

◆ lb_flowtable_flush_command_fn()

static clib_error_t* lb_flowtable_flush_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 501 of file cli.c.

+ Here is the call graph for this function:

◆ lb_flush_vip_command_fn()

static clib_error_t* lb_flush_vip_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 510 of file cli.c.

+ Here is the call graph for this function:

◆ lb_set_interface_nat4_command_fn()

static clib_error_t* lb_set_interface_nat4_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 473 of file cli.c.

+ Here is the call graph for this function:

◆ lb_set_interface_nat6_command_fn()

static clib_error_t* lb_set_interface_nat6_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 487 of file cli.c.

+ Here is the call graph for this function:

◆ lb_set_interface_nat_command_fn()

static clib_error_t* lb_set_interface_nat_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd,
u8  is_nat6 
)
static

Definition at line 408 of file cli.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lb_show_command_fn()

static clib_error_t* lb_show_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 359 of file cli.c.

+ Here is the call graph for this function:

◆ lb_show_vips_command_fn()

static clib_error_t* lb_show_vips_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 375 of file cli.c.

+ Here is the call graph for this function:

◆ lb_vip_command_fn()

static clib_error_t* lb_vip_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 20 of file cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ lb_as_command

vlib_cli_command_t lb_as_command
static
Initial value:
=
{
.path = "lb as",
.short_help = "lb as <vip-prefix> [protocol (tcp|udp) port <n>]"
" [<address> [<address> [...]]] [del] [flush]",
.function = lb_as_command_fn,
}
static clib_error_t * lb_as_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:193

(constructor) VLIB_CLI_COMMAND (lb_as_command)

Definition at line 292 of file cli.c.

◆ lb_conf_command

vlib_cli_command_t lb_conf_command
static
Initial value:
=
{
.path = "lb conf",
.short_help = "lb conf [ip4-src-address <addr>] [ip6-src-address <addr>] [buckets <n>] [timeout <s>]",
.function = lb_conf_command_fn,
}
static clib_error_t * lb_conf_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:301

(constructor) VLIB_CLI_COMMAND (lb_conf_command)

Definition at line 351 of file cli.c.

◆ lb_flowtable_flush_command

vlib_cli_command_t lb_flowtable_flush_command
static
Initial value:
=
{
.path = "test lb flowtable flush",
.short_help = "test lb flowtable flush",
}
static clib_error_t * lb_flowtable_flush_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:501

(constructor) VLIB_CLI_COMMAND (lb_flowtable_flush_command)

Definition at line 588 of file cli.c.

◆ lb_flush_vip_command

vlib_cli_command_t lb_flush_vip_command
static
Initial value:
=
{
.path = "lb flush vip",
.short_help = "lb flush vip <prefix> "
"[protocol (tcp|udp) port <n>]",
}
static clib_error_t * lb_flush_vip_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:510

(constructor) VLIB_CLI_COMMAND (lb_flush_vip_command)

Definition at line 576 of file cli.c.

◆ lb_set_interface_nat4_command

vlib_cli_command_t lb_set_interface_nat4_command
static
Initial value:
= {
.path = "lb set interface nat4",
.short_help = "lb set interface nat4 in <intfc> [del]",
}
static clib_error_t * lb_set_interface_nat4_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:473

(constructor) VLIB_CLI_COMMAND (lb_set_interface_nat4_command)

Definition at line 480 of file cli.c.

◆ lb_set_interface_nat6_command

vlib_cli_command_t lb_set_interface_nat6_command
static
Initial value:
= {
.path = "lb set interface nat6",
.short_help = "lb set interface nat6 in <intfc> [del]",
}
static clib_error_t * lb_set_interface_nat6_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:487

(constructor) VLIB_CLI_COMMAND (lb_set_interface_nat6_command)

Definition at line 494 of file cli.c.

◆ lb_show_command

vlib_cli_command_t lb_show_command
static
Initial value:
=
{
.path = "show lb",
.short_help = "show lb",
.function = lb_show_command_fn,
}
static clib_error_t * lb_show_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:359

(constructor) VLIB_CLI_COMMAND (lb_show_command)

Definition at line 367 of file cli.c.

◆ lb_show_vips_command

vlib_cli_command_t lb_show_vips_command
static
Initial value:
=
{
.path = "show lb vips",
.short_help = "show lb vips [verbose]",
}
static clib_error_t * lb_show_vips_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:375

(constructor) VLIB_CLI_COMMAND (lb_show_vips_command)

Definition at line 400 of file cli.c.

◆ lb_vip_command

vlib_cli_command_t lb_vip_command
static
Initial value:
=
{
.path = "lb vip",
.short_help = "lb vip <prefix> "
"[protocol (tcp|udp) port <n>] "
"[encap (gre6|gre4|l3dsr|nat4|nat6)] "
"[dscp <n>] "
"[type (nodeport|clusterip) target_port <n>] "
"[new_len <n>] [del]",
.function = lb_vip_command_fn,
}
static clib_error_t * lb_vip_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:20

(constructor) VLIB_CLI_COMMAND (lb_vip_command)

Definition at line 180 of file cli.c.