aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-cp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/lisp-cp')
-rw-r--r--src/vnet/lisp-cp/lisp_cli.c1
-rw-r--r--src/vnet/lisp-cp/lisp_msg_serdes.c1
-rw-r--r--src/vnet/lisp-cp/one_cli.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/lisp-cp/lisp_cli.c b/src/vnet/lisp-cp/lisp_cli.c
index 690850c7ac2..5cd183402b0 100644
--- a/src/vnet/lisp-cp/lisp_cli.c
+++ b/src/vnet/lisp-cp/lisp_cli.c
@@ -1177,6 +1177,7 @@ lisp_add_del_locator_set_command_fn (vlib_main_t * vm,
&locator.weight))
{
locator.local = 1;
+ locator.state = 1;
vec_add1 (locators, locator);
}
else
diff --git a/src/vnet/lisp-cp/lisp_msg_serdes.c b/src/vnet/lisp-cp/lisp_msg_serdes.c
index f45f08fad6c..90afb10b68b 100644
--- a/src/vnet/lisp-cp/lisp_msg_serdes.c
+++ b/src/vnet/lisp-cp/lisp_msg_serdes.c
@@ -34,6 +34,7 @@ lisp_msg_put_locators (vlib_buffer_t * b, locator_t * locators)
LOC_MWEIGHT (p) = loc->mweight;
LOC_LOCAL (p) = loc->local;
LOC_PROBED (p) = loc->probed ? 1 : 0;
+ LOC_REACHABLE (p) = loc->state ? 1 : 0;
lisp_msg_put_gid (b, &loc->address);
}
}
diff --git a/src/vnet/lisp-cp/one_cli.c b/src/vnet/lisp-cp/one_cli.c
index 70d755b985c..e000c02e414 100644
--- a/src/vnet/lisp-cp/one_cli.c
+++ b/src/vnet/lisp-cp/one_cli.c
@@ -1721,6 +1721,7 @@ lisp_add_del_locator_set_command_fn (vlib_main_t * vm,
&locator.weight))
{
locator.local = 1;
+ locator.state = 1;
vec_add1 (locators, locator);
}
else