netbox-plugin-dns 1.1.0b7__py3-none-any.whl → 1.1.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 -2
- netbox_dns/api/nested_serializers.py +17 -16
- netbox_dns/api/serializers.py +1 -1
- netbox_dns/api/serializers_/record.py +1 -0
- netbox_dns/api/serializers_/{contact.py → registration_contact.py} +5 -5
- netbox_dns/api/serializers_/view.py +1 -0
- netbox_dns/api/serializers_/zone.py +5 -5
- netbox_dns/api/serializers_/zone_template.py +5 -5
- netbox_dns/api/urls.py +2 -2
- netbox_dns/api/views.py +7 -35
- netbox_dns/filtersets/__init__.py +1 -1
- netbox_dns/filtersets/nameserver.py +0 -0
- netbox_dns/filtersets/record.py +0 -0
- netbox_dns/filtersets/record_template.py +0 -0
- netbox_dns/filtersets/{contact.py → registration_contact.py} +4 -4
- netbox_dns/filtersets/zone.py +15 -15
- netbox_dns/filtersets/zone_template.py +15 -15
- netbox_dns/forms/__init__.py +1 -1
- netbox_dns/forms/nameserver.py +0 -0
- netbox_dns/forms/record.py +0 -0
- netbox_dns/forms/record_template.py +0 -0
- netbox_dns/forms/{contact.py → registration_contact.py} +16 -16
- netbox_dns/forms/view.py +29 -10
- netbox_dns/forms/zone.py +13 -13
- netbox_dns/forms/zone_template.py +13 -13
- netbox_dns/graphql/__init__.py +2 -2
- netbox_dns/graphql/filters.py +5 -5
- netbox_dns/graphql/schema.py +23 -53
- netbox_dns/graphql/types.py +39 -12
- netbox_dns/migrations/0007_alter_ordering_options.py +25 -0
- netbox_dns/migrations/{0007_view_prefixes.py → 0008_view_prefixes.py} +1 -1
- netbox_dns/migrations/0009_rename_contact_registrationcontact.py +36 -0
- netbox_dns/migrations/0010_view_ip_address_filter.py +18 -0
- netbox_dns/mixins/object_modification.py +30 -8
- netbox_dns/models/__init__.py +1 -1
- netbox_dns/models/nameserver.py +8 -3
- netbox_dns/models/record.py +47 -14
- netbox_dns/models/record_template.py +4 -1
- netbox_dns/models/registrar.py +7 -1
- netbox_dns/models/{contact.py → registration_contact.py} +15 -9
- netbox_dns/models/view.py +49 -2
- netbox_dns/models/zone.py +24 -18
- netbox_dns/models/zone_template.py +12 -9
- netbox_dns/navigation.py +7 -7
- netbox_dns/signals/ipam_dnssync.py +4 -4
- netbox_dns/tables/__init__.py +1 -1
- netbox_dns/tables/nameserver.py +1 -7
- netbox_dns/tables/record.py +10 -35
- netbox_dns/tables/record_template.py +0 -17
- netbox_dns/tables/registrar.py +0 -2
- netbox_dns/tables/{contact.py → registration_contact.py} +5 -6
- netbox_dns/tables/view.py +1 -8
- netbox_dns/tables/zone.py +0 -15
- netbox_dns/tables/zone_template.py +2 -16
- netbox_dns/templates/netbox_dns/{contact.html → registrationcontact.html} +1 -1
- netbox_dns/templates/netbox_dns/view.html +16 -0
- netbox_dns/urls/__init__.py +2 -2
- netbox_dns/urls/nameserver.py +14 -38
- netbox_dns/urls/record.py +7 -19
- netbox_dns/urls/record_template.py +18 -27
- netbox_dns/urls/registrar.py +11 -35
- netbox_dns/urls/registration_contact.py +60 -0
- netbox_dns/urls/view.py +8 -22
- netbox_dns/urls/zone.py +8 -46
- netbox_dns/urls/zone_template.py +16 -26
- netbox_dns/utilities/ipam_dnssync.py +58 -26
- netbox_dns/views/__init__.py +1 -1
- netbox_dns/views/nameserver.py +7 -3
- netbox_dns/views/record.py +12 -3
- netbox_dns/views/record_template.py +1 -1
- netbox_dns/views/registrar.py +0 -1
- netbox_dns/views/registration_contact.py +94 -0
- netbox_dns/views/view.py +6 -1
- netbox_dns/views/zone.py +7 -6
- netbox_dns/views/zone_template.py +2 -2
- {netbox_plugin_dns-1.1.0b7.dist-info → netbox_plugin_dns-1.1.2.dist-info}/METADATA +14 -14
- {netbox_plugin_dns-1.1.0b7.dist-info → netbox_plugin_dns-1.1.2.dist-info}/RECORD +80 -76
- {netbox_plugin_dns-1.1.0b7.dist-info → netbox_plugin_dns-1.1.2.dist-info}/WHEEL +2 -1
- netbox_plugin_dns-1.1.2.dist-info/top_level.txt +1 -0
- netbox_dns/urls/contact.py +0 -51
- netbox_dns/views/contact.py +0 -95
- {netbox_plugin_dns-1.1.0b7.dist-info → netbox_plugin_dns-1.1.2.dist-info}/LICENSE +0 -0
netbox_dns/views/zone.py
CHANGED
|
@@ -2,6 +2,7 @@ from dns import name as dns_name
|
|
|
2
2
|
|
|
3
3
|
from netbox.views import generic
|
|
4
4
|
from utilities.views import ViewTab, register_model_view
|
|
5
|
+
from tenancy.views import ObjectContactsView
|
|
5
6
|
|
|
6
7
|
from netbox_dns.filtersets import ZoneFilterSet, RecordFilterSet
|
|
7
8
|
from netbox_dns.forms import (
|
|
@@ -19,18 +20,13 @@ from netbox_dns.tables import (
|
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
__all__ = (
|
|
22
|
-
"ZoneListView",
|
|
23
23
|
"ZoneView",
|
|
24
|
+
"ZoneListView",
|
|
24
25
|
"ZoneEditView",
|
|
25
26
|
"ZoneDeleteView",
|
|
26
27
|
"ZoneBulkImportView",
|
|
27
28
|
"ZoneBulkEditView",
|
|
28
29
|
"ZoneBulkDeleteView",
|
|
29
|
-
"ZoneRegistrationView",
|
|
30
|
-
"ZoneRecordListView",
|
|
31
|
-
"ZoneManagedRecordListView",
|
|
32
|
-
"ZoneRFC2317ChildZoneListView",
|
|
33
|
-
"ZoneChildZoneListView",
|
|
34
30
|
)
|
|
35
31
|
|
|
36
32
|
|
|
@@ -201,3 +197,8 @@ class ZoneChildZoneListView(generic.ObjectChildrenView):
|
|
|
201
197
|
|
|
202
198
|
def get_children(self, request, parent):
|
|
203
199
|
return parent.child_zones
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
@register_model_view(Zone, "contacts")
|
|
203
|
+
class ZoneContactsView(ObjectContactsView):
|
|
204
|
+
queryset = Zone.objects.all()
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from netbox.views import generic
|
|
2
2
|
|
|
3
|
+
from netbox_dns.models import ZoneTemplate
|
|
3
4
|
from netbox_dns.filtersets import ZoneTemplateFilterSet
|
|
4
5
|
from netbox_dns.forms import (
|
|
5
6
|
ZoneTemplateImportForm,
|
|
@@ -7,13 +8,12 @@ from netbox_dns.forms import (
|
|
|
7
8
|
ZoneTemplateFilterForm,
|
|
8
9
|
ZoneTemplateBulkEditForm,
|
|
9
10
|
)
|
|
10
|
-
from netbox_dns.models import ZoneTemplate
|
|
11
11
|
from netbox_dns.tables import ZoneTemplateTable, RecordTemplateDisplayTable
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
__all__ = (
|
|
15
|
-
"ZoneTemplateListView",
|
|
16
15
|
"ZoneTemplateView",
|
|
16
|
+
"ZoneTemplateListView",
|
|
17
17
|
"ZoneTemplateEditView",
|
|
18
18
|
"ZoneTemplateDeleteView",
|
|
19
19
|
"ZoneTemplateBulkImportView",
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: netbox-plugin-dns
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: NetBox DNS is a NetBox plugin for managing DNS data.
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Author-email: Peter Eckel <pete@netbox-dns.org>
|
|
6
|
+
Project-URL: Homepage, https://github.com/peteeckel/netbox-plugin-dns
|
|
7
|
+
Project-URL: Documentation, https://github.com/peteeckel/netbox-plugin-dns/blob/main/docs/using_netbox_dns.md
|
|
8
|
+
Project-URL: Repository, https://github.com/peteeckel/netbox-plugin-dns
|
|
9
|
+
Project-URL: Issues, https://github.com/peteeckel/netbox-plugin-dns/issues
|
|
7
10
|
Keywords: netbox,netbox-plugin,dns
|
|
8
|
-
Author: Peter Eckel
|
|
9
|
-
Author-email: pete@netbox-dns.org
|
|
10
|
-
Requires-Python: >=3.10,<4.0
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
-
|
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
-
Requires-Dist: dnspython (>=2.6.1,<3.0.0)
|
|
18
|
-
Project-URL: Repository, https://github.com/peteeckel/netbox-plugin-dns
|
|
12
|
+
Requires-Python: >=3.10
|
|
19
13
|
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: dnspython
|
|
20
16
|
|
|
21
17
|
# NetBox DNS
|
|
22
18
|
The NetBox DNS plugin enables NetBox to manage operational DNS data such as name servers, zones, records and views, as well as registration data for domains. It can automate tasks like creating PTR records, generating zone serial numbers, NS and SOA records, as well as validate names and values values for resource records to ensure zone data is consistent, up-to-date and compliant with to the relevant RFCs.
|
|
@@ -34,6 +30,11 @@ The NetBox DNS plugin enables NetBox to manage operational DNS data such as name
|
|
|
34
30
|
<a href="https://pepy.tech/project/netbox-plugin-dns"><img alt="Downloads/Month" src="https://static.pepy.tech/badge/netbox-plugin-dns/week"></a>
|
|
35
31
|
</div>
|
|
36
32
|
|
|
33
|
+
> [!WARNING]
|
|
34
|
+
> **As a result of some issues with NetBox Branching still under investigation, NetBox DNS is currently not compatible with the new NetBox Branching plugin.**
|
|
35
|
+
> This affects multiple aspects of the branching functionality, and currently (netboxlabs-branching-plugin version 0.4.0) there is no workaround. Do not try to use NetBox Branching together with NetBox DNS until these issues are resolved.
|
|
36
|
+
> This warning will be updated as soon as the situation is resolved.
|
|
37
|
+
|
|
37
38
|
## Objectives
|
|
38
39
|
NetBox DNS is designed to be the 'DNS Source of Truth' analogous to NetBox being the 'Network Source of Truth'.
|
|
39
40
|
|
|
@@ -111,4 +112,3 @@ For further information, please refer to the full documentation: [Using NetBox D
|
|
|
111
112
|
## License
|
|
112
113
|
|
|
113
114
|
MIT
|
|
114
|
-
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
netbox_dns/__init__.py,sha256=
|
|
2
|
-
netbox_dns/
|
|
3
|
-
netbox_dns/
|
|
1
|
+
netbox_dns/__init__.py,sha256=6S7LL8UGPVpKSir7BCdth9yKtWtyRVKikVjQY58W62E,1956
|
|
2
|
+
netbox_dns/apps.py,sha256=JCW5eS-AQBUubDJve1DjP-IRFKTFGQh1NLGWzJpC5MI,151
|
|
3
|
+
netbox_dns/navigation.py,sha256=YAEfmqoNRSXLSf-n3HLImDXbAfzcRdCh57BVnofmWPQ,6046
|
|
4
|
+
netbox_dns/template_content.py,sha256=YzE-ZJlERhFybrUKJrmNwHk8_8RPNexkV66x62Sbzic,3718
|
|
5
|
+
netbox_dns/api/nested_serializers.py,sha256=zRIgWEtKIhvfxKOtxwFRfNeUQGWWNeuulfZ6oeFhe2w,3195
|
|
6
|
+
netbox_dns/api/serializers.py,sha256=bLbAjyIsj75S9wnQAGL-wYOkTlFS1Y7OsBObAPzNJxc,383
|
|
7
|
+
netbox_dns/api/urls.py,sha256=WXYJJvqJ25BvwyrmTY-0F6cJMrgEEdEcisGeMVWEeiY,826
|
|
8
|
+
netbox_dns/api/views.py,sha256=4B_mmezzONyWhEtwW_QpO8u5G3LE46mAmADbg4VD4gw,3795
|
|
4
9
|
netbox_dns/api/serializers_/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
netbox_dns/api/serializers_/contact.py,sha256=5fAdHfjBGIh4686tvgPejhW5Di46LNzIYVvAGeFDq0c,964
|
|
6
10
|
netbox_dns/api/serializers_/nameserver.py,sha256=PlpVsai24O73B-ZQ4wSaSC0_m_LCtQETDRSUYDb1xGw,1118
|
|
7
11
|
netbox_dns/api/serializers_/prefix.py,sha256=kZ1DjDly6VFZamXSxGa57YC6MfZZcI5S7jmGBkVB2_I,551
|
|
8
|
-
netbox_dns/api/serializers_/record.py,sha256=
|
|
12
|
+
netbox_dns/api/serializers_/record.py,sha256=62924HonaKflFXkTgFft_624BKEikAMkak1AKDYsFvk,2316
|
|
9
13
|
netbox_dns/api/serializers_/record_template.py,sha256=qh-g-_f6M-eU4GzN-l0nPxiNBpZyYBgib26HwfOMtUc,1466
|
|
10
14
|
netbox_dns/api/serializers_/registrar.py,sha256=xLIaeBJ5ckV1Jf-uyCTFcvsLlsRMlpDtIg6q79vXZic,842
|
|
11
|
-
netbox_dns/api/serializers_/
|
|
12
|
-
netbox_dns/api/serializers_/
|
|
13
|
-
netbox_dns/api/serializers_/
|
|
14
|
-
netbox_dns/api/
|
|
15
|
-
netbox_dns/api/views.py,sha256=kr_cXu-4sL6VaXzJqSJN0ajqetvuHrpdb0GONtTijkM,4887
|
|
16
|
-
netbox_dns/apps.py,sha256=JCW5eS-AQBUubDJve1DjP-IRFKTFGQh1NLGWzJpC5MI,151
|
|
15
|
+
netbox_dns/api/serializers_/registration_contact.py,sha256=3IGWW5xB9XEBGApCGZCZIxpCmy1Y5jQUbA4GzmtaCik,1024
|
|
16
|
+
netbox_dns/api/serializers_/view.py,sha256=_0fqdhvHU0scqc8ZNDSCcxaQDY-Auxu0Q9LLzlnrGqc,1756
|
|
17
|
+
netbox_dns/api/serializers_/zone.py,sha256=vQMKyC1Pcnvp7OjRnSZt-cMP5iae9HLuMts6_JyxrG4,4935
|
|
18
|
+
netbox_dns/api/serializers_/zone_template.py,sha256=itwcdMe8NxMbH95yXBJTQkzzMOWzOvzTOOHJWKfEFgg,3782
|
|
17
19
|
netbox_dns/choices/__init__.py,sha256=jOVs2VGV5SVADRlqVnrFeAy26i8BIeEAbGpiX7K8bL8,42
|
|
18
20
|
netbox_dns/choices/record.py,sha256=IYW_g1ZvuNX2ZlRLOkurcrdfWgcXNpi2gQzRfX5C0lY,1113
|
|
19
21
|
netbox_dns/choices/zone.py,sha256=u0zt03gTkeo_und0VxaTTCh3GIFv6UxtUIhoe3VJ00A,472
|
|
@@ -22,28 +24,28 @@ netbox_dns/fields/address.py,sha256=DJwc-z5Lg6US85gNIB_Chx7ahs1GYNswdhaXkLiK3jA,
|
|
|
22
24
|
netbox_dns/fields/ipam.py,sha256=wla-kBm77BpD0LNQhgRZS1RYbVois7WDqPpyQkUT02k,481
|
|
23
25
|
netbox_dns/fields/network.py,sha256=FgKEm5DAe_4D7Fubtj8B4SwfU3-Z9KV7kDIzRNpBBnQ,3682
|
|
24
26
|
netbox_dns/fields/rfc2317.py,sha256=24qNNLbI-SGlsKqGaLNaVk8EHFrju65YTET3O-8XgTc,2571
|
|
25
|
-
netbox_dns/filtersets/__init__.py,sha256=
|
|
26
|
-
netbox_dns/filtersets/contact.py,sha256=VnlNX6dyUlEbj7tz9cgRKSWQOdg7OqP32cD2IyD5hu8,1091
|
|
27
|
+
netbox_dns/filtersets/__init__.py,sha256=f8zJhpC3-TyK1OMgTaXmm1E6C2wUc1mNtoI6LOKkljQ,210
|
|
27
28
|
netbox_dns/filtersets/nameserver.py,sha256=I7RoIUcgXyIoMrhuS0dJr8uPi0AdNj6D3G6t2oSiQ7s,1147
|
|
28
29
|
netbox_dns/filtersets/record.py,sha256=Jt3RlI4MIfeY5xYkLse1y1rzmKCdmuk-CRAxxaNVYbY,3750
|
|
29
30
|
netbox_dns/filtersets/record_template.py,sha256=jGSjGFEnNSoxtUd7diV8wEhw8qZclz2dKLSqyVC7Djo,1548
|
|
30
31
|
netbox_dns/filtersets/registrar.py,sha256=Wh_l-IXRHnJhW7Pyokp3czQZISDKzXnWeSQKp512Drc,977
|
|
32
|
+
netbox_dns/filtersets/registration_contact.py,sha256=903sOcHPRCI0dVzqn1i0pn5VPr_4YpHPh5QE2-akR-Y,1139
|
|
31
33
|
netbox_dns/filtersets/view.py,sha256=sGUhmyr66GY2CVXOFX2g5evDt0nbU6XPPCwptvnicHQ,993
|
|
32
|
-
netbox_dns/filtersets/zone.py,sha256=
|
|
33
|
-
netbox_dns/filtersets/zone_template.py,sha256=
|
|
34
|
-
netbox_dns/forms/__init__.py,sha256=
|
|
35
|
-
netbox_dns/forms/contact.py,sha256=7BdDDqusswGolzrKpOdWvlvy_UPmm-_EN_F46fNnt9E,5332
|
|
34
|
+
netbox_dns/filtersets/zone.py,sha256=T6ZLAtfhZRhS5U3R6pYodhFbVr-Te8gm57aaMDHN8us,6774
|
|
35
|
+
netbox_dns/filtersets/zone_template.py,sha256=qWHgveEJdfr36rCuPBGvBuhwNRooFu0ud_wteisGlGc,3850
|
|
36
|
+
netbox_dns/forms/__init__.py,sha256=axENVF9vX9BtDKCNxrapRjye1NnygUg9BS0BBj6a0io,209
|
|
36
37
|
netbox_dns/forms/nameserver.py,sha256=LHomCHmFcASobaD3Z7yhAyA24h-LrYImVMz-EUXbwK4,2836
|
|
37
38
|
netbox_dns/forms/record.py,sha256=svBVAFy-egDEPLcRWkxNi_1bkabKmWgJ87pmdNt6dh4,7155
|
|
38
39
|
netbox_dns/forms/record_template.py,sha256=Q77p9sExJ8Xbl-Co2Px2R0At5O3naQJwx4pnino6i2o,5573
|
|
39
40
|
netbox_dns/forms/registrar.py,sha256=FMnvrcq62R3wNp_2ZUEk3v_PIav0KrWPATaJ7_9KFAo,3758
|
|
40
|
-
netbox_dns/forms/
|
|
41
|
-
netbox_dns/forms/
|
|
42
|
-
netbox_dns/forms/
|
|
43
|
-
netbox_dns/
|
|
44
|
-
netbox_dns/graphql/
|
|
45
|
-
netbox_dns/graphql/
|
|
46
|
-
netbox_dns/graphql/
|
|
41
|
+
netbox_dns/forms/registration_contact.py,sha256=WHpIRnwPD7nIDKi0-zRdv7tLUN2t_n3rmt_mZrqjfEk,5524
|
|
42
|
+
netbox_dns/forms/view.py,sha256=x0Q22BlkQL60XEyRcrdgl6cTI3plzB4u8pqmcwZiJ2c,9808
|
|
43
|
+
netbox_dns/forms/zone.py,sha256=6NI3uiI2bXIhzPM7CTxR4pbv198xmU-QHEizy16Qb-E,23601
|
|
44
|
+
netbox_dns/forms/zone_template.py,sha256=D0JgQE03uQ_vR6zHkS78a5PzUziNSu1ho_mk61JTRo4,8317
|
|
45
|
+
netbox_dns/graphql/__init__.py,sha256=jghYD6uOSAis6YyLbtI3YJGZfwPw1uL2FBRsHs1EhNk,514
|
|
46
|
+
netbox_dns/graphql/filters.py,sha256=fHCjFIwbPBJJMk2W7HI8LhrfFhCtQtCM9IE8ZMgVafc,1766
|
|
47
|
+
netbox_dns/graphql/schema.py,sha256=q9DQ_hfRB0e6Znq4-IS6UEeTOfMkZmrWkwxcAql1uOA,2270
|
|
48
|
+
netbox_dns/graphql/types.py,sha256=24m-qblJoauYzu5n1UDsw_IUvr_r3PRGO-VDt9aKQ3o,6686
|
|
47
49
|
netbox_dns/management/commands/cleanup_database.py,sha256=kfnyybudwKGigjJmrOwafPWSUasZr9jQsxN4eWAgMvY,5969
|
|
48
50
|
netbox_dns/management/commands/cleanup_rrset_ttl.py,sha256=UFRURLBcFeGHUS2lrYFv7UWIebjI72aG1EUQJt0XsXw,2046
|
|
49
51
|
netbox_dns/management/commands/rebuild_dnssync.py,sha256=56YGEsAO_NYCXRmuL9Ju_Ni3FLtMD0MO4ObZAAPefLk,617
|
|
@@ -56,7 +58,10 @@ netbox_dns/migrations/0003_default_view.py,sha256=NByVlAyiiK6WCfJ014BiFPkoNcHeqr
|
|
|
56
58
|
netbox_dns/migrations/0004_create_and_assign_default_view.py,sha256=npBFxWuJCZeMhbZLEH9C_sZcQZRaa3IOlyn4p_GULyk,627
|
|
57
59
|
netbox_dns/migrations/0005_alter_zone_view_not_null.py,sha256=vUfCFD-qeh5M1WCqtE1eYHXZwQVCcf841Z2-0CdcMRI,463
|
|
58
60
|
netbox_dns/migrations/0006_templating.py,sha256=7MOZ2bLwkjK1BQCBPBaFWJ-mS_JNrok1XUSh4rriq9Y,6271
|
|
59
|
-
netbox_dns/migrations/
|
|
61
|
+
netbox_dns/migrations/0007_alter_ordering_options.py,sha256=IDGgxEWOaSs9_WKJK1C_5_6M1uJtYscn3Vco0UHAol8,639
|
|
62
|
+
netbox_dns/migrations/0008_view_prefixes.py,sha256=LInzrOXTflGd2WUmyXZtjEegg7S_KBNvrbdo3jE28fE,472
|
|
63
|
+
netbox_dns/migrations/0009_rename_contact_registrationcontact.py,sha256=-8IknnaIZxoBaf5uSQj8rVe0SRvYsuhcJ0_jzRh4EUk,1314
|
|
64
|
+
netbox_dns/migrations/0010_view_ip_address_filter.py,sha256=uARQADJB7u1vpx0TBlOfGTkqMCF4xZclMhITESHm-ok,420
|
|
60
65
|
netbox_dns/migrations/0020_netbox_3_4.py,sha256=UMcHdn8ZAuQjUaM_3rEGpktYrM0TuvhccD7Jt7WQnPs,1271
|
|
61
66
|
netbox_dns/migrations/0021_record_ip_address.py,sha256=EqdhWXmq7aiK4X79xTRUZng3zFncCl-8JoO65HqlJKw,3244
|
|
62
67
|
netbox_dns/migrations/0022_search.py,sha256=KW1ffEZ4-0dppGQ_KD1EN7iw8eQJOnDco-xfJFRZqKQ,172
|
|
@@ -69,41 +74,41 @@ netbox_dns/migrations/0028_rfc2317_fields.py,sha256=D8r43xxBjYXiL6ycmX8RY5_WG7tR
|
|
|
69
74
|
netbox_dns/migrations/0029_record_fqdn.py,sha256=UAAU38ekKQyiYDOJlcrz6Qbk4bqZfSHZyAHUZFFQrOw,808
|
|
70
75
|
netbox_dns/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
71
76
|
netbox_dns/mixins/__init__.py,sha256=LxTEfpod_RHCyMtnzDljv0_dwqp2z3Q6tqbXW8LTGD8,35
|
|
72
|
-
netbox_dns/mixins/object_modification.py,sha256=
|
|
73
|
-
netbox_dns/models/__init__.py,sha256=
|
|
74
|
-
netbox_dns/models/
|
|
75
|
-
netbox_dns/models/
|
|
76
|
-
netbox_dns/models/
|
|
77
|
-
netbox_dns/models/
|
|
78
|
-
netbox_dns/models/
|
|
79
|
-
netbox_dns/models/view.py,sha256=
|
|
80
|
-
netbox_dns/models/zone.py,sha256=
|
|
81
|
-
netbox_dns/models/zone_template.py,sha256=
|
|
82
|
-
netbox_dns/navigation.py,sha256=EITDZkbpu4KCC9u4Noj7OORWnkL3EYT2RIRvYlTw34Q,5961
|
|
77
|
+
netbox_dns/mixins/object_modification.py,sha256=biLbHOkayEdKPu-wxuYu7ZIXhB3cfv9k07asrQCtFb0,1658
|
|
78
|
+
netbox_dns/models/__init__.py,sha256=5Ns9RaemTe5L0L3c6a38RxembWhV-sX9cqfjl05aPQw,313
|
|
79
|
+
netbox_dns/models/nameserver.py,sha256=gvQRcTOVHRiX_rcBZfjNV6rTRKNJtA5HxgggYEgITPA,3296
|
|
80
|
+
netbox_dns/models/record.py,sha256=RDdGAZVKR--ix-r04bV32nMhKJnG_aUaFgMyt-SbRHo,27222
|
|
81
|
+
netbox_dns/models/record_template.py,sha256=pyzrtk-VFEHf9hrWTW6pwPKo2AH5cEKR0XI4ZG9nVHk,4753
|
|
82
|
+
netbox_dns/models/registrar.py,sha256=zCSVa6NSN9sRJzvvuSUNK4LcHBbe0OvEiTbIcrrdk9k,1671
|
|
83
|
+
netbox_dns/models/registration_contact.py,sha256=v5BxTtGPrR22TyqIQkgaSH26ozhzIVrkU-PuezHki-g,3217
|
|
84
|
+
netbox_dns/models/view.py,sha256=skVcXB1krvSn1-gmvnNnj5o76AsTYPinaIkSXNbBOAg,4396
|
|
85
|
+
netbox_dns/models/zone.py,sha256=Mo63r1OLbbya4LGZbomIqjvibwojEwqEdV0I7umnK48,29780
|
|
86
|
+
netbox_dns/models/zone_template.py,sha256=LvNqUi_Ucj3zHb9b778kFM2EZ1s9aXp980Et5g7lvTY,3889
|
|
83
87
|
netbox_dns/signals/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
|
-
netbox_dns/signals/ipam_dnssync.py,sha256=
|
|
85
|
-
netbox_dns/tables/__init__.py,sha256=
|
|
86
|
-
netbox_dns/tables/contact.py,sha256=sPs7d1ZhVC5dOS37dPYFqebNd7WGvsV_eYzX_TMcbzY,804
|
|
88
|
+
netbox_dns/signals/ipam_dnssync.py,sha256=GXsKk2c9KlNb8b6Sb58sPZ-nDFKLkL0cN7TEgc08GGU,7976
|
|
89
|
+
netbox_dns/tables/__init__.py,sha256=axENVF9vX9BtDKCNxrapRjye1NnygUg9BS0BBj6a0io,209
|
|
87
90
|
netbox_dns/tables/ipam_dnssync.py,sha256=7gxf6nXn2zgpnpCr5E5qebXv7QCzrgIqfSzyka53USU,272
|
|
88
|
-
netbox_dns/tables/nameserver.py,sha256=
|
|
89
|
-
netbox_dns/tables/record.py,sha256=
|
|
90
|
-
netbox_dns/tables/record_template.py,sha256=
|
|
91
|
-
netbox_dns/tables/registrar.py,sha256=
|
|
92
|
-
netbox_dns/tables/
|
|
93
|
-
netbox_dns/tables/
|
|
94
|
-
netbox_dns/tables/
|
|
95
|
-
netbox_dns/
|
|
96
|
-
netbox_dns/templates/netbox_dns/contact.html,sha256=fMHAQyLXIxohKoCTxFEnKetl9UVXeQgjasfpv_JONaw,2855
|
|
91
|
+
netbox_dns/tables/nameserver.py,sha256=GGi8x8QXbrFoFjxueL1zd5L-hDZwXGs1PcLZ2DyI4JI,652
|
|
92
|
+
netbox_dns/tables/record.py,sha256=QTK-AQMwEG7pjR3fkFo6E45FzGsdCKLpDZLzudRiJRQ,3739
|
|
93
|
+
netbox_dns/tables/record_template.py,sha256=CcXvyGycwp16ZwQFdmdt5W5Tlt__i1sBi3mixVvht3E,1763
|
|
94
|
+
netbox_dns/tables/registrar.py,sha256=Vtl3RKjhWzUDv4wAfjbNV1prZHf6SyGYmSS0XKccI9g,640
|
|
95
|
+
netbox_dns/tables/registration_contact.py,sha256=xUszp7_vbZ79KHewBZkSyxNcWE3W3o8O6Pp0N-8VDXg,838
|
|
96
|
+
netbox_dns/tables/view.py,sha256=u2XP66nrv1cmeBxQL9VM2c1wtoM_quZFB0B8O5-3IEE,1058
|
|
97
|
+
netbox_dns/tables/zone.py,sha256=bVi4sLFdw61kfIiRJnoJOtgkVGGlTZcogw-cAzFtAEQ,1507
|
|
98
|
+
netbox_dns/tables/zone_template.py,sha256=gezSSpbNkiHnstNq470OsTmkl13foFXTGx-NH8W87Hw,1204
|
|
97
99
|
netbox_dns/templates/netbox_dns/nameserver.html,sha256=DpTdetQVV_jKThDbi62LvbhiCay-1QxR-yiJEiPFm4w,1554
|
|
98
|
-
netbox_dns/templates/netbox_dns/record/managed.html,sha256=G6LPG1koUGuzUiwYdv1okdVa4sKaofiQegDBnsFL0kA,89
|
|
99
|
-
netbox_dns/templates/netbox_dns/record/related.html,sha256=Aqor8uGcuHQTHjlX-Xmni2Yp4N7lOBrMOqQiszrQOC0,742
|
|
100
100
|
netbox_dns/templates/netbox_dns/record.html,sha256=o3z_D6Fqqn7nx1IwPXKQ75ZaPhU6kae0WpaWa3UMcxQ,5211
|
|
101
101
|
netbox_dns/templates/netbox_dns/recordtemplate.html,sha256=9tkXtKqa5p3LdOU9REm99WSFwGJaH8OczpIqXZuXMcg,3099
|
|
102
102
|
netbox_dns/templates/netbox_dns/registrar.html,sha256=O5veGmW59Pf5yN25ihPLvRIkA2P7xmSGv0G3NrRG8vI,2152
|
|
103
|
+
netbox_dns/templates/netbox_dns/registrationcontact.html,sha256=4I3I7G38bIOVifoqgGMyPTAhD0UaD8ZCnXK7Fu9K9VQ,2868
|
|
104
|
+
netbox_dns/templates/netbox_dns/view.html,sha256=UmUTudA8CsTIInEXaM4ocRDRPlcZ4pTQfcolfPe_jIQ,3165
|
|
105
|
+
netbox_dns/templates/netbox_dns/zone.html,sha256=zPi1sLFnya-ytx8-Pcf_ujc1sKllCRuz48x2E-S1HSo,6285
|
|
106
|
+
netbox_dns/templates/netbox_dns/zonetemplate.html,sha256=qjUWqrg4uDaIFt9-g0OBxTi86i_ctf2Ps4qHh11djQE,3081
|
|
107
|
+
netbox_dns/templates/netbox_dns/record/managed.html,sha256=G6LPG1koUGuzUiwYdv1okdVa4sKaofiQegDBnsFL0kA,89
|
|
108
|
+
netbox_dns/templates/netbox_dns/record/related.html,sha256=Aqor8uGcuHQTHjlX-Xmni2Yp4N7lOBrMOqQiszrQOC0,742
|
|
103
109
|
netbox_dns/templates/netbox_dns/view/button.html,sha256=oXKNyPtY8XIu2sxtZWpFRXKXv862407ESyUQ4YsWCGE,292
|
|
104
110
|
netbox_dns/templates/netbox_dns/view/prefix.html,sha256=HD8f4mnbzFOXDj3Y_yq8yEeDpz_yFud8ZMpqbxzCEnA,1445
|
|
105
111
|
netbox_dns/templates/netbox_dns/view/related.html,sha256=W9Ie2aOsFkWyYtBnZn38seQDBmyJkV9dqFDG-Dq3yMk,736
|
|
106
|
-
netbox_dns/templates/netbox_dns/view.html,sha256=zqf42FGdNudoIIWCaCe9bmP_VOZDbv3GjS-qJNMKPVY,2479
|
|
107
112
|
netbox_dns/templates/netbox_dns/zone/base.html,sha256=n_E4aVYdGeZZl-ARE8sb4DgAAgPs92X1UEFepX3xIlM,495
|
|
108
113
|
netbox_dns/templates/netbox_dns/zone/child.html,sha256=kH56PJFBGCjiRdIh7zCtClnZdfOChqN_sYslsyoz5gU,2147
|
|
109
114
|
netbox_dns/templates/netbox_dns/zone/child_zone.html,sha256=b9CSGWEfWT7hLQ80gApMnu7mXM8w2LT-3UaOYe6HIRQ,510
|
|
@@ -111,34 +116,33 @@ netbox_dns/templates/netbox_dns/zone/managed_record.html,sha256=LOchMAJyfMZIICE6
|
|
|
111
116
|
netbox_dns/templates/netbox_dns/zone/record.html,sha256=tu5RFm2eYJ3fjeUxZYDJqJ9qK8tGslXl1iGs60DlRyM,2194
|
|
112
117
|
netbox_dns/templates/netbox_dns/zone/registration.html,sha256=de2Kph-G8Gv5LD_Wf294SLfO0UKPS9NmHeQYRfJf-Ck,1151
|
|
113
118
|
netbox_dns/templates/netbox_dns/zone/rfc2317_child_zone.html,sha256=rWlmb3zRQbLYQ_1dsa0twwu6y1dRj2tfFVEERH07p-s,517
|
|
114
|
-
netbox_dns/
|
|
115
|
-
netbox_dns/
|
|
116
|
-
netbox_dns/urls/
|
|
117
|
-
netbox_dns/urls/
|
|
118
|
-
netbox_dns/urls/
|
|
119
|
-
netbox_dns/urls/
|
|
120
|
-
netbox_dns/urls/
|
|
121
|
-
netbox_dns/urls/
|
|
122
|
-
netbox_dns/urls/
|
|
123
|
-
netbox_dns/urls/zone.py,sha256=rmB1BkzmWNG06ILUf-39Aj6-SBFkwQouyixMQiamqPc,2005
|
|
124
|
-
netbox_dns/urls/zone_template.py,sha256=w3Gu8qfLCWyHofeLkGZd1HpYSlcslomVlBQJZyqh8kk,1690
|
|
119
|
+
netbox_dns/urls/__init__.py,sha256=AhZrz9E8JkZU_uRYYa3hFueAocsT-UYfOMZOfvosvR4,647
|
|
120
|
+
netbox_dns/urls/nameserver.py,sha256=-arhTF-q_h6IqcZ-CHD4GbBNCxltwRP-RoLY34KWITA,1294
|
|
121
|
+
netbox_dns/urls/record.py,sha256=5HnwrsQKbB3jcCfUSwrArItTYsKBTQaa8WiRt7SBniI,1136
|
|
122
|
+
netbox_dns/urls/record_template.py,sha256=kRAaienuN89WrOZGEcH1eZtiVlNsxsbZ1sjxWGxLKa0,1514
|
|
123
|
+
netbox_dns/urls/registrar.py,sha256=qhf_Qh4CYKmKYNoFIkuJxVtq1V0PMDYmqXq7olB0zfg,1211
|
|
124
|
+
netbox_dns/urls/registration_contact.py,sha256=hS9xzBN1jsHkGJzTYEpoCFZdXSbQx0yJpelB5SK4xq8,1718
|
|
125
|
+
netbox_dns/urls/view.py,sha256=pz-0iP_vGFUvrzIeOjq5Ebkmnaci8c4_5b2L0gYZvUE,1088
|
|
126
|
+
netbox_dns/urls/zone.py,sha256=EzZ_U5v9NfWB5TVAc0i35EI-SVyXl6KrI844sMT0x5Q,937
|
|
127
|
+
netbox_dns/urls/zone_template.py,sha256=nGrIaincQxCabUsLJL9JODoeTToMRSPllm7kuiPzeII,1378
|
|
125
128
|
netbox_dns/utilities/__init__.py,sha256=mmR0JdH1DJVhUKesnO3CZFj0Rw_wrsMPoYTpOOKHl9I,55
|
|
126
129
|
netbox_dns/utilities/conversions.py,sha256=NS37SoMqXc13wNWRkKnLfyQbVi6QKD33fu5ovTKRo74,1979
|
|
127
|
-
netbox_dns/utilities/ipam_dnssync.py,sha256=
|
|
130
|
+
netbox_dns/utilities/ipam_dnssync.py,sha256=b4up7GXuAc4ba-cHmS56vWFPEmYVSsQG_Dd-3pHndrI,9379
|
|
128
131
|
netbox_dns/validators/__init__.py,sha256=Mr8TvmcJTa8Pubj8TzbFBKfbHhEmGcr5JdQvczEJ39A,72
|
|
129
132
|
netbox_dns/validators/dns_name.py,sha256=4JojiP6pb1Z1m_PmDv4g65Ckhg5rQkVqm8JAwHW28nA,3432
|
|
130
133
|
netbox_dns/validators/dns_value.py,sha256=y2Zga4hmywqDrTBXcMC-sWaFbw4eoY8pySq7cWnMP8Y,2822
|
|
131
134
|
netbox_dns/validators/rfc2317.py,sha256=ivylEiNKlmX2x41rwqDrFkD5CFf9FtpNEfsKHX_prbE,585
|
|
132
|
-
netbox_dns/views/__init__.py,sha256=
|
|
133
|
-
netbox_dns/views/
|
|
134
|
-
netbox_dns/views/
|
|
135
|
-
netbox_dns/views/
|
|
136
|
-
netbox_dns/views/
|
|
137
|
-
netbox_dns/views/
|
|
138
|
-
netbox_dns/views/view.py,sha256
|
|
139
|
-
netbox_dns/views/zone.py,sha256=
|
|
140
|
-
netbox_dns/views/zone_template.py,sha256=
|
|
141
|
-
netbox_plugin_dns-1.1.
|
|
142
|
-
netbox_plugin_dns-1.1.
|
|
143
|
-
netbox_plugin_dns-1.1.
|
|
144
|
-
netbox_plugin_dns-1.1.
|
|
135
|
+
netbox_dns/views/__init__.py,sha256=axENVF9vX9BtDKCNxrapRjye1NnygUg9BS0BBj6a0io,209
|
|
136
|
+
netbox_dns/views/nameserver.py,sha256=CeZsKTciW85LFX9tMaGkiW1DUDT77jghtHnPCHFTAP8,3405
|
|
137
|
+
netbox_dns/views/record.py,sha256=AJVUOMGI-pQCADVeU5Yfw_0_QTNVso06eB85ZVmgbBY,4816
|
|
138
|
+
netbox_dns/views/record_template.py,sha256=amYQc8dEwjI8msTSukcq4FwVqKF9eHSlaMBOFkHe0CE,2510
|
|
139
|
+
netbox_dns/views/registrar.py,sha256=ICaX9weZugWJXyRBjpHM5vD3Yz0hnhKKgb5e5DZf6zI,2295
|
|
140
|
+
netbox_dns/views/registration_contact.py,sha256=Yg4gTldQQPfAFgjD7vultw3OmcovWZtiNsUPyT22PiQ,2972
|
|
141
|
+
netbox_dns/views/view.py,sha256=-qdpEVrAI_fquZa-_jW2FvNXmCt3yRHIrkfgKKi01hc,2899
|
|
142
|
+
netbox_dns/views/zone.py,sha256=Na286tp_XcnT-4FIgXsvh1wPByir0RtBil0B2JhfuZE,5495
|
|
143
|
+
netbox_dns/views/zone_template.py,sha256=UaPEReBFoJP1k7MC8jS-iT3KQtJqSFu67jjCRiTCH4c,2118
|
|
144
|
+
netbox_plugin_dns-1.1.2.dist-info/LICENSE,sha256=I3tDu11bZfhFm3EkV4zOD5TmWgLjnUNLEFwrdjniZYs,1112
|
|
145
|
+
netbox_plugin_dns-1.1.2.dist-info/METADATA,sha256=cSzLVUftq3LnCskiVNmYcpuHYqsNUrpzUNp0lIOQ50k,7129
|
|
146
|
+
netbox_plugin_dns-1.1.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
147
|
+
netbox_plugin_dns-1.1.2.dist-info/top_level.txt,sha256=sA1Rwl1mRKvMC6XHe2ylZ1GF-Q1NGd08XedK9Y4xZc4,11
|
|
148
|
+
netbox_plugin_dns-1.1.2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
netbox_dns
|
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/views/contact.py
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
from django.db.models import Q
|
|
2
|
-
|
|
3
|
-
from netbox.views import generic
|
|
4
|
-
|
|
5
|
-
from utilities.views import ViewTab, register_model_view
|
|
6
|
-
|
|
7
|
-
from netbox_dns.models import Contact, Zone
|
|
8
|
-
from netbox_dns.filtersets import ContactFilterSet, ZoneFilterSet
|
|
9
|
-
from netbox_dns.forms import (
|
|
10
|
-
ContactForm,
|
|
11
|
-
ContactFilterForm,
|
|
12
|
-
ContactImportForm,
|
|
13
|
-
ContactBulkEditForm,
|
|
14
|
-
)
|
|
15
|
-
from netbox_dns.tables import ContactTable, ZoneTable
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
__all__ = (
|
|
19
|
-
"ContactView",
|
|
20
|
-
"ContactEditView",
|
|
21
|
-
"ContactListView",
|
|
22
|
-
"ContactDeleteView",
|
|
23
|
-
"ContactBulkImportView",
|
|
24
|
-
"ContactBulkEditView",
|
|
25
|
-
"ContactBulkDeleteView",
|
|
26
|
-
"ContactZoneListView",
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class ContactView(generic.ObjectView):
|
|
31
|
-
queryset = Contact.objects.all()
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class ContactListView(generic.ObjectListView):
|
|
35
|
-
queryset = Contact.objects.all()
|
|
36
|
-
table = ContactTable
|
|
37
|
-
filterset = ContactFilterSet
|
|
38
|
-
filterset_form = ContactFilterForm
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class ContactEditView(generic.ObjectEditView):
|
|
42
|
-
queryset = Contact.objects.all()
|
|
43
|
-
form = ContactForm
|
|
44
|
-
default_return_url = "plugins:netbox_dns:contact_list"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
class ContactDeleteView(generic.ObjectDeleteView):
|
|
48
|
-
queryset = Contact.objects.all()
|
|
49
|
-
default_return_url = "plugins:netbox_dns:contact_list"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
class ContactBulkImportView(generic.BulkImportView):
|
|
53
|
-
queryset = Contact.objects.all()
|
|
54
|
-
model_form = ContactImportForm
|
|
55
|
-
table = ContactTable
|
|
56
|
-
default_return_url = "plugins:netbox_dns:contact_list"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
class ContactBulkEditView(generic.BulkEditView):
|
|
60
|
-
queryset = Contact.objects.all()
|
|
61
|
-
filterset = ContactFilterSet
|
|
62
|
-
table = ContactTable
|
|
63
|
-
form = ContactBulkEditForm
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
class ContactBulkDeleteView(generic.BulkDeleteView):
|
|
67
|
-
queryset = Contact.objects.all()
|
|
68
|
-
table = ContactTable
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
@register_model_view(Contact, "zones")
|
|
72
|
-
class ContactZoneListView(generic.ObjectChildrenView):
|
|
73
|
-
queryset = Contact.objects.all().prefetch_related(
|
|
74
|
-
"zone_set", "admin_c_zones", "tech_c_zones", "billing_c_zones"
|
|
75
|
-
)
|
|
76
|
-
child_model = Zone
|
|
77
|
-
table = ZoneTable
|
|
78
|
-
filterset = ZoneFilterSet
|
|
79
|
-
template_name = "netbox_dns/zone/child.html"
|
|
80
|
-
hide_if_empty = True
|
|
81
|
-
|
|
82
|
-
tab = ViewTab(
|
|
83
|
-
label="Zones",
|
|
84
|
-
permission="netbox_dns.view_zone",
|
|
85
|
-
badge=lambda obj: len(obj.zones),
|
|
86
|
-
hide_if_empty=True,
|
|
87
|
-
)
|
|
88
|
-
|
|
89
|
-
def get_children(self, request, parent):
|
|
90
|
-
return Zone.objects.filter(
|
|
91
|
-
Q(registrant=parent)
|
|
92
|
-
| Q(admin_c=parent)
|
|
93
|
-
| Q(tech_c=parent)
|
|
94
|
-
| Q(billing_c=parent)
|
|
95
|
-
)
|
|
File without changes
|