FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
nsh_cli.c File Reference
+ Include dependency graph for nsh_cli.c:

Go to the source code of this file.

Functions

u8format_nsh_pop_header (u8 *s, va_list *args)
 
u8format_nsh_pop_node_map_trace (u8 *s, va_list *args)
 
static uword unformat_nsh_action (unformat_input_t *input, va_list *args)
 
static u8format_nsh_action (u8 *s, va_list *args)
 
u8format_nsh_map (u8 *s, va_list *args)
 
static adj_index_t nsh_get_adj_by_sw_if_index (u32 sw_if_index)
 
static clib_error_tnsh_add_del_map_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command for NSH map. More...
 
static clib_error_tshow_nsh_map_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command for showing the mapping between NSH entries. More...
 
static clib_error_tnsh_add_del_entry_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 CLI command for adding NSH entry. More...
 
u8format_nsh_header (u8 *s, va_list *args)
 
u8format_nsh_node_map_trace (u8 *s, va_list *args)
 
static clib_error_tshow_nsh_entry_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t create_nsh_map_command
 (constructor) VLIB_CLI_COMMAND (create_nsh_map_command) More...
 
static vlib_cli_command_t show_nsh_map_command
 (constructor) VLIB_CLI_COMMAND (show_nsh_map_command) More...
 
static vlib_cli_command_t create_nsh_entry_command
 (constructor) VLIB_CLI_COMMAND (create_nsh_entry_command) More...
 
static vlib_cli_command_t show_nsh_entry_command
 (constructor) VLIB_CLI_COMMAND (show_nsh_entry_command) More...
 

Function Documentation

◆ format_nsh_action()

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

Definition at line 57 of file nsh_cli.c.

+ Here is the caller graph for this function:

◆ format_nsh_header()

u8* format_nsh_header ( u8 s,
va_list *  args 
)

Definition at line 509 of file nsh_cli.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_nsh_map()

u8* format_nsh_map ( u8 s,
va_list *  args 
)

Definition at line 76 of file nsh_cli.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_nsh_node_map_trace()

u8* format_nsh_node_map_trace ( u8 s,
va_list *  args 
)

Definition at line 594 of file nsh_cli.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_nsh_pop_header()

u8* format_nsh_pop_header ( u8 s,
va_list *  args 
)

Definition at line 25 of file nsh_cli.c.

+ Here is the call graph for this function:

◆ format_nsh_pop_node_map_trace()

u8* format_nsh_pop_node_map_trace ( u8 s,
va_list *  args 
)

Definition at line 31 of file nsh_cli.c.

+ Here is the call graph for this function:

◆ nsh_add_del_entry_command_fn()

static clib_error_t* nsh_add_del_entry_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

CLI command for adding NSH entry.

Definition at line 336 of file nsh_cli.c.

+ Here is the call graph for this function:

◆ nsh_add_del_map_command_fn()

static clib_error_t* nsh_add_del_map_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

CLI command for NSH map.

Definition at line 161 of file nsh_cli.c.

+ Here is the call graph for this function:

◆ nsh_get_adj_by_sw_if_index()

static adj_index_t nsh_get_adj_by_sw_if_index ( u32  sw_if_index)
static

Definition at line 139 of file nsh_cli.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ show_nsh_entry_command_fn()

static clib_error_t* show_nsh_entry_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 606 of file nsh_cli.c.

+ Here is the call graph for this function:

◆ show_nsh_map_command_fn()

static clib_error_t* show_nsh_map_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

CLI command for showing the mapping between NSH entries.

Definition at line 308 of file nsh_cli.c.

+ Here is the call graph for this function:

◆ unformat_nsh_action()

static uword unformat_nsh_action ( unformat_input_t input,
va_list *  args 
)
static

Definition at line 37 of file nsh_cli.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ create_nsh_entry_command

vlib_cli_command_t create_nsh_entry_command
static
Initial value:
= {
.path = "create nsh entry",
.short_help =
"create nsh entry {nsp <nn> nsi <nn>} [ttl <nn>] [md-type <nn>]"
" [c1 <nn> c2 <nn> c3 <nn> c4 <nn>] [tlv-ioam-trace] [del]\n",
}

(constructor) VLIB_CLI_COMMAND (create_nsh_entry_command)

Definition at line 498 of file nsh_cli.c.

◆ create_nsh_map_command

vlib_cli_command_t create_nsh_map_command
static
Initial value:
= {
.path = "create nsh map",
.short_help =
"create nsh map nsp <nn> nsi <nn> [del] mapped-nsp <nn> mapped-nsi <nn> nsh_action [swap|push|pop] "
"[encap-gre4-intf <nn> | encap-gre4-intf <nn> | encap-vxlan-gpe-intf <nn> | encap-lisp-gpe-intf <nn> "
" encap-vxlan4-intf <nn> | encap-vxlan6-intf <nn>| encap-eth-intf <nn> | encap-none]\n",
}

(constructor) VLIB_CLI_COMMAND (create_nsh_map_command)

Definition at line 294 of file nsh_cli.c.

◆ show_nsh_entry_command

vlib_cli_command_t show_nsh_entry_command
static
Initial value:
= {
.path = "show nsh entry",
}

(constructor) VLIB_CLI_COMMAND (show_nsh_entry_command)

Definition at line 625 of file nsh_cli.c.

◆ show_nsh_map_command

vlib_cli_command_t show_nsh_map_command
static
Initial value:
= {
.path = "show nsh map",
}

(constructor) VLIB_CLI_COMMAND (show_nsh_map_command)

Definition at line 326 of file nsh_cli.c.

show_nsh_entry_command_fn
static clib_error_t * show_nsh_entry_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nsh_cli.c:606
nsh_add_del_map_command_fn
static clib_error_t * nsh_add_del_map_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command for NSH map.
Definition: nsh_cli.c:161
show_nsh_map_command_fn
static clib_error_t * show_nsh_map_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command for showing the mapping between NSH entries.
Definition: nsh_cli.c:308
nsh_add_del_entry_command_fn
static clib_error_t * nsh_add_del_entry_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
CLI command for adding NSH entry.
Definition: nsh_cli.c:336