commit | ddaa32c8e43512bf4b69d7f027984be93a6559d8 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Wed May 22 10:55:45 2019 -0700 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Wed May 22 11:58:49 2019 -0700 |
tree | 9c1f76c0f8e3bb003dc98d80073f5f72bafa4874 | |
parent | 04428fdd76112c4902dd8ec3f8bc5dfd3a99145c [diff] |
Improving Makefile Change-Id: I7460ef36b2492e2715e312c19e034c6c83b505ea
This service acts as a gateway between ONOS and XOS. ONOS apps expect to pull in deployment information using the SADIS service in a particular format. The SADIS server listens to REST requests from ONOS, and when it receives a request it looks up the appropriate object in XOS and delivers it back to ONOS in the expected format.
docker build -t opencord/sadis-server .
docker run --rm --name sadis --env "SADISSERVER_PORT=4245" --env "SADISSERVER_XOS=10.90.0.101:30006" -p 4245:4245 opencord/sadis-server
sadis.json
for an example.SADISSERVER
Port int `default:"8000" desc:"port on which to listen for requests"` Xos string `default:"127.0.0.1:8181" desc:"connection string with which to connect to XOS"` Username string `default:"admin@opencord.org" desc:"username with which to connect to XOS"` Password string `default:"letmein" desc:"password with which to connect to XOS"` LogLevel string `default:"info" envconfig:"LOG_LEVEL" desc:"detail level for logging"` LogFormat string `default:"text" envconfig:"LOG_FORMAT" desc:"log output format, text or json"`