Fixes OSPF reconfigure w.r.t. downed ifaces.
This commit is contained in:
parent
a55a90faec
commit
227af52fb5
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||||
|
@ -912,6 +916,7 @@ ospf_ifaces_reconfigure(struct ospf_area *oa, struct ospf_area_config *nac)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#else /* OSPFv3 */
|
#else /* OSPFv3 */
|
||||||
|
@ -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)
|
||||||
|
@ -1043,6 +1052,7 @@ ospf_ifaces_reconfigure(struct ospf_area *oa, struct ospf_area_config *nac)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue