diff options
author | zhang ab <zhanganbing@chinamobile.com> | 2018-03-27 02:33:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-27 02:33:08 +0000 |
commit | eea4fc21aa4f2527207d0c4c1fccfd5478561fb0 (patch) | |
tree | 054735e6baf6381719c2169d2d55e3d3f3547e9d /vio | |
parent | d2c0f62faea0ad06cabec7d67bbf9b39b1cc5eb2 (diff) | |
parent | 1c3269cad09e3ff8ac54f47601beb34c6d502149 (diff) |
Merge "Add port of api server as configuration"
Diffstat (limited to 'vio')
-rw-r--r-- | vio/vio/api_v2/service.py | 4 | ||||
-rw-r--r-- | vio/vio/pub/config/config.py | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/vio/vio/api_v2/service.py b/vio/vio/api_v2/service.py index a9473c3..60fb991 100644 --- a/vio/vio/api_v2/service.py +++ b/vio/vio/api_v2/service.py @@ -16,6 +16,7 @@ from oslo_service import service from oslo_service import wsgi from vio.api_v2 import app +from vio.pub.config import config as mc_cfg CONF = cfg.CONF @@ -33,9 +34,8 @@ class WSGIService(service.ServiceBase): CONF, "vio", self.app, - # TODO(xiaohhui): these should be configurable. host="0.0.0.0", - port="9004", + port=mc_cfg.API_SERVER_PORT, use_ssl=False ) diff --git a/vio/vio/pub/config/config.py b/vio/vio/pub/config/config.py index 9b4d6c8..ad5bb48 100644 --- a/vio/vio/pub/config/config.py +++ b/vio/vio/pub/config/config.py @@ -32,3 +32,6 @@ AAI_PASSWORD = 'AAI' SERVICE_NAME = "multicloud-vio" FORWARDED_FOR_FIELDS = ["HTTP_X_FORWARDED_FOR", "HTTP_X_FORWARDED_HOST", "HTTP_X_FORWARDED_SERVER"] + +# [Local Config] +API_SERVER_PORT = 9004 |