summaryrefslogtreecommitdiffstats
path: root/ocata
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-07 15:31:52 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-07 15:31:52 +0800
commit6cf4f97763a1668769c00f6da1bf7a78ec1e1189 (patch)
tree7ee51b5667d44ca92604f52cf82e638de1bfc315 /ocata
parentcb77efe24202d7058dc11fa69411917881f058ac (diff)
Add default setting value
Rebase to newton_base for reusing codes Change-Id: I1164ef905f5e9d5d9d2c3c6cad41dd2da31c89cd Issue-ID: MULTICLOUD-138 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'ocata')
-rw-r--r--ocata/ocata/settings.py10
-rw-r--r--ocata/ocata/swagger/views.py2
-rw-r--r--ocata/ocata/urls.py2
3 files changed, 7 insertions, 7 deletions
diff --git a/ocata/ocata/settings.py b/ocata/ocata/settings.py
index 036ce9c7..efb0296e 100644
--- a/ocata/ocata/settings.py
+++ b/ocata/ocata/settings.py
@@ -128,12 +128,12 @@ MULTICLOUD_PREFIX = "http://%s:%s/api/multicloud-ocata/v0" % (
MSB_SERVICE_ADDR, MSB_SERVICE_PORT)
# [A&AI]
-AAI_ADDR = os.environ.get('AAI_ADDR', "")
-AAI_PORT = os.environ.get('AAI_PORT', "")
+AAI_ADDR = os.environ.get('AAI_ADDR', "aai.api.simpledemo.openecomp.org")
+AAI_PORT = os.environ.get('AAI_PORT', "8443")
AAI_SERVICE_URL = 'https://%s:%s/aai' % (AAI_ADDR, AAI_PORT)
-AAI_SCHEMA_VERSION = os.environ.get('AAI_SCHEMA_VERSION', "")
-AAI_USERNAME = os.environ.get('AAI_USERNAME', "")
-AAI_PASSWORD = os.environ.get('AAI_PASSWORD', "")
+AAI_SCHEMA_VERSION = os.environ.get('AAI_SCHEMA_VERSION', "v11")
+AAI_USERNAME = os.environ.get('AAI_USERNAME', "AAI")
+AAI_PASSWORD = os.environ.get('AAI_PASSWORD', "AAI")
AAI_BASE_URL = "%s/%s" % (AAI_SERVICE_URL, AAI_SCHEMA_VERSION)
diff --git a/ocata/ocata/swagger/views.py b/ocata/ocata/swagger/views.py
index d0eda8f5..42f596aa 100644
--- a/ocata/ocata/swagger/views.py
+++ b/ocata/ocata/swagger/views.py
@@ -21,7 +21,7 @@ from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
-from newton.pub.exceptions import VimDriverNewtonException
+from common.exceptions import VimDriverNewtonException
from newton_base.swagger import views as newton_json_view
logger = logging.getLogger(__name__)
diff --git a/ocata/ocata/urls.py b/ocata/ocata/urls.py
index c1305832..b1d198d7 100644
--- a/ocata/ocata/urls.py
+++ b/ocata/ocata/urls.py
@@ -15,7 +15,7 @@
from django.conf.urls import include, url
from ocata.registration.views import registration
-from newton.requests.views import tenants
+from newton_base.openoapi import tenants
urlpatterns = [
url(r'^', include('ocata.swagger.urls')),