mirror of
https://gitlab.com/prpl-foundation/prplmesh/topologyviewer.git
synced 2026-01-09 23:41:07 +08:00
feature/fixed_node_labels
Signed-off-by: Tucker Polomik <t.polomik@cablelabs.com>
EasyMesh Network Topology UI
Requirements
For initial set-up, you'll need a serial or SSH connection to the Controller in your EasyMesh network (for running ubus commands.)
- The controller in the prplMesh network must have
lighttpdandamx-fcgibuilt/deployed. - The port that the controller will listen for HTTP requests on is configurable in the
lighttpd.conffile, located at/etc/lighttpd/lighttpd.conf- Change the port via the
server.port = <int>entry. Defaults to 8080.
- Change the port via the
- Configure the firewall to allow incoming requests
ubus-cli Firewall.X_Prpl_Service.+{Alias="serviceelements",Action="Accept",DestinationPort="<your_port_here>",Enable=1,IPVersion=4,Interface="<your_interface_here>",Protocol="TCP"}
To test whether or not the HTTP<->Ambiorix proxy is running, and the port is open do:
curl -u username:pass "http://<controller_ip>:<controller_port>/serviceElements/Device."
To Run:
python -m venv ./
source ./bin/activate
python -m pip install -r requirements.txt
python main.py
firefox localhost:8050 & disown
Tests:
python tests.py
Description
Languages
Python
91.5%
CSS
8.5%