aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2016-05-26 16:47:11 +0200
committerFilip Tehlar <ftehlar@cisco.com>2016-05-26 16:47:11 +0200
commitf747cd8b9b9ded4864539edb98c04397852199c5 (patch)
tree54ae20f529a2918681c421a28affe7043a2bc264 /vnet
parent64ae66903847cff20f0752caa7796b02e2fcec23 (diff)
Add show command for LISP map resolvers
Change-Id: I3ed6269f9a307b50b56ce04defc2576a139c6add Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/lisp-cp/control.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/vnet/vnet/lisp-cp/control.c b/vnet/vnet/lisp-cp/control.c
index 6a9e2ed5..419b745a 100644
--- a/vnet/vnet/lisp-cp/control.c
+++ b/vnet/vnet/lisp-cp/control.c
@@ -610,6 +610,27 @@ VLIB_CLI_COMMAND (lisp_add_del_remote_mapping_command) = {
.function = lisp_add_del_remote_mapping_command_fn,
};
+static clib_error_t *
+lisp_show_map_resolvers_command_fn (vlib_main_t * vm,
+ unformat_input_t * input,
+ vlib_cli_command_t * cmd)
+{
+ ip_address_t * addr;
+ lisp_cp_main_t * lcm = vnet_lisp_cp_get_main ();
+
+ vec_foreach (addr, lcm->map_resolvers)
+ {
+ vlib_cli_output (vm, "%U", format_ip_address, addr);
+ }
+ return 0;
+}
+
+VLIB_CLI_COMMAND (lisp_show_map_resolvers_command) = {
+ .path = "show lisp map-resolvers",
+ .short_help = "show lisp map-resolvers",
+ .function = lisp_show_map_resolvers_command_fn,
+};
+
int
vnet_lisp_pitr_set_locator_set (u8 * locator_set_name, u8 is_add)
{