netbox-plugin-dns 1.2.7b2__py3-none-any.whl → 1.3b1__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.

Files changed (73) hide show
  1. netbox_dns/__init__.py +55 -29
  2. netbox_dns/api/field_serializers.py +25 -0
  3. netbox_dns/api/nested_serializers.py +19 -1
  4. netbox_dns/api/serializers_/dnssec_key_template.py +13 -0
  5. netbox_dns/api/serializers_/dnssec_policy.py +30 -0
  6. netbox_dns/api/serializers_/record.py +2 -0
  7. netbox_dns/api/serializers_/record_template.py +2 -0
  8. netbox_dns/api/serializers_/zone.py +10 -1
  9. netbox_dns/choices/dnssec_key_template.py +4 -4
  10. netbox_dns/choices/dnssec_policy.py +2 -2
  11. netbox_dns/choices/record.py +64 -19
  12. netbox_dns/choices/utilities.py +4 -26
  13. netbox_dns/choices/zone.py +96 -1
  14. netbox_dns/fields/choice_array.py +13 -0
  15. netbox_dns/fields/timeperiod.py +15 -13
  16. netbox_dns/filtersets/dnssec_policy.py +25 -1
  17. netbox_dns/filtersets/zone.py +7 -2
  18. netbox_dns/filtersets/zone_template.py +2 -2
  19. netbox_dns/forms/dnssec_key_template.py +2 -1
  20. netbox_dns/forms/dnssec_policy.py +32 -2
  21. netbox_dns/forms/nameserver.py +2 -0
  22. netbox_dns/forms/record_template.py +1 -0
  23. netbox_dns/forms/zone.py +78 -15
  24. netbox_dns/forms/zone_template.py +9 -0
  25. netbox_dns/graphql/enums.py +41 -0
  26. netbox_dns/graphql/filter_lookups.py +13 -0
  27. netbox_dns/graphql/filters/__init__.py +12 -0
  28. netbox_dns/graphql/filters/dnssec_key_template.py +63 -0
  29. netbox_dns/graphql/filters/dnssec_policy.py +123 -0
  30. netbox_dns/graphql/filters/nameserver.py +32 -0
  31. netbox_dns/graphql/filters/record.py +89 -0
  32. netbox_dns/graphql/filters/record_template.py +55 -0
  33. netbox_dns/graphql/filters/registrar.py +30 -0
  34. netbox_dns/graphql/filters/registration_contact.py +27 -0
  35. netbox_dns/graphql/filters/view.py +28 -0
  36. netbox_dns/graphql/filters/zone.py +146 -0
  37. netbox_dns/graphql/filters/zone_template.py +97 -0
  38. netbox_dns/locale/de/LC_MESSAGES/django.mo +0 -0
  39. netbox_dns/locale/fr/LC_MESSAGES/django.mo +0 -0
  40. netbox_dns/migrations/0018_zone_domain_status_zone_expiration_date.py +23 -0
  41. netbox_dns/models/dnssec_key_template.py +0 -5
  42. netbox_dns/models/dnssec_policy.py +5 -8
  43. netbox_dns/models/nameserver.py +0 -5
  44. netbox_dns/models/record.py +4 -6
  45. netbox_dns/models/record_template.py +0 -5
  46. netbox_dns/models/registrar.py +0 -5
  47. netbox_dns/models/registration_contact.py +0 -5
  48. netbox_dns/models/view.py +0 -5
  49. netbox_dns/models/zone.py +44 -7
  50. netbox_dns/models/zone_template.py +1 -6
  51. netbox_dns/tables/zone.py +6 -1
  52. netbox_dns/template_content.py +2 -1
  53. netbox_dns/templates/netbox_dns/zone/registration.html +19 -0
  54. netbox_dns/urls.py +7 -0
  55. netbox_dns/utilities/conversions.py +13 -0
  56. netbox_dns/validators/dns_value.py +3 -0
  57. netbox_dns/validators/dnssec.py +10 -8
  58. netbox_dns/views/dnssec_key_template.py +0 -9
  59. netbox_dns/views/dnssec_policy.py +3 -10
  60. netbox_dns/views/nameserver.py +0 -9
  61. netbox_dns/views/record.py +0 -9
  62. netbox_dns/views/record_template.py +0 -3
  63. netbox_dns/views/registrar.py +0 -3
  64. netbox_dns/views/registration_contact.py +0 -3
  65. netbox_dns/views/view.py +0 -9
  66. netbox_dns/views/zone.py +11 -11
  67. netbox_dns/views/zone_template.py +0 -4
  68. {netbox_plugin_dns-1.2.7b2.dist-info → netbox_plugin_dns-1.3b1.dist-info}/METADATA +5 -3
  69. {netbox_plugin_dns-1.2.7b2.dist-info → netbox_plugin_dns-1.3b1.dist-info}/RECORD +72 -58
  70. {netbox_plugin_dns-1.2.7b2.dist-info → netbox_plugin_dns-1.3b1.dist-info}/WHEEL +1 -1
  71. netbox_dns/graphql/filters.py +0 -88
  72. {netbox_plugin_dns-1.2.7b2.dist-info → netbox_plugin_dns-1.3b1.dist-info/licenses}/LICENSE +0 -0
  73. {netbox_plugin_dns-1.2.7b2.dist-info → netbox_plugin_dns-1.3b1.dist-info}/top_level.txt +0 -0
