aboutsummaryrefslogtreecommitdiffstats
path: root/vpp/vpp-api/api.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2016-08-23 10:52:44 +0200
committerFilip Tehlar <ftehlar@cisco.com>2016-08-23 12:14:52 +0200
commit3cd9e730f9db0d998e5e8a27ddff1da5a123625b (patch)
treeda11bbdef541295160c8e42286755f35fd437562 /vpp/vpp-api/api.c
parentb28e498a49aeb5386bb10695146f859032bd90ae (diff)
VPP-342: Don't allow remote mapping to overwrite local or static mapping
Change-Id: I9888d7c087da538b81a6a1967edbdf1103cc095a Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vpp/vpp-api/api.c')
-rw-r--r--vpp/vpp-api/api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c
index 93401ed1..db818fdf 100644
--- a/vpp/vpp-api/api.c
+++ b/vpp/vpp-api/api.c
@@ -5503,7 +5503,7 @@ static void
/* NOTE: for now this works as a static remote mapping, i.e.,
* not authoritative and ttl infinite. */
rv = vnet_lisp_add_del_mapping (eid, rlocs, mp->action, 0, ~0,
- mp->is_add, 0);
+ mp->is_add, 1 /* is_static */ , 0);
if (mp->del_all)
vnet_lisp_clear_all_remote_adjacencies ();