FD.io VPP  v18.07.1-19-g511ce25
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)
 

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_flowtable_flush_command
 (constructor) VLIB_CLI_COMMAND (lb_flowtable_flush_command) More...
 

Function Documentation

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 176 of file cli.c.

+ Here is the call graph for this function:

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 250 of file cli.c.

+ Here is the call graph for this function:

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 447 of file cli.c.

+ Here is the call graph for this function:

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 419 of file cli.c.

+ Here is the call graph for this function:

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 433 of file cli.c.

+ Here is the call graph for this function:

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 354 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 308 of file cli.c.

+ Here is the call graph for this function:

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 324 of file cli.c.

+ Here is the call graph for this function:

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

vlib_cli_command_t lb_as_command
static
Initial value:
=
{
.path = "lb as",
.short_help = "lb as <vip-prefix> [<address> [<address> [...]]] [del]",
.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:176

(constructor) VLIB_CLI_COMMAND (lb_as_command)

Definition at line 242 of file cli.c.

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:250

(constructor) VLIB_CLI_COMMAND (lb_conf_command)

Definition at line 300 of file cli.c.

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:447

(constructor) VLIB_CLI_COMMAND (lb_flowtable_flush_command)

Definition at line 477 of file cli.c.

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:419

(constructor) VLIB_CLI_COMMAND (lb_set_interface_nat4_command)

Definition at line 426 of file cli.c.

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:433

(constructor) VLIB_CLI_COMMAND (lb_set_interface_nat6_command)

Definition at line 440 of file cli.c.

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:308

(constructor) VLIB_CLI_COMMAND (lb_show_command)

Definition at line 316 of file cli.c.

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:324

(constructor) VLIB_CLI_COMMAND (lb_show_vips_command)

Definition at line 346 of file cli.c.

vlib_cli_command_t lb_vip_command
static
Initial value:
=
{
.path = "lb vip",
.short_help = "lb vip <prefix> [encap (gre6|gre4|l3dsr|nat4|nat6)] "
"[dscp <n>] "
"[type (nodeport|clusterip) port <n> target_port <n> node_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 165 of file cli.c.