Skip to content

Commit

Permalink
isisd: fix null display is show isis database detail json
Browse files Browse the repository at this point in the history
{"mtRouterInfo": "none"} JSON is incorrect.

Change to {"mtRouterInfo": null}

Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind committed May 21, 2024
1 parent 578b3a8 commit fc93649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isisd/isis_tlvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -6657,7 +6657,7 @@ static void format_tlvs(struct isis_tlvs *tlvs, struct sbuf *buf, struct json_ob

if (tlvs->mt_router_info_empty) {
if (json)
json_object_string_add(json, "mtRouterInfo", "none");
json_object_object_add(json, "mtRouterInfo", NULL);
else
sbuf_push(buf, indent, "MT Router Info: None\n");
} else {
Expand Down

0 comments on commit fc93649

Please sign in to comment.