FD.io VPP  v19.04.1-1-ge4a0f9f
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

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

Definition at line 57 of file nsh_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_nsh_header ( u8 s,
va_list *  args 
)

Definition at line 512 of file nsh_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

u8* format_nsh_node_map_trace ( u8 s,
va_list *  args 
)

Definition at line 597 of file nsh_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

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:

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 339 of file nsh_cli.c.

+ Here is the call graph for this function:

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:

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:

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 609 of file nsh_cli.c.

+ Here is the call graph for this function:

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:

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

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",
}
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:339

(constructor) VLIB_CLI_COMMAND (create_nsh_entry_command)

Definition at line 501 of file nsh_cli.c.

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",
}
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

(constructor) VLIB_CLI_COMMAND (create_nsh_map_command)

Definition at line 294 of file nsh_cli.c.

vlib_cli_command_t show_nsh_entry_command
static
Initial value:
= {
.path = "show nsh entry",
}
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:609

(constructor) VLIB_CLI_COMMAND (show_nsh_entry_command)

Definition at line 633 of file nsh_cli.c.

vlib_cli_command_t show_nsh_map_command
static
Initial value:
= {
.path = "show nsh map",
}
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

(constructor) VLIB_CLI_COMMAND (show_nsh_map_command)

Definition at line 329 of file nsh_cli.c.