From 19a847a9cd05fd3317c00e9067ff1e29bb9f0be4 Mon Sep 17 00:00:00 2001 From: Mitesh Kanjariya Date: Fri, 13 Oct 2017 15:48:01 -0700 Subject: bgpd: set evpn rvtep nexthops as active by default Signed-off-by: Mitesh Kanjariya --- zebra/zebra_rib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zebra/zebra_rib.c') diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 82f087cebf..ed1a4953bf 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -847,7 +847,9 @@ static unsigned nexthop_active_check(struct route_node *rn, case NEXTHOP_TYPE_IPV4: case NEXTHOP_TYPE_IPV4_IFINDEX: family = AFI_IP; - if (nexthop_active(AFI_IP, re, nexthop, set, rn)) + if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_EVPN_RVTEP)) + SET_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE); + else if (nexthop_active(AFI_IP, re, nexthop, set, rn)) SET_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE); else UNSET_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE); -- cgit v1.2.3