mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-30 06:40:06 +00:00
isisd: fix the display topology command
The unconfigured flexible algorithm should not be displayed. Before: ``` anlan# show isis topology algorithm Area A: Algorithm 128 Area A:Area A:Area A:Area A:Area A:Area A:Area A:Area A:Area A:Area ... ...... anlan# ``` After: ``` anlan# show isis topology algorithm Area A: Algorithm 128 anlan# ``` Signed-off-by: anlan_cs <anlan_cs@tom.com>
This commit is contained in:
parent
c54bc7a8dd
commit
f185005b2f
@ -2343,9 +2343,6 @@ static void show_isis_topology_common(struct vty *vty, int levels,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for (ALL_LIST_ELEMENTS_RO(isis->area_list, node, area)) {
|
for (ALL_LIST_ELEMENTS_RO(isis->area_list, node, area)) {
|
||||||
vty_out(vty,
|
|
||||||
"Area %s:", area->area_tag ? area->area_tag : "null");
|
|
||||||
|
|
||||||
#ifndef FABRICD
|
#ifndef FABRICD
|
||||||
/*
|
/*
|
||||||
* The shapes of the flex algo spftree 2-dimensional array
|
* The shapes of the flex algo spftree 2-dimensional array
|
||||||
@ -2361,6 +2358,9 @@ static void show_isis_topology_common(struct vty *vty, int levels,
|
|||||||
} else
|
} else
|
||||||
fa_data = NULL;
|
fa_data = NULL;
|
||||||
|
|
||||||
|
vty_out(vty,
|
||||||
|
"Area %s:", area->area_tag ? area->area_tag : "null");
|
||||||
|
|
||||||
if (algo != SR_ALGORITHM_SPF)
|
if (algo != SR_ALGORITHM_SPF)
|
||||||
vty_out(vty, " Algorithm %hhu\n", algo);
|
vty_out(vty, " Algorithm %hhu\n", algo);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user