Skip to content

Commit 2239662

Browse files
committed
isisd: fix 'show isis route prefix-sid backup' command
It is not possible to dump both backup and prefix-sid information. Fix this by authorising it. > rt1# show isis route prefix-sid backup > Area 1: > IS-IS paths to level-1 routers that speak IP > Vertex Type Metric Next-Hop Interface Parent > rt1 > 10.12.0.0/24 IP internal 0 rt1(4) > 10.13.0.0/24 IP internal 0 rt1(4) > 1.1.1.1/32 IP internal 0 rt1(4) > rt2 TE-IS 10 rt2 eth-rt2 rt1(4) > rt3 TE-IS 10 rt3 eth-rt3 rt1(4) > 10.12.0.0/24 IP TE 20 rt2 eth-rt2 rt2(4) > 10.23.0.0/24 IP TE 20 rt2 eth-rt2 rt2(4) > rt3 eth-rt3 rt3(4) > 2.2.2.2/32 IP TE 20 rt2 eth-rt2 rt2(4) > 10.13.0.0/24 IP TE 20 rt3 eth-rt3 rt3(4) > 3.3.3.3/32 IP TE 20 rt3 eth-rt3 rt3(4) > > IS-IS L1 IPv4 routing table: > > IS-IS paths to level-1 routers that speak IPv6 > Vertex Type Metric Next-Hop Interface Parent > rt1 > 2001:db8:1000::1/128 IP6 internal 0 rt1(4) > rt2 TE-IS 10 rt2 eth-rt2 rt1(4) > rt3 TE-IS 10 rt3 eth-rt3 rt1(4) > 2001:db8:1000::2/128 IP6 internal 20 rt2 eth-rt2 rt2(4) > 2001:db8:1000::3/128 IP6 internal 20 rt3 eth-rt3 rt3(4) > > IS-IS L1 IPv6 routing table: > Fixes: d47d608 ("isisd: refactor handling of SR Prefix-SIDs") Signed-off-by: Philippe Guibert <[email protected]>
1 parent f0bf36d commit 2239662

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/user/isisd.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Showing ISIS information
325325
Show topology IS-IS paths to Intermediate Systems, globally, in area
326326
(level-1) or domain (level-2).
327327

328-
.. clicmd:: show isis [vrf <NAME|all>] route [level-1|level-2] [prefix-sid|backup] [algorithm [(128-255)]]
328+
.. clicmd:: show isis [vrf <NAME|all>] route [level-1|level-2] <prefix-sid|backup> [algorithm [(128-255)]]
329329

330330
Show the ISIS routing table, as determined by the most recent SPF
331331
calculation.

isisd/isis_spf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3074,7 +3074,7 @@ DEFUN(show_isis_route, show_isis_route_cmd,
30743074
#ifndef FABRICD
30753075
" [<level-1|level-2>]"
30763076
#endif /* ifndef FABRICD */
3077-
" [<prefix-sid|backup>]"
3077+
" [prefix-sid] [backup]"
30783078
#ifndef FABRICD
30793079
" [algorithm [(128-255)]]"
30803080
#endif /* ifndef FABRICD */

0 commit comments

Comments
 (0)