nautobot 2.4.13__py3-none-any.whl → 2.4.15__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 nautobot might be problematic. Click here for more details.
- nautobot/apps/choices.py +8 -0
- nautobot/apps/ui.py +14 -0
- nautobot/core/api/views.py +2 -0
- nautobot/core/choices.py +4 -0
- nautobot/core/filters.py +21 -41
- nautobot/core/graphql/generators.py +8 -0
- nautobot/core/graphql/schema.py +30 -30
- nautobot/core/management/commands/check_job_approval_status.py +47 -0
- nautobot/core/management/commands/generate_test_data.py +1 -1
- nautobot/core/management/commands/migrate.py +90 -1
- nautobot/core/models/tree_queries.py +17 -0
- nautobot/core/settings.py +2 -2
- nautobot/core/settings.yaml +3 -3
- nautobot/core/tables.py +29 -6
- nautobot/core/templates/base_django.html +1 -1
- nautobot/core/templates/components/panel/header_extra_content_table.html +1 -1
- nautobot/core/templates/generic/object_list.html +17 -20
- nautobot/core/templates/inc/breadcrumbs.html +14 -0
- nautobot/core/templatetags/buttons.py +2 -4
- nautobot/core/templatetags/helpers.py +29 -6
- nautobot/core/templatetags/ui_framework.py +21 -0
- nautobot/core/testing/api.py +7 -0
- nautobot/core/testing/filters.py +20 -3
- nautobot/core/testing/forms.py +1 -1
- nautobot/core/tests/integration/test_filters.py +2 -2
- nautobot/core/tests/test_breadcrumbs.py +366 -0
- nautobot/core/tests/test_commands.py +40 -0
- nautobot/core/tests/test_filters.py +51 -1
- nautobot/core/tests/test_forms.py +1 -1
- nautobot/core/tests/test_graphql.py +4 -4
- nautobot/core/tests/test_titles.py +183 -0
- nautobot/core/tests/test_tree_queries.py +30 -0
- nautobot/core/tests/test_views.py +2 -2
- nautobot/core/tests/test_views_utils.py +1 -1
- nautobot/core/ui/breadcrumbs.py +538 -0
- nautobot/core/ui/bulk_buttons.py +53 -0
- nautobot/core/ui/object_detail.py +31 -8
- nautobot/core/ui/titles.py +127 -0
- nautobot/core/ui/utils.py +25 -0
- nautobot/core/utils/migrations.py +1 -1
- nautobot/core/views/__init__.py +1 -1
- nautobot/core/views/mixins.py +26 -1
- nautobot/core/views/renderers.py +20 -2
- nautobot/core/views/utils.py +14 -13
- nautobot/dcim/api/serializers.py +9 -0
- nautobot/dcim/choices.py +55 -0
- nautobot/dcim/constants.py +0 -16
- nautobot/dcim/factory.py +1 -1
- nautobot/dcim/filters/__init__.py +15 -3
- nautobot/dcim/forms.py +120 -7
- nautobot/dcim/management/commands/trace_paths.py +1 -1
- nautobot/dcim/migrations/0072_alter_powerfeed_options_and_more.py +97 -0
- nautobot/dcim/models/device_component_templates.py +8 -0
- nautobot/dcim/models/device_components.py +31 -12
- nautobot/dcim/models/devices.py +1 -1
- nautobot/dcim/models/power.py +171 -10
- nautobot/dcim/models/racks.py +7 -4
- nautobot/dcim/tables/devices.py +2 -0
- nautobot/dcim/tables/devicetypes.py +1 -0
- nautobot/dcim/tables/power.py +30 -2
- nautobot/dcim/templates/dcim/device.html +2 -2
- nautobot/dcim/templates/dcim/devicetype_retrieve.html +1 -214
- nautobot/dcim/templates/dcim/location_retrieve.html +2 -2
- nautobot/dcim/templates/dcim/powerfeed_edit.html +8 -0
- nautobot/dcim/templates/dcim/powerfeed_retrieve.html +1 -1
- nautobot/dcim/templates/dcim/rack.html +2 -318
- nautobot/dcim/templates/dcim/rack_edit.html +2 -47
- nautobot/dcim/templates/dcim/rack_retrieve.html +318 -0
- nautobot/dcim/templates/dcim/rack_update.html +47 -0
- nautobot/dcim/tests/integration/test_device_bulk_operations.py +61 -0
- nautobot/dcim/tests/test_api.py +24 -4
- nautobot/dcim/tests/test_filters.py +91 -13
- nautobot/dcim/tests/test_models.py +262 -0
- nautobot/dcim/tests/test_views.py +20 -12
- nautobot/dcim/urls.py +2 -27
- nautobot/dcim/utils.py +13 -30
- nautobot/dcim/views.py +428 -146
- nautobot/extras/choices.py +12 -4
- nautobot/extras/factory.py +19 -20
- nautobot/extras/filters/__init__.py +3 -2
- nautobot/extras/filters/mixins.py +23 -7
- nautobot/extras/forms/__init__.py +2 -1
- nautobot/extras/forms/forms.py +71 -0
- nautobot/extras/forms/mixins.py +4 -2
- nautobot/extras/managers.py +4 -1
- nautobot/extras/migrations/0062_collect_roles_from_related_apps_roles.py +30 -7
- nautobot/extras/migrations/0124_add_joblogentry_index.py +16 -0
- nautobot/extras/migrations/0125_jobresult_date_started.py +18 -0
- nautobot/extras/models/customfields.py +53 -5
- nautobot/extras/models/datasources.py +1 -2
- nautobot/extras/models/jobs.py +13 -3
- nautobot/extras/models/relationships.py +55 -6
- nautobot/extras/plugins/views.py +24 -1
- nautobot/extras/secrets/__init__.py +1 -1
- nautobot/extras/tables.py +9 -0
- nautobot/extras/templates/extras/customfield.html +2 -129
- nautobot/extras/templates/extras/customfield_edit.html +2 -108
- nautobot/extras/templates/extras/customfield_retrieve.html +129 -0
- nautobot/extras/templates/extras/customfield_update.html +108 -0
- nautobot/extras/templates/extras/graphqlquery.html +2 -97
- nautobot/extras/templates/extras/graphqlquery_list.html +1 -0
- nautobot/extras/templates/extras/graphqlquery_retrieve.html +97 -0
- nautobot/extras/templates/extras/inc/jobresult.html +7 -3
- nautobot/extras/templates/extras/jobresult.html +2 -155
- nautobot/extras/templates/extras/jobresult_retrieve.html +155 -0
- nautobot/extras/templates/extras/marketplace.html +5 -6
- nautobot/extras/templates/extras/note.html +2 -53
- nautobot/extras/templates/extras/note_retrieve.html +53 -0
- nautobot/extras/templates/extras/plugins_list.html +5 -6
- nautobot/extras/templates/extras/secretsgroup.html +2 -29
- nautobot/extras/templates/extras/secretsgroup_edit.html +2 -82
- nautobot/extras/templates/extras/secretsgroup_retrieve.html +29 -0
- nautobot/extras/templates/extras/secretsgroup_update.html +82 -0
- nautobot/extras/templatetags/custom_links.py +2 -2
- nautobot/extras/templatetags/job_buttons.py +1 -1
- nautobot/extras/templatetags/plugins.py +1 -1
- nautobot/extras/tests/integration/test_computedfields.py +2 -2
- nautobot/extras/tests/integration/test_customfields.py +14 -11
- nautobot/extras/tests/integration/test_dynamicgroups.py +1 -1
- nautobot/extras/tests/integration/test_notes.py +1 -1
- nautobot/extras/tests/integration/test_plugins.py +6 -6
- nautobot/extras/tests/integration/test_relationships.py +2 -2
- nautobot/extras/tests/test_customfields.py +115 -7
- nautobot/extras/tests/test_filters.py +9 -0
- nautobot/extras/tests/test_forms.py +2 -2
- nautobot/extras/tests/test_plugins.py +2 -3
- nautobot/extras/tests/test_relationships.py +14 -8
- nautobot/extras/tests/test_views.py +285 -2
- nautobot/extras/urls.py +5 -110
- nautobot/extras/utils.py +5 -2
- nautobot/extras/views.py +116 -311
- nautobot/ipam/api/views.py +69 -6
- nautobot/ipam/tables.py +8 -15
- nautobot/ipam/tests/migration/test_migrations.py +8 -8
- nautobot/ipam/tests/test_api.py +352 -2
- nautobot/ipam/tests/test_models.py +1 -1
- nautobot/project-static/docs/404.html +34 -34
- nautobot/project-static/docs/apps/index.html +34 -34
- nautobot/project-static/docs/apps/nautobot-apps.html +34 -34
- nautobot/project-static/docs/assets/_mkdocstrings.css +44 -6
- nautobot/project-static/docs/assets/javascripts/{bundle.56ea9cef.min.js → bundle.50899def.min.js} +2 -2
- nautobot/project-static/docs/assets/javascripts/{bundle.56ea9cef.min.js.map → bundle.50899def.min.js.map} +2 -2
- nautobot/project-static/docs/assets/stylesheets/{main.342714a4.min.css → main.7e37652d.min.css} +1 -1
- nautobot/project-static/docs/assets/stylesheets/{main.342714a4.min.css.map → main.7e37652d.min.css.map} +1 -1
- nautobot/project-static/docs/code-reference/nautobot/apps/__init__.html +39 -34
- nautobot/project-static/docs/code-reference/nautobot/apps/admin.html +36 -34
- nautobot/project-static/docs/code-reference/nautobot/apps/api.html +139 -54
- nautobot/project-static/docs/code-reference/nautobot/apps/change_logging.html +48 -38
- nautobot/project-static/docs/code-reference/nautobot/apps/choices.html +50 -40
- nautobot/project-static/docs/code-reference/nautobot/apps/config.html +36 -34
- nautobot/project-static/docs/code-reference/nautobot/apps/constants.html +35 -34
- nautobot/project-static/docs/code-reference/nautobot/apps/datasources.html +43 -39
- nautobot/project-static/docs/code-reference/nautobot/apps/events.html +52 -42
- nautobot/project-static/docs/code-reference/nautobot/apps/exceptions.html +50 -41
- nautobot/project-static/docs/code-reference/nautobot/apps/factory.html +54 -44
- nautobot/project-static/docs/code-reference/nautobot/apps/filters.html +85 -93
- nautobot/project-static/docs/code-reference/nautobot/apps/forms.html +154 -62
- nautobot/project-static/docs/code-reference/nautobot/apps/graphql.html +54 -46
- nautobot/project-static/docs/code-reference/nautobot/apps/jobs.html +146 -87
- nautobot/project-static/docs/code-reference/nautobot/apps/models.html +240 -70
- nautobot/project-static/docs/code-reference/nautobot/apps/querysets.html +38 -35
- nautobot/project-static/docs/code-reference/nautobot/apps/secrets.html +41 -35
- nautobot/project-static/docs/code-reference/nautobot/apps/tables.html +173 -52
- nautobot/project-static/docs/code-reference/nautobot/apps/testing.html +269 -85
- nautobot/project-static/docs/code-reference/nautobot/apps/ui.html +5987 -2643
- nautobot/project-static/docs/code-reference/nautobot/apps/urls.html +36 -34
- nautobot/project-static/docs/code-reference/nautobot/apps/utils.html +165 -89
- nautobot/project-static/docs/code-reference/nautobot/apps/views.html +161 -69
- nautobot/project-static/docs/development/apps/api/configuration-view.html +34 -34
- nautobot/project-static/docs/development/apps/api/database-backend-config.html +34 -34
- nautobot/project-static/docs/development/apps/api/models/django-admin.html +34 -34
- nautobot/project-static/docs/development/apps/api/models/global-search.html +34 -34
- nautobot/project-static/docs/development/apps/api/models/graphql.html +34 -34
- nautobot/project-static/docs/development/apps/api/models/index.html +34 -34
- nautobot/project-static/docs/development/apps/api/nautobot-app-config.html +34 -34
- nautobot/project-static/docs/development/apps/api/platform-features/custom-validators.html +34 -34
- nautobot/project-static/docs/development/apps/api/platform-features/filter-extensions.html +34 -34
- nautobot/project-static/docs/development/apps/api/platform-features/git-repository-content.html +34 -34
- nautobot/project-static/docs/development/apps/api/platform-features/index.html +34 -34
- nautobot/project-static/docs/development/apps/api/platform-features/jinja2-filters.html +34 -34
- nautobot/project-static/docs/development/apps/api/platform-features/jobs.html +34 -34
- nautobot/project-static/docs/development/apps/api/platform-features/populating-extensibility-features.html +34 -34
- nautobot/project-static/docs/development/apps/api/platform-features/secrets-providers.html +34 -34
- nautobot/project-static/docs/development/apps/api/platform-features/table-extensions.html +34 -34
- nautobot/project-static/docs/development/apps/api/platform-features/uniquely-identify-objects.html +34 -34
- nautobot/project-static/docs/development/apps/api/prometheus.html +34 -34
- nautobot/project-static/docs/development/apps/api/setup.html +34 -34
- nautobot/project-static/docs/development/apps/api/testing.html +34 -34
- nautobot/project-static/docs/development/apps/api/ui-extensions/banners.html +34 -34
- nautobot/project-static/docs/development/apps/api/ui-extensions/home-page.html +34 -34
- nautobot/project-static/docs/development/apps/api/ui-extensions/index.html +34 -34
- nautobot/project-static/docs/development/apps/api/ui-extensions/navigation.html +34 -34
- nautobot/project-static/docs/development/apps/api/ui-extensions/object-views.html +34 -34
- nautobot/project-static/docs/development/apps/api/views/base-template.html +34 -34
- nautobot/project-static/docs/development/apps/api/views/core-view-overrides.html +34 -34
- nautobot/project-static/docs/development/apps/api/views/django-generic-views.html +34 -34
- nautobot/project-static/docs/development/apps/api/views/help-documentation.html +34 -34
- nautobot/project-static/docs/development/apps/api/views/index.html +34 -34
- nautobot/project-static/docs/development/apps/api/views/nautobot-generic-views.html +34 -34
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewset.html +42 -36
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewsetrouter.html +34 -34
- nautobot/project-static/docs/development/apps/api/views/notes.html +34 -34
- nautobot/project-static/docs/development/apps/api/views/rest-api.html +34 -34
- nautobot/project-static/docs/development/apps/api/views/urls.html +34 -34
- nautobot/project-static/docs/development/apps/index.html +34 -34
- nautobot/project-static/docs/development/apps/migration/code-updates.html +34 -34
- nautobot/project-static/docs/development/apps/migration/dependency-updates.html +34 -34
- nautobot/project-static/docs/development/apps/migration/from-v1.html +34 -34
- nautobot/project-static/docs/development/apps/migration/model-updates/dcim.html +34 -34
- nautobot/project-static/docs/development/apps/migration/model-updates/extras.html +34 -34
- nautobot/project-static/docs/development/apps/migration/model-updates/global.html +34 -34
- nautobot/project-static/docs/development/apps/migration/model-updates/ipam.html +34 -34
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/best-practices.html +37 -37
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/breadcrumbs-titles.html +10544 -0
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/custom-content.html +34 -34
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/index.html +34 -34
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/migration-steps.html +34 -34
- nautobot/project-static/docs/development/apps/porting-from-netbox.html +37 -37
- nautobot/project-static/docs/development/core/application-registry.html +162 -133
- nautobot/project-static/docs/development/core/best-practices.html +34 -34
- nautobot/project-static/docs/development/core/bootstrap-ui.html +34 -34
- nautobot/project-static/docs/development/core/caching.html +34 -34
- nautobot/project-static/docs/development/core/controllers.html +34 -34
- nautobot/project-static/docs/development/core/docker-compose-advanced-use-cases.html +34 -34
- nautobot/project-static/docs/development/core/generic-views.html +34 -34
- nautobot/project-static/docs/development/core/getting-started.html +34 -34
- nautobot/project-static/docs/development/core/homepage.html +34 -34
- nautobot/project-static/docs/development/core/index.html +34 -34
- nautobot/project-static/docs/development/core/minikube-dev-environment-for-k8s-jobs.html +34 -34
- nautobot/project-static/docs/development/core/model-checklist.html +34 -34
- nautobot/project-static/docs/development/core/model-features.html +34 -34
- nautobot/project-static/docs/development/core/natural-keys.html +34 -34
- nautobot/project-static/docs/development/core/navigation-menu.html +34 -34
- nautobot/project-static/docs/development/core/release-checklist.html +34 -34
- nautobot/project-static/docs/development/core/role-internals.html +34 -34
- nautobot/project-static/docs/development/core/settings.html +34 -34
- nautobot/project-static/docs/development/core/style-guide.html +34 -34
- nautobot/project-static/docs/development/core/templates.html +34 -34
- nautobot/project-static/docs/development/core/testing.html +34 -34
- nautobot/project-static/docs/development/core/ui-component-framework.html +724 -289
- nautobot/project-static/docs/development/core/user-preferences.html +34 -34
- nautobot/project-static/docs/development/index.html +34 -34
- nautobot/project-static/docs/development/jobs/getting-started.html +34 -34
- nautobot/project-static/docs/development/jobs/index.html +34 -34
- nautobot/project-static/docs/development/jobs/installation.html +34 -34
- nautobot/project-static/docs/development/jobs/job-extensions.html +34 -34
- nautobot/project-static/docs/development/jobs/job-logging.html +34 -34
- nautobot/project-static/docs/development/jobs/job-patterns.html +34 -34
- nautobot/project-static/docs/development/jobs/job-structure.html +34 -34
- nautobot/project-static/docs/development/jobs/migration/from-v1.html +34 -34
- nautobot/project-static/docs/development/jobs/testing.html +34 -34
- nautobot/project-static/docs/index.html +34 -34
- nautobot/project-static/docs/media/development/core/ui-component-framework/breadcrumbs-titles-data-flow.png +0 -0
- nautobot/project-static/docs/media/power_distribution.png +0 -0
- nautobot/project-static/docs/objects.inv +0 -0
- nautobot/project-static/docs/overview/application_stack.html +34 -34
- nautobot/project-static/docs/overview/design_philosophy.html +34 -34
- nautobot/project-static/docs/release-notes/index.html +34 -34
- nautobot/project-static/docs/release-notes/version-1.0.html +34 -34
- nautobot/project-static/docs/release-notes/version-1.1.html +34 -34
- nautobot/project-static/docs/release-notes/version-1.2.html +34 -34
- nautobot/project-static/docs/release-notes/version-1.3.html +34 -34
- nautobot/project-static/docs/release-notes/version-1.4.html +34 -34
- nautobot/project-static/docs/release-notes/version-1.5.html +34 -34
- nautobot/project-static/docs/release-notes/version-1.6.html +34 -34
- nautobot/project-static/docs/release-notes/version-2.0.html +34 -34
- nautobot/project-static/docs/release-notes/version-2.1.html +34 -34
- nautobot/project-static/docs/release-notes/version-2.2.html +34 -34
- nautobot/project-static/docs/release-notes/version-2.3.html +34 -34
- nautobot/project-static/docs/release-notes/version-2.4.html +402 -34
- nautobot/project-static/docs/requirements.txt +3 -3
- nautobot/project-static/docs/search/search_index.json +1 -1
- nautobot/project-static/docs/sitemap.xml +303 -299
- nautobot/project-static/docs/sitemap.xml.gz +0 -0
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/ldap.html +34 -34
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/remote.html +34 -34
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/sso.html +34 -34
- nautobot/project-static/docs/user-guide/administration/configuration/index.html +34 -34
- nautobot/project-static/docs/user-guide/administration/configuration/redis.html +34 -34
- nautobot/project-static/docs/user-guide/administration/configuration/settings.html +37 -37
- nautobot/project-static/docs/user-guide/administration/configuration/time-zones.html +34 -34
- nautobot/project-static/docs/user-guide/administration/guides/celery-queues.html +34 -34
- nautobot/project-static/docs/user-guide/administration/guides/docker.html +34 -34
- nautobot/project-static/docs/user-guide/administration/guides/health-checks.html +34 -34
- nautobot/project-static/docs/user-guide/administration/guides/permissions.html +34 -34
- nautobot/project-static/docs/user-guide/administration/guides/prometheus-metrics.html +34 -34
- nautobot/project-static/docs/user-guide/administration/guides/replicating-nautobot.html +34 -34
- nautobot/project-static/docs/user-guide/administration/guides/request-profiling.html +34 -34
- nautobot/project-static/docs/user-guide/administration/guides/s3-django-storage.html +34 -34
- nautobot/project-static/docs/user-guide/administration/guides/selinux-troubleshooting.html +34 -34
- nautobot/project-static/docs/user-guide/administration/installation/app-install.html +34 -34
- nautobot/project-static/docs/user-guide/administration/installation/external-authentication.html +34 -34
- nautobot/project-static/docs/user-guide/administration/installation/http-server.html +34 -34
- nautobot/project-static/docs/user-guide/administration/installation/index.html +34 -34
- nautobot/project-static/docs/user-guide/administration/installation/install_system.html +34 -34
- nautobot/project-static/docs/user-guide/administration/installation/nautobot.html +34 -34
- nautobot/project-static/docs/user-guide/administration/installation/services.html +34 -34
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-netbox.html +34 -34
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-postgresql.html +34 -34
- nautobot/project-static/docs/user-guide/administration/security/index.html +34 -34
- nautobot/project-static/docs/user-guide/administration/security/notices.html +34 -34
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-server.html +296 -251
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-shell.html +34 -34
- nautobot/project-static/docs/user-guide/administration/upgrading/database-backup.html +34 -34
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/after-you-upgrade.html +34 -34
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/before-you-upgrade.html +34 -34
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/for-developers.html +34 -34
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/index.html +34 -34
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/whats-changed.html +34 -34
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/region-and-site-data-migration-guide.html +34 -34
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/upgrading-from-nautobot-v1.html +34 -34
- nautobot/project-static/docs/user-guide/administration/upgrading/upgrading.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuit.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittermination.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittype.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/circuits/provider.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/circuits/providernetwork.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloud.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudaccount.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetwork.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetworkprefixassignment.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudresourcetype.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservice.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservicenetworkassignment.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/cable.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleport.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleporttemplate.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverport.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverporttemplate.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controller.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controllermanageddevicegroup.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/device.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebay.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebaytemplate.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicefamily.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/deviceredundancygroup.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicetype.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontport.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontporttemplate.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interface.html +37 -37
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfaceredundancygroup.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfacetemplate.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/inventoryitem.html +42 -52
- nautobot/project-static/docs/user-guide/core-data-model/dcim/location.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/locationtype.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/manufacturer.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/module.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebay.html +37 -37
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebaytemplate.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulefamily.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/moduletype.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/platform.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerfeed.html +316 -39
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlet.html +35 -35
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlettemplate.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerpanel.html +147 -37
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerport.html +52 -35
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerporttemplate.html +51 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rack.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackgroup.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackreservation.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearport.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearporttemplate.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareimagefile.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareversion.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualchassis.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualdevicecontext.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontext.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontextschema.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/extras/contact.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/extras/team.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/ipam/ipaddress.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/ipam/namespace.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/ipam/prefix.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/ipam/rir.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/ipam/routetarget.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/ipam/service.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlan.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlangroup.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vrf.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/overview/introduction.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenant.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenantgroup.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/cluster.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustergroup.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustertype.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/virtualmachine.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/vminterface.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/wireless/index.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/wireless/radioprofile.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/wireless/supporteddatarate.html +34 -34
- nautobot/project-static/docs/user-guide/core-data-model/wireless/wirelessnetwork.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/contacts-and-teams.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/custom-fields.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-devices.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-location-types-and-locations.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/index.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/interfaces.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/ipam.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/platforms.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/search-bar.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/tenants.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/vlans-and-vlan-groups.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/git-data-source.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/graphql.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/ip-address-merge-tool.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/relationships.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/software-image-files-and-versions.html +34 -34
- nautobot/project-static/docs/user-guide/feature-guides/wireless-networks-and-controllers.html +34 -34
- nautobot/project-static/docs/user-guide/index.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/change-logging.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/computedfield.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/customfield.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/customlink.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/dynamicgroup.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/events.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/exporttemplate.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/externalintegration.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/gitrepository.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/graphql.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/graphqlquery.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/imageattachment.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/index.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/job-scheduling-and-approvals.html +35 -35
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobbutton.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobhook.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobqueue.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/kubernetes-job-support.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/managing-jobs.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/models.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/napalm.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/note.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/objectmetadata.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/relationship.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/rendering-jinja-templates.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/authentication.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/filtering.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/overview.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/ui-related-endpoints.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/role.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/savedview.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/secret.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/staticgroupassociation.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/status.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/tag.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/template-filters.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/users/objectpermission.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/users/token.html +34 -34
- nautobot/project-static/docs/user-guide/platform-functionality/webhook.html +34 -34
- nautobot/tenancy/api/views.py +2 -1
- nautobot/users/tests/test_api.py +2 -2
- nautobot/virtualization/templates/virtualization/virtualmachine.html +2 -252
- nautobot/virtualization/templates/virtualization/virtualmachine_edit.html +2 -75
- nautobot/virtualization/templates/virtualization/virtualmachine_retrieve.html +252 -0
- nautobot/virtualization/templates/virtualization/virtualmachine_update.html +75 -0
- nautobot/virtualization/urls.py +3 -61
- nautobot/virtualization/views.py +48 -72
- {nautobot-2.4.13.dist-info → nautobot-2.4.15.dist-info}/METADATA +27 -27
- {nautobot-2.4.13.dist-info → nautobot-2.4.15.dist-info}/RECORD +463 -439
- {nautobot-2.4.13.dist-info → nautobot-2.4.15.dist-info}/LICENSE.txt +0 -0
- {nautobot-2.4.13.dist-info → nautobot-2.4.15.dist-info}/NOTICE +0 -0
- {nautobot-2.4.13.dist-info → nautobot-2.4.15.dist-info}/WHEEL +0 -0
- {nautobot-2.4.13.dist-info → nautobot-2.4.15.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
{% extends 'generic/object_retrieve.html' %}
|
|
2
|
+
{% load helpers %}
|
|
3
|
+
{% load static %}
|
|
4
|
+
|
|
5
|
+
{% block extra_breadcrumbs %}
|
|
6
|
+
<li><a href="{% url 'dcim:rack_list' %}?location={{ object.location.pk }}">{{ object.location }}</a></li>
|
|
7
|
+
{% if object.rack_group %}
|
|
8
|
+
{% for rack_group in object.rack_group.ancestors %}
|
|
9
|
+
<li>{{ rack_group|hyperlinked_object }}</li>
|
|
10
|
+
{% endfor %}
|
|
11
|
+
<li>{{ object.rack_group|hyperlinked_object }}</li>
|
|
12
|
+
{% endif %}
|
|
13
|
+
{% endblock extra_breadcrumbs %}
|
|
14
|
+
|
|
15
|
+
{% block extra_buttons %}
|
|
16
|
+
<a {% if prev_rack %}href="{% url 'dcim:rack' pk=prev_rack.pk %}"{% else %}disabled="disabled"{% endif %} class="btn btn-primary">
|
|
17
|
+
<span class="mdi mdi-chevron-left" aria-hidden="true"></span> Previous Rack
|
|
18
|
+
</a>
|
|
19
|
+
<a {% if next_rack %}href="{% url 'dcim:rack' pk=next_rack.pk %}"{% else %}disabled="disabled"{% endif %} class="btn btn-primary">
|
|
20
|
+
<span class="mdi mdi-chevron-right" aria-hidden="true"></span> Next Rack
|
|
21
|
+
</a>
|
|
22
|
+
{% endblock extra_buttons %}
|
|
23
|
+
|
|
24
|
+
{% block title %}Rack {{ object }}{% endblock title %}
|
|
25
|
+
|
|
26
|
+
{% block panel_buttons %}
|
|
27
|
+
<button class="btn btn-sm btn-default toggle-fullname" selected="selected">
|
|
28
|
+
<span class="mdi mdi-checkbox-marked-circle-outline" aria-hidden="true"></span> Show Device Full Name
|
|
29
|
+
</button>
|
|
30
|
+
<button class="btn btn-sm btn-default toggle-images" selected="selected">
|
|
31
|
+
<span class="mdi mdi-checkbox-marked-circle-outline" aria-hidden="true"></span> Show Images
|
|
32
|
+
</button>
|
|
33
|
+
{% endblock panel_buttons %}
|
|
34
|
+
|
|
35
|
+
{% block content_left_page %}
|
|
36
|
+
<div class="panel panel-default">
|
|
37
|
+
<div class="panel-heading">
|
|
38
|
+
<strong>Rack</strong>
|
|
39
|
+
</div>
|
|
40
|
+
<table class="table table-hover panel-body attr-table">
|
|
41
|
+
<tr>
|
|
42
|
+
<td>Location</td>
|
|
43
|
+
<td>{% include 'dcim/inc/location_hierarchy.html' with location=object.location %}</td>
|
|
44
|
+
</tr>
|
|
45
|
+
<tr>
|
|
46
|
+
<td>Rack Group</td>
|
|
47
|
+
<td>
|
|
48
|
+
{% if object.rack_group %}
|
|
49
|
+
{% for rack_group in object.rack_group.ancestors %}
|
|
50
|
+
{{ rack_group|hyperlinked_object }} /
|
|
51
|
+
{% endfor %}
|
|
52
|
+
{% endif %}
|
|
53
|
+
{{ object.rack_group|hyperlinked_object }}
|
|
54
|
+
</td>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr>
|
|
57
|
+
<td>Facility ID</td>
|
|
58
|
+
<td>{{ object.facility_id|placeholder }}</td>
|
|
59
|
+
</tr>
|
|
60
|
+
{% include 'inc/tenant_table_row.html' %}
|
|
61
|
+
<tr>
|
|
62
|
+
<td>Status</td>
|
|
63
|
+
<td>
|
|
64
|
+
{{ object.status| hyperlinked_object_with_color }}
|
|
65
|
+
</td>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr>
|
|
68
|
+
<td>Role</td>
|
|
69
|
+
<td>{{ object.role | hyperlinked_object_with_color }}</td>
|
|
70
|
+
</tr>
|
|
71
|
+
<tr>
|
|
72
|
+
<td>Serial Number</td>
|
|
73
|
+
<td>{{ object.serial|placeholder }}</td>
|
|
74
|
+
</tr>
|
|
75
|
+
<tr>
|
|
76
|
+
<td>Asset Tag</td>
|
|
77
|
+
<td>{{ object.asset_tag|placeholder }}</td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td>Devices</td>
|
|
81
|
+
<td>
|
|
82
|
+
<a href="{% url 'dcim:device_list' %}?rack={{ object.id }}">{{ device_count }}</a>
|
|
83
|
+
</td>
|
|
84
|
+
</tr>
|
|
85
|
+
<tr>
|
|
86
|
+
<td>Space Utilization</td>
|
|
87
|
+
<td>{% utilization_graph object.get_utilization %}</td>
|
|
88
|
+
</tr>
|
|
89
|
+
<tr>
|
|
90
|
+
<td>Power Utilization</td>
|
|
91
|
+
<td>{% utilization_graph object.get_power_utilization %}</td>
|
|
92
|
+
</tr>
|
|
93
|
+
</table>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="panel panel-default">
|
|
96
|
+
<div class="panel-heading">
|
|
97
|
+
<strong>Dimensions</strong>
|
|
98
|
+
</div>
|
|
99
|
+
<table class="table table-hover panel-body attr-table">
|
|
100
|
+
<tr>
|
|
101
|
+
<td>Type</td>
|
|
102
|
+
<td>
|
|
103
|
+
{% if object.type %}
|
|
104
|
+
{{ object.get_type_display }}
|
|
105
|
+
{% else %}
|
|
106
|
+
<span class="text-muted">None</span>
|
|
107
|
+
{% endif %}
|
|
108
|
+
</td>
|
|
109
|
+
</tr>
|
|
110
|
+
<tr>
|
|
111
|
+
<td>Width</td>
|
|
112
|
+
<td>{{ object.get_width_display }}</td>
|
|
113
|
+
</tr>
|
|
114
|
+
<tr>
|
|
115
|
+
<td>Height</td>
|
|
116
|
+
<td>{{ object.u_height }}U ({% if object.desc_units %}descending{% else %}ascending{% endif %})</td>
|
|
117
|
+
</tr>
|
|
118
|
+
<tr>
|
|
119
|
+
<td>Outer Width</td>
|
|
120
|
+
<td>
|
|
121
|
+
{% if object.outer_width %}
|
|
122
|
+
<span>{{ object.outer_width }} {{ object.get_outer_unit_display }}</span>
|
|
123
|
+
{% else %}
|
|
124
|
+
<span class="text-muted">—</span>
|
|
125
|
+
{% endif %}
|
|
126
|
+
</td>
|
|
127
|
+
</tr>
|
|
128
|
+
<tr>
|
|
129
|
+
<td>Outer Depth</td>
|
|
130
|
+
<td>
|
|
131
|
+
{% if object.outer_depth %}
|
|
132
|
+
<span>{{ object.outer_depth }} {{ object.get_outer_unit_display }}</span>
|
|
133
|
+
{% else %}
|
|
134
|
+
<span class="text-muted">—</span>
|
|
135
|
+
{% endif %}
|
|
136
|
+
</td>
|
|
137
|
+
</tr>
|
|
138
|
+
</table>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="panel panel-default">
|
|
141
|
+
<div class="panel-heading">
|
|
142
|
+
<strong>Comments</strong>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="panel-body rendered-markdown">
|
|
145
|
+
{% if object.comments %}
|
|
146
|
+
{{ object.comments|render_markdown }}
|
|
147
|
+
{% else %}
|
|
148
|
+
<span class="text-muted">None</span>
|
|
149
|
+
{% endif %}
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
{% if power_feeds %}
|
|
153
|
+
<div class="panel panel-default">
|
|
154
|
+
<div class="panel-heading">
|
|
155
|
+
<strong>Power Feeds</strong>
|
|
156
|
+
</div>
|
|
157
|
+
<table class="table panel-body">
|
|
158
|
+
<tr>
|
|
159
|
+
<th>Panel</th>
|
|
160
|
+
<th>Feed</th>
|
|
161
|
+
<th>Status</th>
|
|
162
|
+
<th>Type</th>
|
|
163
|
+
<th>Utilization</th>
|
|
164
|
+
</tr>
|
|
165
|
+
{% for powerfeed in power_feeds %}
|
|
166
|
+
<tr>
|
|
167
|
+
<td>{{ powerfeed.power_panel|hyperlinked_object }}</td>
|
|
168
|
+
<td>{{ powerfeed|hyperlinked_object }}</td>
|
|
169
|
+
<td>
|
|
170
|
+
<span class="label" style="color: {{ powerfeed.status.color|fgcolor }}; background-color: #{{powerfeed.status.color}}">{{ powerfeed.get_status_display }}</span>
|
|
171
|
+
</td>
|
|
172
|
+
<td>
|
|
173
|
+
<span class="label label-{{ powerfeed.get_type_class }}">{{ powerfeed.get_type_display }}</span>
|
|
174
|
+
</td>
|
|
175
|
+
{% with power_port=powerfeed.connected_endpoint %}
|
|
176
|
+
{% if power_port %}
|
|
177
|
+
{% with utilization=power_port.get_power_draw %}
|
|
178
|
+
{% if utilization %}
|
|
179
|
+
{% if powerfeed.available_power > 0 %}
|
|
180
|
+
<td>{% utilization_graph_raw_data utilization.allocated powerfeed.available_power %}</td>
|
|
181
|
+
{% endif %}
|
|
182
|
+
{% endif %}
|
|
183
|
+
{% endwith %}
|
|
184
|
+
{% else %}
|
|
185
|
+
<td class="text-muted">N/A</td>
|
|
186
|
+
{% endif %}
|
|
187
|
+
{% endwith %}
|
|
188
|
+
</tr>
|
|
189
|
+
{% endfor %}
|
|
190
|
+
</table>
|
|
191
|
+
</div>
|
|
192
|
+
{% endif %}
|
|
193
|
+
<div class="panel panel-default">
|
|
194
|
+
<div class="panel-heading">
|
|
195
|
+
<strong>Images</strong>
|
|
196
|
+
</div>
|
|
197
|
+
{% include 'inc/image_attachments.html' with images=object.images.all %}
|
|
198
|
+
{% if perms.extras.add_imageattachment %}
|
|
199
|
+
<div class="panel-footer text-right noprint">
|
|
200
|
+
<a href="{% url 'dcim:rack_add_image' object_id=object.pk %}" class="btn btn-primary btn-xs">
|
|
201
|
+
<span class="mdi mdi-plus-thick" aria-hidden="true"></span>
|
|
202
|
+
Attach an image
|
|
203
|
+
</a>
|
|
204
|
+
</div>
|
|
205
|
+
{% endif %}
|
|
206
|
+
</div>
|
|
207
|
+
<div class="panel panel-default">
|
|
208
|
+
<div class="panel-heading">
|
|
209
|
+
<strong>Reservations</strong>
|
|
210
|
+
</div>
|
|
211
|
+
{% if reservations %}
|
|
212
|
+
<table class="table table-hover panel-body">
|
|
213
|
+
<tr>
|
|
214
|
+
<th>Units</th>
|
|
215
|
+
<th>Tenant</th>
|
|
216
|
+
<th>Description</th>
|
|
217
|
+
<th></th>
|
|
218
|
+
</tr>
|
|
219
|
+
{% for resv in reservations %}
|
|
220
|
+
<tr>
|
|
221
|
+
<td>
|
|
222
|
+
<a href="{{ resv.get_absolute_url }}">{{ resv.unit_list }}</a>
|
|
223
|
+
</td>
|
|
224
|
+
<td>
|
|
225
|
+
{{ resv.tenant|hyperlinked_object }}
|
|
226
|
+
</td>
|
|
227
|
+
<td>
|
|
228
|
+
{{ resv.description }}<br />
|
|
229
|
+
<small>{{ resv.user }} · {{ resv.created }}</small>
|
|
230
|
+
</td>
|
|
231
|
+
<td class="text-right noprint">
|
|
232
|
+
{% if perms.dcim.change_rackreservation %}
|
|
233
|
+
<a href="{% url 'dcim:rackreservation_edit' pk=resv.pk %}?return_url={{ object.get_absolute_url }}" class="btn btn-warning btn-xs" title="Edit reservation">
|
|
234
|
+
<i class="mdi mdi-pencil" aria-hidden="true"></i>
|
|
235
|
+
</a>
|
|
236
|
+
{% endif %}
|
|
237
|
+
{% if perms.dcim.delete_rackreservation %}
|
|
238
|
+
<a href="{% url 'dcim:rackreservation_delete' pk=resv.pk %}?return_url={{ object.get_absolute_url }}" class="btn btn-danger btn-xs" title="Delete reservation">
|
|
239
|
+
<i class="mdi mdi-trash-can-outline" aria-hidden="true"></i>
|
|
240
|
+
</a>
|
|
241
|
+
{% endif %}
|
|
242
|
+
</td>
|
|
243
|
+
</tr>
|
|
244
|
+
{% endfor %}
|
|
245
|
+
</table>
|
|
246
|
+
{% else %}
|
|
247
|
+
<div class="panel-body text-muted">None</div>
|
|
248
|
+
{% endif %}
|
|
249
|
+
{% if perms.dcim.add_rackreservation %}
|
|
250
|
+
<div class="panel-footer text-right noprint">
|
|
251
|
+
<a href="{% url 'dcim:rackreservation_add' %}?rack={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-primary btn-xs">
|
|
252
|
+
<span class="mdi mdi-plus-thick" aria-hidden="true"></span>
|
|
253
|
+
Add a reservation
|
|
254
|
+
</a>
|
|
255
|
+
</div>
|
|
256
|
+
{% endif %}
|
|
257
|
+
</div>
|
|
258
|
+
{% endblock content_left_page %}
|
|
259
|
+
|
|
260
|
+
{% block content_right_page %}
|
|
261
|
+
<div class="row" style="margin-bottom: 20px">
|
|
262
|
+
<div class="col-md-6 col-sm-6 col-xs-12 text-center">
|
|
263
|
+
<div style="margin-left: 30px">
|
|
264
|
+
<h4>Front</h4>
|
|
265
|
+
{% include 'dcim/inc/rack_elevation.html' with face='front' %}
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
<div class="col-md-6 col-sm-6 col-xs-12 text-center">
|
|
269
|
+
<div style="margin-left: 30px">
|
|
270
|
+
<h4>Rear</h4>
|
|
271
|
+
{% include 'dcim/inc/rack_elevation.html' with face='rear' %}
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
<div class="panel panel-default">
|
|
276
|
+
<div class="panel-heading">
|
|
277
|
+
<strong>Non-Racked Devices</strong>
|
|
278
|
+
</div>
|
|
279
|
+
{% if nonracked_devices %}
|
|
280
|
+
<table class="table table-hover panel-body">
|
|
281
|
+
<tr>
|
|
282
|
+
<th>Name</th>
|
|
283
|
+
<th>Role</th>
|
|
284
|
+
<th>Type</th>
|
|
285
|
+
<th colspan="2">Parent Device</th>
|
|
286
|
+
</tr>
|
|
287
|
+
{% for device in nonracked_devices %}
|
|
288
|
+
<tr{% if device.device_type.u_height %} class="warning"{% endif %}>
|
|
289
|
+
<td>{{ device|hyperlinked_object }}</td>
|
|
290
|
+
<td>{{ device.role }}</td>
|
|
291
|
+
<td>{{ device.device_type.display }}</td>
|
|
292
|
+
{% if device.parent_bay %}
|
|
293
|
+
<td>{{ device.parent_bay.device|hyperlinked_object }}</td>
|
|
294
|
+
<td>{{ device.parent_bay }}</td>
|
|
295
|
+
{% else %}
|
|
296
|
+
<td colspan="2" class="text-muted">—</td>
|
|
297
|
+
{% endif %}
|
|
298
|
+
</tr>
|
|
299
|
+
{% endfor %}
|
|
300
|
+
</table>
|
|
301
|
+
{% else %}
|
|
302
|
+
<div class="panel-body text-muted">None</div>
|
|
303
|
+
{% endif %}
|
|
304
|
+
{% if perms.dcim.add_device %}
|
|
305
|
+
<div class="panel-footer text-right noprint">
|
|
306
|
+
<a href="{% url 'dcim:device_add' %}?location={{ object.location.pk }}&rack={{ object.pk }}" class="btn btn-primary btn-xs">
|
|
307
|
+
<span class="mdi mdi-plus-thick" aria-hidden="true"></span>
|
|
308
|
+
Add a non-racked device
|
|
309
|
+
</a>
|
|
310
|
+
</div>
|
|
311
|
+
{% endif %}
|
|
312
|
+
</div>
|
|
313
|
+
{% endblock content_right_page %}
|
|
314
|
+
|
|
315
|
+
{% block javascript %}
|
|
316
|
+
{{block.super}}
|
|
317
|
+
<script src="{% versioned_static 'js/rack_elevations.js' %}"></script>
|
|
318
|
+
{% endblock javascript %}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{% extends 'generic/object_create.html' %}
|
|
2
|
+
{% load form_helpers %}
|
|
3
|
+
|
|
4
|
+
{% block form %}
|
|
5
|
+
<div class="panel panel-default">
|
|
6
|
+
<div class="panel-heading"><strong>Rack</strong></div>
|
|
7
|
+
<div class="panel-body">
|
|
8
|
+
{% render_field form.location %}
|
|
9
|
+
{% render_field form.rack_group %}
|
|
10
|
+
{% render_field form.name %}
|
|
11
|
+
{% render_field form.facility_id %}
|
|
12
|
+
{% render_field form.status %}
|
|
13
|
+
{% render_field form.role %}
|
|
14
|
+
{% render_field form.serial %}
|
|
15
|
+
{% render_field form.asset_tag %}
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
{% include 'inc/tenancy_form_panel.html' %}
|
|
19
|
+
<div class="panel panel-default">
|
|
20
|
+
<div class="panel-heading"><strong>Dimensions</strong></div>
|
|
21
|
+
<div class="panel-body">
|
|
22
|
+
{% render_field form.type %}
|
|
23
|
+
{% render_field form.width %}
|
|
24
|
+
{% render_field form.u_height %}
|
|
25
|
+
<div class="form-group">
|
|
26
|
+
<label class="col-md-3 control-label">Outer dimensions</label>
|
|
27
|
+
<div class="col-md-3">
|
|
28
|
+
{{ form.outer_width }}
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-md-3">
|
|
31
|
+
{{ form.outer_depth }}
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-md-2">
|
|
34
|
+
{{ form.outer_unit }}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
{% render_field form.desc_units %}
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
{% include 'inc/extras_features_edit_form_fields.html' %}
|
|
41
|
+
<div class="panel panel-default">
|
|
42
|
+
<div class="panel-heading"><strong>Comments</strong></div>
|
|
43
|
+
<div class="panel-body">
|
|
44
|
+
{% render_field form.comments %}
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
{% endblock %}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import uuid
|
|
2
2
|
|
|
3
|
+
from django.urls import reverse
|
|
4
|
+
from selenium.webdriver.common.by import By
|
|
5
|
+
from selenium.webdriver.support import expected_conditions
|
|
6
|
+
from selenium.webdriver.support.ui import WebDriverWait
|
|
7
|
+
|
|
3
8
|
from nautobot.core.testing.integration import (
|
|
4
9
|
BulkOperationsTestCases,
|
|
10
|
+
SeleniumTestCase,
|
|
5
11
|
)
|
|
6
12
|
from nautobot.dcim.models import Device
|
|
7
13
|
from nautobot.extras.tests.integration import create_test_device
|
|
@@ -28,3 +34,58 @@ class DeviceBulkOperationsTestCase(BulkOperationsTestCases.BulkOperationsTestCas
|
|
|
28
34
|
create_test_device("Test Device Integration Test 3", test_uuid=test_uuid)
|
|
29
35
|
create_test_device("Test Device Integration Test 4", "Test Location 2", test_uuid=test_uuid)
|
|
30
36
|
create_test_device("Test Device Integration Test 5", "Test Location 2", test_uuid=test_uuid)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class DeviceBulkUrlParamTestCase(SeleniumTestCase):
|
|
40
|
+
"""
|
|
41
|
+
Integration test to check that when a bulk edit is initiated from a filtered device list view it does not fill in bulk edit form.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
def setUp(self):
|
|
45
|
+
super().setUp()
|
|
46
|
+
self.user.is_superuser = True
|
|
47
|
+
self.user.save()
|
|
48
|
+
self.login(self.user.username, self.password)
|
|
49
|
+
|
|
50
|
+
self.device1 = create_test_device("Device 1")
|
|
51
|
+
|
|
52
|
+
def tearDown(self):
|
|
53
|
+
self.logout()
|
|
54
|
+
super().tearDown()
|
|
55
|
+
|
|
56
|
+
def test_param_fills_device_type(self):
|
|
57
|
+
"""
|
|
58
|
+
This test:
|
|
59
|
+
1 Go to device list page with param for device_type
|
|
60
|
+
2 Selects the row checkbox for the device with that device_type
|
|
61
|
+
3 Submits the bulk edit form
|
|
62
|
+
4 Checks that the device_type field is blank (i.e. "---------") on the bulk edit form
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
# Go to Device list page
|
|
66
|
+
self.browser.visit(
|
|
67
|
+
self.live_server_url + reverse("dcim:device_list") + f"?device_type={self.device1.device_type.pk}"
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
# 2) Check the row checkbox exactly matching the PK
|
|
71
|
+
pk = str(self.device1.pk)
|
|
72
|
+
cb_xpath = f'//input[@type="checkbox" and @name="pk" and @value="{pk}"]'
|
|
73
|
+
checkbox = WebDriverWait(self.browser.driver, 2).until(
|
|
74
|
+
expected_conditions.element_to_be_clickable((By.XPATH, cb_xpath))
|
|
75
|
+
)
|
|
76
|
+
self.browser.driver.execute_script("arguments[0].click();", checkbox)
|
|
77
|
+
|
|
78
|
+
# Click the bulk-edit button (it uses formaction)
|
|
79
|
+
bulk_url = reverse("dcim:device_bulk_edit")
|
|
80
|
+
btn_xpath = f'//button[@type="submit" and @formaction="{bulk_url}"]'
|
|
81
|
+
bulk_btn = WebDriverWait(self.browser.driver, 2).until(
|
|
82
|
+
expected_conditions.element_to_be_clickable((By.XPATH, btn_xpath))
|
|
83
|
+
)
|
|
84
|
+
# We know this works since if nothing is selected, you will be redirected back to the list view with a message
|
|
85
|
+
bulk_btn.click()
|
|
86
|
+
|
|
87
|
+
self.assertTrue(
|
|
88
|
+
WebDriverWait(self.browser.driver, 2).until(
|
|
89
|
+
lambda d: d.find_element(By.CLASS_NAME, "select2-selection__placeholder").text.strip() == "---------"
|
|
90
|
+
)
|
|
91
|
+
)
|
nautobot/dcim/tests/test_api.py
CHANGED
|
@@ -16,8 +16,10 @@ from nautobot.dcim.choices import (
|
|
|
16
16
|
InterfaceModeChoices,
|
|
17
17
|
InterfaceTypeChoices,
|
|
18
18
|
PortTypeChoices,
|
|
19
|
+
PowerFeedBreakerPoleChoices,
|
|
19
20
|
PowerFeedTypeChoices,
|
|
20
21
|
PowerOutletTypeChoices,
|
|
22
|
+
PowerPanelTypeChoices,
|
|
21
23
|
PowerPortTypeChoices,
|
|
22
24
|
SoftwareImageFileHashingAlgorithmChoices,
|
|
23
25
|
SubdeviceRoleChoices,
|
|
@@ -3064,7 +3066,7 @@ class VirtualChassisTest(APIViewTestCases.APIViewTestCase):
|
|
|
3064
3066
|
# Interface name starts with parent device's position in VC; e.g. 1/1, 1/2, 1/3...
|
|
3065
3067
|
Interface.objects.create(
|
|
3066
3068
|
device=device,
|
|
3067
|
-
name=f"{i%3+1}/{j}",
|
|
3069
|
+
name=f"{i % 3 + 1}/{j}",
|
|
3068
3070
|
type=InterfaceTypeChoices.TYPE_1GE_FIXED,
|
|
3069
3071
|
status=interface_status,
|
|
3070
3072
|
role=interface_role,
|
|
@@ -3166,6 +3168,7 @@ class VirtualChassisTest(APIViewTestCases.APIViewTestCase):
|
|
|
3166
3168
|
|
|
3167
3169
|
class PowerPanelTest(APIViewTestCases.APIViewTestCase):
|
|
3168
3170
|
model = PowerPanel
|
|
3171
|
+
choices_fields = ["panel_type", "power_path"]
|
|
3169
3172
|
|
|
3170
3173
|
@classmethod
|
|
3171
3174
|
def setUpTestData(cls):
|
|
@@ -3204,7 +3207,7 @@ class PowerPanelTest(APIViewTestCases.APIViewTestCase):
|
|
|
3204
3207
|
|
|
3205
3208
|
class PowerFeedTest(APIViewTestCases.APIViewTestCase):
|
|
3206
3209
|
model = PowerFeed
|
|
3207
|
-
choices_fields = ["phase", "supply", "type"]
|
|
3210
|
+
choices_fields = ["phase", "supply", "type", "breaker_pole_count", "power_path"]
|
|
3208
3211
|
|
|
3209
3212
|
@classmethod
|
|
3210
3213
|
def setUpTestData(cls):
|
|
@@ -3229,8 +3232,20 @@ class PowerFeedTest(APIViewTestCases.APIViewTestCase):
|
|
|
3229
3232
|
)
|
|
3230
3233
|
|
|
3231
3234
|
power_panels = (
|
|
3232
|
-
PowerPanel.objects.create(
|
|
3233
|
-
|
|
3235
|
+
PowerPanel.objects.create(
|
|
3236
|
+
location=location,
|
|
3237
|
+
rack_group=rackgroup,
|
|
3238
|
+
name="Power Panel 1",
|
|
3239
|
+
panel_type=PowerPanelTypeChoices.TYPE_UTILITY,
|
|
3240
|
+
breaker_position_count=42,
|
|
3241
|
+
),
|
|
3242
|
+
PowerPanel.objects.create(
|
|
3243
|
+
location=location,
|
|
3244
|
+
rack_group=rackgroup,
|
|
3245
|
+
name="Power Panel 2",
|
|
3246
|
+
panel_type=PowerPanelTypeChoices.TYPE_RPP,
|
|
3247
|
+
breaker_position_count=24,
|
|
3248
|
+
),
|
|
3234
3249
|
)
|
|
3235
3250
|
|
|
3236
3251
|
PRIMARY = PowerFeedTypeChoices.TYPE_PRIMARY
|
|
@@ -3285,6 +3300,9 @@ class PowerFeedTest(APIViewTestCases.APIViewTestCase):
|
|
|
3285
3300
|
{
|
|
3286
3301
|
"name": "Power Feed 4A",
|
|
3287
3302
|
"power_panel": power_panels[0].pk,
|
|
3303
|
+
"destination_panel": power_panels[1].pk,
|
|
3304
|
+
"breaker_position": 5,
|
|
3305
|
+
"breaker_pole_count": PowerFeedBreakerPoleChoices.POLE_1,
|
|
3288
3306
|
"rack": racks[3].pk,
|
|
3289
3307
|
"status": statuses[0].pk,
|
|
3290
3308
|
"type": PRIMARY,
|
|
@@ -3292,6 +3310,8 @@ class PowerFeedTest(APIViewTestCases.APIViewTestCase):
|
|
|
3292
3310
|
{
|
|
3293
3311
|
"name": "Power Feed 4B",
|
|
3294
3312
|
"power_panel": power_panels[1].pk,
|
|
3313
|
+
"breaker_position": 10,
|
|
3314
|
+
"breaker_pole_count": PowerFeedBreakerPoleChoices.POLE_2,
|
|
3295
3315
|
"rack": racks[3].pk,
|
|
3296
3316
|
"status": statuses[0].pk,
|
|
3297
3317
|
"type": REDUNDANT,
|