Skip to content

Commit e5c5be1

Browse files
committed
isisd: change the json output for isis routes
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]>
1 parent 0f04926 commit e5c5be1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

isisd/isis_spf.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -3015,7 +3015,11 @@ void isis_print_routes(struct vty *vty, struct isis_spftree *spftree,
30153015
vty_out(vty, "%s\n", table);
30163016
XFREE(MTYPE_TMP, table);
30173017
} else if (json) {
3018-
*json = ttable_json(tt, prefix_sid ? "sdssdsdd" : "sdsss");
3018+
*json = ttable_json_with_json_text(
3019+
tt, prefix_sid ? "sdssdsdd" : "sdsss",
3020+
prefix_sid
3021+
? "prefix|metric|interface|nextHop|segmentIdentifier|labelOperation|Algorithm"
3022+
: "prefix|metric|interface|nextHop|label(s)");
30193023
}
30203024
ttable_del(tt);
30213025
}

0 commit comments

Comments
 (0)