nautobot 3.0.4__py3-none-any.whl → 3.0.5__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.
Files changed (363) hide show
  1. nautobot/core/tables.py +28 -17
  2. nautobot/core/templates/graphene/graphiql.html +3 -5
  3. nautobot/core/templates/inc/javascript.html +5 -10
  4. nautobot/core/templates/inc/media.html +5 -4
  5. nautobot/core/templates/inc/media_failure.html +73 -0
  6. nautobot/core/templates/media_failure.html +1 -0
  7. nautobot/core/tests/test_templatetags_helpers.py +9 -9
  8. nautobot/core/ui/object_detail.py +1 -0
  9. nautobot/dcim/tables/devices.py +4 -4
  10. nautobot/dcim/tables/template_code.py +8 -4
  11. nautobot/dcim/tests/test_tables.py +5 -6
  12. nautobot/dcim/views.py +6 -7
  13. nautobot/extras/tables.py +3 -3
  14. nautobot/extras/templates/extras/inc/jobresult_js.html +1 -2
  15. nautobot/extras/templates/extras/scheduledjob.html +3 -1
  16. nautobot/extras/tests/test_customfields.py +75 -9
  17. nautobot/ipam/filters.py +58 -3
  18. nautobot/ipam/tables.py +8 -4
  19. nautobot/ipam/tests/test_filters.py +55 -0
  20. nautobot/project-static/dist/css/nautobot.css +1 -1
  21. nautobot/project-static/dist/css/nautobot.css.map +1 -1
  22. nautobot/project-static/docs/404.html +64 -8
  23. nautobot/project-static/docs/apps/index.html +64 -8
  24. nautobot/project-static/docs/apps/nautobot-apps.html +64 -8
  25. nautobot/project-static/docs/code-reference/nautobot/apps/__init__.html +64 -8
  26. nautobot/project-static/docs/code-reference/nautobot/apps/admin.html +64 -8
  27. nautobot/project-static/docs/code-reference/nautobot/apps/api.html +64 -8
  28. nautobot/project-static/docs/code-reference/nautobot/apps/change_logging.html +64 -8
  29. nautobot/project-static/docs/code-reference/nautobot/apps/choices.html +64 -8
  30. nautobot/project-static/docs/code-reference/nautobot/apps/config.html +64 -8
  31. nautobot/project-static/docs/code-reference/nautobot/apps/constants.html +64 -8
  32. nautobot/project-static/docs/code-reference/nautobot/apps/datasources.html +64 -8
  33. nautobot/project-static/docs/code-reference/nautobot/apps/events.html +64 -8
  34. nautobot/project-static/docs/code-reference/nautobot/apps/exceptions.html +64 -8
  35. nautobot/project-static/docs/code-reference/nautobot/apps/factory.html +64 -8
  36. nautobot/project-static/docs/code-reference/nautobot/apps/filters.html +64 -8
  37. nautobot/project-static/docs/code-reference/nautobot/apps/forms.html +64 -8
  38. nautobot/project-static/docs/code-reference/nautobot/apps/graphql.html +64 -8
  39. nautobot/project-static/docs/code-reference/nautobot/apps/jobs.html +64 -8
  40. nautobot/project-static/docs/code-reference/nautobot/apps/models.html +64 -8
  41. nautobot/project-static/docs/code-reference/nautobot/apps/querysets.html +64 -8
  42. nautobot/project-static/docs/code-reference/nautobot/apps/secrets.html +64 -8
  43. nautobot/project-static/docs/code-reference/nautobot/apps/tables.html +64 -8
  44. nautobot/project-static/docs/code-reference/nautobot/apps/templatetags.html +64 -8
  45. nautobot/project-static/docs/code-reference/nautobot/apps/testing.html +64 -8
  46. nautobot/project-static/docs/code-reference/nautobot/apps/ui.html +64 -8
  47. nautobot/project-static/docs/code-reference/nautobot/apps/urls.html +64 -8
  48. nautobot/project-static/docs/code-reference/nautobot/apps/utils.html +64 -8
  49. nautobot/project-static/docs/code-reference/nautobot/apps/views.html +64 -8
  50. nautobot/project-static/docs/development/apps/api/configuration-view.html +64 -8
  51. nautobot/project-static/docs/development/apps/api/database-backend-config.html +64 -8
  52. nautobot/project-static/docs/development/apps/api/models/django-admin.html +67 -11
  53. nautobot/project-static/docs/development/apps/api/models/global-search.html +64 -8
  54. nautobot/project-static/docs/development/apps/api/models/graphql.html +64 -8
  55. nautobot/project-static/docs/development/apps/api/models/index.html +64 -8
  56. nautobot/project-static/docs/development/apps/api/models/queryset.html +13440 -0
  57. nautobot/project-static/docs/development/apps/api/nautobot-app-config.html +64 -8
  58. nautobot/project-static/docs/development/apps/api/platform-features/custom-validators.html +64 -8
  59. nautobot/project-static/docs/development/apps/api/platform-features/filter-extensions.html +64 -8
  60. nautobot/project-static/docs/development/apps/api/platform-features/git-repository-content.html +64 -8
  61. nautobot/project-static/docs/development/apps/api/platform-features/index.html +64 -8
  62. nautobot/project-static/docs/development/apps/api/platform-features/jinja2-filters.html +64 -8
  63. nautobot/project-static/docs/development/apps/api/platform-features/jobs.html +64 -8
  64. nautobot/project-static/docs/development/apps/api/platform-features/prepopulating-data.html +64 -8
  65. nautobot/project-static/docs/development/apps/api/platform-features/secrets-providers.html +64 -8
  66. nautobot/project-static/docs/development/apps/api/platform-features/table-extensions.html +64 -8
  67. nautobot/project-static/docs/development/apps/api/platform-features/uniquely-identify-objects.html +64 -8
  68. nautobot/project-static/docs/development/apps/api/prometheus.html +64 -8
  69. nautobot/project-static/docs/development/apps/api/setup.html +64 -8
  70. nautobot/project-static/docs/development/apps/api/testing.html +64 -8
  71. nautobot/project-static/docs/development/apps/api/ui-extensions/banners.html +64 -8
  72. nautobot/project-static/docs/development/apps/api/ui-extensions/home-page.html +64 -8
  73. nautobot/project-static/docs/development/apps/api/ui-extensions/index.html +64 -8
  74. nautobot/project-static/docs/development/apps/api/ui-extensions/navigation.html +64 -8
  75. nautobot/project-static/docs/development/apps/api/ui-extensions/object-views.html +64 -8
  76. nautobot/project-static/docs/development/apps/api/views/base-template.html +64 -8
  77. nautobot/project-static/docs/development/apps/api/views/core-view-overrides.html +64 -8
  78. nautobot/project-static/docs/development/apps/api/views/django-generic-views.html +64 -8
  79. nautobot/project-static/docs/development/apps/api/views/help-documentation.html +64 -8
  80. nautobot/project-static/docs/development/apps/api/views/index.html +67 -11
  81. nautobot/project-static/docs/development/apps/api/views/nautobot-generic-views.html +64 -8
  82. nautobot/project-static/docs/development/apps/api/views/nautobotuiviewset.html +64 -8
  83. nautobot/project-static/docs/development/apps/api/views/nautobotuiviewsetrouter.html +64 -8
  84. nautobot/project-static/docs/development/apps/api/views/notes.html +64 -8
  85. nautobot/project-static/docs/development/apps/api/views/rest-api.html +64 -8
  86. nautobot/project-static/docs/development/apps/api/views/urls.html +64 -8
  87. nautobot/project-static/docs/development/apps/index.html +64 -8
  88. nautobot/project-static/docs/development/apps/migration/code-updates.html +64 -8
  89. nautobot/project-static/docs/development/apps/migration/dependency-updates.html +64 -8
  90. nautobot/project-static/docs/development/apps/migration/from-v1.html +64 -8
  91. nautobot/project-static/docs/development/apps/migration/from-v2/migrating-v2-to-v3.html +64 -8
  92. nautobot/project-static/docs/development/apps/migration/from-v2/new-nautobot-custom-ui-apis.html +64 -8
  93. nautobot/project-static/docs/development/apps/migration/from-v2/overview.html +68 -8
  94. nautobot/project-static/docs/development/apps/migration/from-v2/upgrading-from-bootstrap-v3-to-v5.html +64 -8
  95. nautobot/project-static/docs/development/apps/migration/model-updates/dcim.html +64 -8
  96. nautobot/project-static/docs/development/apps/migration/model-updates/extras.html +64 -8
  97. nautobot/project-static/docs/development/apps/migration/model-updates/global.html +64 -8
  98. nautobot/project-static/docs/development/apps/migration/model-updates/ipam.html +64 -8
  99. nautobot/project-static/docs/development/apps/migration/ui-component-framework/best-practices.html +64 -8
  100. nautobot/project-static/docs/development/apps/migration/ui-component-framework/breadcrumbs-titles.html +64 -8
  101. nautobot/project-static/docs/development/apps/migration/ui-component-framework/custom-content.html +64 -8
  102. nautobot/project-static/docs/development/apps/migration/ui-component-framework/index.html +64 -8
  103. nautobot/project-static/docs/development/apps/migration/ui-component-framework/migration-steps.html +64 -8
  104. nautobot/project-static/docs/development/apps/porting-from-netbox.html +64 -8
  105. nautobot/project-static/docs/development/core/application-registry.html +64 -8
  106. nautobot/project-static/docs/development/core/best-practices.html +64 -8
  107. nautobot/project-static/docs/development/core/caching.html +64 -8
  108. nautobot/project-static/docs/development/core/controllers.html +64 -8
  109. nautobot/project-static/docs/development/core/docker-compose-advanced-use-cases.html +64 -8
  110. nautobot/project-static/docs/development/core/docs-media-standards.html +64 -8
  111. nautobot/project-static/docs/development/core/generic-views.html +64 -8
  112. nautobot/project-static/docs/development/core/getting-started.html +64 -8
  113. nautobot/project-static/docs/development/core/homepage.html +64 -8
  114. nautobot/project-static/docs/development/core/index.html +64 -8
  115. nautobot/project-static/docs/development/core/minikube-dev-environment-for-k8s-jobs.html +64 -8
  116. nautobot/project-static/docs/development/core/model-checklist.html +64 -8
  117. nautobot/project-static/docs/development/core/model-features.html +64 -8
  118. nautobot/project-static/docs/development/core/natural-keys.html +64 -8
  119. nautobot/project-static/docs/development/core/navigation-menu.html +64 -8
  120. nautobot/project-static/docs/development/core/release-checklist.html +64 -8
  121. nautobot/project-static/docs/development/core/role-internals.html +64 -8
  122. nautobot/project-static/docs/development/core/settings.html +64 -8
  123. nautobot/project-static/docs/development/core/style-guide.html +64 -8
  124. nautobot/project-static/docs/development/core/templates.html +64 -8
  125. nautobot/project-static/docs/development/core/testing.html +64 -8
  126. nautobot/project-static/docs/development/core/ui-best-practices.html +64 -8
  127. nautobot/project-static/docs/development/core/ui-component-framework.html +64 -8
  128. nautobot/project-static/docs/development/core/user-preferences.html +64 -8
  129. nautobot/project-static/docs/development/index.html +64 -8
  130. nautobot/project-static/docs/development/jobs/getting-started.html +64 -8
  131. nautobot/project-static/docs/development/jobs/index.html +64 -8
  132. nautobot/project-static/docs/development/jobs/installation.html +64 -8
  133. nautobot/project-static/docs/development/jobs/job-extensions.html +64 -8
  134. nautobot/project-static/docs/development/jobs/job-logging.html +64 -8
  135. nautobot/project-static/docs/development/jobs/job-patterns.html +64 -8
  136. nautobot/project-static/docs/development/jobs/job-structure.html +64 -8
  137. nautobot/project-static/docs/development/jobs/migration/from-v1.html +64 -8
  138. nautobot/project-static/docs/development/jobs/testing.html +64 -8
  139. nautobot/project-static/docs/index.html +64 -8
  140. nautobot/project-static/docs/overview/application_stack.html +64 -8
  141. nautobot/project-static/docs/overview/design_philosophy.html +64 -8
  142. nautobot/project-static/docs/release-notes/index.html +64 -8
  143. nautobot/project-static/docs/release-notes/version-1.0.html +64 -8
  144. nautobot/project-static/docs/release-notes/version-1.1.html +64 -8
  145. nautobot/project-static/docs/release-notes/version-1.2.html +65 -9
  146. nautobot/project-static/docs/release-notes/version-1.3.html +64 -8
  147. nautobot/project-static/docs/release-notes/version-1.4.html +64 -8
  148. nautobot/project-static/docs/release-notes/version-1.5.html +64 -8
  149. nautobot/project-static/docs/release-notes/version-1.6.html +64 -8
  150. nautobot/project-static/docs/release-notes/version-2.0.html +64 -8
  151. nautobot/project-static/docs/release-notes/version-2.1.html +64 -8
  152. nautobot/project-static/docs/release-notes/version-2.2.html +64 -8
  153. nautobot/project-static/docs/release-notes/version-2.3.html +64 -8
  154. nautobot/project-static/docs/release-notes/version-2.4.html +584 -8
  155. nautobot/project-static/docs/release-notes/version-3.0.html +232 -8
  156. nautobot/project-static/docs/search/search_index.json +1 -1
  157. nautobot/project-static/docs/sitemap.xml +337 -329
  158. nautobot/project-static/docs/sitemap.xml.gz +0 -0
  159. nautobot/project-static/docs/user-guide/administration/configuration/authentication/ldap.html +64 -8
  160. nautobot/project-static/docs/user-guide/administration/configuration/authentication/remote.html +64 -8
  161. nautobot/project-static/docs/user-guide/administration/configuration/authentication/sso.html +64 -8
  162. nautobot/project-static/docs/user-guide/administration/configuration/index.html +64 -8
  163. nautobot/project-static/docs/user-guide/administration/configuration/redis.html +64 -8
  164. nautobot/project-static/docs/user-guide/administration/configuration/settings.html +64 -8
  165. nautobot/project-static/docs/user-guide/administration/configuration/time-zones.html +64 -8
  166. nautobot/project-static/docs/user-guide/administration/guides/celery-queues.html +64 -8
  167. nautobot/project-static/docs/user-guide/administration/guides/docker.html +64 -8
  168. nautobot/project-static/docs/user-guide/administration/guides/health-checks.html +64 -8
  169. nautobot/project-static/docs/user-guide/administration/guides/permissions.html +64 -8
  170. nautobot/project-static/docs/user-guide/administration/guides/prometheus-metrics.html +64 -8
  171. nautobot/project-static/docs/user-guide/administration/guides/replicating-nautobot.html +64 -8
  172. nautobot/project-static/docs/user-guide/administration/guides/request-profiling.html +64 -8
  173. nautobot/project-static/docs/user-guide/administration/guides/s3-django-storage.html +64 -8
  174. nautobot/project-static/docs/user-guide/administration/guides/selinux-troubleshooting.html +64 -8
  175. nautobot/project-static/docs/user-guide/administration/installation/app-install.html +64 -8
  176. nautobot/project-static/docs/user-guide/administration/installation/external-authentication.html +64 -8
  177. nautobot/project-static/docs/user-guide/administration/installation/http-server.html +72 -9
  178. nautobot/project-static/docs/user-guide/administration/installation/index.html +64 -8
  179. nautobot/project-static/docs/user-guide/administration/installation/install_system.html +64 -8
  180. nautobot/project-static/docs/user-guide/administration/installation/nautobot.html +64 -8
  181. nautobot/project-static/docs/user-guide/administration/installation/services.html +64 -8
  182. nautobot/project-static/docs/user-guide/administration/migration/migrating-from-netbox.html +65 -9
  183. nautobot/project-static/docs/user-guide/administration/migration/migrating-from-postgresql.html +64 -8
  184. nautobot/project-static/docs/user-guide/administration/security/index.html +64 -8
  185. nautobot/project-static/docs/user-guide/administration/security/notices.html +64 -8
  186. nautobot/project-static/docs/user-guide/administration/tools/nautobot-server.html +64 -8
  187. nautobot/project-static/docs/user-guide/administration/tools/nautobot-shell.html +64 -8
  188. nautobot/project-static/docs/user-guide/administration/upgrading/database-backup.html +67 -11
  189. nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/after-you-upgrade.html +64 -8
  190. nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/before-you-upgrade.html +64 -8
  191. nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/for-developers.html +64 -8
  192. nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/index.html +64 -8
  193. nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/whats-changed.html +64 -8
  194. nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/region-and-site-data-migration-guide.html +64 -8
  195. nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/upgrading-from-nautobot-v1.html +64 -8
  196. nautobot/project-static/docs/user-guide/administration/upgrading/from-v2/index.html +68 -8
  197. nautobot/project-static/docs/user-guide/administration/upgrading/postgresql.html +13391 -0
  198. nautobot/project-static/docs/user-guide/administration/upgrading/upgrading.html +125 -15
  199. nautobot/project-static/docs/user-guide/core-data-model/circuits/circuit.html +64 -8
  200. nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittermination.html +64 -8
  201. nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittype.html +64 -8
  202. nautobot/project-static/docs/user-guide/core-data-model/circuits/provider.html +64 -8
  203. nautobot/project-static/docs/user-guide/core-data-model/circuits/providernetwork.html +64 -8
  204. nautobot/project-static/docs/user-guide/core-data-model/cloud/cloud.html +64 -8
  205. nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudaccount.html +64 -8
  206. nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetwork.html +64 -8
  207. nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetworkprefixassignment.html +64 -8
  208. nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudresourcetype.html +64 -8
  209. nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservice.html +64 -8
  210. nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservicenetworkassignment.html +64 -8
  211. nautobot/project-static/docs/user-guide/core-data-model/dcim/cable.html +64 -8
  212. nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleport.html +64 -8
  213. nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleporttemplate.html +64 -8
  214. nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverport.html +64 -8
  215. nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverporttemplate.html +64 -8
  216. nautobot/project-static/docs/user-guide/core-data-model/dcim/controller.html +64 -8
  217. nautobot/project-static/docs/user-guide/core-data-model/dcim/controllermanageddevicegroup.html +64 -8
  218. nautobot/project-static/docs/user-guide/core-data-model/dcim/device.html +64 -8
  219. nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebay.html +64 -8
  220. nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebaytemplate.html +64 -8
  221. nautobot/project-static/docs/user-guide/core-data-model/dcim/devicefamily.html +64 -8
  222. nautobot/project-static/docs/user-guide/core-data-model/dcim/deviceredundancygroup.html +64 -8
  223. nautobot/project-static/docs/user-guide/core-data-model/dcim/devicetype.html +64 -8
  224. nautobot/project-static/docs/user-guide/core-data-model/dcim/frontport.html +64 -8
  225. nautobot/project-static/docs/user-guide/core-data-model/dcim/frontporttemplate.html +64 -8
  226. nautobot/project-static/docs/user-guide/core-data-model/dcim/interface.html +64 -8
  227. nautobot/project-static/docs/user-guide/core-data-model/dcim/interfaceredundancygroup.html +64 -8
  228. nautobot/project-static/docs/user-guide/core-data-model/dcim/interfacetemplate.html +64 -8
  229. nautobot/project-static/docs/user-guide/core-data-model/dcim/inventoryitem.html +64 -8
  230. nautobot/project-static/docs/user-guide/core-data-model/dcim/location.html +64 -8
  231. nautobot/project-static/docs/user-guide/core-data-model/dcim/locationtype.html +64 -8
  232. nautobot/project-static/docs/user-guide/core-data-model/dcim/manufacturer.html +64 -8
  233. nautobot/project-static/docs/user-guide/core-data-model/dcim/module.html +64 -8
  234. nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebay.html +64 -8
  235. nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebaytemplate.html +64 -8
  236. nautobot/project-static/docs/user-guide/core-data-model/dcim/modulefamily.html +64 -8
  237. nautobot/project-static/docs/user-guide/core-data-model/dcim/moduletype.html +64 -8
  238. nautobot/project-static/docs/user-guide/core-data-model/dcim/platform.html +64 -8
  239. nautobot/project-static/docs/user-guide/core-data-model/dcim/powerfeed.html +64 -8
  240. nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlet.html +64 -8
  241. nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlettemplate.html +64 -8
  242. nautobot/project-static/docs/user-guide/core-data-model/dcim/powerpanel.html +64 -8
  243. nautobot/project-static/docs/user-guide/core-data-model/dcim/powerport.html +64 -8
  244. nautobot/project-static/docs/user-guide/core-data-model/dcim/powerporttemplate.html +64 -8
  245. nautobot/project-static/docs/user-guide/core-data-model/dcim/rack.html +64 -8
  246. nautobot/project-static/docs/user-guide/core-data-model/dcim/rackgroup.html +64 -8
  247. nautobot/project-static/docs/user-guide/core-data-model/dcim/rackreservation.html +64 -8
  248. nautobot/project-static/docs/user-guide/core-data-model/dcim/rearport.html +64 -8
  249. nautobot/project-static/docs/user-guide/core-data-model/dcim/rearporttemplate.html +64 -8
  250. nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareimagefile.html +64 -8
  251. nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareversion.html +64 -8
  252. nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualchassis.html +64 -8
  253. nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualdevicecontext.html +64 -8
  254. nautobot/project-static/docs/user-guide/core-data-model/extras/configcontext.html +64 -8
  255. nautobot/project-static/docs/user-guide/core-data-model/extras/configcontextschema.html +64 -8
  256. nautobot/project-static/docs/user-guide/core-data-model/extras/contact.html +64 -8
  257. nautobot/project-static/docs/user-guide/core-data-model/extras/team.html +64 -8
  258. nautobot/project-static/docs/user-guide/core-data-model/ipam/ipaddress.html +64 -8
  259. nautobot/project-static/docs/user-guide/core-data-model/ipam/namespace.html +64 -8
  260. nautobot/project-static/docs/user-guide/core-data-model/ipam/prefix.html +64 -8
  261. nautobot/project-static/docs/user-guide/core-data-model/ipam/rir.html +64 -8
  262. nautobot/project-static/docs/user-guide/core-data-model/ipam/routetarget.html +64 -8
  263. nautobot/project-static/docs/user-guide/core-data-model/ipam/service.html +64 -8
  264. nautobot/project-static/docs/user-guide/core-data-model/ipam/vlan.html +64 -8
  265. nautobot/project-static/docs/user-guide/core-data-model/ipam/vlangroup.html +64 -8
  266. nautobot/project-static/docs/user-guide/core-data-model/ipam/vrf.html +64 -8
  267. nautobot/project-static/docs/user-guide/core-data-model/load-balancers/certificateprofile.html +64 -8
  268. nautobot/project-static/docs/user-guide/core-data-model/load-balancers/healthcheckmonitor.html +64 -8
  269. nautobot/project-static/docs/user-guide/core-data-model/load-balancers/index.html +64 -8
  270. nautobot/project-static/docs/user-guide/core-data-model/load-balancers/loadbalancerpool.html +64 -8
  271. nautobot/project-static/docs/user-guide/core-data-model/load-balancers/loadbalancerpoolmember.html +64 -8
  272. nautobot/project-static/docs/user-guide/core-data-model/load-balancers/virtualserver.html +64 -8
  273. nautobot/project-static/docs/user-guide/core-data-model/overview/introduction.html +64 -8
  274. nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenant.html +64 -8
  275. nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenantgroup.html +64 -8
  276. nautobot/project-static/docs/user-guide/core-data-model/virtualization/cluster.html +64 -8
  277. nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustergroup.html +64 -8
  278. nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustertype.html +64 -8
  279. nautobot/project-static/docs/user-guide/core-data-model/virtualization/virtualmachine.html +64 -8
  280. nautobot/project-static/docs/user-guide/core-data-model/virtualization/vminterface.html +64 -8
  281. nautobot/project-static/docs/user-guide/core-data-model/vpn/index.html +64 -8
  282. nautobot/project-static/docs/user-guide/core-data-model/vpn/vpn.html +64 -8
  283. nautobot/project-static/docs/user-guide/core-data-model/vpn/vpnphase1policy.html +64 -8
  284. nautobot/project-static/docs/user-guide/core-data-model/vpn/vpnphase2policy.html +64 -8
  285. nautobot/project-static/docs/user-guide/core-data-model/vpn/vpnprofile.html +64 -8
  286. nautobot/project-static/docs/user-guide/core-data-model/vpn/vpntunnel.html +64 -8
  287. nautobot/project-static/docs/user-guide/core-data-model/vpn/vpntunnelendpoint.html +64 -8
  288. nautobot/project-static/docs/user-guide/core-data-model/wireless/index.html +64 -8
  289. nautobot/project-static/docs/user-guide/core-data-model/wireless/radioprofile.html +64 -8
  290. nautobot/project-static/docs/user-guide/core-data-model/wireless/supporteddatarate.html +64 -8
  291. nautobot/project-static/docs/user-guide/core-data-model/wireless/wirelessnetwork.html +64 -8
  292. nautobot/project-static/docs/user-guide/feature-guides/contacts-and-teams.html +64 -8
  293. nautobot/project-static/docs/user-guide/feature-guides/custom-fields.html +64 -8
  294. nautobot/project-static/docs/user-guide/feature-guides/data-compliance.html +64 -8
  295. nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-devices.html +64 -8
  296. nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-location-types-and-locations.html +64 -8
  297. nautobot/project-static/docs/user-guide/feature-guides/getting-started/index.html +64 -8
  298. nautobot/project-static/docs/user-guide/feature-guides/getting-started/interfaces.html +64 -8
  299. nautobot/project-static/docs/user-guide/feature-guides/getting-started/ipam.html +64 -8
  300. nautobot/project-static/docs/user-guide/feature-guides/getting-started/platforms.html +64 -8
  301. nautobot/project-static/docs/user-guide/feature-guides/getting-started/search-bar.html +64 -8
  302. nautobot/project-static/docs/user-guide/feature-guides/getting-started/tenants.html +64 -8
  303. nautobot/project-static/docs/user-guide/feature-guides/getting-started/vlans-and-vlan-groups.html +64 -8
  304. nautobot/project-static/docs/user-guide/feature-guides/git-data-source.html +64 -8
  305. nautobot/project-static/docs/user-guide/feature-guides/graphql.html +64 -8
  306. nautobot/project-static/docs/user-guide/feature-guides/ip-address-merge-tool.html +64 -8
  307. nautobot/project-static/docs/user-guide/feature-guides/load-balancers.html +64 -8
  308. nautobot/project-static/docs/user-guide/feature-guides/relationships.html +64 -8
  309. nautobot/project-static/docs/user-guide/feature-guides/software-image-files-and-versions.html +64 -8
  310. nautobot/project-static/docs/user-guide/feature-guides/wireless-networks-and-controllers.html +64 -8
  311. nautobot/project-static/docs/user-guide/index.html +64 -8
  312. nautobot/project-static/docs/user-guide/platform-functionality/approval-workflow.html +64 -8
  313. nautobot/project-static/docs/user-guide/platform-functionality/change-logging.html +64 -8
  314. nautobot/project-static/docs/user-guide/platform-functionality/computedfield.html +64 -8
  315. nautobot/project-static/docs/user-guide/platform-functionality/customfield.html +64 -8
  316. nautobot/project-static/docs/user-guide/platform-functionality/customlink.html +64 -8
  317. nautobot/project-static/docs/user-guide/platform-functionality/data-validation.html +64 -8
  318. nautobot/project-static/docs/user-guide/platform-functionality/dynamicgroup.html +64 -8
  319. nautobot/project-static/docs/user-guide/platform-functionality/echarts.html +64 -8
  320. nautobot/project-static/docs/user-guide/platform-functionality/events.html +64 -8
  321. nautobot/project-static/docs/user-guide/platform-functionality/exporttemplate.html +64 -8
  322. nautobot/project-static/docs/user-guide/platform-functionality/externalintegration.html +64 -8
  323. nautobot/project-static/docs/user-guide/platform-functionality/gitrepository.html +64 -8
  324. nautobot/project-static/docs/user-guide/platform-functionality/graphql.html +64 -8
  325. nautobot/project-static/docs/user-guide/platform-functionality/graphqlquery.html +64 -8
  326. nautobot/project-static/docs/user-guide/platform-functionality/imageattachment.html +64 -8
  327. nautobot/project-static/docs/user-guide/platform-functionality/jobs/index.html +64 -8
  328. nautobot/project-static/docs/user-guide/platform-functionality/jobs/job-scheduling-and-approvals.html +64 -8
  329. nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobbutton.html +64 -8
  330. nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobhook.html +64 -8
  331. nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobqueue.html +64 -8
  332. nautobot/project-static/docs/user-guide/platform-functionality/jobs/kubernetes-job-support.html +64 -8
  333. nautobot/project-static/docs/user-guide/platform-functionality/jobs/managing-jobs.html +64 -8
  334. nautobot/project-static/docs/user-guide/platform-functionality/jobs/models.html +64 -8
  335. nautobot/project-static/docs/user-guide/platform-functionality/napalm.html +64 -8
  336. nautobot/project-static/docs/user-guide/platform-functionality/note.html +64 -8
  337. nautobot/project-static/docs/user-guide/platform-functionality/objectmetadata.html +64 -8
  338. nautobot/project-static/docs/user-guide/platform-functionality/relationship.html +64 -8
  339. nautobot/project-static/docs/user-guide/platform-functionality/rendering-jinja-templates.html +64 -8
  340. nautobot/project-static/docs/user-guide/platform-functionality/rest-api/authentication.html +64 -8
  341. nautobot/project-static/docs/user-guide/platform-functionality/rest-api/filtering.html +116 -34
  342. nautobot/project-static/docs/user-guide/platform-functionality/rest-api/overview.html +64 -8
  343. nautobot/project-static/docs/user-guide/platform-functionality/rest-api/ui-related-endpoints.html +64 -8
  344. nautobot/project-static/docs/user-guide/platform-functionality/role.html +64 -8
  345. nautobot/project-static/docs/user-guide/platform-functionality/secret.html +64 -8
  346. nautobot/project-static/docs/user-guide/platform-functionality/staticgroupassociation.html +64 -8
  347. nautobot/project-static/docs/user-guide/platform-functionality/status.html +64 -8
  348. nautobot/project-static/docs/user-guide/platform-functionality/tag.html +64 -8
  349. nautobot/project-static/docs/user-guide/platform-functionality/template-filters.html +64 -8
  350. nautobot/project-static/docs/user-guide/platform-functionality/user-interface/configurablecolumns.html +64 -8
  351. nautobot/project-static/docs/user-guide/platform-functionality/user-interface/savedview.html +64 -8
  352. nautobot/project-static/docs/user-guide/platform-functionality/user-interface/search.html +64 -8
  353. nautobot/project-static/docs/user-guide/platform-functionality/users/groups.html +64 -8
  354. nautobot/project-static/docs/user-guide/platform-functionality/users/objectpermission.html +64 -8
  355. nautobot/project-static/docs/user-guide/platform-functionality/users/token.html +64 -8
  356. nautobot/project-static/docs/user-guide/platform-functionality/webhook.html +64 -8
  357. nautobot/ui/src/scss/nautobot.scss +2 -1
  358. {nautobot-3.0.4.dist-info → nautobot-3.0.5.dist-info}/METADATA +1 -1
  359. {nautobot-3.0.4.dist-info → nautobot-3.0.5.dist-info}/RECORD +363 -360
  360. {nautobot-3.0.4.dist-info → nautobot-3.0.5.dist-info}/LICENSE.txt +0 -0
  361. {nautobot-3.0.4.dist-info → nautobot-3.0.5.dist-info}/NOTICE +0 -0
  362. {nautobot-3.0.4.dist-info → nautobot-3.0.5.dist-info}/WHEEL +0 -0
  363. {nautobot-3.0.4.dist-info → nautobot-3.0.5.dist-info}/entry_points.txt +0 -0
