|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
BFD CLI implementation.
More...
Go to the source code of this file.
|
#define | INTERFACE_STR "interface" |
|
#define | LOCAL_ADDR_STR "local-addr" |
|
#define | PEER_ADDR_STR "peer-addr" |
|
#define | CONF_KEY_ID_STR "conf-key-id" |
|
#define | BFD_KEY_ID_STR "bfd-key-id" |
|
#define | DESIRED_MIN_TX_STR "desired-min-tx" |
|
#define | REQUIRED_MIN_RX_STR "required-min-rx" |
|
#define | DETECT_MULT_STR "detect-mult" |
|
#define | ADMIN_STR "admin" |
|
#define | DELAYED_STR "delayed" |
|
#define | DECLARE(t, n, s, r, ...) |
|
#define | UNFORMAT(t, n, s, r, ...) |
|
#define | CHECK_MANDATORY(t, n, s, r, ...) |
|
#define | foreach_bfd_cli_udp_session_add_cli_param(F) |
|
#define | foreach_bfd_cli_udp_session_mod_cli_param(F) |
|
#define | foreach_bfd_cli_udp_session_del_cli_param(F) |
|
#define | foreach_bfd_cli_udp_session_set_flags_cli_param(F) |
|
#define | foreach_bfd_cli_udp_session_auth_activate_cli_param(F) |
|
#define | foreach_bfd_cli_udp_session_auth_deactivate_cli_param(F) |
|
#define | foreach_bfd_cli_udp_set_echo_source_cli_param(F) |
|
|
static u8 * | format_bfd_session_cli (u8 *s, va_list *args) |
|
static clib_error_t * | show_bfd (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
static clib_error_t * | bfd_cli_key_add (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
static clib_error_t * | bfd_cli_key_del (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
static clib_error_t * | bfd_cli_udp_session_add (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
static clib_error_t * | bfd_cli_udp_session_mod (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
static clib_error_t * | bfd_cli_udp_session_del (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
static clib_error_t * | bfd_cli_udp_session_set_flags (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
static clib_error_t * | bfd_cli_udp_session_auth_activate (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
static clib_error_t * | bfd_cli_udp_session_auth_deactivate (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
static clib_error_t * | bfd_cli_udp_set_echo_source (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
static clib_error_t * | bfd_cli_udp_del_echo_source (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd)) |
|
BFD CLI implementation.
Definition in file bfd_cli.c.
◆ ADMIN_STR
#define ADMIN_STR "admin" |
◆ BFD_KEY_ID_STR
#define BFD_KEY_ID_STR "bfd-key-id" |
◆ CHECK_MANDATORY
#define CHECK_MANDATORY |
( |
|
t, |
|
|
|
n, |
|
|
|
s, |
|
|
|
r, |
|
|
|
... |
|
) |
| |
Value:
{ \
WARN_ON(tautological-compare) \
goto out; \
}
Definition at line 391 of file bfd_cli.c.
◆ CONF_KEY_ID_STR
#define CONF_KEY_ID_STR "conf-key-id" |
◆ DECLARE
#define DECLARE |
( |
|
t, |
|
|
|
n, |
|
|
|
s, |
|
|
|
r, |
|
|
|
... |
|
) |
| |
◆ DELAYED_STR
#define DELAYED_STR "delayed" |
◆ DESIRED_MIN_TX_STR
#define DESIRED_MIN_TX_STR "desired-min-tx" |
◆ DETECT_MULT_STR
#define DETECT_MULT_STR "detect-mult" |
◆ foreach_bfd_cli_udp_session_add_cli_param
#define foreach_bfd_cli_udp_session_add_cli_param |
( |
|
F | ) |
|
◆ foreach_bfd_cli_udp_session_auth_activate_cli_param
#define foreach_bfd_cli_udp_session_auth_activate_cli_param |
( |
|
F | ) |
|
◆ foreach_bfd_cli_udp_session_auth_deactivate_cli_param
#define foreach_bfd_cli_udp_session_auth_deactivate_cli_param |
( |
|
F | ) |
|
◆ foreach_bfd_cli_udp_session_del_cli_param
#define foreach_bfd_cli_udp_session_del_cli_param |
( |
|
F | ) |
|
◆ foreach_bfd_cli_udp_session_mod_cli_param
#define foreach_bfd_cli_udp_session_mod_cli_param |
( |
|
F | ) |
|
◆ foreach_bfd_cli_udp_session_set_flags_cli_param
#define foreach_bfd_cli_udp_session_set_flags_cli_param |
( |
|
F | ) |
|
◆ foreach_bfd_cli_udp_set_echo_source_cli_param
#define foreach_bfd_cli_udp_set_echo_source_cli_param |
( |
|
F | ) |
|
◆ INTERFACE_STR
#define INTERFACE_STR "interface" |
◆ LOCAL_ADDR_STR
#define LOCAL_ADDR_STR "local-addr" |
◆ PEER_ADDR_STR
#define PEER_ADDR_STR "peer-addr" |
◆ REQUIRED_MIN_RX_STR
#define REQUIRED_MIN_RX_STR "required-min-rx" |
◆ UNFORMAT
#define UNFORMAT |
( |
|
t, |
|
|
|
n, |
|
|
|
s, |
|
|
|
r, |
|
|
|
... |
|
) |
| |
Value: if (
unformat (line_input, s
" " __VA_ARGS__, &n)) \
{ \
something_parsed = 1; \
have_##n = 1; \
}
Definition at line 384 of file bfd_cli.c.
◆ bfd_cli_key_add()
◆ bfd_cli_key_del()
◆ bfd_cli_udp_del_echo_source()
◆ bfd_cli_udp_session_add()
◆ bfd_cli_udp_session_auth_activate()
◆ bfd_cli_udp_session_auth_deactivate()
◆ bfd_cli_udp_session_del()
◆ bfd_cli_udp_session_mod()
◆ bfd_cli_udp_session_set_flags()
◆ bfd_cli_udp_set_echo_source()
◆ format_bfd_session_cli()
static u8* format_bfd_session_cli |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ show_bfd()
◆ bfd_cli_key_add_command
Initial value:= {
.path = "bfd key set",
.short_help = "bfd key set"
" conf-key-id <id>"
" type <keyed-sha1|meticulous-keyed-sha1> "
" secret <secret>",
}
(constructor) VLIB_CLI_COMMAND (bfd_cli_key_add_command)
Definition at line 314 of file bfd_cli.c.
◆ bfd_cli_key_del_command
Initial value:= {
.path = "bfd key del",
.short_help = "bfd key del conf-key-id <id>",
}
(constructor) VLIB_CLI_COMMAND (bfd_cli_key_del_command)
Definition at line 359 of file bfd_cli.c.
◆ bfd_cli_udp_del_echo_source_cmd
Initial value:= {
.path = "bfd udp echo-source del",
.short_help = "bfd udp echo-source del",
}
(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_del_echo_source_cmd)
Definition at line 968 of file bfd_cli.c.
◆ bfd_cli_udp_session_add_command
Initial value:= {
.path = "bfd udp session add",
.short_help = "bfd udp session add"
" interface <interface>"
" local-addr <local-address>"
" peer-addr <peer-address>"
" desired-min-tx <desired min tx interval>"
" required-min-rx <required min rx interval>"
" detect-mult <detect multiplier> "
"["
" conf-key-id <config key ID>"
" bfd-key-id <BFD key ID>"
"]",
}
(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_add_command)
Definition at line 481 of file bfd_cli.c.
◆ bfd_cli_udp_session_auth_activate_command
Initial value:= {
.path = "bfd udp session auth activate",
.short_help = "bfd udp session auth activate"
" interface <interface>"
" local-addr <local-address>"
" peer-addr <peer-address>"
" conf-key-id <config key ID>"
" bfd-key-id <BFD key ID>"
" [ delayed <yes|no> ]",
}
(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_auth_activate_command)
Definition at line 803 of file bfd_cli.c.
◆ bfd_cli_udp_session_auth_deactivate_command
Initial value:= {
.path = "bfd udp session auth deactivate",
.short_help = "bfd udp session auth deactivate"
" interface <interface>"
" local-addr <local-address>"
" peer-addr <peer-address>"
"[ delayed <yes|no> ]",
}
(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_auth_deactivate_command)
Definition at line 888 of file bfd_cli.c.
◆ bfd_cli_udp_session_del_command
Initial value:= {
.path = "bfd udp session del",
.short_help = "bfd udp session del interface"
" <interface> local-addr"
" <local-address> peer-addr"
"<peer-address> ",
}
(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_del_command)
Definition at line 624 of file bfd_cli.c.
◆ bfd_cli_udp_session_mod_command
Initial value:= {
.path = "bfd udp session mod",
.short_help = "bfd udp session mod interface"
" <interface> local-addr"
" <local-address> peer-addr"
" <peer-address> desired-min-tx"
" <desired min tx interval> required-min-rx"
" <required min rx interval> detect-mult"
" <detect multiplier> ",
}
(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_mod_command)
Definition at line 560 of file bfd_cli.c.
◆ bfd_cli_udp_session_set_flags_command
Initial value:= {
.path = "bfd udp session set-flags",
.short_help = "bfd udp session set-flags"
" interface <interface>"
" local-addr <local-address>"
" peer-addr <peer-address>"
" admin <up|down>",
}
(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_set_flags_command)
Definition at line 706 of file bfd_cli.c.
◆ bfd_cli_udp_set_echo_source_cmd
Initial value:= {
.path = "bfd udp echo-source set",
.short_help = "bfd udp echo-source set interface <interface>",
}
(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_set_echo_source_cmd)
Definition at line 945 of file bfd_cli.c.
◆ mandatory
const unsigned mandatory = 1 |
|
static |
◆ optional
const unsigned optional = 0 |
|
static |
◆ show_bfd_command
Initial value:= {
.path = "show bfd",
.short_help = "show bfd [keys|sessions|echo-source]",
}
(constructor) VLIB_CLI_COMMAND (show_bfd_command)
Definition at line 216 of file bfd_cli.c.
static clib_error_t * bfd_cli_key_add(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
static clib_error_t * bfd_cli_key_del(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
static const unsigned optional
static clib_error_t * show_bfd(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
#define clib_error_return(e, args...)
#define DESIRED_MIN_TX_STR
vnet_hw_if_output_node_runtime_t * r
static clib_error_t * bfd_cli_udp_session_add(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
static clib_error_t * bfd_cli_udp_session_del(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
static clib_error_t * bfd_cli_udp_session_mod(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
#define REQUIRED_MIN_RX_STR
unformat_function_t unformat_vnet_sw_interface
static clib_error_t * bfd_cli_udp_session_auth_activate(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
static clib_error_t * bfd_cli_udp_session_auth_deactivate(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
static clib_error_t * bfd_cli_udp_session_set_flags(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
static clib_error_t * bfd_cli_udp_set_echo_source(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
static const unsigned mandatory
vl_api_interface_index_t sw_if_index
static clib_error_t * bfd_cli_udp_del_echo_source(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))