summaryrefslogtreecommitdiffstats
path: root/isisd/isis_adjacency.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-07-10 20:41:25 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-07-10 20:41:25 +0200
commitd8bebc08aa5f242f4237425e1a1f988c2c2fd827 (patch)
treebc7cb36f117717b415a677aeb45be3cf4273ec75 /isisd/isis_adjacency.c
parentRevert "isisd: remove previous labels before fast-reroute" (diff)
downloadfrr-d8bebc08aa5f242f4237425e1a1f988c2c2fd827.tar.xz
frr-d8bebc08aa5f242f4237425e1a1f988c2c2fd827.zip
Revert "isisd: apply fast-reroute on an adjacency failure"
This reverts commit 71252973234e70ffa3cb5eec43d4efc1be3d3331.
Diffstat (limited to 'isisd/isis_adjacency.c')
-rw-r--r--isisd/isis_adjacency.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/isisd/isis_adjacency.c b/isisd/isis_adjacency.c
index 5b32a9e38..11f17ec7b 100644
--- a/isisd/isis_adjacency.c
+++ b/isisd/isis_adjacency.c
@@ -212,36 +212,6 @@ static const char *adj_level2string(int level)
return NULL; /* not reached */
}
-static void isis_adj_route_switchover(struct isis_adjacency *adj)
-{
- union g_addr ip = {};
- ifindex_t ifindex;
- unsigned int i;
-
- if (!adj->circuit || !adj->circuit->interface)
- return;
-
- ifindex = adj->circuit->interface->ifindex;
-
- for (i = 0; i < adj->ipv4_address_count; i++) {
- ip.ipv4 = adj->ipv4_addresses[i];
- isis_circuit_switchover_routes(adj->circuit, AF_INET, &ip,
- ifindex);
- }
-
- for (i = 0; i < adj->ll_ipv6_count; i++) {
- ip.ipv6 = adj->ll_ipv6_addrs[i];
- isis_circuit_switchover_routes(adj->circuit, AF_INET6, &ip,
- ifindex);
- }
-
- for (i = 0; i < adj->global_ipv6_count; i++) {
- ip.ipv6 = adj->global_ipv6_addrs[i];
- isis_circuit_switchover_routes(adj->circuit, AF_INET6, &ip,
- ifindex);
- }
-}
-
void isis_adj_process_threeway(struct isis_adjacency *adj,
struct isis_threeway_adj *tw_adj,
enum isis_adj_usage adj_usage)
@@ -328,16 +298,6 @@ void isis_adj_state_change(struct isis_adjacency **padj,
if (new_state == old_state)
return;
- if (old_state == ISIS_ADJ_UP) {
- if (IS_DEBUG_EVENTS)
- zlog_debug(
- "ISIS-Adj (%s): Starting fast-reroute on state change "
- "%d->%d: %s",
- circuit->area->area_tag, old_state, new_state,
- reason ? reason : "unspecified");
- isis_adj_route_switchover(adj);
- }
-
adj->adj_state = new_state;
send_hello_sched(circuit, adj->level, TRIGGERED_IIH_DELAY);