mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Fixes handling of iface routes in static proto during reconfiguration.
During reconfiguration, iface routes were installed even when iface was down.
This commit is contained in:
parent
36da2857bc
commit
c6a2fe64be
@ -461,7 +461,7 @@ static_reconfigure(struct proto *p, struct proto_config *new)
|
|||||||
WALK_LIST(r, n->iface_routes)
|
WALK_LIST(r, n->iface_routes)
|
||||||
{
|
{
|
||||||
struct iface *ifa;
|
struct iface *ifa;
|
||||||
if (ifa = if_find_by_name(r->if_name))
|
if ((ifa = if_find_by_name(r->if_name)) && (ifa->flags & IF_UP))
|
||||||
static_install(p, r, ifa);
|
static_install(p, r, ifa);
|
||||||
}
|
}
|
||||||
WALK_LIST(r, n->other_routes)
|
WALK_LIST(r, n->other_routes)
|
||||||
|
Loading…
Reference in New Issue
Block a user