nautobot/ipam/filters.py CHANGED
@@ -1,4 +1,5 @@
1
1
  import contextlib
2
+ import ipaddress
2
3
  import uuid
3
4
 
4
5
  from django.core.exceptions import ValidationError
@@ -221,6 +222,10 @@ class PrefixFilterSet(
221
222
  method="filter_prefix",
222
223
  label="Prefix",
223
224
  )
225
+ prefix_exact = MultiValueCharFilter(
226
+ method="filter_prefix_exact",
227
+ label="Prefix (exact, strict)",
228
+ )
224
229
  within = MultiValueCharFilter(
225
230
  method="search_within",
226
231
  label="Within prefix",
@@ -327,6 +332,20 @@ class PrefixFilterSet(
327
332
  return queryset.net_equals(*prefixes)
328
333
  return queryset.none()
329
334
 
335
+ def filter_prefix_exact(self, queryset, name, value):
336
+ """
337
+ Strict version of `prefix` filter.
338
+ Rejects prefixes with host bits set (e.g. 10.32.0.34/28 vs 10.32.0.32/28).
339
+ """
340
+ prefixes = self._strip_values(value)
341
+
342
+ for prefix in prefixes:
343
+ try:
344
+ ipaddress.ip_network(prefix, strict=True)
345
+ except ValueError:
346
+ raise ValidationError(f"Invalid prefix_exact value as it is not a subnet boundary: {prefix}.")
347
+ return self.filter_prefix(queryset, name, value)
348
+
330
349
  def search_within(self, queryset, name, value):
331
350
  prefixes = self._strip_values(value)
332
351
  with contextlib.suppress(netaddr.AddrFormatError, ValueError):
@@ -417,6 +436,10 @@ class IPAddressFilterSet(
417
436
  method="search_by_prefix",
418
437
  label="Contained in prefix",
419
438
  )
439
+ prefix_exact = MultiValueCharFilter(
440
+ method="search_by_prefix_exact",
441
+ label="Prefix (exact, strict)",
442
+ )
420
443
  address = MultiValueCharFilter(
421
444
  method="filter_address",
422
445
  label="Address",
@@ -512,17 +535,49 @@ class IPAddressFilterSet(
512
535
  params = self.generate_query__has_interface_assignments(value)
513
536
  return queryset.filter(params)
514
537
 
515
- def search_by_prefix(self, queryset, name, value):
538
+ def _strip_prefix_values(self, values):
539
+ """Normalize inputs: strip whitespace + resolve UUIDs to Prefix.prefix."""
516
540
  prefixes = []
517
- for prefix in value:
541
+ for prefix in values:
518
542
  prefix = prefix.strip()
543
+ if not prefix:
544
+ continue
519
545
  if is_uuid(prefix):
520
546
  prefixes.append(Prefix.objects.get(pk=prefix).prefix)
521
- elif prefix:
547
+ else:
522
548
  prefixes.append(prefix)
549
+ return prefixes
523
550
 
551
+ def search_by_prefix(self, queryset, name, value):
552
+ prefixes = self._strip_prefix_values(value)
524
553
  return queryset.net_host_contained(*prefixes)
525
554
 
555
+ def search_by_prefix_exact(self, queryset, name, value):
556
+ """
557
+ Strict version of `prefix` filter.
558
+ Rejects prefixes with host bits set (e.g. 10.32.0.34/28 vs 10.32.0.32/28).
559
+ """
560
+ prefixes = self._strip_prefix_values(value)
561
+
562
+ # Validate network is on CIDR boundary
563
+ for prefix in prefixes:
564
+ if "/" not in str(prefix):
565
+ # If someone passes a host-only string here, treat it as invalid for "prefix_exact".
566
+ raise ValidationError(f"Invalid prefix_exact value (missing mask): {prefix}")
567
+
568
+ with contextlib.suppress(netaddr.AddrFormatError, ValueError):
569
+ ip_network = netaddr.IPNetwork(str(prefix)).cidr
570
+ # cidr will always a proper network subnet; compare against original input
571
+ if str(ip_network) != str(prefix):
572
+ raise ValidationError(
573
+ f"Invalid prefix_exact value as it is not a subnet boundary: {prefix}, did you mean {ip_network}?"
574
+ )
575
+ continue
576
+
577
+ # Defensive programming in case there is logic missed above
578
+ raise ValidationError(f"Invalid prefix_exact value as it is not a subnet boundary: {prefix}.")
579
+ return self.search_by_prefix(queryset, name, prefixes)
580
+
526
581
  def filter_address(self, queryset, name, value):
527
582
  try:
528
583
  return queryset.net_in(value)
nautobot/ipam/tables.py CHANGED
@@ -40,7 +40,11 @@ AVAILABLE_LABEL = mark_safe('<span class="badge bg-success">Available</span>')
40
40
 
41
41
  UTILIZATION_GRAPH = """
42
42
  {% load helpers %}
43
- {% if record.present_in_database %}{% utilization_graph record.get_utilization %}{% else %}&mdash;{% endif %}
43
+ {% if record.present_in_database %}
44
+ {% utilization_graph record.get_utilization %}
45
+ {% else %}
46
+ <span class="text-secondary">&mdash;</span>
47
+ {% endif %}
44
48
  """
45
49
 
46
50
 
@@ -73,7 +77,7 @@ PREFIX_ROLE_LINK = """
73
77
  {% if record.role %}
74
78
  <a href="{% url 'ipam:prefix_list' %}?role={{ record.role.name }}">{{ record.role }}</a>
75
79
  {% else %}
76
- &mdash;
80
+ <span class="text-secondary">&mdash;</span>
77
81
  {% endif %}
78
82
  """
79
83
 
@@ -157,7 +161,7 @@ VRF_TARGETS = """
157
161
  {% for rt in value.all %}
158
162
  <a href="{{ rt.get_absolute_url }}">{{ rt }}</a>{% if not forloop.last %}<br />{% endif %}
159
163
  {% empty %}
160
- &mdash;
164
+ <span class="text-secondary">&mdash;</span>
161
165
  {% endfor %}
162
166
  """
163
167
 
@@ -179,7 +183,7 @@ VLAN_PREFIXES = """
179
183
  {% for prefix in record.prefixes.all %}
180
184
  <a href="{% url 'ipam:prefix' pk=prefix.pk %}">{{ prefix }}</a>{% if not forloop.last %}<br />{% endif %}
181
185
  {% empty %}
182
- &mdash;
186
+ <span class="text-secondary">&mdash;</span>
183
187
  {% endfor %}
184
188
  """
185
189
 
@@ -1,4 +1,5 @@
1
1
  from django.contrib.contenttypes.models import ContentType
2
+ from django.core.exceptions import ValidationError
2
3
  from django.db.models import Q
3
4
 
4
5
  from nautobot.core.testing import FilterTestCases, TestCase
@@ -242,6 +243,32 @@ class PrefixTestCase(FilterTestCases.FilterTestCase, FilterTestCases.TenancyFilt
242
243
  ancestors = [ancestor.id for ancestor in prefixes[2].ancestors()]
243
244
  self.assertQuerysetEqualAndNotEmpty(filterset.qs, self.queryset.filter(id__in=ancestors))
244
245
 
246
+ def test_prefix(self):
247
+ Prefix.objects.create(
248
+ prefix="192.0.2.0/29",
249
+ type=PrefixTypeChoices.TYPE_POOL,
250
+ namespace=Namespace.objects.first(),
251
+ status=Status.objects.get_for_model(Prefix).first(),
252
+ )
253
+ params = {"prefix": "192.0.2.0/29"}
254
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
255
+ params = {"prefix": "192.0.2.1/29"}
256
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
257
+
258
+ def test_prefix_exact(self):
259
+ Prefix.objects.create(
260
+ prefix="192.0.2.0/29",
261
+ type=PrefixTypeChoices.TYPE_POOL,
262
+ namespace=Namespace.objects.first(),
263
+ status=Status.objects.get_for_model(Prefix).first(),
264
+ )
265
+ params = {"prefix_exact": "192.0.2.0/29"}
266
+ self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
267
+ params = {"prefix_exact": "192.0.2.1/29"}
268
+ with self.assertRaises(ValidationError) as exc:
269
+ self.filterset(params, self.queryset).qs # pylint: disable=expression-not-assigned
270
+ self.assertTrue("Invalid prefix_exact value" in str(exc.exception))
271
+
245
272
 
246
273
  class PrefixLocationAssignmentTestCase(FilterTestCases.FilterTestCase):
247
274
  queryset = PrefixLocationAssignment.objects.all()
@@ -807,6 +834,34 @@ class IPAddressTestCase(FilterTestCases.FilterTestCase, FilterTestCases.TenancyF
807
834
  self.filterset(params, self.queryset).qs, self.queryset.net_host_contained(ipv4_parent, ipv6_parent)
808
835
  )
809
836
 
837
+ def test_prefix_exact(self):
838
+ ipv4_parent = self.queryset.filter(ip_version=4).first().address.supernet()[-1]
839
+ ipv6_parent = self.queryset.filter(ip_version=6).first().address.supernet()[-1]
840
+
841
+ params = {"prefix_exact": [str(ipv4_parent), str(ipv6_parent)]}
842
+ self.assertQuerysetEqualAndNotEmpty(
843
+ self.filterset(params, self.queryset).qs, self.queryset.net_host_contained(ipv4_parent, ipv6_parent)
844
+ )
845
+
846
+ # Get the first usable IP address in the subnet (not the network address)
847
+ ipv4_parent = self.queryset.filter(ip_version=4).first().address
848
+ ipv6_parent = self.queryset.filter(ip_version=6).first().address
849
+
850
+ params = {"prefix_exact": [str(ipv4_parent)]}
851
+ with self.assertRaises(ValidationError) as exc:
852
+ self.filterset(params, self.queryset).qs # pylint: disable=expression-not-assigned
853
+ self.assertTrue("Invalid prefix_exact value" in str(exc.exception))
854
+
855
+ params = {"prefix_exact": [str(ipv6_parent)]}
856
+ with self.assertRaises(ValidationError) as exc:
857
+ self.filterset(params, self.queryset).qs # pylint: disable=expression-not-assigned
858
+ self.assertTrue("Invalid prefix_exact value" in str(exc.exception))
859
+
860
+ params = {"prefix_exact": ["10.1.1.1"]}
861
+ with self.assertRaises(ValidationError) as exc:
862
+ self.filterset(params, self.queryset).qs # pylint: disable=expression-not-assigned
863
+ self.assertTrue("Invalid prefix_exact value (missing mask)" in str(exc.exception))
864
+
810
865
  def test_filter_address(self):
811
866
  """Check IPv4 and IPv6, with and without a mask"""
812
867
  ipv4_addresses = self.queryset.filter(ip_version=4)[:2]