LLDP CLI handling.
More...
Go to the source code of this file.
|
#define | F(num, val, str) |
|
#define | F(num, val, str) |
|
#define | F(n, t, s) |
|
|
static clib_error_t * | lldp_cfg_err_to_clib_err (lldp_cfg_err_t e) |
|
static lldp_cfg_err_t | lldp_cfg_intf_set (u32 hw_if_index, int enable) |
|
static clib_error_t * | lldp_intf_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static lldp_cfg_err_t | lldp_cfg_set (u8 **host, int hold_time, int tx_interval) |
|
static clib_error_t * | lldp_cfg_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static const char * | lldp_chassis_id_subtype_str (lldp_chassis_id_subtype_t t) |
|
static const char * | lldp_port_id_subtype_str (lldp_port_id_subtype_t t) |
|
u8 * | format_lldp_port_id (u8 *s, va_list *va) |
|
u8 * | format_lldp_chassis_id (u8 *s, va_list *va) |
|
static const char * | lldp_tlv_code_str (lldp_tlv_code_t t) |
|
u8 * | format_lldp_tlv (u8 *s, va_list *va) |
|
static u8 * | format_time_ago (u8 *s, va_list *va) |
|
static u8 * | format_lldp_intfs_detail (u8 *s, vlib_main_t *vm, const lldp_main_t *lm) |
|
static u8 * | format_lldp_intfs (u8 *s, va_list *va) |
|
static clib_error_t * | show_lldp (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
u8 * | lldp_input_format_trace (u8 *s, va_list *args) |
|
LLDP CLI handling.
Definition in file lldp_cli.c.
#define F |
( |
|
num, |
|
|
|
val, |
|
|
|
str |
|
) |
| |
#define F |
( |
|
num, |
|
|
|
val, |
|
|
|
str |
|
) |
| |
Enumerator |
---|
lldp_ok |
|
lldp_not_supported |
|
lldp_invalid_arg |
|
Definition at line 28 of file lldp_cli.c.
u8* format_lldp_chassis_id |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
static u8* format_lldp_intfs |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
|
static |
u8* format_lldp_port_id |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
u8* format_lldp_tlv |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
static u8* format_time_ago |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
|
static |
static lldp_cfg_err_t lldp_cfg_set |
( |
u8 ** |
host, |
|
|
int |
hold_time, |
|
|
int |
tx_interval |
|
) |
| |
|
static |
u8* lldp_input_format_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
Initial value:= {
.path = "set interface lldp",
.short_help = "set interface lldp <interface> (enable | disable) ",
}
static clib_error_t * lldp_intf_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (set_interface_lldp_cmd)
Definition at line 211 of file lldp_cli.c.
Initial value:= {
.path = "set lldp",
.short_help = "set lldp [system-name <string>] [tx-hold <value>] "
"[tx-interval <value>]",
}
static clib_error_t * lldp_cfg_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (set_lldp_cmd)
Definition at line 217 of file lldp_cli.c.
Initial value:= {
.path = "show lldp",
.short_help = "show lldp [detail]",
}
static clib_error_t * show_lldp(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
(constructor) VLIB_CLI_COMMAND (show_lldp_command)
Definition at line 597 of file lldp_cli.c.