2 # Copyright 2017 CNIT - Consorzio Nazionale Interuniversitario per le Telecomunicazioni
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 from django
.conf
.urls
import url
, include
18 from projecthandler
import views
21 url(r
'^list/', views
.user_projects
, name
='projects_list'),
22 url(r
'^new/', views
.create_new_project
, name
='new_project'),
23 url(r
'^(?P<project_id>\w+)/$', views
.open_project
, name
='open_project'),
24 url(r
'^(?P<project_id>\w+)/sdn/', include('sdnctrlhandler.urls', namespace
='sdns'), name
='sdns_base'),
25 url(r
'^(?P<project_id>\w+)/vims/', include('vimhandler.urls', namespace
='vims'), name
='vims_base'),
26 url(r
'^(?P<project_id>\w+)/instances/', include('instancehandler.urls', namespace
='instances'), name
='instances_base'),
27 url(r
'^(?P<project_id>\w+)/delete$', views
.delete_project
, name
='delete_project'),
28 url(r
'^(?P<project_id>\w+)/descriptors/(?P<descriptor_type>\w+)/list$', views
.show_descriptors
, name
='list_descriptors'),
29 url(r
'^(?P<project_id>\w+)/descriptors/(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)(/$)',
30 views
.edit_descriptor
, name
='edit_descriptor'),
31 url(r
'^(?P<project_id>\w+)/descriptors/(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/delete$',
32 views
.delete_descriptor
,
33 name
='delete_descriptor'),
34 url(r
'^(?P<project_id>\w+)/descriptors/(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/action/(?P<action_name>[-\w]+)',
36 name
='custom_action'),
37 url(r
'^(?P<project_id>\w+)/descriptors/(?P<descriptor_type>\w+)/new$', views
.new_descriptor
,
38 name
='new_descriptor'),