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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user