netbox-plugin-dns 1.0.0__py3-none-any.whl → 1.0b2__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 +1 -6
- netbox_dns/fields/network.py +21 -20
- 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 +2 -30
- netbox_dns/forms/view.py +3 -6
- netbox_dns/forms/zone.py +101 -70
- netbox_dns/graphql/types.py +4 -1
- netbox_dns/migrations/0001_squashed_netbox_dns_0_22.py +2 -4
- netbox_dns/models/nameserver.py +1 -3
- netbox_dns/models/record.py +23 -24
- netbox_dns/models/view.py +0 -53
- netbox_dns/models/zone.py +46 -63
- netbox_dns/signals/ipam_coupling.py +2 -1
- netbox_dns/tables/view.py +2 -9
- netbox_dns/template_content.py +1 -1
- netbox_dns/templates/netbox_dns/record.html +1 -1
- netbox_dns/templates/netbox_dns/view.html +0 -4
- netbox_dns/templates/netbox_dns/zone.html +4 -2
- netbox_dns/urls.py +297 -0
- netbox_dns/views/record.py +18 -10
- {netbox_plugin_dns-1.0.0.dist-info → netbox_plugin_dns-1.0b2.dist-info}/METADATA +14 -16
- {netbox_plugin_dns-1.0.0.dist-info → netbox_plugin_dns-1.0b2.dist-info}/RECORD +27 -36
- netbox_dns/migrations/0003_default_view.py +0 -15
- netbox_dns/migrations/0004_create_and_assign_default_view.py +0 -26
- netbox_dns/migrations/0005_alter_zone_view_not_null.py +0 -18
- netbox_dns/urls/__init__.py +0 -17
- netbox_dns/urls/contact.py +0 -51
- netbox_dns/urls/nameserver.py +0 -69
- netbox_dns/urls/record.py +0 -41
- netbox_dns/urls/registrar.py +0 -63
- netbox_dns/urls/view.py +0 -39
- netbox_dns/urls/zone.py +0 -57
- {netbox_plugin_dns-1.0.0.dist-info → netbox_plugin_dns-1.0b2.dist-info}/LICENSE +0 -0
- {netbox_plugin_dns-1.0.0.dist-info → netbox_plugin_dns-1.0b2.dist-info}/WHEEL +0 -0
netbox_dns/urls/contact.py
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
from django.urls import path
|
|
2
|
-
|
|
3
|
-
from netbox.views.generic import ObjectChangeLogView, ObjectJournalView
|
|
4
|
-
|
|
5
|
-
from netbox_dns.models import Contact
|
|
6
|
-
from netbox_dns.views import (
|
|
7
|
-
ContactListView,
|
|
8
|
-
ContactView,
|
|
9
|
-
ContactDeleteView,
|
|
10
|
-
ContactEditView,
|
|
11
|
-
ContactBulkImportView,
|
|
12
|
-
ContactBulkEditView,
|
|
13
|
-
ContactBulkDeleteView,
|
|
14
|
-
ContactZoneListView,
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
contact_urlpatterns = [
|
|
18
|
-
path("contacts/", ContactListView.as_view(), name="contact_list"),
|
|
19
|
-
path("contacts/add/", ContactEditView.as_view(), name="contact_add"),
|
|
20
|
-
path("contacts/import/", ContactBulkImportView.as_view(), name="contact_import"),
|
|
21
|
-
path("contacts/edit/", ContactBulkEditView.as_view(), name="contact_bulk_edit"),
|
|
22
|
-
path(
|
|
23
|
-
"contacts/delete/",
|
|
24
|
-
ContactBulkDeleteView.as_view(),
|
|
25
|
-
name="contact_bulk_delete",
|
|
26
|
-
),
|
|
27
|
-
path("contacts/<int:pk>/", ContactView.as_view(), name="contact"),
|
|
28
|
-
path("contacts/<int:pk>/edit/", ContactEditView.as_view(), name="contact_edit"),
|
|
29
|
-
path(
|
|
30
|
-
"contacts/<int:pk>/delete/",
|
|
31
|
-
ContactDeleteView.as_view(),
|
|
32
|
-
name="contact_delete",
|
|
33
|
-
),
|
|
34
|
-
path(
|
|
35
|
-
"contacts/<int:pk>/zones/",
|
|
36
|
-
ContactZoneListView.as_view(),
|
|
37
|
-
name="contact_zones",
|
|
38
|
-
),
|
|
39
|
-
path(
|
|
40
|
-
"contacts/<int:pk>/journal/",
|
|
41
|
-
ObjectJournalView.as_view(),
|
|
42
|
-
name="contact_journal",
|
|
43
|
-
kwargs={"model": Contact},
|
|
44
|
-
),
|
|
45
|
-
path(
|
|
46
|
-
"contacts/<int:pk>/changelog/",
|
|
47
|
-
ObjectChangeLogView.as_view(),
|
|
48
|
-
name="contact_changelog",
|
|
49
|
-
kwargs={"model": Contact},
|
|
50
|
-
),
|
|
51
|
-
]
|
netbox_dns/urls/nameserver.py
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
from django.urls import path
|
|
2
|
-
|
|
3
|
-
from netbox.views.generic import ObjectChangeLogView, ObjectJournalView
|
|
4
|
-
|
|
5
|
-
from netbox_dns.models import NameServer
|
|
6
|
-
from netbox_dns.views import (
|
|
7
|
-
NameServerListView,
|
|
8
|
-
NameServerView,
|
|
9
|
-
NameServerEditView,
|
|
10
|
-
NameServerDeleteView,
|
|
11
|
-
NameServerBulkImportView,
|
|
12
|
-
NameServerBulkEditView,
|
|
13
|
-
NameServerBulkDeleteView,
|
|
14
|
-
NameServerZoneListView,
|
|
15
|
-
NameServerSOAZoneListView,
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
nameserver_urlpatterns = [
|
|
19
|
-
path("nameservers/", NameServerListView.as_view(), name="nameserver_list"),
|
|
20
|
-
path("nameservers/add/", NameServerEditView.as_view(), name="nameserver_add"),
|
|
21
|
-
path(
|
|
22
|
-
"nameservers/import/",
|
|
23
|
-
NameServerBulkImportView.as_view(),
|
|
24
|
-
name="nameserver_import",
|
|
25
|
-
),
|
|
26
|
-
path(
|
|
27
|
-
"nameservers/edit/",
|
|
28
|
-
NameServerBulkEditView.as_view(),
|
|
29
|
-
name="nameserver_bulk_edit",
|
|
30
|
-
),
|
|
31
|
-
path(
|
|
32
|
-
"nameservers/delete/",
|
|
33
|
-
NameServerBulkDeleteView.as_view(),
|
|
34
|
-
name="nameserver_bulk_delete",
|
|
35
|
-
),
|
|
36
|
-
path("nameservers/<int:pk>/", NameServerView.as_view(), name="nameserver"),
|
|
37
|
-
path(
|
|
38
|
-
"nameservers/<int:pk>/edit",
|
|
39
|
-
NameServerEditView.as_view(),
|
|
40
|
-
name="nameserver_edit",
|
|
41
|
-
),
|
|
42
|
-
path(
|
|
43
|
-
"nameservers/<int:pk>/delete",
|
|
44
|
-
NameServerDeleteView.as_view(),
|
|
45
|
-
name="nameserver_delete",
|
|
46
|
-
),
|
|
47
|
-
path(
|
|
48
|
-
"nameservers/<int:pk>/journal/",
|
|
49
|
-
ObjectJournalView.as_view(),
|
|
50
|
-
name="nameserver_journal",
|
|
51
|
-
kwargs={"model": NameServer},
|
|
52
|
-
),
|
|
53
|
-
path(
|
|
54
|
-
"nameservers/<int:pk>/changelog/",
|
|
55
|
-
ObjectChangeLogView.as_view(),
|
|
56
|
-
name="nameserver_changelog",
|
|
57
|
-
kwargs={"model": NameServer},
|
|
58
|
-
),
|
|
59
|
-
path(
|
|
60
|
-
"nameservers/<int:pk>/zones/",
|
|
61
|
-
NameServerZoneListView.as_view(),
|
|
62
|
-
name="nameserver_zones",
|
|
63
|
-
),
|
|
64
|
-
path(
|
|
65
|
-
"nameservers/<int:pk>/soazones/",
|
|
66
|
-
NameServerSOAZoneListView.as_view(),
|
|
67
|
-
name="nameserver_soa_zones",
|
|
68
|
-
),
|
|
69
|
-
]
|
netbox_dns/urls/record.py
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
from django.urls import path
|
|
2
|
-
|
|
3
|
-
from netbox.views.generic import ObjectChangeLogView, ObjectJournalView
|
|
4
|
-
|
|
5
|
-
from netbox_dns.models import Record
|
|
6
|
-
from netbox_dns.views import (
|
|
7
|
-
RecordListView,
|
|
8
|
-
RecordView,
|
|
9
|
-
RecordEditView,
|
|
10
|
-
RecordDeleteView,
|
|
11
|
-
RecordBulkImportView,
|
|
12
|
-
RecordBulkEditView,
|
|
13
|
-
RecordBulkDeleteView,
|
|
14
|
-
ManagedRecordListView,
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
record_urlpatterns = [
|
|
18
|
-
path("records/", RecordListView.as_view(), name="record_list"),
|
|
19
|
-
path("records/add/", RecordEditView.as_view(), name="record_add"),
|
|
20
|
-
path("records/import/", RecordBulkImportView.as_view(), name="record_import"),
|
|
21
|
-
path("records/edit/", RecordBulkEditView.as_view(), name="record_bulk_edit"),
|
|
22
|
-
path("records/delete/", RecordBulkDeleteView.as_view(), name="record_bulk_delete"),
|
|
23
|
-
path("records/<int:pk>/", RecordView.as_view(), name="record"),
|
|
24
|
-
path("records/<int:pk>/edit/", RecordEditView.as_view(), name="record_edit"),
|
|
25
|
-
path("records/<int:pk>/delete/", RecordDeleteView.as_view(), name="record_delete"),
|
|
26
|
-
path(
|
|
27
|
-
"records/<int:pk>/journal/",
|
|
28
|
-
ObjectJournalView.as_view(),
|
|
29
|
-
name="record_journal",
|
|
30
|
-
kwargs={"model": Record},
|
|
31
|
-
),
|
|
32
|
-
path(
|
|
33
|
-
"records/<int:pk>/changelog/",
|
|
34
|
-
ObjectChangeLogView.as_view(),
|
|
35
|
-
name="record_changelog",
|
|
36
|
-
kwargs={"model": Record},
|
|
37
|
-
),
|
|
38
|
-
path(
|
|
39
|
-
"managedrecords/", ManagedRecordListView.as_view(), name="managed_record_list"
|
|
40
|
-
),
|
|
41
|
-
]
|
netbox_dns/urls/registrar.py
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
from django.urls import path
|
|
2
|
-
|
|
3
|
-
from netbox.views.generic import ObjectChangeLogView, ObjectJournalView
|
|
4
|
-
|
|
5
|
-
from netbox_dns.models import Registrar
|
|
6
|
-
from netbox_dns.views import (
|
|
7
|
-
RegistrarListView,
|
|
8
|
-
RegistrarView,
|
|
9
|
-
RegistrarDeleteView,
|
|
10
|
-
RegistrarEditView,
|
|
11
|
-
RegistrarBulkImportView,
|
|
12
|
-
RegistrarBulkEditView,
|
|
13
|
-
RegistrarBulkDeleteView,
|
|
14
|
-
RegistrarZoneListView,
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
registrar_urlpatterns = [
|
|
18
|
-
path("registrars/", RegistrarListView.as_view(), name="registrar_list"),
|
|
19
|
-
path("registrars/add/", RegistrarEditView.as_view(), name="registrar_add"),
|
|
20
|
-
path(
|
|
21
|
-
"registrars/import/",
|
|
22
|
-
RegistrarBulkImportView.as_view(),
|
|
23
|
-
name="registrar_import",
|
|
24
|
-
),
|
|
25
|
-
path(
|
|
26
|
-
"registrars/edit/",
|
|
27
|
-
RegistrarBulkEditView.as_view(),
|
|
28
|
-
name="registrar_bulk_edit",
|
|
29
|
-
),
|
|
30
|
-
path(
|
|
31
|
-
"registrars/delete/",
|
|
32
|
-
RegistrarBulkDeleteView.as_view(),
|
|
33
|
-
name="registrar_bulk_delete",
|
|
34
|
-
),
|
|
35
|
-
path("registrars/<int:pk>/", RegistrarView.as_view(), name="registrar"),
|
|
36
|
-
path(
|
|
37
|
-
"registrars/<int:pk>/edit/",
|
|
38
|
-
RegistrarEditView.as_view(),
|
|
39
|
-
name="registrar_edit",
|
|
40
|
-
),
|
|
41
|
-
path(
|
|
42
|
-
"registrars/<int:pk>/delete/",
|
|
43
|
-
RegistrarDeleteView.as_view(),
|
|
44
|
-
name="registrar_delete",
|
|
45
|
-
),
|
|
46
|
-
path(
|
|
47
|
-
"registrars/<int:pk>/zones/",
|
|
48
|
-
RegistrarZoneListView.as_view(),
|
|
49
|
-
name="registrar_zones",
|
|
50
|
-
),
|
|
51
|
-
path(
|
|
52
|
-
"registrars/<int:pk>/journal/",
|
|
53
|
-
ObjectJournalView.as_view(),
|
|
54
|
-
name="registrar_journal",
|
|
55
|
-
kwargs={"model": Registrar},
|
|
56
|
-
),
|
|
57
|
-
path(
|
|
58
|
-
"registrars/<int:pk>/changelog/",
|
|
59
|
-
ObjectChangeLogView.as_view(),
|
|
60
|
-
name="registrar_changelog",
|
|
61
|
-
kwargs={"model": Registrar},
|
|
62
|
-
),
|
|
63
|
-
]
|
netbox_dns/urls/view.py
DELETED
|
@@ -1,39 +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
|
|
6
|
-
from netbox_dns.views import (
|
|
7
|
-
ViewListView,
|
|
8
|
-
ViewView,
|
|
9
|
-
ViewDeleteView,
|
|
10
|
-
ViewEditView,
|
|
11
|
-
ViewBulkImportView,
|
|
12
|
-
ViewBulkEditView,
|
|
13
|
-
ViewBulkDeleteView,
|
|
14
|
-
ViewZoneListView,
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
view_urlpatterns = [
|
|
18
|
-
path("views/", ViewListView.as_view(), name="view_list"),
|
|
19
|
-
path("views/add/", ViewEditView.as_view(), name="view_add"),
|
|
20
|
-
path("views/import/", ViewBulkImportView.as_view(), name="view_import"),
|
|
21
|
-
path("views/edit/", ViewBulkEditView.as_view(), name="view_bulk_edit"),
|
|
22
|
-
path("views/delete/", ViewBulkDeleteView.as_view(), name="view_bulk_delete"),
|
|
23
|
-
path("views/<int:pk>/", ViewView.as_view(), name="view"),
|
|
24
|
-
path("views/<int:pk>/edit/", ViewEditView.as_view(), name="view_edit"),
|
|
25
|
-
path("views/<int:pk>/delete/", ViewDeleteView.as_view(), name="view_delete"),
|
|
26
|
-
path("views/<int:pk>/zones/", ViewZoneListView.as_view(), name="view_zones"),
|
|
27
|
-
path(
|
|
28
|
-
"views/<int:pk>/journal/",
|
|
29
|
-
ObjectJournalView.as_view(),
|
|
30
|
-
name="view_journal",
|
|
31
|
-
kwargs={"model": View},
|
|
32
|
-
),
|
|
33
|
-
path(
|
|
34
|
-
"views/<int:pk>/changelog/",
|
|
35
|
-
ObjectChangeLogView.as_view(),
|
|
36
|
-
name="view_changelog",
|
|
37
|
-
kwargs={"model": View},
|
|
38
|
-
),
|
|
39
|
-
]
|
netbox_dns/urls/zone.py
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
from django.urls import path
|
|
2
|
-
|
|
3
|
-
from netbox.views.generic import ObjectChangeLogView, ObjectJournalView
|
|
4
|
-
|
|
5
|
-
from netbox_dns.models import Zone
|
|
6
|
-
from netbox_dns.views import (
|
|
7
|
-
ZoneListView,
|
|
8
|
-
ZoneView,
|
|
9
|
-
ZoneDeleteView,
|
|
10
|
-
ZoneEditView,
|
|
11
|
-
ZoneBulkImportView,
|
|
12
|
-
ZoneBulkEditView,
|
|
13
|
-
ZoneBulkDeleteView,
|
|
14
|
-
ZoneRecordListView,
|
|
15
|
-
ZoneManagedRecordListView,
|
|
16
|
-
ZoneRegistrationView,
|
|
17
|
-
ZoneRFC2317ChildZoneListView,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
zone_urlpatterns = [
|
|
21
|
-
path("zones/", ZoneListView.as_view(), name="zone_list"),
|
|
22
|
-
path("zones/add/", ZoneEditView.as_view(), name="zone_add"),
|
|
23
|
-
path("zones/import/", ZoneBulkImportView.as_view(), name="zone_import"),
|
|
24
|
-
path("zones/edit/", ZoneBulkEditView.as_view(), name="zone_bulk_edit"),
|
|
25
|
-
path("zones/delete/", ZoneBulkDeleteView.as_view(), name="zone_bulk_delete"),
|
|
26
|
-
path("zones/<int:pk>/", ZoneView.as_view(), name="zone"),
|
|
27
|
-
path("zones/<int:pk>/delete/", ZoneDeleteView.as_view(), name="zone_delete"),
|
|
28
|
-
path("zones/<int:pk>/edit/", ZoneEditView.as_view(), name="zone_edit"),
|
|
29
|
-
path("zones/<int:pk>/records/", ZoneRecordListView.as_view(), name="zone_records"),
|
|
30
|
-
path(
|
|
31
|
-
"zones/<int:pk>/managedrecords/",
|
|
32
|
-
ZoneManagedRecordListView.as_view(),
|
|
33
|
-
name="zone_managed_records",
|
|
34
|
-
),
|
|
35
|
-
path(
|
|
36
|
-
"zones/<int:pk>/rfc2317childzones/",
|
|
37
|
-
ZoneRFC2317ChildZoneListView.as_view(),
|
|
38
|
-
name="zone_rfc2317_child_zones",
|
|
39
|
-
),
|
|
40
|
-
path(
|
|
41
|
-
"zones/<int:pk>/registration/",
|
|
42
|
-
ZoneRegistrationView.as_view(),
|
|
43
|
-
name="zone_registration",
|
|
44
|
-
),
|
|
45
|
-
path(
|
|
46
|
-
"zones/<int:pk>/journal/",
|
|
47
|
-
ObjectJournalView.as_view(),
|
|
48
|
-
name="zone_journal",
|
|
49
|
-
kwargs={"model": Zone},
|
|
50
|
-
),
|
|
51
|
-
path(
|
|
52
|
-
"zones/<int:pk>/changelog/",
|
|
53
|
-
ObjectChangeLogView.as_view(),
|
|
54
|
-
name="zone_changelog",
|
|
55
|
-
kwargs={"model": Zone},
|
|
56
|
-
),
|
|
57
|
-
]
|
|
File without changes
|
|
File without changes
|