diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-07-10 21:41:25 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-07-10 21:41:25 +0300 | 
| commit | d8bebc08aa5f242f4237425e1a1f988c2c2fd827 (patch) | |
| tree | bc7cb36f117717b415a677aeb45be3cf4273ec75 /isisd/isis_route.c | |
| parent | 96d1200e3eb9d95da6607d40398630ac45b97812 (diff) | |
Revert "isisd: apply fast-reroute on an adjacency failure"
This reverts commit 71252973234e70ffa3cb5eec43d4efc1be3d3331.
Diffstat (limited to 'isisd/isis_route.c')
| -rw-r--r-- | isisd/isis_route.c | 50 | 
1 files changed, 0 insertions, 50 deletions
diff --git a/isisd/isis_route.c b/isisd/isis_route.c index b04e8e4553..9f8f639e5d 100644 --- a/isisd/isis_route.c +++ b/isisd/isis_route.c @@ -724,53 +724,3 @@ void isis_route_invalidate_table(struct isis_area *area,  		UNSET_FLAG(rinfo->flag, ISIS_ROUTE_FLAG_ACTIVE);  	}  } - -void isis_route_switchover_nexthop(struct isis_area *area, -				   struct route_table *table, int family, -				   union g_addr *nexthop_addr, -				   ifindex_t ifindex) -{ -	const char *ifname = NULL, *vrfname = NULL; -	struct isis_route_info *rinfo; -	struct prefix_ipv6 *src_p; -	struct route_node *rnode; -	vrf_id_t vrf_id; -	struct prefix *prefix; - -	if (IS_DEBUG_EVENTS) { -		if (area && area->isis) { -			vrf_id = area->isis->vrf_id; -			vrfname = vrf_id_to_name(vrf_id); -			ifname = ifindex2ifname(ifindex, vrf_id); -		} -		zlog_debug("%s: initiating fast-reroute %s on VRF %s iface %s", -			   __func__, family2str(family), vrfname ? vrfname : "", -			   ifname ? ifname : ""); -	} - -	for (rnode = route_top(table); rnode; -	     rnode = srcdest_route_next(rnode)) { -		if (!rnode->info) -			continue; -		rinfo = rnode->info; - -		if (!rinfo->backup) -			continue; - -		if (!nexthoplookup(rinfo->nexthops, family, nexthop_addr, -				   ifindex)) -			continue; - -		srcdest_rnode_prefixes(rnode, (const struct prefix **)&prefix, -				       (const struct prefix **)&src_p); - -		/* Switchover route. */ -		UNSET_FLAG(rinfo->flag, ISIS_ROUTE_FLAG_ZEBRA_SYNCED); -		isis_route_update(area, prefix, src_p, rinfo->backup); - -		isis_route_info_delete(rinfo); - -		rnode->info = NULL; -		route_unlock_node(rnode); -	} -}  | 
