1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

When in persist mode, don't delete routes from kernel tables even if

they cease to exist in our routing tables due to protocols having shut down.
This commit is contained in:
Martin Mares
2000-05-16 13:36:38 +00:00
parent c5a06f65ee
commit f990fc61e0
2 changed files with 4 additions and 8 deletions

View File

@@ -667,6 +667,8 @@ krt_notify(struct proto *P, net *net, rte *new, rte *old, struct ea_list *attrs)
{
struct krt_proto *p = (struct krt_proto *) P;
if (shutting_down && KRT_CF->persist)
return;
if (new && (!krt_capable(new) || new->attrs->source == RTS_INHERIT))
new = NULL;
if (!(net->n.flags & KRF_INSTALLED))