This project is obsoleted by pyroute2-cli utility, see pyroute2 project
https://github.com/svinota/pyroute2
Pyroute2 network database: system service
$ sudo pip install pyrouted
$ sudo systemctl start pyrouted
$ curl http://localhost:8700/v1/addresses
$ vim /etc/pyrouted/pyrouted.conf
What to adjust:
- service user:
sudo vim /lib/systemd/system/pyrouted.service
- access remote systems: check the directory permissions and the SSH key -- see the config file.
- run the service on a UNIX socket: change
listen
in the configuration file to/var/run/pyrouted/api
, to access usecurl --unix-socket /var/run/pyrouted/api http://localhost/v1/addresses