SVS: cleanup default route on SVS disable
Change-Id: Ie0680330dd619cfdcb72ae8fb7e2463f732cff8c Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:
committed by
Florin Coras
parent
679b78f715
commit
738b299a8e
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user