summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-13 14:58:15 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-13 14:58:15 -0700
commitf5d2190cfcb9aaa4da3b9aecc9199c851133a3b4 (patch)
tree3137fc4d5c073114cb5430728dd875ba59de957f
parent118787493424775cb62b61c33c6f5b380652ffb1 (diff)
downloadquagga-f5d2190cfcb9aaa4da3b9aecc9199c851133a3b4.tar.bz2
quagga-f5d2190cfcb9aaa4da3b9aecc9199c851133a3b4.tar.xz
Manage link state on non-connected static routes
For static routes, go through same logic to check the state of the nexthop to see if the route should be activated or not. Bug fix for 2708
-rw-r--r--zebra/zebra_rib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 24975f71..5ae556bf 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -411,7 +411,8 @@ nexthop_active_ipv4 (struct rib *rib, struct nexthop *nexthop, int set,
}
return 1;
}
- else if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_INTERNAL))
+ else if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_INTERNAL) ||
+ match->type == ZEBRA_ROUTE_STATIC)
{
for (newhop = match->nexthop; newhop; newhop = newhop->next)
if (CHECK_FLAG (newhop->flags, NEXTHOP_FLAG_FIB)