@@ -1,88 +0,0 @@
1
- import strawberry_django
2
-
3
- from netbox.graphql.filter_mixins import autotype_decorator, BaseFilterMixin
4
-
5
- from netbox_dns.models import (
6
- NameServer,
7
- View,
8
- Zone,
9
- Record,
10
- DNSSECKeyTemplate,
11
- DNSSECPolicy,
12
- RegistrationContact,
13
- Registrar,
14
- ZoneTemplate,
15
- RecordTemplate,
16
- )
17
- from netbox_dns.filtersets import (
18
- NameServerFilterSet,
19
- ViewFilterSet,
20
- ZoneFilterSet,
21
- RecordFilterSet,
22
- DNSSECKeyTemplateFilterSet,
23
- DNSSECPolicyFilterSet,
24
- RegistrationContactFilterSet,
25
- RegistrarFilterSet,
26
- ZoneTemplateFilterSet,
27
- RecordTemplateFilterSet,
28
- )
29
-
30
-
31
- @strawberry_django.filter(NameServer, lookups=True)
32
- @autotype_decorator(NameServerFilterSet)
33
- class NetBoxDNSNameServerFilter(BaseFilterMixin):
34
- pass
35
-
36
-
37
- @strawberry_django.filter(View, lookups=True)
38
- @autotype_decorator(ViewFilterSet)
39
- class NetBoxDNSViewFilter(BaseFilterMixin):
40
- pass
41
-
42
-
43
- @strawberry_django.filter(Zone, lookups=True)
44
- @autotype_decorator(ZoneFilterSet)
45
- class NetBoxDNSZoneFilter(BaseFilterMixin):
46
- rfc2317_prefix: str | None
47
-
48
-
49
- @strawberry_django.filter(Record, lookups=True)
50
- @autotype_decorator(RecordFilterSet)
51
- class NetBoxDNSRecordFilter(BaseFilterMixin):
52
- ip_address: str | None
53
-
54
-
55
- @strawberry_django.filter(DNSSECKeyTemplate, lookups=True)
56
- @autotype_decorator(DNSSECKeyTemplateFilterSet)
57
- class NetBoxDNSDNSSECKeyTemplateFilter(BaseFilterMixin):
58
- ip_address: str | None
59
-
60
-
61
- @strawberry_django.filter(DNSSECPolicy, lookups=True)
62
- @autotype_decorator(DNSSECPolicyFilterSet)
63
- class NetBoxDNSDNSSECPolicyFilter(BaseFilterMixin):
64
- ip_address: str | None
65
-
66
-
67
- @strawberry_django.filter(ZoneTemplate, lookups=True)
68
- @autotype_decorator(ZoneTemplateFilterSet)
69
- class NetBoxDNSZoneTemplateFilter(BaseFilterMixin):
70
- pass
71
-
72
-
73
- @strawberry_django.filter(RecordTemplate, lookups=True)
74
- @autotype_decorator(RecordTemplateFilterSet)
75
- class NetBoxDNSRecordTemplateFilter(BaseFilterMixin):
76
- pass
77
-
78
-
79
- @strawberry_django.filter(RegistrationContact, lookups=True)
80
- @autotype_decorator(RegistrationContactFilterSet)
81
- class NetBoxDNSRegistrationContactFilter(BaseFilterMixin):
82
- pass
83
-
84
-
85
- @strawberry_django.filter(Registrar, lookups=True)
86
- @autotype_decorator(RegistrarFilterSet)
87
- class NetBoxDNSRegistrarFilter(BaseFilterMixin):
88
- pass