FD.io VPP  v17.10-9-gd594711
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 PRAGMA_STR1
 
#define PRAGMA_STR2
 
#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 u8format_vnet_api_errno (u8 *s, va_list *args)
 
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

#define ADMIN_STR   "admin"

Definition at line 371 of file bfd_cli.c.

#define BFD_KEY_ID_STR   "bfd-key-id"

Definition at line 367 of file bfd_cli.c.

#define CHECK_MANDATORY (   t,
  n,
  s,
  r,
  ... 
)
Value:
PRAGMA_STR1 \
if (mandatory == r && !have_##n) \
{ \
ret = clib_error_return (0, "Required parameter `%s' missing.", s); \
goto out; \
}
#define PRAGMA_STR2
Definition: bfd_cli.c:394
#define clib_error_return(e, args...)
Definition: error.h:99
static const unsigned mandatory
Definition: bfd_cli.c:374

Definition at line 397 of file bfd_cli.c.

#define CONF_KEY_ID_STR   "conf-key-id"

Definition at line 366 of file bfd_cli.c.

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

Definition at line 377 of file bfd_cli.c.

#define DELAYED_STR   "delayed"

Definition at line 372 of file bfd_cli.c.

#define DESIRED_MIN_TX_STR   "desired-min-tx"

Definition at line 368 of file bfd_cli.c.

#define DETECT_MULT_STR   "detect-mult"

Definition at line 370 of file bfd_cli.c.

#define foreach_bfd_cli_udp_session_add_cli_param (   F)
Value:
F (u32, sw_if_index, INTERFACE_STR, mandatory, "%U", \
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:363
static const unsigned optional
Definition: bfd_cli.c:375
#define REQUIRED_MIN_RX_STR
Definition: bfd_cli.c:369
#define F(b, c, d)
Definition: md5.c:44
unformat_function_t unformat_vnet_sw_interface
#define DESIRED_MIN_TX_STR
Definition: bfd_cli.c:368
vnet_main_t vnet_main
Definition: misc.c:43
#define DETECT_MULT_STR
Definition: bfd_cli.c:370
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:364
#define BFD_KEY_ID_STR
Definition: bfd_cli.c:367
unsigned int u32
Definition: types.h:88
#define PEER_ADDR_STR
Definition: bfd_cli.c:365
unformat_function_t unformat_ip46_address
Definition: format.h:71
#define CONF_KEY_ID_STR
Definition: bfd_cli.c:366
static const unsigned mandatory
Definition: bfd_cli.c:374
#define foreach_bfd_cli_udp_session_auth_activate_cli_param (   F)
Value:
F (u32, sw_if_index, INTERFACE_STR, mandatory, "%U", \
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:363
static const unsigned optional
Definition: bfd_cli.c:375
#define F(b, c, d)
Definition: md5.c:44
unformat_function_t unformat_vnet_sw_interface
vnet_main_t vnet_main
Definition: misc.c:43
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:364
#define BFD_KEY_ID_STR
Definition: bfd_cli.c:367
#define DELAYED_STR
Definition: bfd_cli.c:372
unsigned int u32
Definition: types.h:88
#define PEER_ADDR_STR
Definition: bfd_cli.c:365
unformat_function_t unformat_ip46_address
Definition: format.h:71
#define CONF_KEY_ID_STR
Definition: bfd_cli.c:366
unsigned char u8
Definition: types.h:56
static const unsigned mandatory
Definition: bfd_cli.c:374
#define foreach_bfd_cli_udp_session_auth_deactivate_cli_param (   F)
Value:
F (u32, sw_if_index, INTERFACE_STR, mandatory, "%U", \
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:363
static const unsigned optional
Definition: bfd_cli.c:375
#define F(b, c, d)
Definition: md5.c:44
unformat_function_t unformat_vnet_sw_interface
vnet_main_t vnet_main
Definition: misc.c:43
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:364
#define DELAYED_STR
Definition: bfd_cli.c:372
unsigned int u32
Definition: types.h:88
#define PEER_ADDR_STR
Definition: bfd_cli.c:365
unformat_function_t unformat_ip46_address
Definition: format.h:71
unsigned char u8
Definition: types.h:56
static const unsigned mandatory
Definition: bfd_cli.c:374
#define foreach_bfd_cli_udp_session_del_cli_param (   F)
Value:
F (u32, sw_if_index, INTERFACE_STR, mandatory, "%U", \
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:363
#define F(b, c, d)
Definition: md5.c:44
unformat_function_t unformat_vnet_sw_interface
vnet_main_t vnet_main
Definition: misc.c:43
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:364
unsigned int u32
Definition: types.h:88
#define PEER_ADDR_STR
Definition: bfd_cli.c:365
unformat_function_t unformat_ip46_address
Definition: format.h:71
static const unsigned mandatory
Definition: bfd_cli.c:374
#define foreach_bfd_cli_udp_session_mod_cli_param (   F)
Value:
F (u32, sw_if_index, INTERFACE_STR, mandatory, "%U", \
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:363
#define REQUIRED_MIN_RX_STR
Definition: bfd_cli.c:369
#define F(b, c, d)
Definition: md5.c:44
unformat_function_t unformat_vnet_sw_interface
#define DESIRED_MIN_TX_STR
Definition: bfd_cli.c:368
vnet_main_t vnet_main
Definition: misc.c:43
#define DETECT_MULT_STR
Definition: bfd_cli.c:370
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:364
unsigned int u32
Definition: types.h:88
#define PEER_ADDR_STR
Definition: bfd_cli.c:365
unformat_function_t unformat_ip46_address
Definition: format.h:71
static const unsigned mandatory
Definition: bfd_cli.c:374
#define foreach_bfd_cli_udp_session_set_flags_cli_param (   F)
Value:
F (u32, sw_if_index, INTERFACE_STR, mandatory, "%U", \
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:363
#define F(b, c, d)
Definition: md5.c:44
unformat_function_t unformat_vnet_sw_interface
vnet_main_t vnet_main
Definition: misc.c:43
#define LOCAL_ADDR_STR
Definition: bfd_cli.c:364
unsigned int u32
Definition: types.h:88
#define PEER_ADDR_STR
Definition: bfd_cli.c:365
unformat_function_t unformat_ip46_address
Definition: format.h:71
unsigned char u8
Definition: types.h:56
static const unsigned mandatory
Definition: bfd_cli.c:374
#define ADMIN_STR
Definition: bfd_cli.c:371
#define foreach_bfd_cli_udp_set_echo_source_cli_param (   F)
Value:
F (u32, sw_if_index, INTERFACE_STR, mandatory, "%U", \
#define INTERFACE_STR
Definition: bfd_cli.c:363
#define F(b, c, d)
Definition: md5.c:44
unformat_function_t unformat_vnet_sw_interface
vnet_main_t vnet_main
Definition: misc.c:43
unsigned int u32
Definition: types.h:88
static const unsigned mandatory
Definition: bfd_cli.c:374
#define INTERFACE_STR   "interface"

Definition at line 363 of file bfd_cli.c.

#define LOCAL_ADDR_STR   "local-addr"

Definition at line 364 of file bfd_cli.c.

#define PEER_ADDR_STR   "peer-addr"

Definition at line 365 of file bfd_cli.c.

#define PRAGMA_STR1

Definition at line 393 of file bfd_cli.c.

#define PRAGMA_STR2

Definition at line 394 of file bfd_cli.c.

#define REQUIRED_MIN_RX_STR   "required-min-rx"

Definition at line 369 of file bfd_cli.c.

#define UNFORMAT (   t,
  n,
  s,
  r,
  ... 
)
Value:
if (unformat (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 381 of file bfd_cli.c.

Function Documentation

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 232 of file bfd_cli.c.

+ Here is the call graph for this function:

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 327 of file bfd_cli.c.

+ Here is the call graph for this function:

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 922 of file bfd_cli.c.

+ Here is the call graph for this function:

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 407 of file bfd_cli.c.

+ Here is the call graph for this function:

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 703 of file bfd_cli.c.

+ Here is the call graph for this function:

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 795 of file bfd_cli.c.

+ Here is the call graph for this function:

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 570 of file bfd_cli.c.

+ Here is the call graph for this function:

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 500 of file bfd_cli.c.

+ Here is the call graph for this function:

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 626 of file bfd_cli.c.

+ Here is the call graph for this function:

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 874 of file bfd_cli.c.

+ Here is the call graph for this function:

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

Definition at line 29 of file bfd_cli.c.

+ Here is the call graph for this function:

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

Definition at line 216 of file bfd_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 118 of file bfd_cli.c.

+ Here is the call graph for this function:

Variable Documentation

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:232

(constructor) VLIB_CLI_COMMAND (bfd_cli_key_add_command)

Definition at line 316 of file bfd_cli.c.

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:327

(constructor) VLIB_CLI_COMMAND (bfd_cli_key_del_command)

Definition at line 356 of file bfd_cli.c.

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:922

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_del_echo_source_cmd)

Definition at line 937 of file bfd_cli.c.

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:407

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_add_command)

Definition at line 482 of file bfd_cli.c.

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:703

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_auth_activate_command)

Definition at line 782 of file bfd_cli.c.

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:795

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_auth_deactivate_command)

Definition at line 862 of file bfd_cli.c.

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:570

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_del_command)

Definition at line 615 of file bfd_cli.c.

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:500

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_mod_command)

Definition at line 556 of file bfd_cli.c.

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:626

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_session_set_flags_command)

Definition at line 691 of file bfd_cli.c.

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:874

(constructor) VLIB_CLI_COMMAND (bfd_cli_udp_set_echo_source_cmd)

Definition at line 914 of file bfd_cli.c.

const unsigned mandatory = 1
static

Definition at line 374 of file bfd_cli.c.

const unsigned optional = 0
static

Definition at line 375 of file bfd_cli.c.

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:118

(constructor) VLIB_CLI_COMMAND (show_bfd_command)

Definition at line 208 of file bfd_cli.c.