urls.py 2.01 KB
Newer Older
Kálmán Viktor committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# Copyright 2014 Budapest University of Technology and Economics (BME IK)
#
# This file is part of CIRCLE Cloud.
#
# CIRCLE is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# CIRCLE is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along
# with CIRCLE.  If not, see <http://www.gnu.org/licenses/>.

from __future__ import absolute_import
from django.conf.urls import url, patterns

Kálmán Viktor committed
21 22
from occi.views import (
    QueryInterface, ComputeInterface, VmInterface, OsTplInterface,
Kálmán Viktor committed
23
    StorageInterface, DiskInterface, StorageLinkInterface,
24 25
    NetworkInterfaceView, VlanInterface,
    CIRCLEInterface,
Kálmán Viktor committed
26
)
Kálmán Viktor committed
27 28 29 30 31

urlpatterns = patterns(
    '',
    url(r'^-/$', QueryInterface.as_view(), name="occi.query"),
    url(r'^compute/$', ComputeInterface.as_view(), name="occi.compute"),
Kálmán Viktor committed
32
    url(r'^os_tpl/$', OsTplInterface.as_view(), name="occi.os_tpl"),
Kálmán Viktor committed
33
    url(r'^vm/(?P<pk>\d+)/?$', VmInterface.as_view(), name="occi.vm"),
Kálmán Viktor committed
34

35
    url(r'^storage/$', StorageInterface.as_view(), name="occi.storage"),
36
    url(r'^storage/(?P<pk>\d+)/?$', DiskInterface.as_view(), name="occi.disk"),
37 38

    url(r'^link/storagelink/$', StorageLinkInterface.as_view()),
39
    url(r'^link/storagelink/vm_(?P<vm_pk>\d+)_storage_(?P<disk_pk>\d+)/?$',
40
        StorageLinkInterface.as_view(), name="occi.storagelink"),
Kálmán Viktor committed
41

42
    url(r'^network2/?$', NetworkInterfaceView.as_view(), ),
43
    url(r'^network/(?P<vid>\d+)/?$', VlanInterface.as_view(), ),
44 45

    url(r'^link/networkinterface/$', CIRCLEInterface.as_view()),
46 47
    url(r'^link/networkinterface/'
        'vm_(?P<vm_pk>\d+)_network_(?P<vlan_vid>\d+)/?$',
48
        CIRCLEInterface.as_view(), name="occi.networkinterface"),
Kálmán Viktor committed
49
)