From 3cd9e730f9db0d998e5e8a27ddff1da5a123625b Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Tue, 23 Aug 2016 10:52:44 +0200 Subject: VPP-342: Don't allow remote mapping to overwrite local or static mapping Change-Id: I9888d7c087da538b81a6a1967edbdf1103cc095a Signed-off-by: Filip Tehlar --- vpp/vpp-api/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vpp/vpp-api') 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 (); -- cgit 1.2.3-korg