aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/svs/svs.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-03-08 13:36:56 +0000
committerFlorin Coras <florin.coras@gmail.com>2019-03-09 00:00:05 +0000
commit738b299a8ed633b59e34f0709a8e164c9edc8852 (patch)
tree08d114d6d0418535cc5652a62a945d667a09eca2 /src/plugins/svs/svs.c
parent679b78f7155b18efa690b0d2a4a0b51c00090522 (diff)
SVS: cleanup default route on SVS disable
Change-Id: Ie0680330dd619cfdcb72ae8fb7e2463f732cff8c Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/plugins/svs/svs.c')
-rw-r--r--src/plugins/svs/svs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/svs/svs.c b/src/plugins/svs/svs.c
index fcfddf9523e..2ee15cffac3 100644
--- a/src/plugins/svs/svs.c
+++ b/src/plugins/svs/svs.c
@@ -192,6 +192,9 @@ svs_ip4_table_bind (ip4_main_t * im,
int
svs_disable (fib_protocol_t fproto, u32 table_id, u32 sw_if_index)
{
+ fib_prefix_t pfx = {
+ .fp_proto = fproto,
+ };
u32 fib_index;
fib_index = fib_table_find (fproto, table_id);
@@ -211,6 +214,8 @@ svs_disable (fib_protocol_t fproto, u32 table_id, u32 sw_if_index)
"svs-ip4" :
"svs-ip6"), sw_if_index, 0, NULL, 0);
+ fib_table_entry_special_remove (fib_index, &pfx, FIB_SOURCE_PLUGIN_LOW);
+
return (0);
}