Skip to content

Commit

Permalink
isisd: display MT name in show isis database detail json
Browse files Browse the repository at this point in the history
Only the MT ID is displayed.

Display the MT description as well.

Fixes: a2cac12 ("isisd: Add json to show isis database command.")
Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind committed May 23, 2024
1 parent 9730e60 commit b9870e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions isisd/isis_tlvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3738,6 +3738,8 @@ static void format_item_mt_router_info(uint16_t mtid, struct isis_item *i,
}
json_object_array_add(array_json, mt_json);
json_object_int_add(mt_json, "mtid", info->mtid);
json_object_string_add(mt_json, "mt-description",
isis_mtid2str_fake(info->mtid));
json_object_string_add(mt_json, "overload", info->overload?"true":"false");
json_object_string_add(mt_json, "attached", info->attached?"true":"false");
} else
Expand Down

0 comments on commit b9870e9

Please sign in to comment.