summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2024-10-22 17:07:53 +0200
committerGitHub <noreply@github.com>2024-10-22 17:07:53 +0200
commit98ec22ff59b284ba54462272ba36e584a52bf735 (patch)
treefe22f3ee73fd4b001a664352be7ae4d2af164164
parentMerge pull request #17166 from anlancs/zebra/review-remove-one (diff)
parentisisd: fix 'show isis route' and 'show isis fast-reroute summary' errors with... (diff)
downloadfrr-98ec22ff59b284ba54462272ba36e584a52bf735.tar.xz
frr-98ec22ff59b284ba54462272ba36e584a52bf735.zip
Merge pull request #17174 from baozhen-H3C/202410180225
isisd: fix 'show isis route' and 'show isis fast-reroute summary' errors with vrf
-rw-r--r--isisd/isis_spf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c
index 8fc0f144b..9c32a8447 100644
--- a/isisd/isis_spf.c
+++ b/isisd/isis_spf.c
@@ -3258,6 +3258,7 @@ DEFUN(show_isis_route, show_isis_route_cmd,
json_object *json = NULL, *json_vrf = NULL;
uint8_t algorithm = SR_ALGORITHM_SPF;
+ ISIS_FIND_VRF_ARGS(argv, argc, idx, vrf_name, all_vrf);
if (argv_find(argv, argc, "level-1", &idx))
levels = ISIS_LEVEL1;
else if (argv_find(argv, argc, "level-2", &idx))
@@ -3269,7 +3270,6 @@ DEFUN(show_isis_route, show_isis_route_cmd,
vty_out(vty, "IS-IS Routing Process not enabled\n");
return CMD_SUCCESS;
}
- ISIS_FIND_VRF_ARGS(argv, argc, idx, vrf_name, all_vrf);
if (argv_find(argv, argc, "prefix-sid", &idx))
prefix_sid = true;
@@ -3520,6 +3520,7 @@ DEFUN(show_isis_frr_summary, show_isis_frr_summary_cmd,
bool all_vrf = false;
int idx = 0;
+ ISIS_FIND_VRF_ARGS(argv, argc, idx, vrf_name, all_vrf);
if (argv_find(argv, argc, "level-1", &idx))
levels = ISIS_LEVEL1;
else if (argv_find(argv, argc, "level-2", &idx))
@@ -3531,7 +3532,6 @@ DEFUN(show_isis_frr_summary, show_isis_frr_summary_cmd,
vty_out(vty, "IS-IS Routing Process not enabled\n");
return CMD_SUCCESS;
}
- ISIS_FIND_VRF_ARGS(argv, argc, idx, vrf_name, all_vrf);
if (all_vrf) {
for (ALL_LIST_ELEMENTS_RO(im->isis, node, isis))