A small web service providing NetJSON data extracted and/or generated from different kinds of systems that does not natively do so themselves
| src | Keep up with (a tiny) API change | |
| .gitignore | Hello World | |
| Cargo.toml | Hello World | |
| README.md | Hello World | |
NetJSOND
A small web service providing NetJSON data extracted and/or generated from different kinds of systems that does not natively do so themselves.
It does not currently provide an accurate layer 2 graph, however, layer 3 is
accurately captured by bostn, which transforms BIRD's OSPF state to a NetJSON
NetworkGraph. Limited layer 2 information is provided by ustn which adds
information from Ubiquiti's UISP and UniFi controllers to the NetworkGraph.
Endpoints
In alphabetical order:
Graph
/graph/: Full NetJSON NetworkGraph of the network. This service adds anode_numberJSON number property to NetworkGraph nodes. For other custom properties, please seeustnandbostndocumentation.
Failure modes
- Graph hasn't been loaded yet (the daemon was restarted and hasn't cached a
graph yet): HTTP status code
503and an error message:{"err":503,"msg":"Loading relevant information, try again in 30 seconds"}
Planned endpoints
-
/graph/ospf/: NetworkGraph of OSPF routers -
/graph/uisp/: NetworkGraph of UISP devices -
/graph/unifi/: NetworkGraph of UniFi devices -
/routes/: NetJSON NetworkRoutes for the node you're connecting from -
/routes/all: non-standard collection of NetworkRoutes for all routers on the network