FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
bfd_cli.c File Reference

BFD CLI implementation. More...

+ Include dependency graph for bfd_cli.c:

Go to the source code of this file.

Macros

#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)
 

Functions

static u8format_bfd_session_cli (u8 *s, va_list *args)
 
static clib_error_tshow_bfd (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
static clib_error_tbfd_cli_key_add (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
static clib_error_tbfd_cli_key_del (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
static clib_error_tbfd_cli_udp_session_add (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
static clib_error_tbfd_cli_udp_session_mod (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
static clib_error_tbfd_cli_udp_session_del (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
static clib_error_tbfd_cli_udp_session_set_flags (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
static clib_error_tbfd_cli_udp_session_auth_activate (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
static clib_error_tbfd_cli_udp_session_auth_deactivate (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
static clib_error_tbfd_cli_udp_set_echo_source (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 
static clib_error_tbfd_cli_udp_del_echo_source (vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
 

Variables

static vlib_cli_command_t show_bfd_command
 (constructor) VLIB_CLI_COMMAND (show_bfd_command) More...
 
static vlib_cli_command_t bfd_cli_key_add_command
 (constructor) VLIB_CLI_COMMAND (bfd_cli_key_add_command) More...
 
static vlib_cli_command_t bfd_cli_key_del_command
 (constructor) VLIB_CLI_COMMAND (bfd_cli_key_del_command) More...
 
static const unsigned mandatory = 1
 
static const unsigned optional = 0
 
static vlib_cli_command_t bfd_cli_udp_session_add_command
 (constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_add_command) More...
 
static vlib_cli_command_t bfd_cli_udp_session_mod_command
 (constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_mod_command) More...
 
static vlib_cli_command_t bfd_cli_udp_session_del_command
 (constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_del_command) More...
 
static vlib_cli_command_t bfd_cli_udp_session_set_flags_command
 (constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_set_flags_command) More...
 
static vlib_cli_command_t bfd_cli_udp_session_auth_activate_command
 (constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_auth_activate_command) More...
 
static vlib_cli_command_t bfd_cli_udp_session_auth_deactivate_command
 (constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_auth_deactivate_command) More...
 
static vlib_cli_command_t bfd_cli_udp_set_echo_source_cmd
 (constructor) VLIB_CLI_COMMAND (bfd_cli_udp_set_echo_source_cmd) More...
 
static vlib_cli_command_t bfd_cli_udp_del_echo_source_cmd
 (constructor) VLIB_CLI_COMMAND (bfd_cli_udp_del_echo_source_cmd) More...
 

Detailed Description

BFD CLI implementation.

Definition in file bfd_cli.c.

Macro Definition Documentation

◆ ADMIN_STR

#define ADMIN_STR   "admin"

Definition at line 372 of file bfd_cli.c.

◆ BFD_KEY_ID_STR

#define BFD_KEY_ID_STR   "bfd-key-id"

Definition at line 368 of file bfd_cli.c.

◆ CHECK_MANDATORY

#define CHECK_MANDATORY (   t,
  n,
  s,
  r,
  ... 
)
Value:
WARN_OFF(tautological-compare) \
if (mandatory == r && !have_##n) \
{ \
WARN_ON(tautological-compare) \
ret = clib_error_return (0, "Required parameter `%s' missing.", s); \
goto out; \
}
#define clib_error_return(e, args...)
Definition: error.h:99
#define WARN_OFF(x)
Definition: warnings.h:80
static const unsigned mandatory
Definition: bfd_cli.c:375

Definition at line 389 of file bfd_cli.c.

◆ CONF_KEY_ID_STR

#define CONF_KEY_ID_STR   "conf-key-id"

Definition at line 367 of file bfd_cli.c.

◆ DECLARE

#define DECLARE (   t,
  n,
  s,
  r,
  ... 
)
Value:
int have_##n = 0; \
t n;

Definition at line 378 of file bfd_cli.c.

◆ DELAYED_STR

#define DELAYED_STR   "delayed"

Definition at line 373 of file bfd_cli.c.

◆ DESIRED_MIN_TX_STR

#define DESIRED_MIN_TX_STR   "desired-min-tx"

Definition at line 369 of file bfd_cli.c.

◆ DETECT_MULT_STR

#define DETECT_MULT_STR   "detect-mult"

Definition at line 371 of file bfd_cli.c.

◆ foreach_bfd_cli_udp_session_add_cli_param

#define foreach_bfd_cli_udp_session_add_cli_param (   F)
Value:
F (ip46_address_t, local_addr, LOCAL_ADDR_STR, mandatory, "%U", \
F (ip46_address_t, peer_addr, PEER_ADDR_STR, mandatory, "%U", \
F (u32, desired_min_tx, DESIRED_MIN_TX_STR, mandatory, "%u") \
F (u32, required_min_rx, REQUIRED_MIN_RX_STR, mandatory, "%u") \
F (u32, detect_mult, DETECT_MULT_STR, mandatory, "%u") \
F (u32, conf_key_id, CONF_KEY_ID_STR, optional, "%u") \
F (u32, bfd_key_id, BFD_KEY_ID_STR, optional, "%u")
#define INTERFACE_STR
Definition: bfd_cli.c:364
static const unsigned optional
Definition: bfd_cli.c:376
#define REQUIRED_MIN_RX_STR
Definition: bfd_cli.c:370
unformat_function_t unformat_vnet_sw_interface
#define DESIRED_MIN_TX_STR
Definition: bfd_cli.c:369
u32 sw_if_index
Definition: vxlan_gbp.api:37
unsigned int u32
Definition: types.h:88
vnet_main_t vnet_main
Definition: misc.c:43
#define DETECT_MULT_STR
Definition: bfd_cli.c:371
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:365
#define BFD_KEY_ID_STR
Definition: bfd_cli.c:368
#define PEER_ADDR_STR
Definition: bfd_cli.c:366
unformat_function_t unformat_ip46_address
Definition: format.h:65
#define CONF_KEY_ID_STR
Definition: bfd_cli.c:367
static const unsigned mandatory
Definition: bfd_cli.c:375
#define F(n, v, s)
Definition: cuckoo_common.h:38

◆ foreach_bfd_cli_udp_session_auth_activate_cli_param

#define foreach_bfd_cli_udp_session_auth_activate_cli_param (   F)
Value:
F (ip46_address_t, local_addr, LOCAL_ADDR_STR, mandatory, "%U", \
F (ip46_address_t, peer_addr, PEER_ADDR_STR, mandatory, "%U", \
F (u8 *, delayed_token, DELAYED_STR, optional, "%v") \
F (u32, conf_key_id, CONF_KEY_ID_STR, mandatory, "%u") \
F (u32, bfd_key_id, BFD_KEY_ID_STR, mandatory, "%u")
#define INTERFACE_STR
Definition: bfd_cli.c:364
static const unsigned optional
Definition: bfd_cli.c:376
unformat_function_t unformat_vnet_sw_interface
unsigned char u8
Definition: types.h:56
u32 sw_if_index
Definition: vxlan_gbp.api:37
unsigned int u32
Definition: types.h:88
vnet_main_t vnet_main
Definition: misc.c:43
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:365
#define BFD_KEY_ID_STR
Definition: bfd_cli.c:368
#define DELAYED_STR
Definition: bfd_cli.c:373
#define PEER_ADDR_STR
Definition: bfd_cli.c:366
unformat_function_t unformat_ip46_address
Definition: format.h:65
#define CONF_KEY_ID_STR
Definition: bfd_cli.c:367
static const unsigned mandatory
Definition: bfd_cli.c:375
#define F(n, v, s)
Definition: cuckoo_common.h:38

◆ foreach_bfd_cli_udp_session_auth_deactivate_cli_param

#define foreach_bfd_cli_udp_session_auth_deactivate_cli_param (   F)
Value:
F (ip46_address_t, local_addr, LOCAL_ADDR_STR, mandatory, "%U", \
F (ip46_address_t, peer_addr, PEER_ADDR_STR, mandatory, "%U", \
F (u8 *, delayed_token, DELAYED_STR, optional, "%v")
#define INTERFACE_STR
Definition: bfd_cli.c:364
static const unsigned optional
Definition: bfd_cli.c:376
unformat_function_t unformat_vnet_sw_interface
unsigned char u8
Definition: types.h:56
u32 sw_if_index
Definition: vxlan_gbp.api:37
unsigned int u32
Definition: types.h:88
vnet_main_t vnet_main
Definition: misc.c:43
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:365
#define DELAYED_STR
Definition: bfd_cli.c:373
#define PEER_ADDR_STR
Definition: bfd_cli.c:366
unformat_function_t unformat_ip46_address
Definition: format.h:65
static const unsigned mandatory
Definition: bfd_cli.c:375
#define F(n, v, s)
Definition: cuckoo_common.h:38

◆ foreach_bfd_cli_udp_session_del_cli_param

#define foreach_bfd_cli_udp_session_del_cli_param (   F)
Value:
F (ip46_address_t, local_addr, LOCAL_ADDR_STR, mandatory, "%U", \
F (ip46_address_t, peer_addr, PEER_ADDR_STR, mandatory, "%U", \
#define INTERFACE_STR
Definition: bfd_cli.c:364
unformat_function_t unformat_vnet_sw_interface
u32 sw_if_index
Definition: vxlan_gbp.api:37
unsigned int u32
Definition: types.h:88
vnet_main_t vnet_main
Definition: misc.c:43
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:365
#define PEER_ADDR_STR
Definition: bfd_cli.c:366
unformat_function_t unformat_ip46_address
Definition: format.h:65
static const unsigned mandatory
Definition: bfd_cli.c:375
#define F(n, v, s)
Definition: cuckoo_common.h:38

◆ foreach_bfd_cli_udp_session_mod_cli_param

#define foreach_bfd_cli_udp_session_mod_cli_param (   F)
Value:
F (ip46_address_t, local_addr, LOCAL_ADDR_STR, mandatory, "%U", \
F (ip46_address_t, peer_addr, PEER_ADDR_STR, mandatory, "%U", \
F (u32, desired_min_tx, DESIRED_MIN_TX_STR, mandatory, "%u") \
F (u32, required_min_rx, REQUIRED_MIN_RX_STR, mandatory, "%u") \
F (u32, detect_mult, DETECT_MULT_STR, mandatory, "%u")
#define INTERFACE_STR
Definition: bfd_cli.c:364
#define REQUIRED_MIN_RX_STR
Definition: bfd_cli.c:370
unformat_function_t unformat_vnet_sw_interface
#define DESIRED_MIN_TX_STR
Definition: bfd_cli.c:369
u32 sw_if_index
Definition: vxlan_gbp.api:37
unsigned int u32
Definition: types.h:88
vnet_main_t vnet_main
Definition: misc.c:43
#define DETECT_MULT_STR
Definition: bfd_cli.c:371
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:365
#define PEER_ADDR_STR
Definition: bfd_cli.c:366
unformat_function_t unformat_ip46_address
Definition: format.h:65
static const unsigned mandatory
Definition: bfd_cli.c:375
#define F(n, v, s)
Definition: cuckoo_common.h:38

◆ foreach_bfd_cli_udp_session_set_flags_cli_param

#define foreach_bfd_cli_udp_session_set_flags_cli_param (   F)
Value:
F (ip46_address_t, local_addr, LOCAL_ADDR_STR, mandatory, "%U", \
F (ip46_address_t, peer_addr, PEER_ADDR_STR, mandatory, "%U", \
F (u8 *, admin_up_down_token, ADMIN_STR, mandatory, "%v", \
&admin_up_down_token)
#define INTERFACE_STR
Definition: bfd_cli.c:364
unformat_function_t unformat_vnet_sw_interface
unsigned char u8
Definition: types.h:56
u32 sw_if_index
Definition: vxlan_gbp.api:37
unsigned int u32
Definition: types.h:88
vnet_main_t vnet_main
Definition: misc.c:43
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:365
#define PEER_ADDR_STR
Definition: bfd_cli.c:366
unformat_function_t unformat_ip46_address
Definition: format.h:65
static const unsigned mandatory
Definition: bfd_cli.c:375
#define ADMIN_STR
Definition: bfd_cli.c:372
#define F(n, v, s)
Definition: cuckoo_common.h:38

◆ foreach_bfd_cli_udp_set_echo_source_cli_param

#define foreach_bfd_cli_udp_set_echo_source_cli_param (   F)
Value:
#define INTERFACE_STR
Definition: bfd_cli.c:364
unformat_function_t unformat_vnet_sw_interface
u32 sw_if_index
Definition: vxlan_gbp.api:37
unsigned int u32
Definition: types.h:88
vnet_main_t vnet_main
Definition: misc.c:43
static const unsigned mandatory
Definition: bfd_cli.c:375
#define F(n, v, s)
Definition: cuckoo_common.h:38

◆ INTERFACE_STR

#define INTERFACE_STR   "interface"

Definition at line 364 of file bfd_cli.c.

◆ LOCAL_ADDR_STR

#define LOCAL_ADDR_STR   "local-addr"

Definition at line 365 of file bfd_cli.c.

◆ PEER_ADDR_STR

#define PEER_ADDR_STR   "peer-addr"

Definition at line 366 of file bfd_cli.c.

◆ REQUIRED_MIN_RX_STR

#define REQUIRED_MIN_RX_STR   "required-min-rx"

Definition at line 370 of file bfd_cli.c.

◆ UNFORMAT

#define UNFORMAT (   t,
  n,
  s,
  r,
  ... 
)
Value:
if (unformat (line_input, s " " __VA_ARGS__, &n)) \
{ \
something_parsed = 1; \
have_##n = 1; \
}
uword unformat(unformat_input_t *i, const char *fmt,...)
Definition: unformat.c:972

Definition at line 382 of file bfd_cli.c.

Function Documentation

◆ bfd_cli_key_add()

static clib_error_t* bfd_cli_key_add ( vlib_main_t vm,
unformat_input_t input,
CLIB_UNUSED(vlib_cli_command_t *lmd)   
)
static

Definition at line 222 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ bfd_cli_key_del()

static clib_error_t* bfd_cli_key_del ( vlib_main_t vm,
unformat_input_t input,
CLIB_UNUSED(vlib_cli_command_t *lmd)   
)
static

Definition at line 323 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ bfd_cli_udp_del_echo_source()

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)   
)
static

Definition at line 950 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ bfd_cli_udp_session_add()

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

Definition at line 399 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ bfd_cli_udp_session_auth_activate()

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

Definition at line 715 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ bfd_cli_udp_session_auth_deactivate()

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

Definition at line 813 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ bfd_cli_udp_session_del()

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

Definition at line 572 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ bfd_cli_udp_session_mod()

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

Definition at line 497 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ bfd_cli_udp_session_set_flags()

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

Definition at line 633 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ bfd_cli_udp_set_echo_source()

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

Definition at line 897 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ format_bfd_session_cli()

static u8* format_bfd_session_cli ( u8 s,
va_list *  args 
)
static

Definition at line 30 of file bfd_cli.c.

+ Here is the call graph for this function:

◆ show_bfd()

static clib_error_t* show_bfd ( vlib_main_t vm,
unformat_input_t input,
CLIB_UNUSED(vlib_cli_command_t *lmd)   
)
static

Definition at line 119 of file bfd_cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ bfd_cli_key_add_command

vlib_cli_command_t bfd_cli_key_add_command
static
Initial value:
= {
.path = "bfd key set",
.short_help = "bfd key set"
" conf-key-id <id>"
" type <keyed-sha1|meticulous-keyed-sha1> "
" secret <secret>",
.function = bfd_cli_key_add,
}
static clib_error_t * bfd_cli_key_add(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
Definition: bfd_cli.c:222

(constructor) VLIB_CLI_COMMAND (bfd_cli_key_add_command)

Definition at line 312 of file bfd_cli.c.

◆ bfd_cli_key_del_command

vlib_cli_command_t bfd_cli_key_del_command
static
Initial value:
= {
.path = "bfd key del",
.short_help = "bfd key del conf-key-id <id>",
.function = bfd_cli_key_del,
}
static clib_error_t * bfd_cli_key_del(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
Definition: bfd_cli.c:323

(constructor) VLIB_CLI_COMMAND (bfd_cli_key_del_command)

Definition at line 357 of file bfd_cli.c.

◆ bfd_cli_udp_del_echo_source_cmd

vlib_cli_command_t bfd_cli_udp_del_echo_source_cmd
static
Initial value:
= {
.path = "bfd udp echo-source del",
.short_help = "bfd udp echo-source del",
}
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))
Definition: bfd_cli.c:950

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_del_echo_source_cmd)

Definition at line 965 of file bfd_cli.c.

◆ bfd_cli_udp_session_add_command

vlib_cli_command_t bfd_cli_udp_session_add_command
static
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>"
"]",
}
static clib_error_t * bfd_cli_udp_session_add(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
Definition: bfd_cli.c:399

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_add_command)

Definition at line 479 of file bfd_cli.c.

◆ bfd_cli_udp_session_auth_activate_command

vlib_cli_command_t bfd_cli_udp_session_auth_activate_command
static
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> ]",
}
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))
Definition: bfd_cli.c:715

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_auth_activate_command)

Definition at line 800 of file bfd_cli.c.

◆ bfd_cli_udp_session_auth_deactivate_command

vlib_cli_command_t bfd_cli_udp_session_auth_deactivate_command
static
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> ]",
}
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))
Definition: bfd_cli.c:813

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_auth_deactivate_command)

Definition at line 885 of file bfd_cli.c.

◆ bfd_cli_udp_session_del_command

vlib_cli_command_t bfd_cli_udp_session_del_command
static
Initial value:
= {
.path = "bfd udp session del",
.short_help = "bfd udp session del interface"
" <interface> local-addr"
" <local-address> peer-addr"
"<peer-address> ",
}
static clib_error_t * bfd_cli_udp_session_del(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
Definition: bfd_cli.c:572

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_del_command)

Definition at line 622 of file bfd_cli.c.

◆ bfd_cli_udp_session_mod_command

vlib_cli_command_t bfd_cli_udp_session_mod_command
static
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> ",
}
static clib_error_t * bfd_cli_udp_session_mod(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
Definition: bfd_cli.c:497

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_mod_command)

Definition at line 558 of file bfd_cli.c.

◆ bfd_cli_udp_session_set_flags_command

vlib_cli_command_t bfd_cli_udp_session_set_flags_command
static
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>",
}
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))
Definition: bfd_cli.c:633

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_set_flags_command)

Definition at line 703 of file bfd_cli.c.

◆ bfd_cli_udp_set_echo_source_cmd

vlib_cli_command_t bfd_cli_udp_set_echo_source_cmd
static
Initial value:
= {
.path = "bfd udp echo-source set",
.short_help = "bfd udp echo-source set interface <interface>",
}
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))
Definition: bfd_cli.c:897

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_set_echo_source_cmd)

Definition at line 942 of file bfd_cli.c.

◆ mandatory

const unsigned mandatory = 1
static

Definition at line 375 of file bfd_cli.c.

◆ optional

const unsigned optional = 0
static

Definition at line 376 of file bfd_cli.c.

◆ show_bfd_command

vlib_cli_command_t show_bfd_command
static
Initial value:
= {
.path = "show bfd",
.short_help = "show bfd [keys|sessions|echo-source]",
.function = show_bfd,
}
static clib_error_t * show_bfd(vlib_main_t *vm, unformat_input_t *input, CLIB_UNUSED(vlib_cli_command_t *lmd))
Definition: bfd_cli.c:119

(constructor) VLIB_CLI_COMMAND (show_bfd_command)

Definition at line 214 of file bfd_cli.c.