diff options
author | Bin Yang <bin.yang@windriver.com> | 2017-09-13 08:54:03 +0800 |
---|---|---|
committer | Bin Yang <bin.yang@windriver.com> | 2017-09-13 08:54:03 +0800 |
commit | 530818aab2a02921e0445b6062260aad9e4b2810 (patch) | |
tree | ce69eab0b175405c8f6549dab15db60c20d1aceb /ocata/ocata/requests/urls.py | |
parent | e4c756d1b5102e7df21e061a72f541fa8441f68f (diff) |
Add plugin for OpenStack Ocata
add plugin for openstack ocata, reuse most of
source code from plugin for newton.
Change-Id: I444a4e6dd80e34d06d35e0e711de426f10d8db35
Issue-Id: MULTICLOUD-89
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'ocata/ocata/requests/urls.py')
-rw-r--r-- | ocata/ocata/requests/urls.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ocata/ocata/requests/urls.py b/ocata/ocata/requests/urls.py new file mode 100644 index 00000000..69f0e444 --- /dev/null +++ b/ocata/ocata/requests/urls.py @@ -0,0 +1,47 @@ +# Copyright (c) 2017 Wind River Systems, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from django.conf.urls import url +from rest_framework.urlpatterns import format_suffix_patterns + +from newton.requests.views import network +from newton.requests.views import subnet +from newton.requests.views import image +from newton.requests.views import volume +from newton.requests.views import server +from newton.requests.views import vport +from newton.requests.views import limits +from newton.requests.views import hosts +from newton.requests.views import flavor + +urlpatterns = [ + url(r'^networks(/(?P<networkid>[0-9a-zA-Z_-]+))?', + network.Networks.as_view()), + url(r'^subnets(/(?P<subnetid>[0-9a-zA-Z_-]+))?', + subnet.Subnets.as_view()), + url(r'^images(/(?P<imageid>[0-9a-zA-Z_-]+))?', + image.Images.as_view()), + url(r'^volumes(/(?P<volumeid>[0-9a-zA-Z_-]+))?', + volume.Volumes.as_view()), + url(r'^servers(/(?P<serverid>[0-9a-zA-Z_-]+))?', + server.Servers.as_view()), + url(r'^ports(/(?P<portid>[0-9a-zA-Z_-]+))?', + vport.Vports.as_view()), + url(r'^flavors(/(?P<flavorid>[0-9a-zA-Z_-]+))?', + flavor.Flavors.as_view()), + url(r'^limits$', limits.Limits.as_view()), + url(r'^hosts(/(?P<hostname>[0-9a-zA-Z_-]+))?', hosts.Hosts.as_view()), +] + +urlpatterns = format_suffix_patterns(urlpatterns) |