2016-07-04 02:48:24 +02:00
|
|
|
from django.conf.urls import url
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
url(r'^new_machine/(?P<userid>[0-9]+)$', views.new_machine, name='new-machine'),
|
2016-07-18 05:30:35 +02:00
|
|
|
url(r'^edit_interface/(?P<interfaceid>[0-9]+)$', views.edit_interface, name='edit-interface'),
|
|
|
|
url(r'^del_machine/(?P<machineid>[0-9]+)$', views.del_machine, name='del-machine'),
|
2016-07-04 02:48:24 +02:00
|
|
|
url(r'^new_interface/(?P<machineid>[0-9]+)$', views.new_interface, name='new-interface'),
|
2016-07-18 05:30:35 +02:00
|
|
|
url(r'^del_interface/(?P<interfaceid>[0-9]+)$', views.del_interface, name='del-interface'),
|
2016-07-07 13:19:03 +02:00
|
|
|
url(r'^add_machinetype/$', views.add_machinetype, name='add-machinetype'),
|
2016-07-08 02:48:44 +02:00
|
|
|
url(r'^edit_machinetype/(?P<machinetypeid>[0-9]+)$', views.edit_machinetype, name='edit-machinetype'),
|
2016-07-07 13:19:03 +02:00
|
|
|
url(r'^del_machinetype/$', views.del_machinetype, name='del-machinetype'),
|
2016-07-08 02:48:44 +02:00
|
|
|
url(r'^index_machinetype/$', views.index_machinetype, name='index-machinetype'),
|
2016-10-23 00:55:58 +02:00
|
|
|
url(r'^add_iptype/$', views.add_iptype, name='add-iptype'),
|
|
|
|
url(r'^edit_iptype/(?P<iptypeid>[0-9]+)$', views.edit_iptype, name='edit-iptype'),
|
|
|
|
url(r'^del_iptype/$', views.del_iptype, name='del-iptype'),
|
|
|
|
url(r'^index_iptype/$', views.index_iptype, name='index-iptype'),
|
2016-07-08 17:54:06 +02:00
|
|
|
url(r'^add_extension/$', views.add_extension, name='add-extension'),
|
|
|
|
url(r'^edit_extension/(?P<extensionid>[0-9]+)$', views.edit_extension, name='edit-extension'),
|
|
|
|
url(r'^del_extension/$', views.del_extension, name='del-extension'),
|
2016-11-19 17:44:43 +01:00
|
|
|
url(r'^add_mx/$', views.add_mx, name='add-mx'),
|
|
|
|
url(r'^edit_mx/(?P<mxid>[0-9]+)$', views.edit_mx, name='edit-mx'),
|
|
|
|
url(r'^del_mx/$', views.del_mx, name='del-mx'),
|
2016-11-19 18:21:05 +01:00
|
|
|
url(r'^add_ns/$', views.add_ns, name='add-ns'),
|
|
|
|
url(r'^edit_ns/(?P<nsid>[0-9]+)$', views.edit_ns, name='edit-ns'),
|
|
|
|
url(r'^del_ns/$', views.del_ns, name='del-ns'),
|
2016-07-08 17:54:06 +02:00
|
|
|
url(r'^index_extension/$', views.index_extension, name='index-extension'),
|
2016-11-19 21:15:43 +01:00
|
|
|
url(r'^add_alias/(?P<interfaceid>[0-9]+)$', views.add_alias, name='add-alias'),
|
|
|
|
url(r'^edit_alias/(?P<aliasid>[0-9]+)$', views.edit_alias, name='edit-alias'),
|
|
|
|
url(r'^del_alias/(?P<interfaceid>[0-9]+)$', views.del_alias, name='del-alias'),
|
|
|
|
url(r'^index_alias/(?P<interfaceid>[0-9]+)$', views.index_alias, name='index-alias'),
|
2016-07-21 16:58:12 +02:00
|
|
|
url(r'^history/(?P<object>machine)/(?P<id>[0-9]+)$', views.history, name='history'),
|
|
|
|
url(r'^history/(?P<object>interface)/(?P<id>[0-9]+)$', views.history, name='history'),
|
|
|
|
url(r'^history/(?P<object>machinetype)/(?P<id>[0-9]+)$', views.history, name='history'),
|
|
|
|
url(r'^history/(?P<object>extension)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2016-11-19 17:44:43 +01:00
|
|
|
url(r'^history/(?P<object>mx)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2016-11-19 18:21:05 +01:00
|
|
|
url(r'^history/(?P<object>ns)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2016-10-23 00:55:58 +02:00
|
|
|
url(r'^history/(?P<object>iptype)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2016-11-19 21:15:43 +01:00
|
|
|
url(r'^history/(?P<object>alias)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2016-07-04 02:48:24 +02:00
|
|
|
url(r'^$', views.index, name='index'),
|
2016-07-19 21:43:24 +02:00
|
|
|
url(r'^rest/mac-ip/$', views.mac_ip, name='mac-ip'),
|
2016-11-12 09:10:01 +01:00
|
|
|
url(r'^rest/login/$', views.login_user, name='login'),
|
2016-10-07 23:40:44 +02:00
|
|
|
url(r'^rest/mac-ip-dns/$', views.mac_ip_dns, name='mac-ip-dns'),
|
2016-11-18 18:15:57 +01:00
|
|
|
url(r'^rest/alias/$', views.alias, name='alias'),
|
2016-11-12 16:12:24 +01:00
|
|
|
url(r'^rest/corresp/$', views.corresp, name='corresp'),
|
2016-11-20 04:29:16 +01:00
|
|
|
url(r'^rest/mx/$', views.mx, name='mx'),
|
|
|
|
url(r'^rest/ns/$', views.ns, name='ns'),
|
2016-11-20 05:12:36 +01:00
|
|
|
url(r'^rest/zones/$', views.zones, name='zones'),
|
2016-11-20 04:29:16 +01:00
|
|
|
]
|