diff options
author | Litao Gao <litao.gao@windriver.com> | 2017-02-24 05:05:00 -0500 |
---|---|---|
committer | Litao Gao <litao.gao@windriver.com> | 2017-02-24 05:05:24 -0500 |
commit | 69aafd35f48c98c4337c7c37d1eb4aab7d538fe7 (patch) | |
tree | 43097c75edaee9f5fde2ca697502cb38bb8b78d5 /newton/newton/urls.py | |
parent | d3cdec447d691553a1861a8ac8a2b7d0cf61def1 (diff) |
openstak newton version vim driver implementation
this commit includes the capability of accepting
the 'networks' get request from multivim broker
and do authorization and then send the proper
request to newton openstack instance and do
some converting work upon the response and then
send back the response to multivim borker
Change-Id: If4d3da0d5cc3865a831fa5f1b9effec4da56c3d3
Issue-Id: MULTIVIM-47
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Diffstat (limited to 'newton/newton/urls.py')
-rw-r--r-- | newton/newton/urls.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/newton/newton/urls.py b/newton/newton/urls.py index 94ca0bc4..ad2979ff 100644 --- a/newton/newton/urls.py +++ b/newton/newton/urls.py @@ -10,16 +10,19 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. from django.conf.urls import include, url -from newton.pub.config.config import REG_TO_MSB_WHEN_START, REG_TO_MSB_REG_URL, REG_TO_MSB_REG_PARAM +from newton.pub.config.config \ + import REG_TO_MSB_WHEN_START, REG_TO_MSB_REG_URL, REG_TO_MSB_REG_PARAM urlpatterns = [ url(r'^', include('newton.swagger.urls')), url(r'^', include('newton.samples.urls')), + url(r'^openoapi/multivim-newton/v1/(?P<vimid>[0-9a-zA-Z_-]+)/' + '(?P<tenantid>[0-9a-zA-Z_-]+)/', include('newton.requests.urls')), ] -#url(r'^', include('newton.forward.urls')), # regist to MSB when startup if REG_TO_MSB_WHEN_START: import json from newton.pub.utils.restcall import req_by_msb - req_by_msb(REG_TO_MSB_REG_URL, "POST", json.JSONEncoder().encode(REG_TO_MSB_REG_PARAM)) + req_by_msb(REG_TO_MSB_REG_URL, "POST", + json.JSONEncoder().encode(REG_TO_MSB_REG_PARAM)) |