Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
679b78f
)
SVS: cleanup default route on SVS disable
45/18145/2
author
Neale Ranns
<nranns@cisco.com>
Fri, 8 Mar 2019 13:36:56 +0000
(13:36 +0000)
committer
Florin Coras
<florin.coras@gmail.com>
Sat, 9 Mar 2019 00:00:05 +0000
(
00:00
+0000)
Change-Id: Ie0680330dd619cfdcb72ae8fb7e2463f732cff8c
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/plugins/svs/svs.c
patch
|
blob
|
history
diff --git
a/src/plugins/svs/svs.c
b/src/plugins/svs/svs.c
index
fcfddf9
..
2ee15cf
100644
(file)
--- 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);
}