Apologies, I'm not sure why that got mangled, let's try that again.
- antoine
--
Patch attached for review.
NOTES
* -j turns on JSON mode and closes the socket after serving the browser request.
* Data is served in the format
[ { router : "d.d.d.d", neighbour|gateway : "d.d.d.d", label : d.dd|"HNA" }, ... ]
e.g.
HTTP/1.0 200 OK Content-type: application/json
[ { router : "10.0.0.5", neighbour : "10.0.0.3", label : 1.01 }, { router : "10.0.0.5", neighbour : "10.0.0.6", label : 1.00 }, { router : "10.0.0.5", neighbour : "10.0.0.1", label : 1.00 }, { router : "10.0.0.3", neighbour : "10.0.0.5", label : 1.00 }, { router : "10.0.0.3", neighbour : "10.0.0.1", label : 1.00 }, { router : "10.0.0.3", neighbour : "10.0.0.6", label : 1.00 }, { router : "10.0.0.6", neighbour : "10.0.0.5", label : 1.00 }, { router : "10.0.0.6", neighbour : "10.0.0.3", label : 1.00 }, { router : "10.0.0.6", neighbour : "10.0.0.1", label : 1.00 }, { router : "10.0.0.1", neighbour : "10.0.0.3", label : 1.00 }, { router : "10.0.0.1", neighbour : "10.0.0.5", label : 1.00 }, { router : "10.0.0.1", neighbour : "10.0.0.6", label : 1.03 }, { router : "10.0.0.1", gateway : "0.0.0.0/0.0.0.0", label : "HNA" } ]
Thank you Marek!
- antoine