Skip to content

Commit

Permalink
isisd: fix show isis segment-routing node algorithm
Browse files Browse the repository at this point in the history
Fix an issue where "show isis segment-routing node algorithm" displays
"IS-IS X SR-Nodes:" for absent flex-algorithms.

> IS-IS L2 SR-Nodes:
>
> IS-IS L2 SR-Nodes:
> [...]

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
  • Loading branch information
louis-6wind committed May 22, 2024
1 parent c2058bb commit 47640d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isisd/isis_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,8 +1020,6 @@ static void show_node(struct vty *vty, struct isis_area *area, int level,
struct ttable *tt;
char buf[128];

vty_out(vty, " IS-IS %s SR-Nodes:\n\n", circuit_t2string(level));

/* Prepare table. */
tt = ttable_new(&ttable_styles[TTSTYLE_BLANK]);
ttable_add_row(tt, "System ID|SRGB|SRLB|Algorithm|MSD");
Expand Down Expand Up @@ -1062,6 +1060,8 @@ static void show_node(struct vty *vty, struct isis_area *area, int level,
if (tt->nrows > 1) {
char *table;

vty_out(vty, " IS-IS %s SR-Nodes:\n\n", circuit_t2string(level));

table = ttable_dump(tt, "\n");
vty_out(vty, "%s\n", table);
XFREE(MTYPE_TMP, table);
Expand Down

0 comments on commit 47640d5

Please sign in to comment.