A simple python script to display Network Map's nodes information in a web browser.
It displays the content of JSON endpoint from Network Map:
-
python 3
plus python 3 packages:
- flask
- flask_table
- configparser
- json
- os
- requests
git clone https://github.com/przemolb/networkmap-json
cd networkmap-json
- add nmapjson.ini file with definitions of endpoints in the following format:
[short_name_1]
url=https://URL1/network-map/json/node-infos
description=Full description of environment_1
[short_name_2]
url=https://URL2/network-map/json/node-infos
description=Full description of environment_2
- run
./run.it
- click one of the available environments at the top of web page
- the nmapjson.ini file is being re-read every time you refresh a web page - no need to restart this application after adding new environments
- it is supposed to be run locally on your workstation/laptop - Flask builtin web server is not recommended to run in production