diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2020-11-20 23:55:42 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2020-11-25 00:15:52 +0100 |
commit | fc156c28a50fd536f192e0cd0ab2127bcbeff61f (patch) | |
tree | d626e0c8c277706dbd129fdf9471f0d74123d6b1 /isisd/isis_lfa.c | |
parent | isisd: add support for classic LFA (RFC 5286) (diff) | |
download | frr-fc156c28a50fd536f192e0cd0ab2127bcbeff61f.tar.xz frr-fc156c28a50fd536f192e0cd0ab2127bcbeff61f.zip |
isisd: add the "show isis fast-reroute summary" command
Add new "show" command to make it easy to see the protection coverage
provided by LFA/rLFA/TI-LFA.
Example output:
debian# show isis fast-reroute summary
Area 1:
IS-IS L1 IPv4 Fast ReRoute summary:
Protection \ Priority Critical High Medium Low Total
--------------------------------------------------------------------------
Classic LFA 0 0 1 3 4
Remote LFA 0 0 0 0 0
Topology Independent LFA 0 0 0 0 0
ECMP 0 0 0 0 0
Unprotected 0 0 2 1 3
Protection coverage 0.00% 0.00% 33.33% 75.00% 54.17%
IS-IS L1 IPv6 Fast ReRoute summary:
Protection \ Priority Critical High Medium Low Total
--------------------------------------------------------------------------
Classic LFA 0 0 1 0 1
Remote LFA 0 0 0 0 0
Topology Independent LFA 0 0 0 0 0
ECMP 0 0 0 0 0
Unprotected 0 0 2 0 2
Protection coverage 0.00% 0.00% 33.33% 0.00% 33.33%
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_lfa.c')
-rw-r--r-- | isisd/isis_lfa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/isisd/isis_lfa.c b/isisd/isis_lfa.c index 7d516dc93..fc6b435b6 100644 --- a/isisd/isis_lfa.c +++ b/isisd/isis_lfa.c @@ -1713,6 +1713,8 @@ void isis_lfa_compute(struct isis_area *area, struct isis_circuit *circuit, best_metric, vertex->depth, &vertex->N.ip.sr, filtered_lfa_list, allow_ecmp, area, spftree->route_table_backup); + spftree->lfa.protection_counters.lfa[vertex->N.ip.priority] += + 1; list_delete(&filtered_lfa_list); list_delete(&lfa_list); |