2020-06-04 11:31:37 +00:00
|
|
|
from django.urls import path, include
|
2020-05-29 08:00:51 +00:00
|
|
|
|
|
|
|
from . import views
|
2020-06-04 12:22:55 +00:00
|
|
|
from . import forms
|
2019-12-13 13:47:51 +00:00
|
|
|
from create.views import create_instance, create_instance_select_type
|
2018-09-28 10:33:21 +00:00
|
|
|
from instances.views import instances
|
2020-05-29 08:00:51 +00:00
|
|
|
from interfaces.views import interface, interfaces
|
|
|
|
from networks.views import network, networks
|
2018-09-28 10:33:21 +00:00
|
|
|
from nwfilters.views import nwfilter, nwfilters
|
2020-06-04 11:31:37 +00:00
|
|
|
from secrets.views import secrets
|
2020-05-29 08:00:51 +00:00
|
|
|
from storages.views import get_volumes, storage, storages
|
2015-04-02 06:37:46 +00:00
|
|
|
|
2015-04-06 07:51:50 +00:00
|
|
|
urlpatterns = [
|
2020-05-29 08:00:51 +00:00
|
|
|
path('', views.computes, name='computes'),
|
2020-05-29 13:25:36 +00:00
|
|
|
path('add_tcp_host/', views.add_host, {'FormClass': forms.TcpComputeForm}, name='add_tcp_host'),
|
|
|
|
path('add_ssh_host/', views.add_host, {'FormClass': forms.SshComputeForm}, name='add_ssh_host'),
|
|
|
|
path('add_tls_host/', views.add_host, {'FormClass': forms.TlsComputeForm}, name='add_tls_host'),
|
|
|
|
path('add_socket_host/', views.add_host, {'FormClass': forms.SocketComputeForm}, name='add_socket_host'),
|
2020-06-04 11:31:37 +00:00
|
|
|
path('<int:compute_id>/', include([
|
|
|
|
path('', views.overview, name='overview'),
|
|
|
|
path('statistics', views.compute_graph, name='compute_graph'),
|
|
|
|
path('instances/', instances, name='instances'),
|
|
|
|
path('storages/', storages, name='storages'),
|
|
|
|
path('storage/<str:pool>/volumes', get_volumes, name='volumes'),
|
|
|
|
path('storage/<str:pool>/', storage, name='storage'),
|
|
|
|
path('networks/', networks, name='networks'),
|
|
|
|
path('network/<str:pool>/', network, name='network'),
|
|
|
|
path('interfaces/', interfaces, name='interfaces'),
|
|
|
|
path('interface/<str:iface>/', interface, name='interface'),
|
|
|
|
path('nwfilters/', nwfilters, name='nwfilters'),
|
|
|
|
path('nwfilter/<str:nwfltr>/', nwfilter, name='nwfilter'),
|
|
|
|
path('secrets/', secrets, name='secrets'),
|
|
|
|
path('create/', create_instance_select_type, name='create_instance_select_type'),
|
2020-06-08 06:15:06 +00:00
|
|
|
path('create/archs/<str:arch>/machines/<str:machine>/', create_instance, name='create_instance'),
|
2020-06-04 11:31:37 +00:00
|
|
|
path('archs/<str:arch>/machines', views.get_compute_machine_types, name='machines'),
|
|
|
|
path('archs/<str:arch>/machines/<str:machine>/disks/<str:disk>/buses', views.get_compute_disk_buses, name='buses'),
|
|
|
|
path('archs/<str:arch>/machines/<str:machine>/capabilities', views.get_dom_capabilities, name='domcaps'),
|
|
|
|
])),
|
2015-04-02 06:37:46 +00:00
|
|
|
]
|