FD.io VPP  v16.06
Vector Packet Processing
interface_cli.c File Reference
+ Include dependency graph for interface_cli.c:

Go to the source code of this file.

Functions

static int compare_interface_names (void *a1, void *a2)
 
static clib_error_tshow_or_clear_hw_interfaces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int sw_interface_name_compare (void *a1, void *a2)
 
static clib_error_tshow_sw_interfaces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tclear_interface_counters (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tparse_vlan_sub_interfaces (unformat_input_t *input, vnet_sw_interface_t *template)
 
static clib_error_tcreate_sub_interfaces (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_state (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_unnumbered (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_hw_class (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tvnet_interface_cli_init (vlib_main_t *vm)
 
static clib_error_trenumber_interface_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tpromiscuous_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tmtu_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

vlib_cli_command_t show_hw_interfaces_command
 (constructor) VLIB_CLI_COMMAND (show_hw_interfaces_command) More...
 
vlib_cli_command_t clear_hw_interface_counters_command
 (constructor) VLIB_CLI_COMMAND (clear_hw_interface_counters_command) More...
 
vlib_cli_command_t show_sw_interfaces_command
 (constructor) VLIB_CLI_COMMAND (show_sw_interfaces_command) More...
 
vlib_cli_command_t vnet_cli_interface_command
 (constructor) VLIB_CLI_COMMAND (vnet_cli_interface_command) More...
 
vlib_cli_command_t vnet_cli_set_interface_command
 (constructor) VLIB_CLI_COMMAND (vnet_cli_set_interface_command) More...
 
vlib_cli_command_t clear_interface_counters_command
 (constructor) VLIB_CLI_COMMAND (clear_interface_counters_command) More...
 
vlib_cli_command_t create_sub_interfaces_command
 (constructor) VLIB_CLI_COMMAND (create_sub_interfaces_command) More...
 
vlib_cli_command_t set_state_command
 (constructor) VLIB_CLI_COMMAND (set_state_command) More...
 
vlib_cli_command_t set_unnumbered_command
 (constructor) VLIB_CLI_COMMAND (set_unnumbered_command) More...
 
vlib_cli_command_t set_hw_class_command
 (constructor) VLIB_CLI_COMMAND (set_hw_class_command) More...
 
vlib_cli_command_t renumber_interface_command
 (constructor) VLIB_CLI_COMMAND (renumber_interface_command) More...
 
vlib_cli_command_t set_interface_promiscuous_cmd
 (constructor) VLIB_CLI_COMMAND (set_interface_promiscuous_cmd) More...
 
vlib_cli_command_t set_interface_mtu_cmd
 (constructor) VLIB_CLI_COMMAND (set_interface_mtu_cmd) More...
 

Function Documentation

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

Definition at line 354 of file interface_cli.c.

+ Here is the call graph for this function:

static int compare_interface_names ( void a1,
void a2 
)
static

Definition at line 44 of file interface_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 510 of file interface_cli.c.

+ Here is the call graph for this function:

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

Definition at line 838 of file interface_cli.c.

+ Here is the call graph for this function:

static clib_error_t* parse_vlan_sub_interfaces ( unformat_input_t input,
vnet_sw_interface_t template 
)
static

Definition at line 469 of file interface_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 803 of file interface_cli.c.

+ Here is the call graph for this function:

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

Definition at line 763 of file interface_cli.c.

+ Here is the call graph for this function:

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

Definition at line 718 of file interface_cli.c.

+ Here is the call graph for this function:

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

Definition at line 627 of file interface_cli.c.

+ Here is the call graph for this function:

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

Definition at line 665 of file interface_cli.c.

+ Here is the call graph for this function:

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

Definition at line 53 of file interface_cli.c.

+ Here is the call graph for this function:

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

Definition at line 174 of file interface_cli.c.

+ Here is the call graph for this function:

static int sw_interface_name_compare ( void a1,
void a2 
)
static

Definition at line 164 of file interface_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* vnet_interface_cli_init ( vlib_main_t vm)
static

Definition at line 757 of file interface_cli.c.

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t clear_hw_interface_counters_command
Initial value:
= {
.path = "clear hardware-interfaces",
.short_help = "Clear hardware interfaces statistics",
}
static clib_error_t * show_or_clear_hw_interfaces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:53

(constructor) VLIB_CLI_COMMAND (clear_hw_interface_counters_command)

Definition at line 158 of file interface_cli.c.

vlib_cli_command_t clear_interface_counters_command
Initial value:
= {
.path = "clear interfaces",
.short_help = "Clear interfaces statistics",
}
static clib_error_t * clear_interface_counters(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (clear_interface_counters_command)

Definition at line 403 of file interface_cli.c.

vlib_cli_command_t create_sub_interfaces_command
Initial value:
= {
.path = "create sub-interface",
.short_help = "create sub-interfaces <nn>[-<nn>] [dot1q|dot1ad|default|untagged]",
.function = create_sub_interfaces,
}
static clib_error_t * create_sub_interfaces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (create_sub_interfaces_command)

Definition at line 620 of file interface_cli.c.

vlib_cli_command_t renumber_interface_command
Initial value:
= {
.path = "renumber interface",
.short_help = "renumber interface <if-name> <new-dev-instance>",
}
static clib_error_t * renumber_interface_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (renumber_interface_command)

Definition at line 796 of file interface_cli.c.

vlib_cli_command_t set_hw_class_command
Initial value:
= {
.path = "set interface hw-class",
.short_help = "Set interface hardware class",
.function = set_hw_class,
}
static clib_error_t * set_hw_class(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (set_hw_class_command)

Definition at line 751 of file interface_cli.c.

vlib_cli_command_t set_interface_mtu_cmd
Initial value:
= {
.path = "set interface mtu",
.short_help = "set interface mtu <value> <intfc>",
.function = mtu_cmd,
}
static clib_error_t * mtu_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (set_interface_mtu_cmd)

Definition at line 875 of file interface_cli.c.

vlib_cli_command_t set_interface_promiscuous_cmd
Initial value:
= {
.path = "set interface promiscuous",
.short_help = "set interface promiscuous [on | off] <intfc>",
.function = promiscuous_cmd,
}
static clib_error_t * promiscuous_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (set_interface_promiscuous_cmd)

Definition at line 831 of file interface_cli.c.

vlib_cli_command_t set_state_command
Initial value:
= {
.path = "set interface state",
.short_help = "Set interface state",
.function = set_state,
}
static clib_error_t * set_state(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (set_state_command)

Definition at line 658 of file interface_cli.c.

vlib_cli_command_t set_unnumbered_command
Initial value:
= {
.path = "set interface unnumbered",
.short_help = "set interface unnumbered [<intfc> use <intfc>][del <intfc>]",
.function = set_unnumbered,
}
static clib_error_t * set_unnumbered(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (set_unnumbered_command)

Definition at line 709 of file interface_cli.c.

vlib_cli_command_t show_hw_interfaces_command
Initial value:
= {
.path = "show hardware-interfaces",
.short_help = "show hardware-interfaces [brief|verbose|detail] [bond] [<if-name1> <if-name2> ...]",
}
static clib_error_t * show_or_clear_hw_interfaces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: interface_cli.c:53

(constructor) VLIB_CLI_COMMAND (show_hw_interfaces_command)

Definition at line 152 of file interface_cli.c.

vlib_cli_command_t show_sw_interfaces_command
Initial value:
= {
.path = "show interfaces",
.short_help = "show interfaces [address|addr] [<if-name1> <if-name2> ...]",
.function = show_sw_interfaces,
}
static clib_error_t * show_sw_interfaces(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (show_sw_interfaces_command)

Definition at line 336 of file interface_cli.c.

vlib_cli_command_t vnet_cli_interface_command
Initial value:
= {
.path = "interface",
.short_help = "Interface commands",
}

(constructor) VLIB_CLI_COMMAND (vnet_cli_interface_command)

Definition at line 343 of file interface_cli.c.

vlib_cli_command_t vnet_cli_set_interface_command
Initial value:
= {
.path = "set interface",
.short_help = "Interface commands",
}

(constructor) VLIB_CLI_COMMAND (vnet_cli_set_interface_command)

Definition at line 348 of file interface_cli.c.