commit | a009592aa442c0b063f94624d0f4b449575f24d1 | [log] [tgz] |
---|---|---|
author | Andy Bavier <andy@onlab.us> | Fri Sep 07 12:49:38 2018 -0700 |
committer | Andy Bavier <andy@onlab.us> | Fri Sep 07 13:51:45 2018 -0700 |
tree | 1fd16bb1424743fd2cc4187391b4ced701cafbca | |
parent | 3f330cd6f20ccadaa5bdd1215f08b6b1cbb627ae [diff] |
Enable device.Host to be a hostname or IP address Change-Id: Ice4e1f497d6754e95c5c0c0d6095a9039567150c
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"`