Skip to content

Commit

Permalink
isisd: change the json output for isis routes
Browse files Browse the repository at this point in the history
The json format for json routes should be compliant with caml format.

Before:

> "Prefix|Metric|Interface|Nexthop|SID|LabelOp|Algo":
> "Prefix|Metric|Interface|Nexthop|Label(s)");

After:

> "prefix|metric|interface|nextHop|segmentIdentifier|labelOperation|Algorithm":
> "prefix|metric|interface|nextHop|label(s)");

Signed-off-by: Philippe Guibert <[email protected]>
  • Loading branch information
pguibert6WIND committed Jun 21, 2024
1 parent d0a142a commit 611f83f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion isisd/isis_spf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3015,7 +3015,11 @@ void isis_print_routes(struct vty *vty, struct isis_spftree *spftree,
vty_out(vty, "%s\n", table);
XFREE(MTYPE_TMP, table);
} else if (json) {
*json = ttable_json(tt, prefix_sid ? "sdssdsdd" : "sdsss");
*json = ttable_json_with_json_text(
tt, prefix_sid ? "sdssdsdd" : "sdsss",
prefix_sid
? "prefix|metric|interface|nextHop|segmentIdentifier|labelOperation|Algorithm"
: "prefix|metric|interface|nextHop|label(s)");
}
ttable_del(tt);
}
Expand Down

0 comments on commit 611f83f

Please sign in to comment.