diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2020-11-20 19:55:42 -0300 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2020-11-24 20:15:52 -0300 | 
| commit | fc156c28a50fd536f192e0cd0ab2127bcbeff61f (patch) | |
| tree | d626e0c8c277706dbd129fdf9471f0d74123d6b1 /isisd/isis_spf_private.h | |
| parent | e886416f81703c66cf5a4443a2adf929d2b8d7b2 (diff) | |
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_spf_private.h')
| -rw-r--r-- | isisd/isis_spf_private.h | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/isisd/isis_spf_private.h b/isisd/isis_spf_private.h index f128b4b585..b7f326ca86 100644 --- a/isisd/isis_spf_private.h +++ b/isisd/isis_spf_private.h @@ -348,6 +348,15 @@ struct isis_spftree {  		/* P-space and Q-space. */  		struct isis_spf_nodes p_space;  		struct isis_spf_nodes q_space; + +		/* Protection counters. */ +		struct { +			uint32_t lfa[SPF_PREFIX_PRIO_MAX]; +			uint32_t rlfa[SPF_PREFIX_PRIO_MAX]; +			uint32_t tilfa[SPF_PREFIX_PRIO_MAX]; +			uint32_t ecmp[SPF_PREFIX_PRIO_MAX]; +			uint32_t total[SPF_PREFIX_PRIO_MAX]; +		} protection_counters;  	} lfa;  	uint8_t flags;  };  | 
