* changes:
Add port of api server as configuration
Hack the python path
from oslo_service import wsgi
from multivimbroker.api_v2 import app
+from multivimbroker.pub.config import config as mc_cfg
CONF = cfg.CONF
CONF,
"multivimbroker",
self.app,
- # TODO(xiaohhui): these should be configurable.
host="0.0.0.0",
- port="9002",
+ port=mc_cfg.API_SERVER_PORT,
use_ssl=False
)
# [IMAGE LOCAL PATH]
ROOT_PATH = os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
+# [Local Config]
+API_SERVER_PORT = 9001
import eventlet
eventlet.monkey_patch()
+import os # noqa
from oslo_config import cfg # noqa
from oslo_service import service # noqa
import sys # noqa
+# FIXME: Since there is no explicitly setup process for the project. Hack the
+# python here.
+sys.path.append(os.path.abspath('.'))
from multivimbroker.api_v2 import service as api_service # noqa