|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
67 .path =
"show one adjacencies",
68 .short_help =
"show one adjacencies",
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;
158 else if (
unformat (line_input,
"del"))
164 else if (
unformat (line_input,
"secret-key %_%v%_", &
key))
169 else if (
unformat (line_input,
"locator-set %_%v%_", &locator_set_name))
179 locator_set_index = p[0];
181 else if (
unformat (line_input,
"authoritative"))
182 a->authoritative = 1;
198 if (
key && (0 == key_id))
206 a->locator_set_index = locator_set_index;
215 is_add ?
"add" :
"delete");
219 if (locator_set_name)
229 .path =
"one eid-table",
230 .short_help =
"one eid-table add/del [vni <vni>] eid <eid> "
231 "locator-set <locator-set> [key <secret-key> key-id sha1|sha256 ]",
241 u8 is_add = 1, is_l2 = 0;
256 else if (
unformat (line_input,
"vrf %d", &dp_id))
258 else if (
unformat (line_input,
"bd %d", &dp_id))
276 .path =
"one eid-table map",
277 .short_help =
"one eid-table map [del] vni <vni> vrf <vrf> | bd <bdi>",
290 u8 hw_addr[6], bd = 0;
292 u32 hw_addr_set = 0,
ip_set = 0, is_add = 1;
308 else if (
unformat (line_input,
"del"))
310 else if (
unformat (line_input,
"bd %d", &bd))
319 if (!
ip_set || (!hw_addr_set && is_add))
331 clib_warning (
"Failed to %s ndp entry!", is_add ?
"add" :
"delete");
341 .short_help =
"one ndp [del] bd <bd> mac <mac> ip <ipv6>",
354 u8 hw_addr[6], bd = 0;
356 u32 hw_addr_set = 0,
ip_set = 0, is_add = 1;
372 else if (
unformat (line_input,
"del"))
374 else if (
unformat (line_input,
"bd %d", &bd))
383 if (!
ip_set || (!hw_addr_set && is_add))
395 clib_warning (
"Failed to %s l2 arp entry!", is_add ?
"add" :
"delete");
404 .path =
"one l2 arp",
405 .short_help =
"one l2 arp [del] bd <bd> mac <mac> ip <ipv4>",
440 .path =
"show one l2 arp entries",
441 .short_help =
"Show ONE L2 ARP entries",
476 .path =
"show one ndp entries",
477 .short_help =
"Show ONE NDP entries",
497 u8 is_add = 1, del_all = 0;
498 locator_t rloc, *rlocs = 0, *curr_rloc = 0;
513 if (
unformat (line_input,
"del-all"))
515 else if (
unformat (line_input,
"del"))
517 else if (
unformat (line_input,
"add"))
525 else if (
unformat (line_input,
"p %d w %d", &p, &w))
530 (
"No RLOC configured for setting priority/weight!");
533 curr_rloc->priority = p;
534 curr_rloc->weight = w;
546 curr_rloc = &rlocs[
vec_len (rlocs) - 1];
548 else if (
unformat (line_input,
"action %U",
558 if (!del_all && !eid_set)
608 clib_warning (
"failed to %s remote mapping!", is_add ?
"add" :
"delete");
618 .path =
"one remote-mapping",
620 "one remote-mapping add|del [del-all] vni <vni> "
621 "eid <est-eid> [action <no-action|natively-forward|"
622 "send-map-request|drop>] rloc <dst-locator> p <prio> w <weight> "
623 "[rloc <dst-locator> ... ]",
643 u8 reid_set = 0, leid_set = 0;
660 else if (
unformat (line_input,
"add"))
662 else if (
unformat (line_input,
"reid %U",
678 else if (
unformat (line_input,
"leid %U",
696 if (!reid_set || !leid_set)
707 clib_warning (
"remote and local EIDs are of different types!");
717 clib_warning (
"failed to %s adjacency!", is_add ?
"add" :
"delete");
726 .path =
"one adjacency",
727 .short_help =
"one adjacency add|del vni <vni> reid <remote-eid> "
759 if (_MR_MODE_MAX == mr_mode)
775 .path =
"one map-request mode",
776 .short_help =
"one map-request mode dst-only|src-dst",
790 return format (0,
"dst-only");
792 return format (0,
"src-dst");
809 .path =
"show one map-request mode",
810 .short_help =
"show one map-request mode",
832 .path =
"show one map-resolvers",
833 .short_help =
"show one map-resolvers",
843 u8 locator_name_set = 0;
844 u8 *locator_set_name = 0;
856 if (
unformat (line_input,
"ls %_%v%_", &locator_set_name))
857 locator_name_set = 1;
858 else if (
unformat (line_input,
"disable"))
867 if (!locator_name_set)
878 is_add ?
"add" :
"delete");
889 .path =
"one nsh-mapping",
890 .short_help =
"one nsh-mapping [del] ls <locator-set-name>",
909 .path =
"show one map-register fallback-threshold",
910 .short_help =
"show one map-register fallback-threshold",
932 if (
unformat (line_input,
"%d", &val))
954 .path =
"one map-register fallback-threshold",
955 .short_help =
"one map-register fallback-threshold <count>",
965 u8 locator_name_set = 0;
966 u8 *locator_set_name = 0;
978 if (
unformat (line_input,
"ls %_%v%_", &locator_set_name))
979 locator_name_set = 1;
980 else if (
unformat (line_input,
"disable"))
989 if (!locator_name_set)
999 is_add ?
"add" :
"delete");
1003 if (locator_set_name)
1012 .short_help =
"one pitr [disable] ls <locator-set-name>",
1025 u8 status = lcm->
flags & LISP_FLAG_PITR_MODE;
1037 tmp_str =
format (0,
"N/A");
1050 tmp_str =
format (0,
"N/A");
1064 .path =
"show one pitr",
1065 .short_help =
"Show pitr",
1112 s =
format (s,
"%55s%v\n",
"", loc);
1142 else if (
unformat (line_input,
"local"))
1144 else if (
unformat (line_input,
"remote"))
1155 "EID",
"type",
"locators",
"ttl",
"authoritative");
1167 if (filter && !((1 == filter && ls->
local) ||
1168 (2 == filter && !ls->
local)))
1180 if ((
u32) ~ 0 == mi)
1187 if (filter && !((1 == filter && ls->
local) ||
1188 (2 == filter && !ls->
local)))
1205 .path =
"show one eid-table",
1206 .short_help =
"show one eid-table [local|remote|eid <eid>]",
1227 if (
unformat (line_input,
"enable"))
1232 else if (
unformat (line_input,
"disable"))
1258 .path =
"one pitr mode",
1259 .short_help =
"one pitr mode [enable|disable]",
1281 if (
unformat (line_input,
"enable"))
1286 else if (
unformat (line_input,
"disable"))
1312 .path =
"one petr mode",
1313 .short_help =
"one petr mode [enable|disable]",
1334 if (
unformat (line_input,
"enable"))
1339 else if (
unformat (line_input,
"disable"))
1365 .path =
"one xtr mode",
1366 .short_help =
"one xtr mode [enable|disable]",
1386 .path =
"one enable",
1387 .short_help =
"one enable",
1407 .path =
"one disable",
1408 .short_help =
"one disable",
1454 .path =
"one map-register ttl",
1455 .short_help =
"one map-register ttl",
1473 .path =
"show one map-register ttl",
1474 .short_help =
"show one map-register ttl",
1496 if (
unformat (line_input,
"enable"))
1501 else if (
unformat (line_input,
"disable"))
1527 .path =
"one map-register",
1528 .short_help =
"one map-register [enable|disable]",
1549 if (
unformat (line_input,
"enable"))
1554 else if (
unformat (line_input,
"disable"))
1580 .path =
"one rloc-probe",
1581 .short_help =
"one rloc-probe [enable|disable]",
1598 msg =
format (msg,
"feature: %U\ngpe: %U\n",
1607 .path =
"show one status",
1608 .short_help =
"show one status",
1621 uword *vni_table = 0;
1636 else if (
unformat (line_input,
"l3"))
1672 .path =
"show one eid-table map",
1673 .short_help =
"show one eid-table map l2|l3",
1689 u8 *locator_set_name = 0;
1704 if (
unformat (line_input,
"add %_%v%_", &locator_set_name))
1706 else if (
unformat (line_input,
"del %_%v%_", &locator_set_name))
1708 else if (
unformat (line_input,
"iface %U p %d w %d",
1725 a->name = locator_set_name;
1726 a->locators = locators;
1734 is_add ?
"add" :
"delete");
1739 if (locator_set_name)
1747 .path =
"one locator-set",
1748 .short_help =
"one locator-set add/del <name> [iface <iface-name> "
1749 "p <priority> w <weight>]",
1764 u8 *locator_set_name = 0;
1765 u8 locator_set_name_set = 0;
1781 else if (
unformat (line_input,
"del"))
1783 else if (
unformat (line_input,
"locator-set %_%v%_", &locator_set_name))
1784 locator_set_name_set = 1;
1785 else if (
unformat (line_input,
"iface %U p %d w %d",
1800 if (!locator_set_name_set)
1807 a->name = locator_set_name;
1808 a->locators = locators;
1823 .path =
"one locator",
1824 .short_help =
"one locator add/del locator-set <name> iface <iface-name> "
1825 "p <priority> w <weight>",
1841 "Priority",
"Weight");
1860 msg =
format (msg,
"%16s",
" ");
1881 .path =
"show one locator-set",
1882 .short_help =
"Shows locator-sets",
1894 u8 is_add = 1, addr_set = 0;
1908 else if (
unformat (line_input,
"del"))
1926 a->address = ip_addr;
1931 is_add ?
"add" :
"delete");
1941 .path =
"one map-resolver",
1942 .short_help =
"one map-resolver add/del <ip_address>",
1955 u8 *locator_set_name = 0;
1968 else if (
unformat (line_input,
"add %_%v%_", &locator_set_name))
1979 a->locator_set_name = locator_set_name;
1984 is_add ?
"add" :
"delete");
1996 .path =
"one map-request itr-rlocs",
1997 .short_help =
"one map-request itr-rlocs add/del <locator_set_name>",
2026 .path =
"show one map-request itr-rlocs",
2027 .short_help =
"Shows map-request itr-rlocs",
2050 else if (
unformat (line_input,
"disable"))
2068 is_add ?
"add" :
"delete");
2078 .path =
"one use-petr",
2079 .short_help =
"one use-petr [disable] <petr-ip>",
2092 u8 use_petr = lcm->
flags & LISP_FLAG_USE_PETR;
2103 tmp_str =
format (0,
"N/A");
2116 tmp_str =
format (0,
"N/A");
2130 .path =
"show one petr",
2131 .short_help =
"Show petr",
2153 .path =
"show one map-servers",
2154 .short_help =
"show one map servers",
2167 msg =
format (msg,
"%s\n", is_enabled ?
"enabled" :
"disabled");
2175 .path =
"show one map-register state",
2176 .short_help =
"show one map-register state",
2189 msg =
format (msg,
"%s\n", is_enabled ?
"enabled" :
"disabled");
2197 .path =
"show one rloc state",
2198 .short_help =
"show one RLOC state",
2215 .path =
"show one statistics status",
2216 .short_help =
"show ONE statistics enable/disable status",
2230 "[src-EID, dst-EID] [loc-rloc, rmt-rloc] count bytes\n");
2249 .path =
"show one statistics details",
2250 .short_help =
"show ONE statistics",
2269 if (
unformat (line_input,
"enable"))
2271 else if (
unformat (line_input,
"disable"))
2287 .path =
"one statistics",
2288 .short_help =
"enable/disable ONE statistics collecting",
2304 .path =
"one statistics flush",
2305 .short_help =
"Flush ONE statistics",
2328 .path =
"show one modes",
2329 .short_help =
"show one modes",
static u8 * format_lisp_status(u8 *s, va_list *args)
static clib_error_t * lisp_show_l2_arp_entries_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)
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_one_modes_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)
static clib_error_t * one_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
void ip_set(ip46_address_t *dst, void *src, u8 is_ip4)
uword unformat_ip_prefix(unformat_input_t *input, va_list *args)
vlib_cli_command_t one_stats_flush_command
(constructor) VLIB_CLI_COMMAND (one_stats_flush_command)
u8 vnet_lisp_map_register_state_get(void)
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.
vlib_cli_command_t one_rloc_probe_enable_disable_command
(constructor) VLIB_CLI_COMMAND (one_rloc_probe_enable_disable_command)
u8 vnet_lisp_stats_enable_disable_state(void)
u8 vnet_lisp_get_petr_mode(void)
int vnet_lisp_flush_stats(void)
vlib_cli_command_t one_show_ndp_entries_command
(constructor) VLIB_CLI_COMMAND (one_show_ndp_entries_command)
int vnet_lisp_use_petr(ip_address_t *ip, u8 is_add)
Configure Proxy-ETR.
vlib_cli_command_t one_map_request_mode_command
(constructor) VLIB_CLI_COMMAND (one_map_request_mode_command)
vlib_cli_command_t one_show_adjacencies_command
(constructor) VLIB_CLI_COMMAND (one_show_adjacencies_command)
u8 vnet_lisp_get_pitr_mode(void)
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)
vlib_cli_command_t one_map_register_enable_disable_command
(constructor) VLIB_CLI_COMMAND (one_map_register_enable_disable_command)
vlib_cli_command_t one_cp_enable_disable_petr_mode_command
(constructor) VLIB_CLI_COMMAND (one_cp_enable_disable_petr_mode_command)
#define gid_address_ip_version(_a)
vlib_cli_command_t one_map_register_show_ttl_command
(constructor) VLIB_CLI_COMMAND (one_map_register_show_ttl_command)
static clib_error_t * lisp_eid_table_map_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
static u8 * format_lisp_map_request_mode(u8 *s, va_list *args)
lisp_msmr_t * map_resolvers
vlib_cli_command_t one_show_map_register_state_command
(constructor) VLIB_CLI_COMMAND (one_show_map_register_state_command)
vlib_cli_command_t one_cp_enable_disable_xtr_mode_command
(constructor) VLIB_CLI_COMMAND (one_cp_enable_disable_xtr_mode_command)
lisp_msmr_t * map_servers
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 clib_error_return(e, args...)
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_adjacencies_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_cli_command_t one_show_l2_arp_entries_command
(constructor) VLIB_CLI_COMMAND (one_show_l2_arp_entries_command)
static clib_error_t * lisp_map_register_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_ippref(_a)
int vnet_lisp_add_del_adjacency(vnet_lisp_add_del_adjacency_args_t *a)
Adds adjacency or removes forwarding entry associated to remote mapping.
vl_api_tunnel_mode_t mode
lisp_api_ndp_entry_t * vnet_lisp_ndp_entries_get_by_bd(u32 bd)
static clib_error_t * lisp_rloc_probe_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_cli_command_t one_map_register_fallback_threshold_show_command
(constructor) VLIB_CLI_COMMAND (one_map_register_fallback_threshold_show_command)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static clib_error_t * lisp_cp_show_locator_sets_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define ip_prefix_len(_a)
static clib_error_t * one_enable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vl_api_ikev2_sa_stats_t stats
int vnet_lisp_pitr_set_locator_set(u8 *locator_set_name, u8 is_add)
#define gid_address_ip(_a)
vlib_cli_command_t one_cp_enable_disable_pitr_mode_command
(constructor) VLIB_CLI_COMMAND (one_cp_enable_disable_pitr_mode_command)
vnet_api_error_t vnet_lisp_stats_enable_disable(u8 enable)
vlib_cli_command_t one_cp_add_del_locator_set_command
(constructor) VLIB_CLI_COMMAND (one_cp_add_del_locator_set_command)
uword unformat_hmac_key_id(unformat_input_t *input, va_list *args)
vlib_cli_command_t one_map_register_set_ttl_command
(constructor) VLIB_CLI_COMMAND (one_map_register_set_ttl_command)
u32 petr_map_index
Proxy ETR map index used for 'use-petr'.
static clib_error_t * lisp_show_status_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
u8 vnet_lisp_get_map_request_mode(void)
int vnet_lisp_eid_table_map(u32 vni, u32 dp_id, u8 is_l2, u8 is_add)
vlib_cli_command_t one_stats_enable_disable_command
(constructor) VLIB_CLI_COMMAND (one_stats_enable_disable_command)
vlib_cli_command_t one_cp_enable_command
(constructor) VLIB_CLI_COMMAND (one_cp_enable_command)
vlib_cli_command_t one_cp_show_locator_sets_command
(constructor) VLIB_CLI_COMMAND (one_cp_show_locator_sets_command)
static clib_error_t * lisp_show_mreq_itr_rlocs_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_cli_command_t one_show_map_request_mode_command
(constructor) VLIB_CLI_COMMAND (one_show_map_request_mode_command)
u8 * format_mac_address(u8 *s, va_list *args)
vlib_cli_command_t one_cp_add_del_locator_in_set_command
(constructor) VLIB_CLI_COMMAND (one_cp_add_del_locator_in_set_command)
lisp_api_stats_t * vnet_lisp_get_stats(void)
#define hash_foreach_pair(p, v, body)
Iterate over hash pairs.
vlib_cli_command_t one_show_pitr_command
(constructor) VLIB_CLI_COMMAND (one_show_pitr_command)
u8 * format_negative_mapping_action(u8 *s, va_list *args)
int vnet_lisp_enable_disable_pitr_mode(u8 is_enabled)
#define pool_foreach(VAR, POOL)
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)
uword unformat_ip_address(unformat_input_t *input, va_list *args)
u8 ip_address_max_len(u8 version)
u8 vnet_lisp_rloc_probe_state_get(void)
clib_error_t * vnet_lisp_enable_disable(u8 is_enable)
u8 * format_fid_address(u8 *s, va_list *args)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
static clib_error_t * lisp_enable_disable_xtr_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
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.
vlib_cli_command_t one_show_stats_command
(constructor) VLIB_CLI_COMMAND (one_show_stats_command)
static clib_error_t * lisp_show_ndp_entries_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
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.
locator_set_t * locator_set_pool
static clib_error_t * lisp_map_register_set_ttl_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_set_map_request_mode(u8 mode)
static clib_error_t * lisp_add_del_ndp_entry_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_cli_command_t one_add_del_map_resolver_command
(constructor) VLIB_CLI_COMMAND (one_add_del_map_resolver_command)
static lisp_cp_main_t * vnet_lisp_cp_get_main()
int vnet_lisp_enable_disable_petr_mode(u8 is_enabled)
gid_dictionary_t mapping_index_by_gid
#define gid_address_vni(_a)
u8 vnet_lisp_get_xtr_mode(void)
vlib_cli_command_t one_nsh_set_locator_set_command
(constructor) VLIB_CLI_COMMAND (one_nsh_set_locator_set_command)
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)
u8 * format_ip_address(u8 *s, va_list *args)
vlib_cli_command_t one_show_eid_table_map_command
(constructor) VLIB_CLI_COMMAND (one_show_eid_table_map_command)
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_show_eid_table_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define gid_address_arp_bd
static clib_error_t * lisp_enable_disable_pitr_mode_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.
int vnet_lisp_enable_disable_xtr_mode(u8 is_enabled)
sll srl srl sll sra u16x4 i
static clib_error_t * lisp_stats_flush_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int vnet_lisp_add_del_map_server(ip_address_t *addr, u8 is_add)
vlib_cli_command_t one_use_petr_set_locator_set_command
(constructor) VLIB_CLI_COMMAND (one_use_petr_set_locator_set_command)
static clib_error_t * lisp_show_map_resolvers_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
uword * locator_set_index_by_name
#define VLIB_CLI_COMMAND(x,...)
vlib_cli_command_t one_add_del_local_eid_command
(constructor) VLIB_CLI_COMMAND (one_add_del_local_eid_command)
vlib_cli_command_t one_pitr_set_locator_set_command
(constructor) VLIB_CLI_COMMAND (one_pitr_set_locator_set_command)
void ip_address_set(ip_address_t *dst, const void *src, ip_address_family_t af)
int vnet_lisp_clear_all_remote_adjacencies(void)
static clib_error_t * lisp_show_pitr_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
counter_t packets
packet counter
static clib_error_t * lisp_add_del_map_resolver_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
uword unformat_gid_address(unformat_input_t *input, va_list *args)
#define gid_address_ndp_bd
u32 * vnet_lisp_ndp_bds_get(void)
vlib_cli_command_t one_show_stats_details_command
(constructor) VLIB_CLI_COMMAND (one_show_stats_details_command)
vlib_cli_command_t one_eid_table_map_command
(constructor) VLIB_CLI_COMMAND (one_eid_table_map_command)
int vnet_lisp_add_del_mreq_itr_rlocs(vnet_lisp_add_del_mreq_itr_rloc_args_t *a)
#define gid_address_arp_ndp_ip(_a)
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.
#define vec_free(V)
Free vector's memory (no header).
vlib_cli_command_t one_map_register_fallback_threshold_command
(constructor) VLIB_CLI_COMMAND (one_map_register_fallback_threshold_command)
vlib_cli_command_t one_show_map_servers_command
(constructor) VLIB_CLI_COMMAND (one_show_map_servers_command)
void gid_address_copy(gid_address_t *dst, gid_address_t *src)
vlib_cli_command_t one_add_del_ndp_entry_command
(constructor) VLIB_CLI_COMMAND (one_add_del_ndp_entry_command)
#define hash_get_mem(h, key)
format_function_t format_vnet_sw_if_index_name
unformat_function_t unformat_vnet_sw_interface
description fragment has unexpected format
lisp_adjacency_t * vnet_lisp_adjacencies_get_by_vni(u32 vni)
Returns vector of adjacencies.
static clib_error_t * lisp_show_eid_table_map_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
u32 * vnet_lisp_l2_arp_bds_get(void)
static clib_error_t * lisp_add_del_locator_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_cli_command_t one_add_del_remote_mapping_command
(constructor) VLIB_CLI_COMMAND (one_add_del_remote_mapping_command)
static clib_error_t * lisp_show_map_request_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_cli_command_t one_show_map_resolvers_command
(constructor) VLIB_CLI_COMMAND (one_show_map_resolvers_command)
counter_t bytes
byte counter
u8 * format_vnet_lisp_gpe_status(u8 *s, va_list *args)
Format LISP-GPE status.
int vnet_lisp_add_del_locator_set(vnet_lisp_add_del_locator_set_args_t *a, u32 *ls_result)
#define vec_foreach(var, vec)
Vector iterator.
vlib_cli_command_t one_add_del_l2_arp_entry_command
(constructor) VLIB_CLI_COMMAND (one_add_del_l2_arp_entry_command)
vlib_cli_command_t one_add_del_map_request_command
(constructor) VLIB_CLI_COMMAND (one_add_del_map_request_command)
int vnet_lisp_rloc_probe_enable_disable(u8 is_enable)
int vnet_lisp_del_mapping(gid_address_t *eid, u32 *res_map_index)
Removes a mapping.
int vnet_lisp_map_register_enable_disable(u8 is_enable)
u32 vnet_lisp_map_register_fallback_threshold_get(void)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
int vnet_lisp_map_register_set_ttl(u32 ttl)
u64 gid_dictionary_lookup(gid_dictionary_t *db, gid_address_t *key)
int vnet_lisp_map_register_fallback_threshold_set(u32 value)
#define gid_address_type(_a)
void gid_address_free(gid_address_t *a)
static clib_error_t * lisp_stats_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define ip_prefix_version(_a)
vlib_cli_command_t one_show_status_command
(constructor) VLIB_CLI_COMMAND (one_show_status_command)
#define vec_terminate_c_string(V)
(If necessary) NULL terminate a vector containing a c-string.
#define gid_address_arp_ip4(_a)
u8 * format_gid_address(u8 *s, va_list *args)
int vnet_lisp_add_del_l2_arp_ndp_entry(gid_address_t *key, u8 *mac, u8 is_add)
uword unformat_negative_mapping_action(unformat_input_t *input, va_list *args)
#define clib_warning(format, args...)
static clib_error_t * lisp_show_rloc_probe_state_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
struct _gid_address_t gid_address_t
vlib_cli_command_t one_show_map_request_command
(constructor) VLIB_CLI_COMMAND (one_show_map_request_command)
vlib_cli_command_t one_add_del_adjacency_command
(constructor) VLIB_CLI_COMMAND (one_add_del_adjacency_command)
static clib_error_t * lisp_enable_disable_petr_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_cli_command_t one_show_rloc_probe_state_command
(constructor) VLIB_CLI_COMMAND (one_show_rloc_probe_state_command)
static clib_error_t * lisp_add_del_local_eid_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
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)
static clib_error_t * lisp_show_map_register_state_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_cli_command_t one_cp_disable_command
(constructor) VLIB_CLI_COMMAND (one_cp_disable_command)
vlib_cli_command_t one_cp_show_one_modes_modes_command
(constructor) VLIB_CLI_COMMAND (one_cp_show_one_modes_modes_command)
vl_api_mac_event_action_t action
static clib_error_t * lisp_map_request_mode_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 clib_error_t * lisp_use_petr_set_locator_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_cli_command_t one_show_petr_command
(constructor) VLIB_CLI_COMMAND (one_show_petr_command)
uword unformat_mac_address(unformat_input_t *input, va_list *args)
lisp_api_l2_arp_entry_t * vnet_lisp_l2_arp_entries_get_by_bd(u32 bd)
vlib_cli_command_t one_add_del_map_server_command
(constructor) VLIB_CLI_COMMAND (one_add_del_map_server_command)
vl_api_fib_path_type_t type
#define gid_address_mac(_a)
static clib_error_t * lisp_show_petr_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * lisp_show_stats_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int vnet_lisp_add_del_locator(vnet_lisp_add_del_locator_set_args_t *a, locator_set_t *ls, u32 *ls_result)
static clib_error_t * lisp_map_register_show_ttl_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vlib_cli_command_t one_cp_show_eid_table_command
(constructor) VLIB_CLI_COMMAND (one_cp_show_eid_table_command)
u32 vnet_lisp_map_register_get_ttl(void)
int vnet_lisp_nsh_set_locator_set(u8 *locator_set_name, u8 is_add)