netbox-plugin-dns 1.0b2__py3-none-any.whl → 1.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of netbox-plugin-dns might be problematic. Click here for more details.
- netbox_dns/__init__.py +3 -3
- netbox_dns/api/serializers_/view.py +6 -1
- netbox_dns/fields/network.py +20 -21
- netbox_dns/fields/rfc2317.py +2 -2
- netbox_dns/filtersets/view.py +1 -1
- netbox_dns/filtersets/zone.py +4 -4
- netbox_dns/forms/record.py +30 -2
- netbox_dns/forms/view.py +6 -3
- netbox_dns/forms/zone.py +71 -102
- netbox_dns/graphql/types.py +1 -4
- netbox_dns/migrations/0001_squashed_netbox_dns_0_22.py +4 -2
- netbox_dns/migrations/0003_default_view.py +15 -0
- netbox_dns/migrations/0004_create_and_assign_default_view.py +26 -0
- netbox_dns/migrations/0005_alter_zone_view_not_null.py +18 -0
- netbox_dns/mixins/__init__.py +1 -0
- netbox_dns/mixins/object_modification.py +26 -0
- netbox_dns/models/nameserver.py +7 -6
- netbox_dns/models/record.py +94 -35
- netbox_dns/models/view.py +56 -1
- netbox_dns/models/zone.py +101 -67
- netbox_dns/signals/ipam_coupling.py +1 -2
- netbox_dns/tables/view.py +12 -2
- netbox_dns/template_content.py +1 -1
- netbox_dns/templates/netbox_dns/record.html +1 -1
- netbox_dns/templates/netbox_dns/view.html +4 -0
- netbox_dns/templates/netbox_dns/zone.html +2 -4
- netbox_dns/urls/__init__.py +17 -0
- netbox_dns/urls/contact.py +51 -0
- netbox_dns/urls/nameserver.py +69 -0
- netbox_dns/urls/record.py +41 -0
- netbox_dns/urls/registrar.py +63 -0
- netbox_dns/urls/view.py +39 -0
- netbox_dns/urls/zone.py +57 -0
- netbox_dns/validators/dns_name.py +24 -11
- netbox_dns/views/record.py +10 -18
- {netbox_plugin_dns-1.0b2.dist-info → netbox_plugin_dns-1.0.2.dist-info}/LICENSE +2 -1
- {netbox_plugin_dns-1.0b2.dist-info → netbox_plugin_dns-1.0.2.dist-info}/METADATA +15 -14
- {netbox_plugin_dns-1.0b2.dist-info → netbox_plugin_dns-1.0.2.dist-info}/RECORD +39 -28
- netbox_dns/urls.py +0 -297
- {netbox_plugin_dns-1.0b2.dist-info → netbox_plugin_dns-1.0.2.dist-info}/WHEEL +0 -0
netbox_dns/urls.py
DELETED
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
from django.urls import path
|
|
2
|
-
|
|
3
|
-
from netbox.views.generic import ObjectChangeLogView, ObjectJournalView
|
|
4
|
-
|
|
5
|
-
from netbox_dns.models import View, Zone, Record, NameServer, Contact, Registrar
|
|
6
|
-
from netbox_dns.views import (
|
|
7
|
-
# zone
|
|
8
|
-
ZoneListView,
|
|
9
|
-
ZoneView,
|
|
10
|
-
ZoneDeleteView,
|
|
11
|
-
ZoneEditView,
|
|
12
|
-
ZoneBulkImportView,
|
|
13
|
-
ZoneBulkEditView,
|
|
14
|
-
ZoneBulkDeleteView,
|
|
15
|
-
ZoneRecordListView,
|
|
16
|
-
ZoneManagedRecordListView,
|
|
17
|
-
ZoneRegistrationView,
|
|
18
|
-
ZoneRFC2317ChildZoneListView,
|
|
19
|
-
# nameserver
|
|
20
|
-
NameServerListView,
|
|
21
|
-
NameServerView,
|
|
22
|
-
NameServerEditView,
|
|
23
|
-
NameServerDeleteView,
|
|
24
|
-
NameServerBulkImportView,
|
|
25
|
-
NameServerBulkEditView,
|
|
26
|
-
NameServerBulkDeleteView,
|
|
27
|
-
NameServerZoneListView,
|
|
28
|
-
NameServerSOAZoneListView,
|
|
29
|
-
# record
|
|
30
|
-
RecordListView,
|
|
31
|
-
RecordView,
|
|
32
|
-
RecordEditView,
|
|
33
|
-
RecordDeleteView,
|
|
34
|
-
RecordBulkImportView,
|
|
35
|
-
RecordBulkEditView,
|
|
36
|
-
RecordBulkDeleteView,
|
|
37
|
-
# managed record
|
|
38
|
-
ManagedRecordListView,
|
|
39
|
-
# view
|
|
40
|
-
ViewListView,
|
|
41
|
-
ViewView,
|
|
42
|
-
ViewDeleteView,
|
|
43
|
-
ViewEditView,
|
|
44
|
-
ViewBulkImportView,
|
|
45
|
-
ViewBulkEditView,
|
|
46
|
-
ViewBulkDeleteView,
|
|
47
|
-
ViewZoneListView,
|
|
48
|
-
# contact
|
|
49
|
-
ContactListView,
|
|
50
|
-
ContactView,
|
|
51
|
-
ContactDeleteView,
|
|
52
|
-
ContactEditView,
|
|
53
|
-
ContactBulkImportView,
|
|
54
|
-
ContactBulkEditView,
|
|
55
|
-
ContactBulkDeleteView,
|
|
56
|
-
ContactZoneListView,
|
|
57
|
-
# registrar
|
|
58
|
-
RegistrarListView,
|
|
59
|
-
RegistrarView,
|
|
60
|
-
RegistrarDeleteView,
|
|
61
|
-
RegistrarEditView,
|
|
62
|
-
RegistrarBulkImportView,
|
|
63
|
-
RegistrarBulkEditView,
|
|
64
|
-
RegistrarBulkDeleteView,
|
|
65
|
-
RegistrarZoneListView,
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
app_name = "netbox_dns"
|
|
69
|
-
|
|
70
|
-
urlpatterns = [
|
|
71
|
-
#
|
|
72
|
-
# Zone urls
|
|
73
|
-
#
|
|
74
|
-
path("zones/", ZoneListView.as_view(), name="zone_list"),
|
|
75
|
-
path("zones/add/", ZoneEditView.as_view(), name="zone_add"),
|
|
76
|
-
path("zones/import/", ZoneBulkImportView.as_view(), name="zone_import"),
|
|
77
|
-
path("zones/edit/", ZoneBulkEditView.as_view(), name="zone_bulk_edit"),
|
|
78
|
-
path("zones/delete/", ZoneBulkDeleteView.as_view(), name="zone_bulk_delete"),
|
|
79
|
-
path("zones/<int:pk>/", ZoneView.as_view(), name="zone"),
|
|
80
|
-
path("zones/<int:pk>/delete/", ZoneDeleteView.as_view(), name="zone_delete"),
|
|
81
|
-
path("zones/<int:pk>/edit/", ZoneEditView.as_view(), name="zone_edit"),
|
|
82
|
-
path(
|
|
83
|
-
"zones/<int:pk>/journal/",
|
|
84
|
-
ObjectJournalView.as_view(),
|
|
85
|
-
name="zone_journal",
|
|
86
|
-
kwargs={"model": Zone},
|
|
87
|
-
),
|
|
88
|
-
path(
|
|
89
|
-
"zones/<int:pk>/changelog/",
|
|
90
|
-
ObjectChangeLogView.as_view(),
|
|
91
|
-
name="zone_changelog",
|
|
92
|
-
kwargs={"model": Zone},
|
|
93
|
-
),
|
|
94
|
-
path("zones/<int:pk>/records/", ZoneRecordListView.as_view(), name="zone_records"),
|
|
95
|
-
path(
|
|
96
|
-
"zones/<int:pk>/managedrecords/",
|
|
97
|
-
ZoneManagedRecordListView.as_view(),
|
|
98
|
-
name="zone_managed_records",
|
|
99
|
-
),
|
|
100
|
-
path(
|
|
101
|
-
"zones/<int:pk>/rfc2317childzones/",
|
|
102
|
-
ZoneRFC2317ChildZoneListView.as_view(),
|
|
103
|
-
name="zone_rfc2317_child_zones",
|
|
104
|
-
),
|
|
105
|
-
path(
|
|
106
|
-
"zones/<int:pk>/registration/",
|
|
107
|
-
ZoneRegistrationView.as_view(),
|
|
108
|
-
name="zone_registration",
|
|
109
|
-
),
|
|
110
|
-
#
|
|
111
|
-
# NameServer urls
|
|
112
|
-
#
|
|
113
|
-
path("nameservers/", NameServerListView.as_view(), name="nameserver_list"),
|
|
114
|
-
path("nameservers/add/", NameServerEditView.as_view(), name="nameserver_add"),
|
|
115
|
-
path(
|
|
116
|
-
"nameservers/import/",
|
|
117
|
-
NameServerBulkImportView.as_view(),
|
|
118
|
-
name="nameserver_import",
|
|
119
|
-
),
|
|
120
|
-
path(
|
|
121
|
-
"nameservers/edit/",
|
|
122
|
-
NameServerBulkEditView.as_view(),
|
|
123
|
-
name="nameserver_bulk_edit",
|
|
124
|
-
),
|
|
125
|
-
path(
|
|
126
|
-
"nameservers/delete/",
|
|
127
|
-
NameServerBulkDeleteView.as_view(),
|
|
128
|
-
name="nameserver_bulk_delete",
|
|
129
|
-
),
|
|
130
|
-
path("nameservers/<int:pk>/", NameServerView.as_view(), name="nameserver"),
|
|
131
|
-
path(
|
|
132
|
-
"nameservers/<int:pk>/edit",
|
|
133
|
-
NameServerEditView.as_view(),
|
|
134
|
-
name="nameserver_edit",
|
|
135
|
-
),
|
|
136
|
-
path(
|
|
137
|
-
"nameservers/<int:pk>/delete",
|
|
138
|
-
NameServerDeleteView.as_view(),
|
|
139
|
-
name="nameserver_delete",
|
|
140
|
-
),
|
|
141
|
-
path(
|
|
142
|
-
"nameservers/<int:pk>/journal/",
|
|
143
|
-
ObjectJournalView.as_view(),
|
|
144
|
-
name="nameserver_journal",
|
|
145
|
-
kwargs={"model": NameServer},
|
|
146
|
-
),
|
|
147
|
-
path(
|
|
148
|
-
"nameservers/<int:pk>/changelog/",
|
|
149
|
-
ObjectChangeLogView.as_view(),
|
|
150
|
-
name="nameserver_changelog",
|
|
151
|
-
kwargs={"model": NameServer},
|
|
152
|
-
),
|
|
153
|
-
path(
|
|
154
|
-
"nameservers/<int:pk>/zones/",
|
|
155
|
-
NameServerZoneListView.as_view(),
|
|
156
|
-
name="nameserver_zones",
|
|
157
|
-
),
|
|
158
|
-
path(
|
|
159
|
-
"nameservers/<int:pk>/soazones/",
|
|
160
|
-
NameServerSOAZoneListView.as_view(),
|
|
161
|
-
name="nameserver_soa_zones",
|
|
162
|
-
),
|
|
163
|
-
#
|
|
164
|
-
# Record urls
|
|
165
|
-
#
|
|
166
|
-
path("records/", RecordListView.as_view(), name="record_list"),
|
|
167
|
-
path("records/add/", RecordEditView.as_view(), name="record_add"),
|
|
168
|
-
path("records/import/", RecordBulkImportView.as_view(), name="record_import"),
|
|
169
|
-
path("records/edit/", RecordBulkEditView.as_view(), name="record_bulk_edit"),
|
|
170
|
-
path("records/delete/", RecordBulkDeleteView.as_view(), name="record_bulk_delete"),
|
|
171
|
-
path("records/<int:pk>/", RecordView.as_view(), name="record"),
|
|
172
|
-
path("records/<int:pk>/edit/", RecordEditView.as_view(), name="record_edit"),
|
|
173
|
-
path("records/<int:pk>/delete/", RecordDeleteView.as_view(), name="record_delete"),
|
|
174
|
-
path(
|
|
175
|
-
"records/<int:pk>/journal/",
|
|
176
|
-
ObjectJournalView.as_view(),
|
|
177
|
-
name="record_journal",
|
|
178
|
-
kwargs={"model": Record},
|
|
179
|
-
),
|
|
180
|
-
path(
|
|
181
|
-
"records/<int:pk>/changelog/",
|
|
182
|
-
ObjectChangeLogView.as_view(),
|
|
183
|
-
name="record_changelog",
|
|
184
|
-
kwargs={"model": Record},
|
|
185
|
-
),
|
|
186
|
-
path(
|
|
187
|
-
"managedrecords/", ManagedRecordListView.as_view(), name="managed_record_list"
|
|
188
|
-
),
|
|
189
|
-
#
|
|
190
|
-
# View urls
|
|
191
|
-
#
|
|
192
|
-
path("views/", ViewListView.as_view(), name="view_list"),
|
|
193
|
-
path("views/add/", ViewEditView.as_view(), name="view_add"),
|
|
194
|
-
path("views/import/", ViewBulkImportView.as_view(), name="view_import"),
|
|
195
|
-
path("views/edit/", ViewBulkEditView.as_view(), name="view_bulk_edit"),
|
|
196
|
-
path("views/delete/", ViewBulkDeleteView.as_view(), name="view_bulk_delete"),
|
|
197
|
-
path("views/<int:pk>/", ViewView.as_view(), name="view"),
|
|
198
|
-
path("views/<int:pk>/edit/", ViewEditView.as_view(), name="view_edit"),
|
|
199
|
-
path("views/<int:pk>/delete/", ViewDeleteView.as_view(), name="view_delete"),
|
|
200
|
-
path("views/<int:pk>/zones/", ViewZoneListView.as_view(), name="view_zones"),
|
|
201
|
-
path(
|
|
202
|
-
"views/<int:pk>/journal/",
|
|
203
|
-
ObjectJournalView.as_view(),
|
|
204
|
-
name="view_journal",
|
|
205
|
-
kwargs={"model": View},
|
|
206
|
-
),
|
|
207
|
-
path(
|
|
208
|
-
"views/<int:pk>/changelog/",
|
|
209
|
-
ObjectChangeLogView.as_view(),
|
|
210
|
-
name="view_changelog",
|
|
211
|
-
kwargs={"model": View},
|
|
212
|
-
),
|
|
213
|
-
#
|
|
214
|
-
# Contact urls
|
|
215
|
-
#
|
|
216
|
-
path("contacts/", ContactListView.as_view(), name="contact_list"),
|
|
217
|
-
path("contacts/add/", ContactEditView.as_view(), name="contact_add"),
|
|
218
|
-
path("contacts/import/", ContactBulkImportView.as_view(), name="contact_import"),
|
|
219
|
-
path("contacts/edit/", ContactBulkEditView.as_view(), name="contact_bulk_edit"),
|
|
220
|
-
path(
|
|
221
|
-
"contacts/delete/",
|
|
222
|
-
ContactBulkDeleteView.as_view(),
|
|
223
|
-
name="contact_bulk_delete",
|
|
224
|
-
),
|
|
225
|
-
path("contacts/<int:pk>/", ContactView.as_view(), name="contact"),
|
|
226
|
-
path("contacts/<int:pk>/edit/", ContactEditView.as_view(), name="contact_edit"),
|
|
227
|
-
path(
|
|
228
|
-
"contacts/<int:pk>/delete/",
|
|
229
|
-
ContactDeleteView.as_view(),
|
|
230
|
-
name="contact_delete",
|
|
231
|
-
),
|
|
232
|
-
path(
|
|
233
|
-
"contacts/<int:pk>/zones/",
|
|
234
|
-
ContactZoneListView.as_view(),
|
|
235
|
-
name="contact_zones",
|
|
236
|
-
),
|
|
237
|
-
path(
|
|
238
|
-
"contacts/<int:pk>/journal/",
|
|
239
|
-
ObjectJournalView.as_view(),
|
|
240
|
-
name="contact_journal",
|
|
241
|
-
kwargs={"model": Contact},
|
|
242
|
-
),
|
|
243
|
-
path(
|
|
244
|
-
"contacts/<int:pk>/changelog/",
|
|
245
|
-
ObjectChangeLogView.as_view(),
|
|
246
|
-
name="contact_changelog",
|
|
247
|
-
kwargs={"model": Contact},
|
|
248
|
-
),
|
|
249
|
-
#
|
|
250
|
-
# Registrar urls
|
|
251
|
-
#
|
|
252
|
-
path("registrars/", RegistrarListView.as_view(), name="registrar_list"),
|
|
253
|
-
path("registrars/add/", RegistrarEditView.as_view(), name="registrar_add"),
|
|
254
|
-
path(
|
|
255
|
-
"registrars/import/",
|
|
256
|
-
RegistrarBulkImportView.as_view(),
|
|
257
|
-
name="registrar_import",
|
|
258
|
-
),
|
|
259
|
-
path(
|
|
260
|
-
"registrars/edit/",
|
|
261
|
-
RegistrarBulkEditView.as_view(),
|
|
262
|
-
name="registrar_bulk_edit",
|
|
263
|
-
),
|
|
264
|
-
path(
|
|
265
|
-
"registrars/delete/",
|
|
266
|
-
RegistrarBulkDeleteView.as_view(),
|
|
267
|
-
name="registrar_bulk_delete",
|
|
268
|
-
),
|
|
269
|
-
path("registrars/<int:pk>/", RegistrarView.as_view(), name="registrar"),
|
|
270
|
-
path(
|
|
271
|
-
"registrars/<int:pk>/edit/",
|
|
272
|
-
RegistrarEditView.as_view(),
|
|
273
|
-
name="registrar_edit",
|
|
274
|
-
),
|
|
275
|
-
path(
|
|
276
|
-
"registrars/<int:pk>/delete/",
|
|
277
|
-
RegistrarDeleteView.as_view(),
|
|
278
|
-
name="registrar_delete",
|
|
279
|
-
),
|
|
280
|
-
path(
|
|
281
|
-
"registrars/<int:pk>/zones/",
|
|
282
|
-
RegistrarZoneListView.as_view(),
|
|
283
|
-
name="registrar_zones",
|
|
284
|
-
),
|
|
285
|
-
path(
|
|
286
|
-
"registrars/<int:pk>/journal/",
|
|
287
|
-
ObjectJournalView.as_view(),
|
|
288
|
-
name="registrar_journal",
|
|
289
|
-
kwargs={"model": Registrar},
|
|
290
|
-
),
|
|
291
|
-
path(
|
|
292
|
-
"registrars/<int:pk>/changelog/",
|
|
293
|
-
ObjectChangeLogView.as_view(),
|
|
294
|
-
name="registrar_changelog",
|
|
295
|
-
kwargs={"model": Registrar},
|
|
296
|
-
),
|
|
297
|
-
]
|
|
File without changes
|