0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Fixes OSPF reconfigure w.r.t. downed ifaces.

This commit is contained in:
Ondrej Zajicek 2012-11-10 16:18:12 +01:00
parent a55a90faec
commit 227af52fb5

View File

@ -886,6 +886,10 @@ ospf_ifaces_reconfigure(struct ospf_area *oa, struct ospf_area_config *nac)
struct ifa *a; struct ifa *a;
WALK_LIST(iface, iface_list) WALK_LIST(iface, iface_list)
{
if (! (iface->flags & IF_UP))
continue;
WALK_LIST(a, iface->addrs) WALK_LIST(a, iface->addrs)
{ {
if (a->flags & IA_SECONDARY) if (a->flags & IA_SECONDARY)
@ -911,6 +915,7 @@ ospf_ifaces_reconfigure(struct ospf_area *oa, struct ospf_area_config *nac)
ospf_iface_new(oa, a, ip); ospf_iface_new(oa, a, ip);
} }
} }
}
} }
@ -1014,6 +1019,10 @@ ospf_ifaces_reconfigure(struct ospf_area *oa, struct ospf_area_config *nac)
struct ifa *a; struct ifa *a;
WALK_LIST(iface, iface_list) WALK_LIST(iface, iface_list)
{
if (! (iface->flags & IF_UP))
continue;
WALK_LIST(a, iface->addrs) WALK_LIST(a, iface->addrs)
{ {
if (a->flags & IA_SECONDARY) if (a->flags & IA_SECONDARY)
@ -1042,6 +1051,7 @@ ospf_ifaces_reconfigure(struct ospf_area *oa, struct ospf_area_config *nac)
ospf_iface_new(oa, a, ip); ospf_iface_new(oa, a, ip);
} }
} }
}
} }
#endif #endif