From e51a7a08492190684041a2232dbeacf064d3645a Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 21 Jan 2019 17:36:28 -0800 Subject: lisp: cli for marking local mappings authoritative Change-Id: I92af6455b50a49de4c912737fcd3b7787dd31de0 Signed-off-by: Florin Coras --- src/vnet/lisp-cp/control.c | 1 + src/vnet/lisp-cp/one_cli.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/vnet') diff --git a/src/vnet/lisp-cp/control.c b/src/vnet/lisp-cp/control.c index ca71bf885cf..1caad6ab8bd 100644 --- a/src/vnet/lisp-cp/control.c +++ b/src/vnet/lisp-cp/control.c @@ -774,6 +774,7 @@ vnet_lisp_map_cache_add_del (vnet_lisp_add_del_mapping_args_t * a, m->is_static = a->is_static; m->key = vec_dup (a->key); m->key_id = a->key_id; + m->authoritative = a->authoritative; map_index = m - lcm->mapping_pool; gid_dictionary_add_del (&lcm->mapping_index_by_gid, &a->eid, map_index, diff --git a/src/vnet/lisp-cp/one_cli.c b/src/vnet/lisp-cp/one_cli.c index 7823ea14cd9..70d755b985c 100644 --- a/src/vnet/lisp-cp/one_cli.c +++ b/src/vnet/lisp-cp/one_cli.c @@ -178,6 +178,8 @@ lisp_add_del_local_eid_command_fn (vlib_main_t * vm, unformat_input_t * input, } locator_set_index = p[0]; } + else if (unformat (line_input, "authoritative")) + a->authoritative = 1; else { error = unformat_parse_error (line_input); -- cgit 1.2.3-korg