aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2017-03-30 15:17:01 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-03-30 18:55:00 +0000
commit1e8d01f423ad90ce0acf149c41642c87be420966 (patch)
tree0399c4d98a13703b59720e0c95ebe1d67a436b72 /src/vnet
parent20e1f2acd5d05a0a238ab8b8a870273799423e83 (diff)
LISP: Do not show P-ITR generated mapping
Change-Id: I1aa25ef11dc75002cb9b6aac0981af00026e57ce Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/lisp-cp/one_api.c3
-rw-r--r--src/vnet/lisp-cp/one_cli.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/lisp-cp/one_api.c b/src/vnet/lisp-cp/one_api.c
index ab9e7a63..28924091 100644
--- a/src/vnet/lisp-cp/one_api.c
+++ b/src/vnet/lisp-cp/one_api.c
@@ -772,6 +772,9 @@ send_one_eid_table_details (mapping_t * mapit,
u8 *mac = 0;
ip_prefix_t *ip_prefix = NULL;
+ if (mapit->pitr_set)
+ return;
+
switch (filter)
{
case 0: /* all mappings */
diff --git a/src/vnet/lisp-cp/one_cli.c b/src/vnet/lisp-cp/one_cli.c
index b5bc5292..f15558ee 100644
--- a/src/vnet/lisp-cp/one_cli.c
+++ b/src/vnet/lisp-cp/one_cli.c
@@ -822,6 +822,9 @@ lisp_show_eid_table_command_fn (vlib_main_t * vm,
/* *INDENT-OFF* */
pool_foreach (mapit, lcm->mapping_pool,
({
+ if (mapit->pitr_set)
+ continue;
+
locator_set_t * ls = pool_elt_at_index (lcm->locator_set_pool,
mapit->locator_set_index);
if (filter && !((1 == filter && ls->local) ||