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) |
|
lldp_cfg_err_t | lldp_cfg_intf_set (u32 hw_if_index, u8 **port_desc, u8 **mgmt_ip4, u8 **mgmt_ip6, u8 **mgmt_oid, int enable) |
|
static clib_error_t * | lldp_intf_cmd (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
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.
◆ F [1/3]
#define F |
( |
|
num, |
|
|
|
val, |
|
|
|
str |
|
) |
| |
◆ F [2/3]
#define F |
( |
|
num, |
|
|
|
val, |
|
|
|
str |
|
) |
| |
◆ F [3/3]
◆ format_lldp_chassis_id()
u8* format_lldp_chassis_id |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
◆ format_lldp_intfs()
static u8* format_lldp_intfs |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
|
static |
◆ format_lldp_intfs_detail()
◆ format_lldp_port_id()
u8* format_lldp_port_id |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
◆ format_lldp_tlv()
u8* format_lldp_tlv |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
◆ format_time_ago()
static u8* format_time_ago |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
|
static |
◆ lldp_cfg_cmd()
◆ lldp_cfg_err_to_clib_err()
◆ lldp_cfg_intf_set()
lldp_cfg_err_t lldp_cfg_intf_set |
( |
u32 |
hw_if_index, |
|
|
u8 ** |
port_desc, |
|
|
u8 ** |
mgmt_ip4, |
|
|
u8 ** |
mgmt_ip6, |
|
|
u8 ** |
mgmt_oid, |
|
|
int |
enable |
|
) |
| |
◆ lldp_cfg_set()
◆ lldp_chassis_id_subtype_str()
◆ lldp_input_format_trace()
u8* lldp_input_format_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ lldp_intf_cmd()
◆ lldp_port_id_subtype_str()
◆ lldp_tlv_code_str()
◆ show_lldp()
◆ set_interface_lldp_cmd
Initial value:= {
.path = "set interface lldp",
.short_help = "set interface lldp <interface> | sw_if_index <idx>"
" [port-desc <string>] [mgmt-ip4 <string>]"
" [mgmt-ip6 <string>] [mgmt-oid <string>] [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 270 of file lldp_cli.c.
◆ set_lldp_cmd
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 278 of file lldp_cli.c.
◆ show_lldp_command
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 682 of file lldp_cli.c.