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

void bond_disable_collecting_distributing (vlib_main_t *vm, slave_if_t *sif)
 
void bond_enable_collecting_distributing (vlib_main_t *vm, slave_if_t *sif)
 
int bond_dump_ifs (bond_interface_details_t **out_bondifs)
 
int bond_dump_slave_ifs (slave_interface_details_t **out_slaveifs, u32 bond_sw_if_index)
 
static void bond_delete_neighbor (vlib_main_t *vm, bond_if_t *bif, slave_if_t *sif)
 
int bond_delete_if (vlib_main_t *vm, u32 sw_if_index)
 
void bond_create_if (vlib_main_t *vm, bond_create_if_args_t *args)
 
static clib_error_tbond_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tbond_delete_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void bond_enslave (vlib_main_t *vm, bond_enslave_args_t *args)
 
static clib_error_tenslave_interface_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void bond_detach_slave (vlib_main_t *vm, bond_detach_slave_args_t *args)
 
static clib_error_tdetach_interface_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void show_bond (vlib_main_t *vm)
 
static void show_bond_details (vlib_main_t *vm)
 
static clib_error_tshow_bond_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tbond_cli_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t bond_create_command
 (constructor) VLIB_CLI_COMMAND (bond_create_command) More...
 
static vlib_cli_command_t bond_delete__command
 (constructor) VLIB_CLI_COMMAND (bond_delete__command) More...
 
static vlib_cli_command_t enslave_interface_command
 (constructor) VLIB_CLI_COMMAND (enslave_interface_command) More...
 
static vlib_cli_command_t detach_interface_command
 (constructor) VLIB_CLI_COMMAND (detach_interface_command) More...
 
static vlib_cli_command_t show_bond_command
 (constructor) VLIB_CLI_COMMAND (show_bond_command) More...
 

Function Documentation

clib_error_t* bond_cli_init ( vlib_main_t vm)

Definition at line 751 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 326 of file cli.c.

+ Here is the call graph for this function:

void bond_create_if ( vlib_main_t vm,
bond_create_if_args_t args 
)

Definition at line 245 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 374 of file cli.c.

+ Here is the call graph for this function:

int bond_delete_if ( vlib_main_t vm,
u32  sw_if_index 
)

Definition at line 190 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void bond_delete_neighbor ( vlib_main_t vm,
bond_if_t bif,
slave_if_t sif 
)
static

Definition at line 152 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void bond_detach_slave ( vlib_main_t vm,
bond_detach_slave_args_t args 
)

Definition at line 596 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void bond_disable_collecting_distributing ( vlib_main_t vm,
slave_if_t sif 
)

Definition at line 25 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int bond_dump_ifs ( bond_interface_details_t **  out_bondifs)

Definition at line 82 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int bond_dump_slave_ifs ( slave_interface_details_t **  out_slaveifs,
u32  bond_sw_if_index 
)

Definition at line 113 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void bond_enable_collecting_distributing ( vlib_main_t vm,
slave_if_t sif 
)

Definition at line 59 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void bond_enslave ( vlib_main_t vm,
bond_enslave_args_t args 
)

Definition at line 422 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 613 of file cli.c.

+ Here is the call graph for this function:

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

Definition at line 542 of file cli.c.

+ Here is the call graph for this function:

static void show_bond ( vlib_main_t vm)
static

Definition at line 658 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void show_bond_details ( vlib_main_t vm)
static

Definition at line 680 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 718 of file cli.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t bond_create_command
static
Initial value:
= {
.path = "create bond",
.short_help = "create bond mode {round-robin | active-backup | broadcast | "
"{lacp | xor} [load-balance { l2 | l23 | l34 }]} [hw-addr <mac-address>]",
}
static clib_error_t * bond_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:326

(constructor) VLIB_CLI_COMMAND (bond_create_command)

Definition at line 365 of file cli.c.

vlib_cli_command_t bond_delete__command
static
Initial value:
=
{
.path = "delete bond",
.short_help = "delete bond {<interface> | sw_if_index <sw_idx>}",
}
static clib_error_t * bond_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:374

(constructor) VLIB_CLI_COMMAND (bond_delete__command)

Definition at line 413 of file cli.c.

vlib_cli_command_t detach_interface_command
static
Initial value:
= {
.path = "bond del",
.short_help = "bond del <slave-interface>",
}
static clib_error_t * detach_interface_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:613

(constructor) VLIB_CLI_COMMAND (detach_interface_command)

Definition at line 650 of file cli.c.

vlib_cli_command_t enslave_interface_command
static
Initial value:
= {
.path = "bond add",
.short_help = "bond add <BondEthernetx> <slave-interface> "
"[passive] [long-timeout]",
}
static clib_error_t * enslave_interface_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:542

(constructor) VLIB_CLI_COMMAND (enslave_interface_command)

Definition at line 587 of file cli.c.

vlib_cli_command_t show_bond_command
static
Initial value:
= {
.path = "show bond",
.short_help = "show bond [details]",
.function = show_bond_fn,
}
static clib_error_t * show_bond_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:718

(constructor) VLIB_CLI_COMMAND (show_bond_command)

Definition at line 743 of file cli.c.