netbox-plugin-dns 0.21.15__tar.gz → 0.21.16__tar.gz
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_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/PKG-INFO +1 -1
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/__init__.py +1 -1
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/signals/ipam_coupling.py +3 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/utilities/ipam_coupling.py +18 -1
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/pyproject.toml +1 -1
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/LICENSE +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/README.md +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/api/nested_serializers.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/api/serializers.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/api/urls.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/api/views.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/apps.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/fields/__init__.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/fields/address.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/fields/network.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/filters/__init__.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/filters/contact.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/filters/nameserver.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/filters/record.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/filters/registrar.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/filters/view.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/filters/zone.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/forms/__init__.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/forms/contact.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/forms/nameserver.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/forms/record.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/forms/registrar.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/forms/view.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/forms/zone.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/graphql/__init__.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/graphql/contact.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/graphql/nameserver.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/graphql/record.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/graphql/registrar.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/graphql/schema.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/graphql/view.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/graphql/zone.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/management/commands/cleanup_database.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/management/commands/setup_coupling.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/management/commands/update_soa.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0001_initial.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0001_squashed_netbox_dns_0_15.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0002_zone_default_ttl.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0003_soa_managed_records.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0004_create_ptr_for_a_aaaa_records.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0005_update_ns_records.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0006_zone_soa_serial_auto.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0007_alter_zone_soa_serial_auto.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0008_zone_status_names.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0009_netbox32.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0010_update_soa_records.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0011_add_view_model.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0012_adjust_zone_and_record.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0013_add_nameserver_zone_record_description.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0014_add_view_description.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0015_add_record_status.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0016_cleanup_ptr_records.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0017_alter_record_ttl.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0018_zone_arpa_network.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0019_update_ns_ttl.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0020_netbox_3_4.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0021_record_ip_address.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0022_search.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0023_alter_record_value.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0024_tenancy.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0025_ipam_coupling_cf.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0026_domain_registration.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0027_alter_registrar_iana_id.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/__init__.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/models/__init__.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/models/contact.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/models/nameserver.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/models/record.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/models/registrar.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/models/view.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/models/zone.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/navigation.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/signals/__init__.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/tables/__init__.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/tables/contact.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/tables/nameserver.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/tables/record.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/tables/registrar.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/tables/view.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/tables/zone.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/template_content.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/contact.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/nameserver.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/record/managed.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/record/related.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/record.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/registrar.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/related_dns_objects.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/view.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/zone/base.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/zone/child.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/zone/managed_record.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/zone/record.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/zone/registration.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/zone.html +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/urls.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/utilities/__init__.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/validators.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/views/__init__.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/views/contact.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/views/nameserver.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/views/record.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/views/registrar.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/views/view.py +0 -0
- {netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/views/zone.py +0 -0
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/utilities/ipam_coupling.py
RENAMED
|
@@ -3,6 +3,13 @@ from utilities.permissions import resolve_permission
|
|
|
3
3
|
|
|
4
4
|
from netbox_dns.models import Record, RecordTypeChoices, RecordStatusChoices
|
|
5
5
|
|
|
6
|
+
try:
|
|
7
|
+
# NetBox 3.5.0 - 3.5.7, 3.5.9+
|
|
8
|
+
from extras.plugins import get_plugin_config
|
|
9
|
+
except ImportError:
|
|
10
|
+
# NetBox 3.5.8
|
|
11
|
+
from extras.plugins.utils import get_plugin_config
|
|
12
|
+
|
|
6
13
|
|
|
7
14
|
class DNSPermissionDenied(Exception):
|
|
8
15
|
pass
|
|
@@ -27,9 +34,19 @@ def address_record_type(ip_address):
|
|
|
27
34
|
|
|
28
35
|
|
|
29
36
|
def address_record_status(ip_address):
|
|
37
|
+
ip_active_status_list = get_plugin_config(
|
|
38
|
+
"netbox_dns",
|
|
39
|
+
"ipam_coupling_ip_active_status_list",
|
|
40
|
+
(
|
|
41
|
+
IPAddressStatusChoices.STATUS_ACTIVE,
|
|
42
|
+
IPAddressStatusChoices.STATUS_DHCP,
|
|
43
|
+
IPAddressStatusChoices.STATUS_SLAAC,
|
|
44
|
+
),
|
|
45
|
+
)
|
|
46
|
+
|
|
30
47
|
return (
|
|
31
48
|
RecordStatusChoices.STATUS_ACTIVE
|
|
32
|
-
if ip_address.status
|
|
49
|
+
if ip_address.status in ip_active_status_list
|
|
33
50
|
else RecordStatusChoices.STATUS_INACTIVE
|
|
34
51
|
)
|
|
35
52
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "netbox-plugin-dns"
|
|
3
|
-
version = "0.21.
|
|
3
|
+
version = "0.21.16"
|
|
4
4
|
description = "NetBox DNS is a NetBox plugin for managing DNS data."
|
|
5
5
|
authors = ["Peter Eckel <pe-netbox-dns@hindenburgring.com>"]
|
|
6
6
|
homepage = "https://github.com/peteeckel/netbox-plugin-dns"
|
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/api/nested_serializers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/management/commands/update_soa.py
RENAMED
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0001_initial.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0009_netbox32.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0011_add_view_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0019_update_ns_ttl.py
RENAMED
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0020_netbox_3_4.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0022_search.py
RENAMED
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/migrations/0024_tenancy.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/contact.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/record.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/view.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{netbox_plugin_dns-0.21.15 → netbox_plugin_dns-0.21.16}/netbox_dns/templates/netbox_dns/zone.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|