45 else if (
unformat (line_input,
"nh-table-id %d", &nh_table_id))
55 if (~0 == sw_if_index)
91 .path =
"create nhrp",
92 .short_help =
"create nhrp <interface> peer <addr> nh <addr> [nh-table-id <ID>]",
128 if (~0 == sw_if_index)
157 .path =
"delete nhrp",
158 .short_help =
"delete nhrp <interface> peer <addr>",
183 .short_help =
"show nhrp",
vnet_main_t * vnet_get_main(void)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
unformat_function_t unformat_vnet_sw_interface
void nhrp_walk(nhrp_walk_cb_t fn, void *ctx)
u8 * format_nhrp_entry(u8 *s, va_list *args)
int nhrp_entry_add(u32 sw_if_index, const ip46_address_t *peer, u32 nh_table_id, const ip46_address_t *nh)
Create a new NHRP entry.
enum walk_rc_t_ walk_rc_t
Walk return code.
static walk_rc_t nhrp_show_one(index_t nei, void *ctx)
vl_api_interface_index_t sw_if_index
#define clib_error_return(e, args...)
static clib_error_t * nhrp_add(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static u8 ip46_address_is_zero(const ip46_address_t *ip46)
int nhrp_entry_del(u32 sw_if_index, const ip46_address_t *peer)
static clib_error_t * nhrp_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define VLIB_CLI_COMMAND(x,...)
#define clib_error_return_code(e, code, flags, args...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
#define ip46_address_initializer
static clib_error_t * nhrp_del(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)