VPP-342: Don't allow remote mapping to overwrite local or static mapping
[vpp.git] / vpp / vpp-api / api.c
index 93401ed..db818fd 100644 (file)
@@ -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 ();