netbox-plugin-dns 1.2.9__tar.gz → 1.3b2__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.

Files changed (198) hide show
  1. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/PKG-INFO +4 -3
  2. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/README.md +2 -1
  3. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/__init__.py +1 -1
  4. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/nested_serializers.py +54 -49
  5. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/dnssec_key_template.py +21 -13
  6. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/dnssec_policy.py +88 -40
  7. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/nameserver.py +21 -13
  8. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/record.py +45 -37
  9. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/record_template.py +21 -12
  10. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/registrar.py +14 -5
  11. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/registration_contact.py +13 -5
  12. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/view.py +28 -19
  13. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/zone.py +87 -63
  14. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/zone_template.py +40 -34
  15. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/choices/dnssec_key_template.py +4 -0
  16. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/dnssec_key_template.py +10 -4
  17. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/dnssec_policy.py +1 -0
  18. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/nameserver.py +9 -4
  19. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/record.py +14 -13
  20. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/record_template.py +13 -12
  21. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/registrar.py +1 -0
  22. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/registration_contact.py +1 -0
  23. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/view.py +10 -4
  24. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/zone.py +22 -21
  25. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/zone_template.py +10 -9
  26. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/dnssec_key_template.py +97 -46
  27. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/dnssec_policy.py +130 -110
  28. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/nameserver.py +71 -36
  29. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/record.py +96 -78
  30. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/record_template.py +87 -59
  31. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/registrar.py +55 -39
  32. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/registration_contact.py +64 -41
  33. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/view.py +98 -51
  34. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/zone.py +259 -250
  35. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/zone_template.py +151 -101
  36. netbox_plugin_dns-1.3b2/netbox_dns/graphql/enums.py +41 -0
  37. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filter_lookups.py +13 -0
  38. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/__init__.py +12 -0
  39. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/dnssec_key_template.py +63 -0
  40. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/dnssec_policy.py +123 -0
  41. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/nameserver.py +32 -0
  42. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/record.py +89 -0
  43. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/record_template.py +55 -0
  44. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/registrar.py +30 -0
  45. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/registration_contact.py +27 -0
  46. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/view.py +28 -0
  47. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/zone.py +146 -0
  48. netbox_plugin_dns-1.3b2/netbox_dns/graphql/filters/zone_template.py +97 -0
  49. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/dnssec_key_template.py +24 -27
  50. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/dnssec_policy.py +17 -21
  51. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/nameserver.py +26 -30
  52. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/record.py +42 -46
  53. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/record_template.py +30 -34
  54. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/registrar.py +13 -17
  55. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/registration_contact.py +33 -37
  56. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/view.py +16 -20
  57. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/zone.py +75 -77
  58. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/zone_template.py +35 -39
  59. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/dnssec_key_template.py +13 -12
  60. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/dnssec_policy.py +18 -15
  61. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/nameserver.py +10 -8
  62. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/record.py +29 -21
  63. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/record_template.py +21 -17
  64. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/registrar.py +15 -9
  65. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/registration_contact.py +15 -9
  66. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/view.py +24 -12
  67. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/zone.py +23 -21
  68. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/zone_template.py +17 -13
  69. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/dnssec_key_template.py +0 -9
  70. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/dnssec_policy.py +0 -9
  71. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/nameserver.py +0 -9
  72. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/record.py +0 -9
  73. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/record_template.py +0 -3
  74. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/registrar.py +0 -3
  75. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/registration_contact.py +0 -3
  76. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/view.py +0 -9
  77. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/zone.py +0 -10
  78. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/zone_template.py +0 -4
  79. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_plugin_dns.egg-info/PKG-INFO +4 -3
  80. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_plugin_dns.egg-info/SOURCES.txt +13 -1
  81. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/pyproject.toml +2 -2
  82. netbox_plugin_dns-1.2.9/netbox_dns/graphql/filters.py +0 -88
  83. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/LICENSE +0 -0
  84. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/field_serializers.py +0 -0
  85. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers.py +0 -0
  86. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/__init__.py +0 -0
  87. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/serializers_/prefix.py +0 -0
  88. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/urls.py +0 -0
  89. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/api/views.py +0 -0
  90. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/apps.py +0 -0
  91. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/choices/__init__.py +0 -0
  92. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/choices/dnssec_policy.py +0 -0
  93. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/choices/record.py +0 -0
  94. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/choices/utilities.py +0 -0
  95. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/choices/zone.py +0 -0
  96. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/fields/__init__.py +0 -0
  97. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/fields/address.py +0 -0
  98. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/fields/choice_array.py +0 -0
  99. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/fields/ipam.py +0 -0
  100. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/fields/network.py +0 -0
  101. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/fields/rfc2317.py +0 -0
  102. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/fields/timeperiod.py +0 -0
  103. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/filtersets/__init__.py +0 -0
  104. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/forms/__init__.py +0 -0
  105. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/graphql/__init__.py +0 -0
  106. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/graphql/schema.py +0 -0
  107. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/graphql/types.py +0 -0
  108. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/locale/de/LC_MESSAGES/django.mo +0 -0
  109. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/locale/en/LC_MESSAGES/django.mo +0 -0
  110. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/locale/fr/LC_MESSAGES/django.mo +0 -0
  111. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/management/commands/cleanup_database.py +0 -0
  112. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/management/commands/cleanup_rrset_ttl.py +0 -0
  113. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/management/commands/rebuild_dnssync.py +0 -0
  114. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/management/commands/setup_dnssync.py +0 -0
  115. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/management/commands/update_soa.py +0 -0
  116. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0001_squashed_netbox_dns_0_15.py +0 -0
  117. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0001_squashed_netbox_dns_0_22.py +0 -0
  118. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0002_contact_description_registrar_description.py +0 -0
  119. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0003_default_view.py +0 -0
  120. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0004_create_and_assign_default_view.py +0 -0
  121. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0005_alter_zone_view_not_null.py +0 -0
  122. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0006_templating.py +0 -0
  123. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0007_alter_ordering_options.py +0 -0
  124. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0008_view_prefixes.py +0 -0
  125. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0009_rename_contact_registrationcontact.py +0 -0
  126. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0010_view_ip_address_filter.py +0 -0
  127. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0011_rename_related_fields.py +0 -0
  128. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0012_natural_ordering.py +0 -0
  129. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0013_zonetemplate_soa_mname_zonetemplate_soa_rname.py +0 -0
  130. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0014_alter_unique_constraints_lowercase.py +0 -0
  131. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0015_dnssec.py +0 -0
  132. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0016_dnssec_policy_status.py +0 -0
  133. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0017_dnssec_policy_zone_zone_template.py +0 -0
  134. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0018_zone_domain_status_zone_expiration_date.py +0 -0
  135. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0019_dnssecpolicy_parental_agents.py +0 -0
  136. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0020_netbox_3_4.py +0 -0
  137. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0020_remove_dnssecpolicy_parental_agents_and_more.py +0 -0
  138. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0021_record_ip_address.py +0 -0
  139. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0022_search.py +0 -0
  140. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0023_alter_record_value.py +0 -0
  141. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0024_tenancy.py +0 -0
  142. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0025_ipam_coupling_cf.py +0 -0
  143. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0026_domain_registration.py +0 -0
  144. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0027_alter_registrar_iana_id.py +0 -0
  145. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0028_rfc2317_fields.py +0 -0
  146. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/0029_record_fqdn.py +0 -0
  147. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/migrations/__init__.py +0 -0
  148. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/mixins/__init__.py +0 -0
  149. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/mixins/object_modification.py +0 -0
  150. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/models/__init__.py +0 -0
  151. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/navigation.py +0 -0
  152. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/signals/__init__.py +0 -0
  153. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/signals/dnssec.py +0 -0
  154. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/signals/ipam_dnssync.py +0 -0
  155. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/__init__.py +0 -0
  156. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/tables/ipam_dnssync.py +0 -0
  157. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/template_content.py +0 -0
  158. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/dnsseckeytemplate.html +0 -0
  159. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/dnssecpolicy.html +0 -0
  160. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/nameserver.html +0 -0
  161. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/record/managed.html +0 -0
  162. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/record/related.html +0 -0
  163. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/record.html +0 -0
  164. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/recordtemplate.html +0 -0
  165. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/registrar.html +0 -0
  166. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/registrationcontact.html +0 -0
  167. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/view/button.html +0 -0
  168. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/view/prefix.html +0 -0
  169. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/view/related.html +0 -0
  170. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/view.html +0 -0
  171. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zone/base.html +0 -0
  172. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zone/child.html +0 -0
  173. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zone/child_zone.html +0 -0
  174. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zone/delegation_record.html +0 -0
  175. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zone/managed_record.html +0 -0
  176. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zone/record.html +0 -0
  177. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zone/registration.html +0 -0
  178. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zone/rfc2317_child_zone.html +0 -0
  179. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zone.html +0 -0
  180. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zonetemplate/child.html +0 -0
  181. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templates/netbox_dns/zonetemplate.html +0 -0
  182. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templatetags/__init__.py +0 -0
  183. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/templatetags/netbox_dns.py +0 -0
  184. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/urls.py +0 -0
  185. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/utilities/__init__.py +0 -0
  186. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/utilities/conversions.py +0 -0
  187. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/utilities/dns.py +0 -0
  188. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/utilities/ipam_dnssync.py +0 -0
  189. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/validators/__init__.py +0 -0
  190. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/validators/dns_name.py +0 -0
  191. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/validators/dns_value.py +0 -0
  192. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/validators/dnssec.py +0 -0
  193. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/validators/rfc2317.py +0 -0
  194. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_dns/views/__init__.py +0 -0
  195. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_plugin_dns.egg-info/dependency_links.txt +0 -0
  196. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_plugin_dns.egg-info/requires.txt +0 -0
  197. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/netbox_plugin_dns.egg-info/top_level.txt +0 -0
  198. {netbox_plugin_dns-1.2.9 → netbox_plugin_dns-1.3b2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: netbox-plugin-dns
3
- Version: 1.2.9
3
+ Version: 1.3b2
4
4
  Summary: NetBox DNS is a NetBox plugin for managing DNS data.
5
5
  Author-email: Peter Eckel <pete@netbox-dns.org>
6
6
  Project-URL: Homepage, https://github.com/peteeckel/netbox-plugin-dns
@@ -8,7 +8,7 @@ Project-URL: Documentation, https://github.com/peteeckel/netbox-plugin-dns/blob/
8
8
  Project-URL: Repository, https://github.com/peteeckel/netbox-plugin-dns
9
9
  Project-URL: Issues, https://github.com/peteeckel/netbox-plugin-dns/issues
10
10
  Keywords: netbox,netbox-plugin,dns
11
- Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Development Status :: 4 - Beta
12
12
  Requires-Python: >=3.10
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
@@ -67,7 +67,7 @@ For integration with a large number of DNS server implementations integration to
67
67
 
68
68
  ## Requirements
69
69
 
70
- * NetBox 4.2.0 or higher
70
+ * NetBox 4.3.0 or higher
71
71
  * Python 3.10 or higher
72
72
 
73
73
  ## Compatibility with NetBox Versions
@@ -80,6 +80,7 @@ NetBox Version | NetBox DNS Version | Comment
80
80
  4.0 - 4.1 | 1.0 | Supports legacy IPAM Coupling
81
81
  4.0 - 4.1 | 1.1 | Supports IPAM DNSsync
82
82
  4.2 | 1.2 |
83
+ 4.3 | 1.3 |
83
84
 
84
85
  ## Installation & Configuration
85
86
 
@@ -50,7 +50,7 @@ For integration with a large number of DNS server implementations integration to
50
50
 
51
51
  ## Requirements
52
52
 
53
- * NetBox 4.2.0 or higher
53
+ * NetBox 4.3.0 or higher
54
54
  * Python 3.10 or higher
55
55
 
56
56
  ## Compatibility with NetBox Versions
@@ -63,6 +63,7 @@ NetBox Version | NetBox DNS Version | Comment
63
63
  4.0 - 4.1 | 1.0 | Supports legacy IPAM Coupling
64
64
  4.0 - 4.1 | 1.1 | Supports IPAM DNSsync
65
65
  4.2 | 1.2 |
66
+ 4.3 | 1.3 |
66
67
 
67
68
  ## Installation & Configuration
68
69
 
@@ -4,7 +4,7 @@ from django.core.exceptions import ImproperlyConfigured
4
4
  from netbox.plugins import PluginConfig
5
5
  from netbox.plugins.utils import get_plugin_config
6
6
 
7
- __version__ = "1.2.9"
7
+ __version__ = "1.3-beta2"
8
8
 
9
9
 
10
10
  def _check_list(setting):
@@ -17,19 +17,19 @@ __all__ = (
17
17
 
18
18
 
19
19
  class NestedZoneSerializer(WritableNestedSerializer):
20
- def to_representation(self, instance):
21
- # +
22
- # Workaround for the problem that the serializer does not return the
23
- # annotation "active" when called with "many=False". See issue
24
- # https://github.com/peteeckel/netbox-plugin-dns/issues/132
25
- #
26
- # TODO: Investigate root cause, probably in DRF.
27
- # -
28
- representation = super().to_representation(instance)
29
- if representation.get("active") is None:
30
- representation["active"] = instance.is_active
20
+ class Meta:
21
+ model = Zone
31
22
 
32
- return representation
23
+ fields = (
24
+ "id",
25
+ "url",
26
+ "display",
27
+ "name",
28
+ "view",
29
+ "status",
30
+ "active",
31
+ "rfc2317_prefix",
32
+ )
33
33
 
34
34
  url = serializers.HyperlinkedIdentityField(
35
35
  view_name="plugins-api:netbox_dns-api:zone-detail"
@@ -47,27 +47,25 @@ class NestedZoneSerializer(WritableNestedSerializer):
47
47
  allow_null=True,
48
48
  )
49
49
 
50
- class Meta:
51
- model = Zone
52
- fields = [
53
- "id",
54
- "url",
55
- "display",
56
- "name",
57
- "view",
58
- "status",
59
- "active",
60
- "rfc2317_prefix",
61
- ]
50
+ def to_representation(self, instance):
51
+ # +
52
+ # Workaround for the problem that the serializer does not return the
53
+ # annotation "active" when called with "many=False". See issue
54
+ # https://github.com/peteeckel/netbox-plugin-dns/issues/132
55
+ #
56
+ # TODO: Investigate root cause, probably in DRF.
57
+ # -
58
+ representation = super().to_representation(instance)
59
+ if representation.get("active") is None:
60
+ representation["active"] = instance.is_active
62
61
 
62
+ return representation
63
63
 
64
- class NestedZoneTemplateSerializer(WritableNestedSerializer):
65
- url = serializers.HyperlinkedIdentityField(
66
- view_name="plugins-api:netbox_dns-api:zonetemplate-detail"
67
- )
68
64
 
65
+ class NestedZoneTemplateSerializer(WritableNestedSerializer):
69
66
  class Meta:
70
67
  model = ZoneTemplate
68
+
71
69
  fields = (
72
70
  "id",
73
71
  "url",
@@ -76,25 +74,16 @@ class NestedZoneTemplateSerializer(WritableNestedSerializer):
76
74
  "description",
77
75
  )
78
76
 
79
-
80
- class NestedRecordSerializer(WritableNestedSerializer):
81
77
  url = serializers.HyperlinkedIdentityField(
82
- view_name="plugins-api:netbox_dns-api:record-detail"
83
- )
84
- zone = NestedZoneSerializer(
85
- many=False,
86
- required=False,
87
- help_text=_("Zone the record belongs to"),
88
- )
89
- active = serializers.BooleanField(
90
- required=False,
91
- read_only=True,
92
- allow_null=True,
78
+ view_name="plugins-api:netbox_dns-api:zonetemplate-detail"
93
79
  )
94
80
 
81
+
82
+ class NestedRecordSerializer(WritableNestedSerializer):
95
83
  class Meta:
96
84
  model = Record
97
- fields = [
85
+
86
+ fields = (
98
87
  "id",
99
88
  "url",
100
89
  "display",
@@ -106,16 +95,27 @@ class NestedRecordSerializer(WritableNestedSerializer):
106
95
  "zone",
107
96
  "managed",
108
97
  "active",
109
- ]
110
-
98
+ )
111
99
 
112
- class NestedRecordTemplateSerializer(WritableNestedSerializer):
113
100
  url = serializers.HyperlinkedIdentityField(
114
- view_name="plugins-api:netbox_dns-api:recordtemplate-detail"
101
+ view_name="plugins-api:netbox_dns-api:record-detail"
115
102
  )
103
+ zone = NestedZoneSerializer(
104
+ many=False,
105
+ required=False,
106
+ help_text=_("Zone the record belongs to"),
107
+ )
108
+ active = serializers.BooleanField(
109
+ required=False,
110
+ read_only=True,
111
+ allow_null=True,
112
+ )
113
+
116
114
 
115
+ class NestedRecordTemplateSerializer(WritableNestedSerializer):
117
116
  class Meta:
118
117
  model = RecordTemplate
118
+
119
119
  fields = (
120
120
  "id",
121
121
  "url",
@@ -129,14 +129,15 @@ class NestedRecordTemplateSerializer(WritableNestedSerializer):
129
129
  "description",
130
130
  )
131
131
 
132
-
133
- class NestedDNSSECPolicySerializer(WritableNestedSerializer):
134
132
  url = serializers.HyperlinkedIdentityField(
135
- view_name="plugins-api:netbox_dns-api:dnssecpolicy-detail"
133
+ view_name="plugins-api:netbox_dns-api:recordtemplate-detail"
136
134
  )
137
135
 
136
+
137
+ class NestedDNSSECPolicySerializer(WritableNestedSerializer):
138
138
  class Meta:
139
139
  model = DNSSECPolicy
140
+
140
141
  fields = (
141
142
  "id",
142
143
  "url",
@@ -145,3 +146,7 @@ class NestedDNSSECPolicySerializer(WritableNestedSerializer):
145
146
  "description",
146
147
  "status",
147
148
  )
149
+
150
+ url = serializers.HyperlinkedIdentityField(
151
+ view_name="plugins-api:netbox_dns-api:dnssecpolicy-detail"
152
+ )
@@ -14,21 +14,9 @@ __all__ = ("DNSSECKeyTemplateSerializer",)
14
14
 
15
15
 
16
16
  class DNSSECKeyTemplateSerializer(NetBoxModelSerializer):
17
- url = serializers.HyperlinkedIdentityField(
18
- view_name="plugins-api:netbox_dns-api:dnsseckeytemplate-detail"
19
- )
20
- lifetime = TimePeriodField(required=False, allow_null=True)
21
- policies = NestedDNSSECPolicySerializer(
22
- many=True,
23
- read_only=True,
24
- required=False,
25
- default=None,
26
- help_text=_("Policies using this Key Template"),
27
- )
28
- tenant = TenantSerializer(required=False, allow_null=True)
29
-
30
17
  class Meta:
31
18
  model = DNSSECKeyTemplate
19
+
32
20
  fields = (
33
21
  "id",
34
22
  "url",
@@ -46,6 +34,7 @@ class DNSSECKeyTemplateSerializer(NetBoxModelSerializer):
46
34
  "custom_fields",
47
35
  "tenant",
48
36
  )
37
+
49
38
  brief_fields = (
50
39
  "id",
51
40
  "url",
@@ -57,3 +46,22 @@ class DNSSECKeyTemplateSerializer(NetBoxModelSerializer):
57
46
  "key_size",
58
47
  "description",
59
48
  )
49
+
50
+ url = serializers.HyperlinkedIdentityField(
51
+ view_name="plugins-api:netbox_dns-api:dnsseckeytemplate-detail"
52
+ )
53
+ lifetime = TimePeriodField(
54
+ required=False,
55
+ allow_null=True,
56
+ )
57
+ policies = NestedDNSSECPolicySerializer(
58
+ many=True,
59
+ read_only=True,
60
+ required=False,
61
+ default=None,
62
+ help_text=_("Policies using this Key Template"),
63
+ )
64
+ tenant = TenantSerializer(
65
+ required=False,
66
+ allow_null=True,
67
+ )
@@ -15,47 +15,9 @@ __all__ = ("DNSSECPolicySerializer",)
15
15
 
16
16
 
17
17
  class DNSSECPolicySerializer(NetBoxModelSerializer):
18
- url = serializers.HyperlinkedIdentityField(
19
- view_name="plugins-api:netbox_dns-api:dnssecpolicy-detail"
20
- )
21
- key_templates = DNSSECKeyTemplateSerializer(
22
- nested=True,
23
- many=True,
24
- read_only=False,
25
- required=False,
26
- default=None,
27
- help_text=_("Key templates assigned to the policy"),
28
- )
29
- dnskey_ttl = TimePeriodField(required=False, allow_null=True)
30
- purge_keys = TimePeriodField(required=False, allow_null=True)
31
- publish_safety = TimePeriodField(required=False, allow_null=True)
32
- retire_safety = TimePeriodField(required=False, allow_null=True)
33
- signatures_jitter = TimePeriodField(required=False, allow_null=True)
34
- signatures_refresh = TimePeriodField(required=False, allow_null=True)
35
- signatures_validity = TimePeriodField(required=False, allow_null=True)
36
- signatures_validity_dnskey = TimePeriodField(required=False, allow_null=True)
37
- max_zone_ttl = TimePeriodField(required=False, allow_null=True)
38
- zone_propagation_delay = TimePeriodField(required=False, allow_null=True)
39
- parent_ds_ttl = TimePeriodField(required=False, allow_null=True)
40
- parent_propagation_delay = TimePeriodField(required=False, allow_null=True)
41
- zones = NestedZoneSerializer(
42
- many=True,
43
- read_only=True,
44
- required=False,
45
- default=None,
46
- help_text=_("Zones this policy is assigned to"),
47
- )
48
- zone_templates = NestedZoneTemplateSerializer(
49
- many=True,
50
- read_only=True,
51
- required=False,
52
- default=None,
53
- help_text=_("Zone templates this policy is assigned to"),
54
- )
55
- tenant = TenantSerializer(required=False, allow_null=True)
56
-
57
18
  class Meta:
58
19
  model = DNSSECPolicy
20
+
59
21
  fields = (
60
22
  "id",
61
23
  "url",
@@ -90,7 +52,93 @@ class DNSSECPolicySerializer(NetBoxModelSerializer):
90
52
  "custom_fields",
91
53
  "tenant",
92
54
  )
93
- brief_fields = ("id", "url", "display", "name", "description", "status")
55
+
56
+ brief_fields = (
57
+ "id",
58
+ "url",
59
+ "display",
60
+ "name",
61
+ "description",
62
+ "status",
63
+ )
64
+
65
+ url = serializers.HyperlinkedIdentityField(
66
+ view_name="plugins-api:netbox_dns-api:dnssecpolicy-detail"
67
+ )
68
+ key_templates = DNSSECKeyTemplateSerializer(
69
+ nested=True,
70
+ many=True,
71
+ read_only=False,
72
+ required=False,
73
+ default=None,
74
+ help_text=_("Key templates assigned to the policy"),
75
+ )
76
+ dnskey_ttl = TimePeriodField(
77
+ required=False,
78
+ allow_null=True,
79
+ )
80
+ purge_keys = TimePeriodField(
81
+ required=False,
82
+ allow_null=True,
83
+ )
84
+ publish_safety = TimePeriodField(
85
+ required=False,
86
+ allow_null=True,
87
+ )
88
+ retire_safety = TimePeriodField(
89
+ required=False,
90
+ allow_null=True,
91
+ )
92
+ signatures_jitter = TimePeriodField(
93
+ required=False,
94
+ allow_null=True,
95
+ )
96
+ signatures_refresh = TimePeriodField(
97
+ required=False,
98
+ allow_null=True,
99
+ )
100
+ signatures_validity = TimePeriodField(
101
+ required=False,
102
+ allow_null=True,
103
+ )
104
+ signatures_validity_dnskey = TimePeriodField(
105
+ required=False,
106
+ allow_null=True,
107
+ )
108
+ max_zone_ttl = TimePeriodField(
109
+ required=False,
110
+ allow_null=True,
111
+ )
112
+ zone_propagation_delay = TimePeriodField(
113
+ required=False,
114
+ allow_null=True,
115
+ )
116
+ parent_ds_ttl = TimePeriodField(
117
+ required=False,
118
+ allow_null=True,
119
+ )
120
+ parent_propagation_delay = TimePeriodField(
121
+ required=False,
122
+ allow_null=True,
123
+ )
124
+ zones = NestedZoneSerializer(
125
+ many=True,
126
+ read_only=True,
127
+ required=False,
128
+ default=None,
129
+ help_text=_("Zones this policy is assigned to"),
130
+ )
131
+ zone_templates = NestedZoneTemplateSerializer(
132
+ many=True,
133
+ read_only=True,
134
+ required=False,
135
+ default=None,
136
+ help_text=_("Zone templates this policy is assigned to"),
137
+ )
138
+ tenant = TenantSerializer(
139
+ required=False,
140
+ allow_null=True,
141
+ )
94
142
 
95
143
  def create(self, validated_data):
96
144
  dnssec_key_templates = validated_data.pop("key_templates", None)
@@ -13,20 +13,9 @@ __all__ = ("NameServerSerializer",)
13
13
 
14
14
 
15
15
  class NameServerSerializer(NetBoxModelSerializer):
16
- url = serializers.HyperlinkedIdentityField(
17
- view_name="plugins-api:netbox_dns-api:nameserver-detail"
18
- )
19
- zones = NestedZoneSerializer(
20
- many=True,
21
- read_only=True,
22
- required=False,
23
- default=None,
24
- help_text=_("Zones served by the authoritative nameserver"),
25
- )
26
- tenant = TenantSerializer(required=False, allow_null=True)
27
-
28
16
  class Meta:
29
17
  model = NameServer
18
+
30
19
  fields = (
31
20
  "id",
32
21
  "url",
@@ -40,4 +29,23 @@ class NameServerSerializer(NetBoxModelSerializer):
40
29
  "custom_fields",
41
30
  "tenant",
42
31
  )
43
- brief_fields = ("id", "url", "display", "name", "description")
32
+
33
+ brief_fields = (
34
+ "id",
35
+ "url",
36
+ "display",
37
+ "name",
38
+ "description",
39
+ )
40
+
41
+ url = serializers.HyperlinkedIdentityField(
42
+ view_name="plugins-api:netbox_dns-api:nameserver-detail"
43
+ )
44
+ zones = NestedZoneSerializer(
45
+ many=True,
46
+ read_only=True,
47
+ required=False,
48
+ default=None,
49
+ help_text=_("Zones served by the authoritative nameserver"),
50
+ )
51
+ tenant = TenantSerializer(required=False, allow_null=True)
@@ -15,43 +15,6 @@ __all__ = ("RecordSerializer",)
15
15
 
16
16
 
17
17
  class RecordSerializer(NetBoxModelSerializer):
18
- url = serializers.HyperlinkedIdentityField(
19
- view_name="plugins-api:netbox_dns-api:record-detail"
20
- )
21
- ttl = TimePeriodField(required=False, allow_null=True)
22
- ptr_record = NestedRecordSerializer(
23
- many=False,
24
- read_only=True,
25
- required=False,
26
- allow_null=True,
27
- help_text=_("PTR record generated from an address"),
28
- )
29
- address_record = NestedRecordSerializer(
30
- many=False,
31
- read_only=True,
32
- required=False,
33
- allow_null=True,
34
- help_text=_("Address record defining the PTR"),
35
- )
36
- zone = NestedZoneSerializer(
37
- many=False,
38
- required=False,
39
- help_text=_("Zone the record belongs to"),
40
- )
41
- active = serializers.BooleanField(
42
- required=False,
43
- read_only=True,
44
- )
45
- ipam_ip_address = IPAddressSerializer(
46
- nested=True,
47
- many=False,
48
- read_only=True,
49
- required=False,
50
- allow_null=True,
51
- help_text=_("IPAddress linked to the record"),
52
- )
53
- tenant = TenantSerializer(nested=True, required=False, allow_null=True)
54
-
55
18
  class Meta:
56
19
  model = Record
57
20
  fields = (
@@ -79,6 +42,7 @@ class RecordSerializer(NetBoxModelSerializer):
79
42
  "ipam_ip_address",
80
43
  "absolute_value",
81
44
  )
45
+
82
46
  brief_fields = (
83
47
  "id",
84
48
  "url",
@@ -94,3 +58,47 @@ class RecordSerializer(NetBoxModelSerializer):
94
58
  "managed",
95
59
  "active",
96
60
  )
61
+
62
+ url = serializers.HyperlinkedIdentityField(
63
+ view_name="plugins-api:netbox_dns-api:record-detail"
64
+ )
65
+ ttl = TimePeriodField(
66
+ required=False,
67
+ allow_null=True,
68
+ )
69
+ ptr_record = NestedRecordSerializer(
70
+ many=False,
71
+ read_only=True,
72
+ required=False,
73
+ allow_null=True,
74
+ help_text=_("PTR record generated from an address"),
75
+ )
76
+ address_record = NestedRecordSerializer(
77
+ many=False,
78
+ read_only=True,
79
+ required=False,
80
+ allow_null=True,
81
+ help_text=_("Address record defining the PTR"),
82
+ )
83
+ zone = NestedZoneSerializer(
84
+ many=False,
85
+ required=False,
86
+ help_text=_("Zone the record belongs to"),
87
+ )
88
+ active = serializers.BooleanField(
89
+ required=False,
90
+ read_only=True,
91
+ )
92
+ ipam_ip_address = IPAddressSerializer(
93
+ nested=True,
94
+ many=False,
95
+ read_only=True,
96
+ required=False,
97
+ allow_null=True,
98
+ help_text=_("IPAddress linked to the record"),
99
+ )
100
+ tenant = TenantSerializer(
101
+ nested=True,
102
+ required=False,
103
+ allow_null=True,
104
+ )
@@ -14,20 +14,9 @@ __all__ = ("RecordTemplateSerializer",)
14
14
 
15
15
 
16
16
  class RecordTemplateSerializer(NetBoxModelSerializer):
17
- url = serializers.HyperlinkedIdentityField(
18
- view_name="plugins-api:netbox_dns-api:recordtemplate-detail"
19
- )
20
- ttl = TimePeriodField(required=False, allow_null=True)
21
- tenant = TenantSerializer(nested=True, required=False, allow_null=True)
22
- zone_templates = NestedZoneTemplateSerializer(
23
- many=True,
24
- read_only=True,
25
- required=False,
26
- help_text=_("Zone templates using the record template"),
27
- )
28
-
29
17
  class Meta:
30
18
  model = RecordTemplate
19
+
31
20
  fields = (
32
21
  "id",
33
22
  "url",
@@ -47,6 +36,7 @@ class RecordTemplateSerializer(NetBoxModelSerializer):
47
36
  "tenant",
48
37
  "zone_templates",
49
38
  )
39
+
50
40
  brief_fields = (
51
41
  "id",
52
42
  "url",
@@ -59,3 +49,22 @@ class RecordTemplateSerializer(NetBoxModelSerializer):
59
49
  "ttl",
60
50
  "description",
61
51
  )
52
+
53
+ url = serializers.HyperlinkedIdentityField(
54
+ view_name="plugins-api:netbox_dns-api:recordtemplate-detail"
55
+ )
56
+ ttl = TimePeriodField(
57
+ required=False,
58
+ allow_null=True,
59
+ )
60
+ tenant = TenantSerializer(
61
+ nested=True,
62
+ required=False,
63
+ allow_null=True,
64
+ )
65
+ zone_templates = NestedZoneTemplateSerializer(
66
+ many=True,
67
+ read_only=True,
68
+ required=False,
69
+ help_text=_("Zone templates using the record template"),
70
+ )
@@ -9,12 +9,9 @@ __all__ = ("RegistrarSerializer",)
9
9
 
10
10
 
11
11
  class RegistrarSerializer(NetBoxModelSerializer):
12
- url = serializers.HyperlinkedIdentityField(
13
- view_name="plugins-api:netbox_dns-api:registrar-detail"
14
- )
15
-
16
12
  class Meta:
17
13
  model = Registrar
14
+
18
15
  fields = (
19
16
  "id",
20
17
  "url",
@@ -31,4 +28,16 @@ class RegistrarSerializer(NetBoxModelSerializer):
31
28
  "last_updated",
32
29
  "custom_fields",
33
30
  )
34
- brief_fields = ("id", "url", "display", "name", "description", "iana_id")
31
+
32
+ brief_fields = (
33
+ "id",
34
+ "url",
35
+ "display",
36
+ "name",
37
+ "description",
38
+ "iana_id",
39
+ )
40
+
41
+ url = serializers.HyperlinkedIdentityField(
42
+ view_name="plugins-api:netbox_dns-api:registrar-detail"
43
+ )
@@ -9,12 +9,9 @@ __all__ = ("RegistrationContactSerializer",)
9
9
 
10
10
 
11
11
  class RegistrationContactSerializer(NetBoxModelSerializer):
12
- url = serializers.HyperlinkedIdentityField(
13
- view_name="plugins-api:netbox_dns-api:registrationcontact-detail"
14
- )
15
-
16
12
  class Meta:
17
13
  model = RegistrationContact
14
+
18
15
  fields = (
19
16
  "id",
20
17
  "url",
@@ -37,4 +34,15 @@ class RegistrationContactSerializer(NetBoxModelSerializer):
37
34
  "last_updated",
38
35
  "custom_fields",
39
36
  )
40
- brief_fields = ("id", "url", "display", "name", "description", "contact_id")
37
+ brief_fields = (
38
+ "id",
39
+ "url",
40
+ "display",
41
+ "name",
42
+ "description",
43
+ "contact_id",
44
+ )
45
+
46
+ url = serializers.HyperlinkedIdentityField(
47
+ view_name="plugins-api:netbox_dns-api:registrationcontact-detail"
48
+ )