2017-10-06 23:37:22 +00:00
|
|
|
# -*- mode: python; coding: utf-8 -*-
|
2017-01-15 23:01:18 +00:00
|
|
|
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
|
|
|
|
# se veut agnostique au réseau considéré, de manière à être installable en
|
|
|
|
# quelques clics.
|
|
|
|
#
|
|
|
|
# Copyright © 2017 Gabriel Détraz
|
|
|
|
# Copyright © 2017 Goulven Kermarec
|
|
|
|
# Copyright © 2017 Augustin Lemesle
|
|
|
|
#
|
|
|
|
# This program 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 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
|
2017-09-10 23:29:24 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2016-07-04 00:48:24 +00: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 03:30:35 +00: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 00:48:24 +00:00
|
|
|
url(r'^new_interface/(?P<machineid>[0-9]+)$', views.new_interface, name='new-interface'),
|
2016-07-18 03:30:35 +00:00
|
|
|
url(r'^del_interface/(?P<interfaceid>[0-9]+)$', views.del_interface, name='del-interface'),
|
2016-07-07 11:19:03 +00:00
|
|
|
url(r'^add_machinetype/$', views.add_machinetype, name='add-machinetype'),
|
2016-07-08 00:48:44 +00:00
|
|
|
url(r'^edit_machinetype/(?P<machinetypeid>[0-9]+)$', views.edit_machinetype, name='edit-machinetype'),
|
2016-07-07 11:19:03 +00:00
|
|
|
url(r'^del_machinetype/$', views.del_machinetype, name='del-machinetype'),
|
2016-07-08 00:48:44 +00:00
|
|
|
url(r'^index_machinetype/$', views.index_machinetype, name='index-machinetype'),
|
2016-10-22 22:55:58 +00: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 15:54:06 +00: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 16:44:43 +00: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'),
|
2017-09-05 16:18:41 +00:00
|
|
|
url(r'^add_text/$', views.add_text, name='add-text'),
|
|
|
|
url(r'^edit_text/(?P<textid>[0-9]+)$', views.edit_text, name='edit-text'),
|
|
|
|
url(r'^del_text/$', views.del_text, name='del-text'),
|
2016-11-19 17:21:05 +00: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 15:54:06 +00:00
|
|
|
url(r'^index_extension/$', views.index_extension, name='index-extension'),
|
2016-11-19 20:15:43 +00: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'),
|
2017-08-08 04:56:19 +00:00
|
|
|
url(r'^add_service/$', views.add_service, name='add-service'),
|
|
|
|
url(r'^edit_service/(?P<serviceid>[0-9]+)$', views.edit_service, name='edit-service'),
|
|
|
|
url(r'^del_service/$', views.del_service, name='del-service'),
|
|
|
|
url(r'^index_service/$', views.index_service, name='index-service'),
|
2017-08-26 13:10:18 +00:00
|
|
|
url(r'^add_vlan/$', views.add_vlan, name='add-vlan'),
|
|
|
|
url(r'^edit_vlan/(?P<vlanid>[0-9]+)$', views.edit_vlan, name='edit-vlan'),
|
|
|
|
url(r'^del_vlan/$', views.del_vlan, name='del-vlan'),
|
|
|
|
url(r'^index_vlan/$', views.index_vlan, name='index-vlan'),
|
2017-09-10 22:33:45 +00:00
|
|
|
url(r'^add_nas/$', views.add_nas, name='add-nas'),
|
|
|
|
url(r'^edit_nas/(?P<nasid>[0-9]+)$', views.edit_nas, name='edit-nas'),
|
|
|
|
url(r'^del_nas/$', views.del_nas, name='del-nas'),
|
|
|
|
url(r'^index_nas/$', views.index_nas, name='index-nas'),
|
2016-07-21 14:58:12 +00: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 16:44:43 +00:00
|
|
|
url(r'^history/(?P<object>mx)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2016-11-19 17:21:05 +00:00
|
|
|
url(r'^history/(?P<object>ns)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2017-09-05 16:18:41 +00:00
|
|
|
url(r'^history/(?P<object>text)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2016-10-22 22:55:58 +00:00
|
|
|
url(r'^history/(?P<object>iptype)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2016-11-19 20:15:43 +00:00
|
|
|
url(r'^history/(?P<object>alias)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2017-08-26 13:10:18 +00:00
|
|
|
url(r'^history/(?P<object>vlan)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2017-09-10 22:33:45 +00:00
|
|
|
url(r'^history/(?P<object>nas)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2017-08-08 04:56:19 +00:00
|
|
|
url(r'^history/(?P<object>service)/(?P<id>[0-9]+)$', views.history, name='history'),
|
2016-07-04 00:48:24 +00:00
|
|
|
url(r'^$', views.index, name='index'),
|
2016-07-19 19:43:24 +00:00
|
|
|
url(r'^rest/mac-ip/$', views.mac_ip, name='mac-ip'),
|
2017-08-08 17:40:30 +00:00
|
|
|
url(r'^rest/regen-achieved/$', views.regen_achieved, name='regen-achieved'),
|
2016-10-07 21:40:44 +00:00
|
|
|
url(r'^rest/mac-ip-dns/$', views.mac_ip_dns, name='mac-ip-dns'),
|
2016-11-18 17:15:57 +00:00
|
|
|
url(r'^rest/alias/$', views.alias, name='alias'),
|
2016-11-12 15:12:24 +00:00
|
|
|
url(r'^rest/corresp/$', views.corresp, name='corresp'),
|
2016-11-20 03:29:16 +00:00
|
|
|
url(r'^rest/mx/$', views.mx, name='mx'),
|
|
|
|
url(r'^rest/ns/$', views.ns, name='ns'),
|
2017-09-05 16:18:41 +00:00
|
|
|
url(r'^rest/text/$', views.text, name='text'),
|
2016-11-20 04:12:36 +00:00
|
|
|
url(r'^rest/zones/$', views.zones, name='zones'),
|
2017-08-08 17:40:30 +00:00
|
|
|
url(r'^rest/service_servers/$', views.service_servers, name='service-servers'),
|
2017-10-04 20:03:26 +00:00
|
|
|
url(r'^rest/ouverture_ports/$', views.ouverture_ports, name='ouverture-ports'),
|
2017-09-29 20:28:48 +00:00
|
|
|
url(r'index_portlist/$', views.index_portlist, name='index-portlist'),
|
2017-09-30 08:04:18 +00:00
|
|
|
url(r'^edit_portlist/(?P<pk>[0-9]+)$', views.edit_portlist, name='edit-portlist'),
|
2017-10-01 15:09:00 +00:00
|
|
|
url(r'^del_portlist/(?P<pk>[0-9]+)$', views.del_portlist, name='del-portlist'),
|
2017-10-01 15:19:42 +00:00
|
|
|
url(r'^add_portlist/$', views.add_portlist, name='add-portlist'),
|
2017-10-01 22:08:07 +00:00
|
|
|
url(r'^port_config/(?P<pk>[0-9]+)$', views.configure_ports, name='port-config'),
|
|
|
|
|
2016-11-20 03:29:16 +00:00
|
|
|
]
|