35 if (
unformat (line_input,
"vni %d", &vni))
67 .path =
"show one adjacencies",
68 .short_help =
"show one adjacencies",
79 u8 is_add = 1, ip_set = 0;
91 else if (
unformat (line_input,
"del"))
114 is_add ?
"add" :
"delete");
121 .path =
"one map-server",
122 .short_help =
"one map-server add|del <ip>",
138 u8 *locator_set_name = 0;
139 u32 locator_set_index = 0, map_index = 0;
147 memset (&eid, 0,
sizeof (eid));
148 memset (a, 0,
sizeof (*a));
158 else if (
unformat (line_input,
"del"))
162 else if (
unformat (line_input,
"vni %d", &vni))
164 else if (
unformat (line_input,
"secret-key %_%v%_", &key))
169 else if (
unformat (line_input,
"locator-set %_%v%_", &locator_set_name))
178 locator_set_index = p[0];
195 if (key && (0 == key_id))
212 is_add ?
"add" :
"delete");
216 if (locator_set_name)
226 .path =
"one eid-table",
227 .short_help =
"one eid-table add/del [vni <vni>] eid <eid> " 228 "locator-set <locator-set> [key <secret-key> key-id sha1|sha256 ]",
238 u8 is_add = 1, is_l2 = 0;
239 u32 vni = 0, dp_id = 0;
251 else if (
unformat (line_input,
"vni %d", &vni))
253 else if (
unformat (line_input,
"vrf %d", &dp_id))
255 else if (
unformat (line_input,
"bd %d", &dp_id))
273 .path =
"one eid-table map",
274 .short_help =
"one eid-table map [del] vni <vni> vrf <vrf> | bd <bdi>",
287 u8 hw_addr[6], bd = 0;
289 u32 hw_addr_set = 0, ip_set = 0, is_add = 1;
292 memset (&ip6, 0,
sizeof (ip6));
293 memset (hw_addr, 0,
sizeof (hw_addr));
294 memset (g, 0,
sizeof (*g));
305 else if (
unformat (line_input,
"del"))
307 else if (
unformat (line_input,
"bd %d", &bd))
316 if (!ip_set || (!hw_addr_set && is_add))
328 clib_warning (
"Failed to %s ndp entry!", is_add ?
"add" :
"delete");
338 .short_help =
"one ndp [del] bd <bd> mac <mac> ip <ipv6>",
351 u8 hw_addr[6], bd = 0;
353 u32 hw_addr_set = 0, ip_set = 0, is_add = 1;
356 memset (&ip4, 0,
sizeof (ip4));
357 memset (hw_addr, 0,
sizeof (hw_addr));
358 memset (arp, 0,
sizeof (*arp));
369 else if (
unformat (line_input,
"del"))
371 else if (
unformat (line_input,
"bd %d", &bd))
380 if (!ip_set || (!hw_addr_set && is_add))
392 clib_warning (
"Failed to %s l2 arp entry!", is_add ?
"add" :
"delete");
401 .path =
"one l2 arp",
402 .short_help =
"one l2 arp [del] bd <bd> mac <mac> ip <ipv4>",
437 .path =
"show one l2 arp entries",
438 .short_help =
"Show ONE L2 ARP entries",
473 .path =
"show one ndp entries",
474 .short_help =
"Show ONE NDP entries",
494 u8 is_add = 1, del_all = 0;
495 locator_t rloc, *rlocs = 0, *curr_rloc = 0;
498 u32 vni, action = ~0, p, w;
505 memset (&eid, 0,
sizeof (eid));
506 memset (&rloc, 0,
sizeof (rloc));
510 if (
unformat (line_input,
"del-all"))
512 else if (
unformat (line_input,
"del"))
514 else if (
unformat (line_input,
"add"))
518 else if (
unformat (line_input,
"vni %u", &vni))
522 else if (
unformat (line_input,
"p %d w %d", &p, &w))
527 (
"No RLOC configured for setting priority/weight!");
530 curr_rloc->priority = p;
531 curr_rloc->weight = w;
543 curr_rloc = &rlocs[
vec_len (rlocs) - 1];
545 else if (
unformat (line_input,
"action %U",
555 if (!del_all && !eid_set)
563 if (is_add && (~0 == action) && 0 ==
vec_len (rlocs))
579 memset (a, 0,
sizeof (a[0]));
593 memset (map_args, 0,
sizeof (map_args[0]));
595 map_args->
action = action;
605 clib_warning (
"failed to %s remote mapping!", is_add ?
"add" :
"delete");
615 .path =
"one remote-mapping",
617 "one remote-mapping add|del [del-all] vni <vni> " 618 "eid <est-eid> [action <no-action|natively-forward|" 619 "send-map-request|drop>] rloc <dst-locator> p <prio> w <weight> " 620 "[rloc <dst-locator> ... ]",
636 ip_prefix_t *reid_ippref, *leid_ippref;
640 u8 reid_set = 0, leid_set = 0;
647 memset (&reid, 0,
sizeof (reid));
648 memset (&leid, 0,
sizeof (leid));
657 else if (
unformat (line_input,
"add"))
659 else if (
unformat (line_input,
"reid %U",
670 else if (
unformat (line_input,
"vni %u", &vni))
675 else if (
unformat (line_input,
"leid %U",
693 if (!reid_set || !leid_set)
704 clib_warning (
"remote and local EIDs are of different types!");
708 memset (a, 0,
sizeof (a[0]));
714 clib_warning (
"failed to %s adjacency!", is_add ?
"add" :
"delete");
723 .path =
"one adjacency",
724 .short_help =
"one adjacency add|del vni <vni> reid <remote-eid> " 756 if (_MR_MODE_MAX == mr_mode)
772 .path =
"one map-request mode",
773 .short_help =
"one map-request mode dst-only|src-dst",
782 u32 mode = va_arg (*args,
u32);
787 return format (0,
"dst-only");
789 return format (0,
"src-dst");
806 .path =
"show one map-request mode",
807 .short_help =
"show one map-request mode",
829 .path =
"show one map-resolvers",
830 .short_help =
"show one map-resolvers",
840 u8 locator_name_set = 0;
841 u8 *locator_set_name = 0;
853 if (
unformat (line_input,
"ls %_%v%_", &locator_set_name))
854 locator_name_set = 1;
855 else if (
unformat (line_input,
"disable"))
864 if (!locator_name_set)
874 is_add ?
"add" :
"delete");
885 .path =
"one nsh-mapping",
886 .short_help =
"one nsh-mapping [del] ls <locator-set-name>",
905 .path =
"show one map-register fallback-threshold",
906 .short_help =
"show one map-register fallback-threshold",
928 if (
unformat (line_input,
"%d", &val))
950 .path =
"one map-register fallback-threshold",
951 .short_help =
"one map-register fallback-threshold <count>",
961 u8 locator_name_set = 0;
962 u8 *locator_set_name = 0;
974 if (
unformat (line_input,
"ls %_%v%_", &locator_set_name))
975 locator_name_set = 1;
976 else if (
unformat (line_input,
"disable"))
985 if (!locator_name_set)
994 is_add ?
"add" :
"delete");
998 if (locator_set_name)
1007 .short_help =
"one pitr [disable] ls <locator-set-name>",
1022 "pitr", lcm->
lisp_pitr ?
"locator-set" :
"");
1032 tmp_str =
format (0,
"N/A");
1045 tmp_str =
format (0,
"N/A");
1059 .path =
"show one pitr",
1060 .short_help =
"Show pitr",
1103 gid, type, loc, ttl, aut);
1107 s =
format (s,
"%55s%v\n",
"", loc);
1127 memset (&eid, 0,
sizeof (eid));
1137 else if (
unformat (line_input,
"local"))
1139 else if (
unformat (line_input,
"remote"))
1150 "EID",
"type",
"locators",
"ttl",
"autoritative");
1157 if (mapit->pitr_set || mapit->nsh_set)
1160 locator_set_t * ls = pool_elt_at_index (lcm->locator_set_pool,
1161 mapit->locator_set_index);
1162 if (filter && !((1 == filter && ls->local) ||
1163 (2 == filter && !ls->local)))
1175 if ((
u32) ~ 0 == mi)
1180 mapit->locator_set_index);
1182 if (filter && !((1 == filter && ls->
local) ||
1183 (2 == filter && !ls->
local)))
1200 .path =
"show one eid-table",
1201 .short_help =
"Shows EID table",
1222 if (
unformat (line_input,
"enable"))
1227 else if (
unformat (line_input,
"disable"))
1254 .short_help =
"one [enable|disable]",
1275 if (
unformat (line_input,
"%u", &ttl))
1300 .path =
"one map-register ttl",
1301 .short_help =
"one map-register ttl",
1319 .path =
"show one map-register ttl",
1320 .short_help =
"show one map-register ttl",
1342 if (
unformat (line_input,
"enable"))
1347 else if (
unformat (line_input,
"disable"))
1373 .path =
"one map-register",
1374 .short_help =
"one map-register [enable|disable]",
1395 if (
unformat (line_input,
"enable"))
1400 else if (
unformat (line_input,
"disable"))
1426 .path =
"one rloc-probe",
1427 .short_help =
"one rloc-probe [enable|disable]",
1444 msg =
format (msg,
"feature: %U\ngpe: %U\n",
1453 .path =
"show one status",
1454 .short_help =
"show one status",
1467 uword *vni_table = 0;
1482 else if (
unformat (line_input,
"l3"))
1518 .path =
"show one eid-table map",
1519 .short_help =
"show one eid-table l2|l3",
1535 u8 *locator_set_name = 0;
1541 memset (&locator, 0,
sizeof (locator));
1542 memset (a, 0,
sizeof (a[0]));
1550 if (
unformat (line_input,
"add %_%v%_", &locator_set_name))
1552 else if (
unformat (line_input,
"del %_%v%_", &locator_set_name))
1554 else if (
unformat (line_input,
"iface %U p %d w %d",
1569 a->
name = locator_set_name;
1578 is_add ?
"add" :
"delete");
1583 if (locator_set_name)
1591 .path =
"one locator-set",
1592 .short_help =
"one locator-set add/del <name> [iface <iface-name> " 1593 "p <priority> w <weight>]",
1608 u8 *locator_set_name = 0;
1609 u8 locator_set_name_set = 0;
1614 memset (&locator, 0,
sizeof (locator));
1615 memset (a, 0,
sizeof (a[0]));
1625 else if (
unformat (line_input,
"del"))
1627 else if (
unformat (line_input,
"locator-set %_%v%_", &locator_set_name))
1628 locator_set_name_set = 1;
1629 else if (
unformat (line_input,
"iface %U p %d w %d",
1644 if (!locator_set_name_set)
1650 a->
name = locator_set_name;
1666 .path =
"one locator",
1667 .short_help =
"one locator add/del locator-set <name> iface <iface-name> " 1668 "p <priority> w <weight>",
1684 "Priority",
"Weight");
1693 msg = format (msg,
"%v", lsit->name);
1697 msg = format (msg,
"<%s-%d>",
"remote", lsit - lcm->locator_set_pool);
1703 msg = format (msg,
"%16s",
" ");
1724 .path =
"show one locator-set",
1725 .short_help =
"Shows locator-sets",
1737 u8 is_add = 1, addr_set = 0;
1738 ip_address_t ip_addr;
1751 else if (
unformat (line_input,
"del"))
1774 is_add ?
"add" :
"delete");
1784 .path =
"one map-resolver",
1785 .short_help =
"one map-resolver add/del <ip_address>",
1798 u8 *locator_set_name = 0;
1811 else if (
unformat (line_input,
"add %_%v%_", &locator_set_name))
1826 is_add ?
"add" :
"delete");
1838 .path =
"one map-request itr-rlocs",
1839 .short_help =
"one map-request itr-rlocs add/del <locator_set_name>",
1868 .path =
"show one map-request itr-rlocs",
1869 .short_help =
"Shows map-request itr-rlocs",
1879 u8 is_add = 1, ip_set = 0;
1892 else if (
unformat (line_input,
"disable"))
1910 is_add ?
"add" :
"delete");
1920 .path =
"one use-petr",
1921 .short_help =
"one use-petr [disable] <petr-ip>",
1934 u8 use_petr = lcm->
flags & LISP_FLAG_USE_PETR;
1945 tmp_str =
format (0,
"N/A");
1958 tmp_str =
format (0,
"N/A");
1972 .path =
"show one petr",
1973 .short_help =
"Show petr",
1995 .path =
"show one map-servers",
1996 .short_help =
"show one map servers",
2009 msg =
format (msg,
"%s\n", is_enabled ?
"enabled" :
"disabled");
2017 .path =
"show one map-register state",
2018 .short_help =
"show one map-register state",
2031 msg =
format (msg,
"%s\n", is_enabled ?
"enabled" :
"disabled");
2039 .path =
"show one rloc state",
2040 .short_help =
"show one RLOC state",
2057 .path =
"show one statistics status",
2058 .short_help =
"show ONE statistics enable/disable status",
2072 "[src-EID, dst-EID] [loc-rloc, rmt-rloc] count bytes\n");
2091 .path =
"show one statistics details",
2092 .short_help =
"show ONE statistics",
2111 if (
unformat (line_input,
"enable"))
2113 else if (
unformat (line_input,
"disable"))
2129 .path =
"one statistics",
2130 .short_help =
"enable/disable ONE statistics collecting",
2146 .path =
"one statistics flush",
2147 .short_help =
"Flush ONE statistics",
static clib_error_t * lisp_stats_flush_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_ip_version(_a)
sll srl srl sll sra u16x4 i
#define gid_address_type(_a)
static clib_error_t * lisp_show_pitr_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
lisp_api_l2_arp_entry_t * vnet_lisp_l2_arp_entries_get_by_bd(u32 bd)
lisp_msmr_t * map_resolvers
static clib_error_t * lisp_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static u8 * format_eid_entry(u8 *s, va_list *args)
u8 vnet_lisp_get_map_request_mode(void)
#define ip_prefix_len(_a)
uword unformat_ip_address(unformat_input_t *input, va_list *args)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
static clib_error_t * lisp_add_del_locator_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_add_del_adjacency_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Handler for add/del adjacency CLI.
static clib_error_t * lisp_show_map_request_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_add_del_local_eid_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
unformat_function_t unformat_vnet_sw_interface
static clib_error_t * lisp_add_del_l2_arp_entry_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vnet_api_error_t vnet_lisp_stats_enable_disable(u8 enable)
int vnet_lisp_add_mapping(vnet_lisp_add_del_mapping_args_t *a, locator_t *rlocs, u32 *res_map_index, u8 *is_updated)
Adds/updates mapping.
void ip_address_set(ip_address_t *dst, const void *src, u8 version)
uword unformat_hmac_key_id(unformat_input_t *input, va_list *args)
#define ip_prefix_version(_a)
u8 vnet_lisp_stats_enable_disable_state(void)
format_function_t format_vnet_sw_if_index_name
u8 vnet_lisp_map_register_state_get(void)
int vnet_lisp_set_map_request_mode(u8 mode)
int vnet_lisp_add_del_adjacency(vnet_lisp_add_del_adjacency_args_t *a)
Adds adjacency or removes forwarding entry associated to remote mapping.
uword unformat_negative_mapping_action(unformat_input_t *input, va_list *args)
lisp_msmr_t * map_servers
#define pool_foreach(VAR, POOL, BODY)
Iterate through pool.
static clib_error_t * lisp_show_map_servers_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
u8 * format_mac_address(u8 *s, va_list *args)
static clib_error_t * lisp_map_register_fallback_threshold_show_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_show_rloc_probe_state_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int vnet_lisp_flush_stats(void)
static clib_error_t * lisp_show_ndp_entries_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_show_eid_table_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define clib_error_return(e, args...)
int vnet_lisp_eid_table_map(u32 vni, u32 dp_id, u8 is_l2, u8 is_add)
lisp_api_ndp_entry_t * vnet_lisp_ndp_entries_get_by_bd(u32 bd)
static lisp_cp_main_t * vnet_lisp_cp_get_main()
static clib_error_t * lisp_nsh_set_locator_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_cp_show_locator_sets_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
u32 petr_map_index
Proxy ETR map index.
clib_error_t * vnet_lisp_enable_disable(u8 is_enable)
int vnet_lisp_pitr_set_locator_set(u8 *locator_set_name, u8 is_add)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
u8 vnet_lisp_rloc_probe_state_get(void)
counter_t packets
packet counter
static clib_error_t * lisp_add_del_map_server_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_arp_ndp_ip(_a)
u8 * format_negative_mapping_action(u8 *s, va_list *args)
static clib_error_t * lisp_map_request_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_mac(_a)
int vnet_lisp_add_del_local_mapping(vnet_lisp_add_del_mapping_args_t *a, u32 *map_index_result)
Add/update/delete mapping to/in/from map-cache.
void gid_address_free(gid_address_t *a)
lisp_api_stats_t * vnet_lisp_get_stats(void)
uword unformat_gid_address(unformat_input_t *input, va_list *args)
u8 * format_gid_address(u8 *s, va_list *args)
static clib_error_t * lisp_map_register_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_add_del_ndp_entry_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_ippref(_a)
lisp_adjacency_t * vnet_lisp_adjacencies_get_by_vni(u32 vni)
Returns vector of adjacencies.
u32 * vnet_lisp_ndp_bds_get(void)
static clib_error_t * lisp_stats_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int vnet_lisp_add_del_mreq_itr_rlocs(vnet_lisp_add_del_mreq_itr_rloc_args_t *a)
static clib_error_t * lisp_add_del_mreq_itr_rlocs_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_arp_bd
#define vec_free(V)
Free vector's memory (no header).
#define clib_warning(format, args...)
int vnet_lisp_map_register_enable_disable(u8 is_enable)
u32 vnet_lisp_map_register_fallback_threshold_get(void)
static clib_error_t * lisp_add_del_map_resolver_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_show_map_resolvers_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_eid_table_map_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
lisp_gpe_main_t lisp_gpe_main
LISP-GPE global state.
static clib_error_t * lisp_show_adjacencies_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define VLIB_CLI_COMMAND(x,...)
struct _gid_address_t gid_address_t
uword unformat_mac_address(unformat_input_t *input, va_list *args)
u8 * format_vnet_lisp_gpe_status(u8 *s, va_list *args)
Format LISP-GPE status.
int vnet_lisp_add_del_map_server(ip_address_t *addr, u8 is_add)
u8 * format_ip_address(u8 *s, va_list *args)
int vnet_lisp_clear_all_remote_adjacencies(void)
static u8 * format_lisp_status(u8 *s, va_list *args)
locator_set_t * locator_set_pool
static clib_error_t * lisp_show_stats_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_ndp_bd
int vnet_lisp_rloc_probe_enable_disable(u8 is_enable)
static clib_error_t * lisp_add_del_remote_mapping_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Handler for add/del remote mapping CLI.
static clib_error_t * lisp_pitr_set_locator_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_show_eid_table_map_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_map_register_fallback_threshold_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
u64 gid_dictionary_lookup(gid_dictionary_t *db, gid_address_t *key)
uword unformat_ip_prefix(unformat_input_t *input, va_list *args)
static clib_error_t * lisp_rloc_probe_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int vnet_lisp_map_register_fallback_threshold_set(u32 value)
counter_t bytes
byte counter
int vnet_lisp_add_del_locator_set(vnet_lisp_add_del_locator_set_args_t *a, u32 *ls_result)
static clib_error_t * lisp_show_l2_arp_entries_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_ip(_a)
static clib_error_t * lisp_show_mreq_itr_rlocs_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_show_status_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_vni(_a)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define hash_foreach_pair(p, v, body)
Iterate over hash pairs.
static clib_error_t * lisp_map_register_show_ttl_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int vnet_lisp_del_mapping(gid_address_t *eid, u32 *res_map_index)
Removes a mapping.
u32 * vnet_lisp_l2_arp_bds_get(void)
int vnet_lisp_add_del_locator(vnet_lisp_add_del_locator_set_args_t *a, locator_set_t *ls, u32 *ls_result)
u8 ip_address_max_len(u8 version)
uword * locator_set_index_by_name
int vnet_lisp_nsh_set_locator_set(u8 *locator_set_name, u8 is_add)
void gid_address_copy(gid_address_t *dst, gid_address_t *src)
static clib_error_t * lisp_show_map_register_state_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define hash_get_mem(h, key)
static clib_error_t * lisp_show_petr_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int vnet_lisp_add_del_map_resolver(vnet_lisp_add_del_map_resolver_args_t *a)
static u8 * format_lisp_map_request_mode(u8 *s, va_list *args)
int vnet_lisp_add_del_l2_arp_ndp_entry(gid_address_t *key, u8 *mac, u8 is_add)
static clib_error_t * lisp_use_petr_set_locator_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define vec_foreach(var, vec)
Vector iterator.
static clib_error_t * lisp_map_register_set_ttl_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_arp_ip4(_a)
static clib_error_t * lisp_add_del_locator_in_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_show_stats_details_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int vnet_lisp_map_register_set_ttl(u32 ttl)
u8 * format_fid_address(u8 *s, va_list *args)
u32 vnet_lisp_map_register_get_ttl(void)
int vnet_lisp_use_petr(ip_address_t *ip, u8 is_add)
Configure Proxy-ETR.
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)