Maintenance électrique le 12 août, nos services, et y compris Gitlab, seront fortement impactés autour de cette date. Retour à un état normal prévu dans le milieu de la semaine prochaine.

urls.py 6.7 KB
Newer Older
1
# -*- mode: python; coding: utf-8 -*-
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# 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.
23 24 25
"""machines.urls
The defined URLs for the Cotisations app
"""
26

27 28
from __future__ import unicode_literals

29 30 31 32
from django.conf.urls import url
from . import views

urlpatterns = [
Maël Kervella's avatar
Maël Kervella committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
    url(r'^new_machine/(?P<userid>[0-9]+)$',
        views.new_machine,
        name='new-machine'),
    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'),
    url(r'^new_interface/(?P<machineid>[0-9]+)$',
        views.new_interface,
        name='new-interface'),
    url(r'^del_interface/(?P<interfaceid>[0-9]+)$',
        views.del_interface,
        name='del-interface'),
chirac's avatar
chirac committed
48
    url(r'^add_machinetype/$', views.add_machinetype, name='add-machinetype'),
Maël Kervella's avatar
Maël Kervella committed
49 50 51
    url(r'^edit_machinetype/(?P<machinetypeid>[0-9]+)$',
        views.edit_machinetype,
        name='edit-machinetype'),
chirac's avatar
chirac committed
52
    url(r'^del_machinetype/$', views.del_machinetype, name='del-machinetype'),
Maël Kervella's avatar
Maël Kervella committed
53 54 55
    url(r'^index_machinetype/$',
        views.index_machinetype,
        name='index-machinetype'),
chirac's avatar
chirac committed
56
    url(r'^add_iptype/$', views.add_iptype, name='add-iptype'),
Maël Kervella's avatar
Maël Kervella committed
57 58 59
    url(r'^edit_iptype/(?P<iptypeid>[0-9]+)$',
        views.edit_iptype,
        name='edit-iptype'),
chirac's avatar
chirac committed
60 61
    url(r'^del_iptype/$', views.del_iptype, name='del-iptype'),
    url(r'^index_iptype/$', views.index_iptype, name='index-iptype'),
62
    url(r'^add_extension/$', views.add_extension, name='add-extension'),
Maël Kervella's avatar
Maël Kervella committed
63 64 65
    url(r'^edit_extension/(?P<extensionid>[0-9]+)$',
        views.edit_extension,
        name='edit-extension'),
66
    url(r'^del_extension/$', views.del_extension, name='del-extension'),
67 68 69
    url(r'^add_soa/$', views.add_soa, name='add-soa'),
    url(r'^edit_soa/(?P<soaid>[0-9]+)$', views.edit_soa, name='edit-soa'),
    url(r'^del_soa/$', views.del_soa, name='del-soa'),
70 71 72
    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'),
73
    url(r'^add_txt/$', views.add_txt, name='add-txt'),
74
    url(r'^edit_txt/(?P<txtid>[0-9]+)$', views.edit_txt, name='edit-txt'),
75
    url(r'^del_txt/$', views.del_txt, name='del-txt'),
Charlie Jacomme's avatar
Charlie Jacomme committed
76 77 78
    url(r'^add_dname/$', views.add_dname, name='add-dname'),
    url(r'^edit_dname/(?P<dnameid>[0-9]+)$', views.edit_dname, name='edit-dname'),
    url(r'^del_dname/$', views.del_dname, name='del-dname'),
79 80 81
    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'),
Gabriel Detraz's avatar
Gabriel Detraz committed
82 83 84
    url(r'^add_srv/$', views.add_srv, name='add-srv'),
    url(r'^edit_srv/(?P<srvid>[0-9]+)$', views.edit_srv, name='edit-srv'),
    url(r'^del_srv/$', views.del_srv, name='del-srv'),
85
    url(r'^index_extension/$', views.index_extension, name='index-extension'),
Maël Kervella's avatar
Maël Kervella committed
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
    url(r'^add_alias/(?P<interfaceid>[0-9]+)$',
        views.add_alias,
        name='add-alias'),
    url(r'^edit_alias/(?P<domainid>[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'),
    url(r'^new_ipv6list/(?P<interfaceid>[0-9]+)$',
        views.new_ipv6list,
        name='new-ipv6list'),
    url(r'^edit_ipv6list/(?P<ipv6listid>[0-9]+)$',
        views.edit_ipv6list,
        name='edit-ipv6list'),
    url(r'^del_ipv6list/(?P<ipv6listid>[0-9]+)$',
        views.del_ipv6list,
        name='del-ipv6list'),
    url(r'^index_ipv6/(?P<interfaceid>[0-9]+)$',
        views.index_ipv6,
        name='index-ipv6'),
110
    url(r'^add_service/$', views.add_service, name='add-service'),
Maël Kervella's avatar
Maël Kervella committed
111 112 113
    url(r'^edit_service/(?P<serviceid>[0-9]+)$',
        views.edit_service,
        name='edit-service'),
114 115
    url(r'^del_service/$', views.del_service, name='del-service'),
    url(r'^index_service/$', views.index_service, name='index-service'),
116 117 118 119
    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'),
120 121 122 123
    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'),
124
    url(r'^$', views.index, name='index'),
Dalahro's avatar
Dalahro committed
125
    url(r'^rest/mac-ip/$', views.mac_ip, name='mac-ip'),
Maël Kervella's avatar
Maël Kervella committed
126 127 128
    url(r'^rest/regen-achieved/$',
        views.regen_achieved,
        name='regen-achieved'),
Dalahro's avatar
Dalahro committed
129
    url(r'^rest/mac-ip-dns/$', views.mac_ip_dns, name='mac-ip-dns'),
130
    url(r'^rest/alias/$', views.alias, name='alias'),
Dalahro's avatar
Dalahro committed
131
    url(r'^rest/corresp/$', views.corresp, name='corresp'),
132 133
    url(r'^rest/mx/$', views.mx, name='mx'),
    url(r'^rest/ns/$', views.ns, name='ns'),
Gabriel Detraz's avatar
Gabriel Detraz committed
134
    url(r'^rest/txt/$', views.txt, name='txt'),
Gabriel Detraz's avatar
Gabriel Detraz committed
135
    url(r'^rest/srv/$', views.srv, name='srv'),
136
    url(r'^rest/zones/$', views.zones, name='zones'),
Maël Kervella's avatar
Maël Kervella committed
137 138 139 140 141 142
    url(r'^rest/service_servers/$',
        views.service_servers,
        name='service-servers'),
    url(r'^rest/ouverture_ports/$',
        views.ouverture_ports,
        name='ouverture-ports'),
143
    url(r'index_portlist/$', views.index_portlist, name='index-portlist'),
Maël Kervella's avatar
Maël Kervella committed
144 145 146 147 148 149
    url(r'^edit_portlist/(?P<ouvertureportlistid>[0-9]+)$',
        views.edit_portlist,
        name='edit-portlist'),
    url(r'^del_portlist/(?P<ouvertureportlistid>[0-9]+)$',
        views.del_portlist,
        name='del-portlist'),
150
    url(r'^add_portlist/$', views.add_portlist, name='add-portlist'),
Maël Kervella's avatar
Maël Kervella committed
151 152 153 154
    url(r'^port_config/(?P<interfaceid>[0-9]+)$',
        views.configure_ports,
        name='port-config'),
]