mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:02:58 +00:00
isisd: display MT name in show isis database detail json
Only the MT ID is displayed.
Display the MT description as well.
Fixes: a2cac12a63
("isisd: Add json to show isis database command.")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
9730e604e6
commit
b9870e9131
@ -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_array_add(array_json, mt_json);
|
||||||
json_object_int_add(mt_json, "mtid", info->mtid);
|
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, "overload", info->overload?"true":"false");
|
||||||
json_object_string_add(mt_json, "attached", info->attached?"true":"false");
|
json_object_string_add(mt_json, "attached", info->attached?"true":"false");
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user