diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-15 23:30:17 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-16 10:18:07 -0400 |
| commit | 47a08aa968e451b81030e010d41da6def3d2c577 (patch) | |
| tree | 5925cef0e68d5dea5ec91d88dcec8b6c4f042772 /zebra/zebra_rib.c | |
| parent | e69aa084193bcadc7a48c99c381741e8ff307658 (diff) | |
zebra: Upon client disconnect remove routes from all tables
It is possible for clients to install routes into tables
that they desire. Modify the code to delete these routes
from these tables as well.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 26dd48733e..35c74daea5 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -2803,8 +2803,8 @@ void rib_sweep_route(void) } /* Remove specific by protocol routes from 'table'. */ -static unsigned long rib_score_proto_table(u_char proto, u_short instance, - struct route_table *table) +unsigned long rib_score_proto_table(u_char proto, u_short instance, + struct route_table *table) { struct route_node *rn; struct route_entry *re; @@ -2841,6 +2841,8 @@ unsigned long rib_score_proto(u_char proto, u_short instance) proto, instance, zvrf->table[AFI_IP6][SAFI_UNICAST]); + cnt += zebra_ns_score_proto(proto, instance); + return cnt; } |
