summaryrefslogtreecommitdiff
path: root/lib/log.c
diff options
context:
space:
mode:
authorbaozhen-H3C <bao.zhen@h3c.com>2024-10-21 16:20:27 +0800
committerb29332 <bao.zhen@h3c.com>2024-10-22 09:35:50 +0800
commite2e48949405ff64a6401a5a4d280010fe6b2df1c (patch)
tree1a91451ae9210dc66176bae04c4ff4520c5f252e /lib/log.c
parent2f84a26634ec07ff677f13a9b8e915aef06149ec (diff)
isisd: fix 'show isis route' and 'show isis fast-reroute summary' errors with vrf
When the VRF does not exist, the command will display results for the 'default' VRF. 1.before the commit: sonic# show vrf vrf Vrf1 id 41 table 1001 sonic# show isis vrf abc route level-1 Area 10: IS-IS L1 IPv4 routing table: Prefix Metric Interface Nexthop Label(s) ------------------------------------------------------- 0.0.0.0/0 5 Ethernet0 10.1.1.2 - 6.6.6.6/32 10 - - - sonic# show isis vrf abc fast-reroute summary level-1 Area 10: IS-IS L1 IPv4 Fast ReRoute summary: Protection \ Priority Critical High Medium Low Total -------------------------------------------------------------------------- Classic LFA 0 0 2 3 5 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 2 4 Protection coverage 0.00% 0.00% 50.00% 60.00% 55.56% 2.after the commit: sonic# show vrf vrf Vrf1 id 41 table 1001 sonic# show isis vrf abc route level-1 sonic# show isis vrf abc fast-reroute summary level-1 What I do: Move 'ISIS_FIND_VRF_ARGS(argv, argc, idx, vrf_name, all_vrf);' to the front, otherwise changing 'idx' while searching for other parameters may result in failing to find the vrf parameter. Signed-off-by: baozhen-H3C <bao.zhen@h3c.com>
Diffstat (limited to 'lib/log.c')
0 files changed, 0 insertions, 0 deletions