1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-03-22 18:44:49 +00:00

Reworked some computes forms and views

This commit is contained in:
Real-Gecko 2020-05-29 19:25:36 +06:00 committed by catborise
parent 9efbf732af
commit c07bb3cccf
9 changed files with 154 additions and 384 deletions

View file

@ -8,9 +8,18 @@ from networks.views import network, networks
from nwfilters.views import nwfilter, nwfilters
from secrets.views import secrets
from storages.views import get_volumes, storage, storages
from . import forms
urlpatterns = [
path('', views.computes, name='computes'),
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'),
path('<int:compute_id>/', include([
path('', views.overview, name='overview'),
path('statistics', views.compute_graph, name='compute_graph'),
@ -19,7 +28,7 @@ urlpatterns = [
path('storage/<str:pool>/volumes', get_volumes, name='volumes'),
path('storage/<str:pool>/', storage, name='storage'),
path('networks/', networks, name='networks'),
path('network/<pool>/', network, name='network'),
path('network/<str:pool>/', network, name='network'),
path('interfaces/', interfaces, name='interfaces'),
path('interface/<str:iface>/', interface, name='interface'),
path('nwfilters/', nwfilters, name='nwfilters'),