summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Mikhailov (imichail) <imichail@cisco.com>2016-10-04 20:09:41 -0700
committerIgor Mikhailov (imichail) <imichail@cisco.com>2016-10-04 20:09:41 -0700
commit15977efc454a2faba91eca0184251dc8e0d553f0 (patch)
tree4e6c31af21c1798cd2348f8327c5daca8e7ce13b
parentd82799863a6c02ae83daf9e231a4a1de5400731e (diff)
Fix CLI 'set interface unnumbered' to work with FIB 2.0
Commit of the patch from Neale Ranns Change-Id: Ia0480ef56036dd0aec990c3892a93b99eb9fb893 Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
-rw-r--r--vnet/vnet/interface_cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vnet/vnet/interface_cli.c b/vnet/vnet/interface_cli.c
index 03b51332bae..05e650e252c 100644
--- a/vnet/vnet/interface_cli.c
+++ b/vnet/vnet/interface_cli.c
@@ -834,11 +834,15 @@ set_unnumbered (vlib_main_t * vm,
{
si->flags &= ~(VNET_SW_INTERFACE_FLAG_UNNUMBERED);
si->unnumbered_sw_if_index = (u32) ~ 0;
+ ip4_sw_interface_enable_disable (unnumbered_sw_if_index, 0);
+ ip6_sw_interface_enable_disable (unnumbered_sw_if_index, 0);
}
else if (is_set)
{
si->flags |= VNET_SW_INTERFACE_FLAG_UNNUMBERED;
si->unnumbered_sw_if_index = inherit_from_sw_if_index;
+ ip4_sw_interface_enable_disable (unnumbered_sw_if_index, 1);
+ ip6_sw_interface_enable_disable (unnumbered_sw_if_index, 1);
}
return 0;