From f5d2190cfcb9aaa4da3b9aecc9199c851133a3b4 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 13 May 2008 14:58:15 -0700 Subject: 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 --- zebra/zebra_rib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3