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:
anlan_cs 2024-05-07 09:08:05 +08:00
parent c54bc7a8dd
commit f185005b2f

View file

@ -2343,9 +2343,6 @@ static void show_isis_topology_common(struct vty *vty, int levels,
return;
for (ALL_LIST_ELEMENTS_RO(isis->area_list, node, area)) {
vty_out(vty,
"Area %s:", area->area_tag ? area->area_tag : "null");
#ifndef FABRICD
/*
* 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
fa_data = NULL;
vty_out(vty,
"Area %s:", area->area_tag ? area->area_tag : "null");
if (algo != SR_ALGORITHM_SPF)
vty_out(vty, " Algorithm %hhu\n", algo);
else