nautobot 2.4.14__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/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 +1 -1
- nautobot/core/models/tree_queries.py +17 -0
- nautobot/core/settings.py +2 -2
- nautobot/core/tables.py +25 -2
- 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/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 +13 -12
- nautobot/dcim/api/serializers.py +9 -0
- nautobot/dcim/choices.py +53 -0
- 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/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/utils.py +9 -0
- nautobot/dcim/views.py +390 -77
- nautobot/extras/factory.py +19 -20
- nautobot/extras/filters/__init__.py +3 -2
- nautobot/extras/filters/mixins.py +15 -1
- nautobot/extras/forms/__init__.py +2 -1
- nautobot/extras/forms/forms.py +62 -0
- nautobot/extras/managers.py +4 -1
- nautobot/extras/migrations/0125_jobresult_date_started.py +18 -0
- nautobot/extras/models/customfields.py +1 -2
- nautobot/extras/models/datasources.py +1 -2
- nautobot/extras/models/jobs.py +7 -3
- 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/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/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_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 +7 -7
- nautobot/extras/tests/test_views.py +172 -1
- nautobot/extras/urls.py +3 -59
- nautobot/extras/utils.py +1 -1
- nautobot/extras/views.py +77 -178
- nautobot/ipam/tables.py +8 -15
- nautobot/ipam/tests/migration/test_migrations.py +8 -8
- nautobot/ipam/tests/test_api.py +2 -2
- nautobot/ipam/tests/test_models.py +1 -1
- nautobot/project-static/docs/404.html +23 -0
- nautobot/project-static/docs/apps/index.html +23 -0
- nautobot/project-static/docs/apps/nautobot-apps.html +23 -0
- nautobot/project-static/docs/assets/_mkdocstrings.css +44 -6
- nautobot/project-static/docs/code-reference/nautobot/apps/__init__.html +28 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/admin.html +25 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/api.html +128 -20
- nautobot/project-static/docs/code-reference/nautobot/apps/change_logging.html +37 -4
- nautobot/project-static/docs/code-reference/nautobot/apps/choices.html +39 -6
- nautobot/project-static/docs/code-reference/nautobot/apps/config.html +25 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/constants.html +24 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/datasources.html +32 -5
- nautobot/project-static/docs/code-reference/nautobot/apps/events.html +41 -8
- nautobot/project-static/docs/code-reference/nautobot/apps/exceptions.html +39 -7
- nautobot/project-static/docs/code-reference/nautobot/apps/factory.html +43 -10
- nautobot/project-static/docs/code-reference/nautobot/apps/filters.html +74 -59
- nautobot/project-static/docs/code-reference/nautobot/apps/forms.html +143 -28
- nautobot/project-static/docs/code-reference/nautobot/apps/graphql.html +43 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/jobs.html +135 -53
- nautobot/project-static/docs/code-reference/nautobot/apps/models.html +229 -36
- nautobot/project-static/docs/code-reference/nautobot/apps/querysets.html +27 -1
- nautobot/project-static/docs/code-reference/nautobot/apps/secrets.html +30 -1
- nautobot/project-static/docs/code-reference/nautobot/apps/tables.html +162 -18
- nautobot/project-static/docs/code-reference/nautobot/apps/testing.html +258 -51
- nautobot/project-static/docs/code-reference/nautobot/apps/ui.html +5987 -2620
- nautobot/project-static/docs/code-reference/nautobot/apps/urls.html +25 -0
- nautobot/project-static/docs/code-reference/nautobot/apps/utils.html +154 -55
- nautobot/project-static/docs/code-reference/nautobot/apps/views.html +150 -35
- nautobot/project-static/docs/development/apps/api/configuration-view.html +23 -0
- nautobot/project-static/docs/development/apps/api/database-backend-config.html +23 -0
- nautobot/project-static/docs/development/apps/api/models/django-admin.html +23 -0
- nautobot/project-static/docs/development/apps/api/models/global-search.html +23 -0
- nautobot/project-static/docs/development/apps/api/models/graphql.html +23 -0
- nautobot/project-static/docs/development/apps/api/models/index.html +23 -0
- nautobot/project-static/docs/development/apps/api/nautobot-app-config.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/custom-validators.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/filter-extensions.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/git-repository-content.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/index.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/jinja2-filters.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/jobs.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/populating-extensibility-features.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/secrets-providers.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/table-extensions.html +23 -0
- nautobot/project-static/docs/development/apps/api/platform-features/uniquely-identify-objects.html +23 -0
- nautobot/project-static/docs/development/apps/api/prometheus.html +23 -0
- nautobot/project-static/docs/development/apps/api/setup.html +23 -0
- nautobot/project-static/docs/development/apps/api/testing.html +23 -0
- nautobot/project-static/docs/development/apps/api/ui-extensions/banners.html +23 -0
- nautobot/project-static/docs/development/apps/api/ui-extensions/home-page.html +23 -0
- nautobot/project-static/docs/development/apps/api/ui-extensions/index.html +23 -0
- nautobot/project-static/docs/development/apps/api/ui-extensions/navigation.html +23 -0
- nautobot/project-static/docs/development/apps/api/ui-extensions/object-views.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/base-template.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/core-view-overrides.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/django-generic-views.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/help-documentation.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/index.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/nautobot-generic-views.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewset.html +31 -2
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewsetrouter.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/notes.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/rest-api.html +23 -0
- nautobot/project-static/docs/development/apps/api/views/urls.html +23 -0
- nautobot/project-static/docs/development/apps/index.html +23 -0
- nautobot/project-static/docs/development/apps/migration/code-updates.html +23 -0
- nautobot/project-static/docs/development/apps/migration/dependency-updates.html +23 -0
- nautobot/project-static/docs/development/apps/migration/from-v1.html +23 -0
- nautobot/project-static/docs/development/apps/migration/model-updates/dcim.html +23 -0
- nautobot/project-static/docs/development/apps/migration/model-updates/extras.html +23 -0
- nautobot/project-static/docs/development/apps/migration/model-updates/global.html +23 -0
- nautobot/project-static/docs/development/apps/migration/model-updates/ipam.html +23 -0
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/best-practices.html +26 -3
- 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 +23 -0
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/index.html +23 -0
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/migration-steps.html +23 -0
- nautobot/project-static/docs/development/apps/porting-from-netbox.html +26 -3
- nautobot/project-static/docs/development/core/application-registry.html +23 -0
- nautobot/project-static/docs/development/core/best-practices.html +23 -0
- nautobot/project-static/docs/development/core/bootstrap-ui.html +23 -0
- nautobot/project-static/docs/development/core/caching.html +23 -0
- nautobot/project-static/docs/development/core/controllers.html +23 -0
- nautobot/project-static/docs/development/core/docker-compose-advanced-use-cases.html +23 -0
- nautobot/project-static/docs/development/core/generic-views.html +23 -0
- nautobot/project-static/docs/development/core/getting-started.html +23 -0
- nautobot/project-static/docs/development/core/homepage.html +23 -0
- nautobot/project-static/docs/development/core/index.html +23 -0
- nautobot/project-static/docs/development/core/minikube-dev-environment-for-k8s-jobs.html +23 -0
- nautobot/project-static/docs/development/core/model-checklist.html +23 -0
- nautobot/project-static/docs/development/core/model-features.html +23 -0
- nautobot/project-static/docs/development/core/natural-keys.html +23 -0
- nautobot/project-static/docs/development/core/navigation-menu.html +23 -0
- nautobot/project-static/docs/development/core/release-checklist.html +23 -0
- nautobot/project-static/docs/development/core/role-internals.html +23 -0
- nautobot/project-static/docs/development/core/settings.html +23 -0
- nautobot/project-static/docs/development/core/style-guide.html +23 -0
- nautobot/project-static/docs/development/core/templates.html +23 -0
- nautobot/project-static/docs/development/core/testing.html +23 -0
- nautobot/project-static/docs/development/core/ui-component-framework.html +713 -255
- nautobot/project-static/docs/development/core/user-preferences.html +23 -0
- nautobot/project-static/docs/development/index.html +23 -0
- nautobot/project-static/docs/development/jobs/getting-started.html +23 -0
- nautobot/project-static/docs/development/jobs/index.html +23 -0
- nautobot/project-static/docs/development/jobs/installation.html +23 -0
- nautobot/project-static/docs/development/jobs/job-extensions.html +23 -0
- nautobot/project-static/docs/development/jobs/job-logging.html +23 -0
- nautobot/project-static/docs/development/jobs/job-patterns.html +23 -0
- nautobot/project-static/docs/development/jobs/job-structure.html +23 -0
- nautobot/project-static/docs/development/jobs/migration/from-v1.html +23 -0
- nautobot/project-static/docs/development/jobs/testing.html +23 -0
- nautobot/project-static/docs/index.html +23 -0
- 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 +23 -0
- nautobot/project-static/docs/overview/design_philosophy.html +23 -0
- nautobot/project-static/docs/release-notes/index.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.0.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.1.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.2.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.3.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.4.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.5.html +23 -0
- nautobot/project-static/docs/release-notes/version-1.6.html +23 -0
- nautobot/project-static/docs/release-notes/version-2.0.html +23 -0
- nautobot/project-static/docs/release-notes/version-2.1.html +23 -0
- nautobot/project-static/docs/release-notes/version-2.2.html +23 -0
- nautobot/project-static/docs/release-notes/version-2.3.html +23 -0
- nautobot/project-static/docs/release-notes/version-2.4.html +231 -0
- nautobot/project-static/docs/requirements.txt +2 -2
- 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 +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/remote.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/sso.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/index.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/redis.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/settings.html +23 -0
- nautobot/project-static/docs/user-guide/administration/configuration/time-zones.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/celery-queues.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/docker.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/health-checks.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/permissions.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/prometheus-metrics.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/replicating-nautobot.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/request-profiling.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/s3-django-storage.html +23 -0
- nautobot/project-static/docs/user-guide/administration/guides/selinux-troubleshooting.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/app-install.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/external-authentication.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/http-server.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/index.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/install_system.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/nautobot.html +23 -0
- nautobot/project-static/docs/user-guide/administration/installation/services.html +23 -0
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-netbox.html +23 -0
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-postgresql.html +23 -0
- nautobot/project-static/docs/user-guide/administration/security/index.html +23 -0
- nautobot/project-static/docs/user-guide/administration/security/notices.html +23 -0
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-server.html +284 -219
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-shell.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/database-backup.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/after-you-upgrade.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/before-you-upgrade.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/for-developers.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/index.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/whats-changed.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/region-and-site-data-migration-guide.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/upgrading-from-nautobot-v1.html +23 -0
- nautobot/project-static/docs/user-guide/administration/upgrading/upgrading.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuit.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittermination.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/circuits/provider.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/circuits/providernetwork.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloud.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudaccount.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetwork.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetworkprefixassignment.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudresourcetype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservice.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservicenetworkassignment.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/cable.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleport.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleporttemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverport.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverporttemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controller.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controllermanageddevicegroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/device.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebay.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebaytemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicefamily.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/deviceredundancygroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicetype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontport.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontporttemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interface.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfaceredundancygroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfacetemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/inventoryitem.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/location.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/locationtype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/manufacturer.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/module.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebay.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebaytemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulefamily.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/moduletype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/platform.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerfeed.html +305 -5
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlet.html +24 -1
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlettemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerpanel.html +136 -3
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerport.html +41 -1
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerporttemplate.html +40 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rack.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackgroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackreservation.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearport.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearporttemplate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareimagefile.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareversion.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualchassis.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualdevicecontext.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontext.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontextschema.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/extras/contact.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/extras/team.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/ipaddress.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/namespace.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/prefix.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/rir.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/routetarget.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/service.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlan.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlangroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vrf.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/overview/introduction.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenant.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenantgroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/cluster.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustergroup.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustertype.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/virtualmachine.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/vminterface.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/wireless/index.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/wireless/radioprofile.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/wireless/supporteddatarate.html +23 -0
- nautobot/project-static/docs/user-guide/core-data-model/wireless/wirelessnetwork.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/contacts-and-teams.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/custom-fields.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-devices.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-location-types-and-locations.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/index.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/interfaces.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/ipam.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/platforms.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/search-bar.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/tenants.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/vlans-and-vlan-groups.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/git-data-source.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/graphql.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/ip-address-merge-tool.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/relationships.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/software-image-files-and-versions.html +23 -0
- nautobot/project-static/docs/user-guide/feature-guides/wireless-networks-and-controllers.html +23 -0
- nautobot/project-static/docs/user-guide/index.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/change-logging.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/computedfield.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/customfield.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/customlink.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/dynamicgroup.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/events.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/exporttemplate.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/externalintegration.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/gitrepository.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/graphql.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/graphqlquery.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/imageattachment.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/index.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/job-scheduling-and-approvals.html +24 -1
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobbutton.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobhook.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobqueue.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/kubernetes-job-support.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/managing-jobs.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/models.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/napalm.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/note.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/objectmetadata.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/relationship.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/rendering-jinja-templates.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/authentication.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/filtering.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/overview.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/ui-related-endpoints.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/role.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/savedview.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/secret.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/staticgroupassociation.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/status.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/tag.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/template-filters.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/users/objectpermission.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/users/token.html +23 -0
- nautobot/project-static/docs/user-guide/platform-functionality/webhook.html +23 -0
- 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.14.dist-info → nautobot-2.4.15.dist-info}/METADATA +24 -24
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/RECORD +433 -416
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/LICENSE.txt +0 -0
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/NOTICE +0 -0
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/WHEEL +0 -0
- {nautobot-2.4.14.dist-info → nautobot-2.4.15.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
{% extends 'generic/object_retrieve.html' %}
|
|
2
|
+
{% load helpers %}
|
|
3
|
+
{% load static %}
|
|
4
|
+
|
|
5
|
+
{% block extra_buttons %}
|
|
6
|
+
{% if perms.virtualization.add_vminterface %}
|
|
7
|
+
<a href="{% url 'virtualization:vminterface_add' %}?virtual_machine={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-primary">
|
|
8
|
+
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add Interfaces
|
|
9
|
+
</a>
|
|
10
|
+
{% endif %}
|
|
11
|
+
{% endblock extra_buttons %}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
{% block extra_nav_tabs %}
|
|
15
|
+
{% if perms.extras.view_configcontext %}
|
|
16
|
+
<li role="presentation"{% if active_tab == 'config-context' %} class="active"{% endif %}>
|
|
17
|
+
<a href="{% url 'virtualization:virtualmachine_configcontext' pk=object.pk %}">Config Context</a>
|
|
18
|
+
</li>
|
|
19
|
+
{% endif %}
|
|
20
|
+
{% endblock extra_nav_tabs %}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
{% block content_left_page %}
|
|
24
|
+
<div class="panel panel-default">
|
|
25
|
+
<div class="panel-heading">
|
|
26
|
+
<strong>Virtual Machine</strong>
|
|
27
|
+
</div>
|
|
28
|
+
<table class="table table-hover panel-body attr-table">
|
|
29
|
+
<tr>
|
|
30
|
+
<td>Name</td>
|
|
31
|
+
<td>{{ object }}</td>
|
|
32
|
+
</tr>
|
|
33
|
+
<tr>
|
|
34
|
+
<td>Status</td>
|
|
35
|
+
<td>
|
|
36
|
+
{{ object.status| hyperlinked_object_with_color }}
|
|
37
|
+
</td>
|
|
38
|
+
</tr>
|
|
39
|
+
<tr>
|
|
40
|
+
<td>Role</td>
|
|
41
|
+
<td>
|
|
42
|
+
{{ object.role | hyperlinked_object_with_color }}
|
|
43
|
+
</td>
|
|
44
|
+
</tr>
|
|
45
|
+
<tr>
|
|
46
|
+
<td>Platform</td>
|
|
47
|
+
<td>
|
|
48
|
+
{% if object.platform %}
|
|
49
|
+
<a href="{% url 'virtualization:virtualmachine_list' %}?platform={{ object.platform.name }}">{{ object.platform }}</a>
|
|
50
|
+
{% else %}
|
|
51
|
+
<span class="text-muted">None</span>
|
|
52
|
+
{% endif %}
|
|
53
|
+
</td>
|
|
54
|
+
</tr>
|
|
55
|
+
{% include 'inc/tenant_table_row.html' %}
|
|
56
|
+
<tr>
|
|
57
|
+
<td>Primary IPv4</td>
|
|
58
|
+
<td>
|
|
59
|
+
{% if object.primary_ip4 %}
|
|
60
|
+
<span class="hover_copy">
|
|
61
|
+
{{ object.primary_ip4|hyperlinked_object|add_html_id:"ipv4" }} ({{ object.primary_ip4.parent.namespace|hyperlinked_object }})
|
|
62
|
+
{% if object.primary_ip4.nat_inside %}
|
|
63
|
+
<span>(NAT for {{ object.primary_ip4.nat_inside.address.ip }})</span>
|
|
64
|
+
{% elif object.primary_ip4.nat_outside_list.exists %}
|
|
65
|
+
<br /><span>NAT: </span>
|
|
66
|
+
<ul>
|
|
67
|
+
{% for nat in object.primary_ip4.nat_outside_list.all %}
|
|
68
|
+
<li>{{ nat|hyperlinked_object }}</li>
|
|
69
|
+
{% endfor %}
|
|
70
|
+
</ul>
|
|
71
|
+
{% endif %}
|
|
72
|
+
<button class="btn btn-inline btn-default hover_copy_button" data-clipboard-target="#ipv4">
|
|
73
|
+
<span class="mdi mdi-content-copy"></span>
|
|
74
|
+
</button>
|
|
75
|
+
</span>
|
|
76
|
+
{% else %}
|
|
77
|
+
<span class="text-muted">—</span>
|
|
78
|
+
{% endif %}
|
|
79
|
+
</td>
|
|
80
|
+
</tr>
|
|
81
|
+
<tr>
|
|
82
|
+
<td>Primary IPv6</td>
|
|
83
|
+
<td>
|
|
84
|
+
{% if object.primary_ip6 %}
|
|
85
|
+
<span class="hover_copy">
|
|
86
|
+
{{ object.primary_ip6|hyperlinked_object|add_html_id:"ipv6" }} ({{ object.primary_ip6.parent.namespace|hyperlinked_object }})
|
|
87
|
+
{% if object.primary_ip6.nat_inside %}
|
|
88
|
+
<span>(NAT for {{ object.primary_ip6.nat_inside.address.ip }})</span>
|
|
89
|
+
{% elif object.primary_ip6.nat_outside_list.exists %}
|
|
90
|
+
<br /><span>NAT: </span>
|
|
91
|
+
<ul>
|
|
92
|
+
{% for nat in object.primary_ip6.nat_outside_list.all %}
|
|
93
|
+
<li>{{ nat|hyperlinked_object }}</li>
|
|
94
|
+
{% endfor %}
|
|
95
|
+
</ul>
|
|
96
|
+
{% endif %}
|
|
97
|
+
<button class="btn btn-inline btn-default hover_copy_button" data-clipboard-target="#ipv6">
|
|
98
|
+
<span class="mdi mdi-content-copy"></span>
|
|
99
|
+
</button>
|
|
100
|
+
</span>
|
|
101
|
+
{% else %}
|
|
102
|
+
<span class="text-muted">—</span>
|
|
103
|
+
{% endif %}
|
|
104
|
+
</td>
|
|
105
|
+
</tr>
|
|
106
|
+
{% include 'dcim/inc/detail_softwareversion_softwareimagefile_rows.html' %}
|
|
107
|
+
</table>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="panel panel-default">
|
|
110
|
+
<div class="panel-heading">
|
|
111
|
+
<strong>Comments</strong>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="panel-body rendered-markdown">
|
|
114
|
+
{% if object.comments %}
|
|
115
|
+
{{ object.comments|render_markdown }}
|
|
116
|
+
{% else %}
|
|
117
|
+
<span class="text-muted">None</span>
|
|
118
|
+
{% endif %}
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
{% endblock content_left_page %}
|
|
122
|
+
|
|
123
|
+
{% block content_right_page %}
|
|
124
|
+
{% include 'panel_table.html' with table=vrf_table heading="Assigned VRFs" %}
|
|
125
|
+
<div class="panel panel-default">
|
|
126
|
+
<div class="panel-heading">
|
|
127
|
+
<strong>Cluster</strong>
|
|
128
|
+
</div>
|
|
129
|
+
<table class="table table-hover panel-body attr-table">
|
|
130
|
+
<tr>
|
|
131
|
+
<td>Cluster</td>
|
|
132
|
+
<td>
|
|
133
|
+
{% if object.cluster.cluster_group %}
|
|
134
|
+
{{ object.cluster.cluster_group|hyperlinked_object }} /
|
|
135
|
+
{% endif %}
|
|
136
|
+
{{ object.cluster|hyperlinked_object }}
|
|
137
|
+
</td>
|
|
138
|
+
</tr>
|
|
139
|
+
<tr>
|
|
140
|
+
<td>Cluster Type</td>
|
|
141
|
+
<td>{{ object.cluster.cluster_type }}</td>
|
|
142
|
+
</tr>
|
|
143
|
+
</table>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="panel panel-default">
|
|
146
|
+
<div class="panel-heading">
|
|
147
|
+
<strong>Resources</strong>
|
|
148
|
+
</div>
|
|
149
|
+
<table class="table table-hover panel-body attr-table">
|
|
150
|
+
<tr>
|
|
151
|
+
<td><i class="mdi mdi-gauge"></i> Virtual CPUs</td>
|
|
152
|
+
<td>{{ object.vcpus|placeholder }}</td>
|
|
153
|
+
</tr>
|
|
154
|
+
<tr>
|
|
155
|
+
<td><i class="mdi mdi-chip"></i> Memory</td>
|
|
156
|
+
<td>
|
|
157
|
+
{% if object.memory %}
|
|
158
|
+
{{ object.memory }} MB
|
|
159
|
+
{% else %}
|
|
160
|
+
<span class="text-muted">—</span>
|
|
161
|
+
{% endif %}
|
|
162
|
+
</td>
|
|
163
|
+
</tr>
|
|
164
|
+
<tr>
|
|
165
|
+
<td><i class="mdi mdi-harddisk"></i> Disk Space</td>
|
|
166
|
+
<td>
|
|
167
|
+
{% if object.disk %}
|
|
168
|
+
{{ object.disk }} GB
|
|
169
|
+
{% else %}
|
|
170
|
+
<span class="text-muted">—</span>
|
|
171
|
+
{% endif %}
|
|
172
|
+
</td>
|
|
173
|
+
</tr>
|
|
174
|
+
</table>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="panel panel-default">
|
|
177
|
+
<div class="panel-heading">
|
|
178
|
+
<strong>Services</strong>
|
|
179
|
+
</div>
|
|
180
|
+
{% if services %}
|
|
181
|
+
<table class="table table-hover panel-body">
|
|
182
|
+
{% for service in services %}
|
|
183
|
+
{% include 'ipam/inc/service.html' %}
|
|
184
|
+
{% endfor %}
|
|
185
|
+
</table>
|
|
186
|
+
{% else %}
|
|
187
|
+
<div class="panel-body text-muted">
|
|
188
|
+
None
|
|
189
|
+
</div>
|
|
190
|
+
{% endif %}
|
|
191
|
+
{% if perms.ipam.add_service %}
|
|
192
|
+
<div class="panel-footer text-right noprint">
|
|
193
|
+
<a href="{% url 'virtualization:virtualmachine_service_assign' virtualmachine=object.pk %}" class="btn btn-xs btn-primary">
|
|
194
|
+
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Assign service
|
|
195
|
+
</a>
|
|
196
|
+
</div>
|
|
197
|
+
{% endif %}
|
|
198
|
+
</div>
|
|
199
|
+
{% endblock content_right_page %}
|
|
200
|
+
|
|
201
|
+
{% block content_full_width_page %}
|
|
202
|
+
<form method="post">
|
|
203
|
+
{% csrf_token %}
|
|
204
|
+
<input type="hidden" name="virtual_machine" value="{{ object.pk }}" />
|
|
205
|
+
<div class="panel panel-default">
|
|
206
|
+
<div class="panel-heading">
|
|
207
|
+
<strong>Interfaces</strong>
|
|
208
|
+
<div class="pull-right noprint">
|
|
209
|
+
{% if request.user.is_authenticated %}
|
|
210
|
+
{% table_config_button_small vminterface_table %}
|
|
211
|
+
{% endif %}
|
|
212
|
+
</div>
|
|
213
|
+
<div class="pull-right col-md-2 noprint">
|
|
214
|
+
<input class="form-control interface-filter" type="text" placeholder="Filter" title="Filter text (regular expressions supported)" style="height: 23px" />
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
{% include 'responsive_table.html' with table=vminterface_table %}
|
|
218
|
+
{% if perms.virtualization.add_vminterface or perms.virtualization.delete_vminterface %}
|
|
219
|
+
<div class="panel-footer noprint">
|
|
220
|
+
{% if interfaces and perms.virtualization.change_vminterface %}
|
|
221
|
+
<button type="submit" name="_rename" formaction="{% url 'virtualization:vminterface_bulk_rename' %}?return_url={{ object.get_absolute_url }}" class="btn btn-warning btn-xs">
|
|
222
|
+
<span class="mdi mdi-pencil" aria-hidden="true"></span> Rename
|
|
223
|
+
</button>
|
|
224
|
+
<button type="submit" name="_edit" formaction="{% url 'virtualization:vminterface_bulk_edit' %}?return_url={{ object.get_absolute_url }}" class="btn btn-warning btn-xs">
|
|
225
|
+
<span class="mdi mdi-pencil" aria-hidden="true"></span> Edit
|
|
226
|
+
</button>
|
|
227
|
+
{% endif %}
|
|
228
|
+
{% if interfaces and perms.virtualization.delete_vminterface %}
|
|
229
|
+
<button type="submit" name="_delete" formaction="{% url 'virtualization:vminterface_bulk_delete' %}?return_url={{ object.get_absolute_url }}" class="btn btn-danger btn-xs">
|
|
230
|
+
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Delete
|
|
231
|
+
</button>
|
|
232
|
+
{% endif %}
|
|
233
|
+
{% if perms.virtualization.add_vminterface %}
|
|
234
|
+
<div class="pull-right">
|
|
235
|
+
<a href="{% url 'virtualization:vminterface_add' %}?virtual_machine={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-primary btn-xs">
|
|
236
|
+
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add interfaces
|
|
237
|
+
</a>
|
|
238
|
+
</div>
|
|
239
|
+
<div class="clearfix"></div>
|
|
240
|
+
{% endif %}
|
|
241
|
+
</div>
|
|
242
|
+
{% endif %}
|
|
243
|
+
</div>
|
|
244
|
+
</form>
|
|
245
|
+
{% table_config_form vminterface_table %}
|
|
246
|
+
{% endblock content_full_width_page %}
|
|
247
|
+
|
|
248
|
+
{% block javascript %}
|
|
249
|
+
<script src="{% versioned_static 'js/interface_filtering.js' %}"></script>
|
|
250
|
+
<script src="{% versioned_static 'js/tableconfig.js' %}"></script>
|
|
251
|
+
{{ block.super }}
|
|
252
|
+
{% endblock javascript %}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{% extends 'generic/object_create.html' %}
|
|
2
|
+
{% load form_helpers %}
|
|
3
|
+
{% load static %}
|
|
4
|
+
|
|
5
|
+
{% block form %}
|
|
6
|
+
<div class="panel panel-default">
|
|
7
|
+
<div class="panel-heading"><strong>Virtual Machine</strong></div>
|
|
8
|
+
<div class="panel-body">
|
|
9
|
+
{% render_field form.name %}
|
|
10
|
+
{% render_field form.role %}
|
|
11
|
+
{% render_field form.status %}
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="panel panel-default">
|
|
15
|
+
<div class="panel-heading"><strong>Cluster</strong></div>
|
|
16
|
+
<div class="panel-body">
|
|
17
|
+
{% render_field form.cluster_group %}
|
|
18
|
+
{% render_field form.cluster %}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="panel panel-default">
|
|
22
|
+
<div class="panel-heading"><strong>VRF Assignment</strong></div>
|
|
23
|
+
<div class="panel-body">
|
|
24
|
+
{% render_field form.vrfs %}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="panel panel-default">
|
|
28
|
+
<div class="panel-heading"><strong>Management</strong></div>
|
|
29
|
+
<div class="panel-body">
|
|
30
|
+
{% render_field form.platform %}
|
|
31
|
+
{% render_field form.primary_ip4 %}
|
|
32
|
+
{% render_field form.primary_ip6 %}
|
|
33
|
+
{% render_field form.software_version %}
|
|
34
|
+
<div class="form-group" id="software_version_image_container" style="display:none">
|
|
35
|
+
<div class="col-md-3"></div>
|
|
36
|
+
<div class="col-md-9">
|
|
37
|
+
<span class="help-block">
|
|
38
|
+
<span id="software_version_image_description"><img src="{% static 'img/ajax-loader.gif' %}"></span>
|
|
39
|
+
<ul id="software_version_image_list">
|
|
40
|
+
<li> Software images for the selected software version will appear here </li>
|
|
41
|
+
</ul>
|
|
42
|
+
</span>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
{% render_field form.software_image_files %}
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="panel panel-default">
|
|
49
|
+
<div class="panel-heading"><strong>Resources</strong></div>
|
|
50
|
+
<div class="panel-body">
|
|
51
|
+
{% render_field form.vcpus %}
|
|
52
|
+
{% render_field form.memory %}
|
|
53
|
+
{% render_field form.disk %}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
{% include 'inc/tenancy_form_panel.html' %}
|
|
57
|
+
{% include 'inc/extras_features_edit_form_fields.html' %}
|
|
58
|
+
<div class="panel panel-default">
|
|
59
|
+
<div class="panel-heading"><strong>Local Config Context Data</strong></div>
|
|
60
|
+
<div class="panel-body">
|
|
61
|
+
{% render_field form.local_config_context_schema %}
|
|
62
|
+
{% render_field form.local_config_context_data %}
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="panel panel-default">
|
|
66
|
+
<div class="panel-heading"><strong>Comments</strong></div>
|
|
67
|
+
<div class="panel-body">
|
|
68
|
+
{% render_field form.comments %}
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
{% endblock %}
|
|
72
|
+
|
|
73
|
+
{% block javascript %}
|
|
74
|
+
{% include 'dcim/inc/edit_form_softwareversion_js.html' %}
|
|
75
|
+
{% endblock %}
|
nautobot/virtualization/urls.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from django.urls import path
|
|
2
2
|
|
|
3
3
|
from nautobot.core.views.routers import NautobotUIViewSetRouter
|
|
4
|
-
from nautobot.extras.views import ObjectChangeLogView,
|
|
4
|
+
from nautobot.extras.views import ObjectChangeLogView, ObjectNotesView
|
|
5
5
|
from nautobot.ipam.views import ServiceEditView
|
|
6
6
|
|
|
7
7
|
from . import views
|
|
8
|
-
from .models import
|
|
8
|
+
from .models import VMInterface
|
|
9
9
|
|
|
10
10
|
app_name = "virtualization"
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ router = NautobotUIViewSetRouter()
|
|
|
13
13
|
router.register("cluster-groups", views.ClusterGroupUIViewSet)
|
|
14
14
|
router.register("clusters", views.ClusterUIViewSet)
|
|
15
15
|
router.register("cluster-types", views.ClusterTypeUIViewSet)
|
|
16
|
-
|
|
16
|
+
router.register("virtual-machines", views.VirtualMachineUIViewSet)
|
|
17
17
|
|
|
18
18
|
urlpatterns = [
|
|
19
19
|
# Clusters
|
|
@@ -28,69 +28,11 @@ urlpatterns = [
|
|
|
28
28
|
name="cluster_remove_devices",
|
|
29
29
|
),
|
|
30
30
|
# Virtual machines
|
|
31
|
-
path(
|
|
32
|
-
"virtual-machines/",
|
|
33
|
-
views.VirtualMachineListView.as_view(),
|
|
34
|
-
name="virtualmachine_list",
|
|
35
|
-
),
|
|
36
|
-
path(
|
|
37
|
-
"virtual-machines/add/",
|
|
38
|
-
views.VirtualMachineEditView.as_view(),
|
|
39
|
-
name="virtualmachine_add",
|
|
40
|
-
),
|
|
41
|
-
path(
|
|
42
|
-
"virtual-machines/import/",
|
|
43
|
-
views.VirtualMachineBulkImportView.as_view(), # 3.0 TODO: remove, unused
|
|
44
|
-
name="virtualmachine_import",
|
|
45
|
-
),
|
|
46
|
-
path(
|
|
47
|
-
"virtual-machines/edit/",
|
|
48
|
-
views.VirtualMachineBulkEditView.as_view(),
|
|
49
|
-
name="virtualmachine_bulk_edit",
|
|
50
|
-
),
|
|
51
|
-
path(
|
|
52
|
-
"virtual-machines/delete/",
|
|
53
|
-
views.VirtualMachineBulkDeleteView.as_view(),
|
|
54
|
-
name="virtualmachine_bulk_delete",
|
|
55
|
-
),
|
|
56
|
-
path(
|
|
57
|
-
"virtual-machines/<uuid:pk>/",
|
|
58
|
-
views.VirtualMachineView.as_view(),
|
|
59
|
-
name="virtualmachine",
|
|
60
|
-
),
|
|
61
|
-
path(
|
|
62
|
-
"virtual-machines/<uuid:pk>/edit/",
|
|
63
|
-
views.VirtualMachineEditView.as_view(),
|
|
64
|
-
name="virtualmachine_edit",
|
|
65
|
-
),
|
|
66
|
-
path(
|
|
67
|
-
"virtual-machines/<uuid:pk>/delete/",
|
|
68
|
-
views.VirtualMachineDeleteView.as_view(),
|
|
69
|
-
name="virtualmachine_delete",
|
|
70
|
-
),
|
|
71
31
|
path(
|
|
72
32
|
"virtual-machines/<uuid:pk>/config-context/",
|
|
73
33
|
views.VirtualMachineConfigContextView.as_view(),
|
|
74
34
|
name="virtualmachine_configcontext",
|
|
75
35
|
),
|
|
76
|
-
path(
|
|
77
|
-
"virtual-machines/<uuid:pk>/changelog/",
|
|
78
|
-
ObjectChangeLogView.as_view(),
|
|
79
|
-
name="virtualmachine_changelog",
|
|
80
|
-
kwargs={"model": VirtualMachine},
|
|
81
|
-
),
|
|
82
|
-
path( # 3.0 TODO: remove, no longer needed/used since 2.3
|
|
83
|
-
"virtual-machines/<uuid:pk>/dynamic-groups/",
|
|
84
|
-
ObjectDynamicGroupsView.as_view(),
|
|
85
|
-
name="virtualmachine_dynamicgroups",
|
|
86
|
-
kwargs={"model": VirtualMachine},
|
|
87
|
-
),
|
|
88
|
-
path(
|
|
89
|
-
"virtual-machines/<uuid:pk>/notes/",
|
|
90
|
-
ObjectNotesView.as_view(),
|
|
91
|
-
name="virtualmachine_notes",
|
|
92
|
-
kwargs={"model": VirtualMachine},
|
|
93
|
-
),
|
|
94
36
|
path(
|
|
95
37
|
"virtual-machines/<uuid:virtualmachine>/services/assign/",
|
|
96
38
|
ServiceEditView.as_view(),
|
nautobot/virtualization/views.py
CHANGED
|
@@ -242,54 +242,58 @@ class ClusterRemoveDevicesView(generic.ObjectEditView):
|
|
|
242
242
|
#
|
|
243
243
|
|
|
244
244
|
|
|
245
|
-
class
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
class VirtualMachineView(generic.ObjectView):
|
|
254
|
-
queryset = VirtualMachine.objects.select_related("software_version", "tenant__tenant_group")
|
|
245
|
+
class VirtualMachineUIViewSet(NautobotUIViewSet):
|
|
246
|
+
bulk_update_form_class = forms.VirtualMachineBulkEditForm
|
|
247
|
+
filterset_class = filters.VirtualMachineFilterSet
|
|
248
|
+
filterset_form_class = forms.VirtualMachineFilterForm
|
|
249
|
+
form_class = forms.VirtualMachineForm
|
|
250
|
+
serializer_class = serializers.VirtualMachineSerializer
|
|
251
|
+
table_class = tables.VirtualMachineDetailTable
|
|
252
|
+
queryset = VirtualMachine.objects.select_related("tenant__tenant_group")
|
|
255
253
|
|
|
256
254
|
def get_extra_context(self, request, instance):
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
vrf_table = VRFDeviceAssignmentTable(vrf_assignments)
|
|
255
|
+
context = super().get_extra_context(request, instance)
|
|
256
|
+
|
|
257
|
+
if self.action == "retrieve":
|
|
258
|
+
# Interfaces
|
|
259
|
+
vminterfaces = (
|
|
260
|
+
VMInterface.objects.restrict(request.user, "view")
|
|
261
|
+
.filter(virtual_machine=instance)
|
|
262
|
+
.prefetch_related(Prefetch("ip_addresses", queryset=IPAddress.objects.restrict(request.user)))
|
|
263
|
+
)
|
|
264
|
+
vminterface_table = tables.VirtualMachineVMInterfaceTable(vminterfaces, user=request.user, orderable=False)
|
|
265
|
+
if request.user.has_perm("virtualization.change_vminterface") or request.user.has_perm(
|
|
266
|
+
"virtualization.delete_vminterface"
|
|
267
|
+
):
|
|
268
|
+
vminterface_table.columns.show("pk")
|
|
269
|
+
|
|
270
|
+
# Services
|
|
271
|
+
services = (
|
|
272
|
+
Service.objects.restrict(request.user, "view")
|
|
273
|
+
.filter(virtual_machine=instance)
|
|
274
|
+
.prefetch_related(Prefetch("ip_addresses", queryset=IPAddress.objects.restrict(request.user)))
|
|
275
|
+
)
|
|
279
276
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
277
|
+
# VRF assignments
|
|
278
|
+
vrf_assignments = instance.vrf_assignments.restrict(request.user, "view")
|
|
279
|
+
vrf_table = VRFDeviceAssignmentTable(vrf_assignments)
|
|
280
|
+
|
|
281
|
+
# Software images
|
|
282
|
+
if instance.software_version is not None:
|
|
283
|
+
software_version_images = instance.software_version.software_image_files.restrict(request.user, "view")
|
|
284
|
+
else:
|
|
285
|
+
software_version_images = []
|
|
286
|
+
|
|
287
|
+
context.update(
|
|
288
|
+
{
|
|
289
|
+
"vminterface_table": vminterface_table,
|
|
290
|
+
"services": services,
|
|
291
|
+
"software_version_images": software_version_images,
|
|
292
|
+
"vrf_table": vrf_table,
|
|
293
|
+
}
|
|
294
|
+
)
|
|
285
295
|
|
|
286
|
-
return
|
|
287
|
-
"vminterface_table": vminterface_table,
|
|
288
|
-
"services": services,
|
|
289
|
-
"software_version_images": software_version_images,
|
|
290
|
-
"vrf_table": vrf_table,
|
|
291
|
-
**super().get_extra_context(request, instance),
|
|
292
|
-
}
|
|
296
|
+
return context
|
|
293
297
|
|
|
294
298
|
|
|
295
299
|
class VirtualMachineConfigContextView(ObjectConfigContextView):
|
|
@@ -303,34 +307,6 @@ class VirtualMachineConfigContextView(ObjectConfigContextView):
|
|
|
303
307
|
return VirtualMachine.objects.annotate_config_context_data()
|
|
304
308
|
|
|
305
309
|
|
|
306
|
-
class VirtualMachineEditView(generic.ObjectEditView):
|
|
307
|
-
queryset = VirtualMachine.objects.all()
|
|
308
|
-
model_form = forms.VirtualMachineForm
|
|
309
|
-
template_name = "virtualization/virtualmachine_edit.html"
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
class VirtualMachineDeleteView(generic.ObjectDeleteView):
|
|
313
|
-
queryset = VirtualMachine.objects.all()
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
class VirtualMachineBulkImportView(generic.BulkImportView): # 3.0 TODO: remove, unused
|
|
317
|
-
queryset = VirtualMachine.objects.all()
|
|
318
|
-
table = tables.VirtualMachineTable
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
class VirtualMachineBulkEditView(generic.BulkEditView):
|
|
322
|
-
queryset = VirtualMachine.objects.select_related("cluster", "role", "status", "tenant")
|
|
323
|
-
filterset = filters.VirtualMachineFilterSet
|
|
324
|
-
table = tables.VirtualMachineTable
|
|
325
|
-
form = forms.VirtualMachineBulkEditForm
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
class VirtualMachineBulkDeleteView(generic.BulkDeleteView):
|
|
329
|
-
queryset = VirtualMachine.objects.select_related("cluster", "role", "status", "tenant")
|
|
330
|
-
filterset = filters.VirtualMachineFilterSet
|
|
331
|
-
table = tables.VirtualMachineTable
|
|
332
|
-
|
|
333
|
-
|
|
334
310
|
#
|
|
335
311
|
# VM interfaces
|
|
336
312
|
#
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: nautobot
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.15
|
|
4
4
|
Summary: Source of truth and network automation platform.
|
|
5
5
|
Home-page: https://nautobot.com
|
|
6
6
|
License: Apache-2.0
|
|
@@ -25,52 +25,52 @@ Provides-Extra: sso
|
|
|
25
25
|
Requires-Dist: Django (>=4.2.23,<4.3.0)
|
|
26
26
|
Requires-Dist: GitPython (>=3.1.45,<3.2.0)
|
|
27
27
|
Requires-Dist: Jinja2 (>=3.1.6,<3.2.0)
|
|
28
|
-
Requires-Dist: Markdown (>=3.
|
|
29
|
-
Requires-Dist: Pillow (>=11.0
|
|
28
|
+
Requires-Dist: Markdown (>=3.8.2,<3.9.0)
|
|
29
|
+
Requires-Dist: Pillow (>=11.0,<12.0)
|
|
30
30
|
Requires-Dist: PyYAML (>=6.0.2,<6.1.0)
|
|
31
31
|
Requires-Dist: celery (>=5.3.6,<5.6.0)
|
|
32
|
-
Requires-Dist: cryptography (>=
|
|
32
|
+
Requires-Dist: cryptography (>=45.0.6,<45.1.0)
|
|
33
33
|
Requires-Dist: django-ajax-tables (>=1.1.1,<1.2.0)
|
|
34
|
-
Requires-Dist: django-auth-ldap (>=5.
|
|
35
|
-
Requires-Dist: django-celery-beat (>=2.
|
|
36
|
-
Requires-Dist: django-celery-results (>=2.
|
|
34
|
+
Requires-Dist: django-auth-ldap (>=5.2.0,<5.3.0) ; extra == "all" or extra == "ldap"
|
|
35
|
+
Requires-Dist: django-celery-beat (>=2.7.0,<2.8.0)
|
|
36
|
+
Requires-Dist: django-celery-results (>=2.6.0,<2.7.0)
|
|
37
37
|
Requires-Dist: django-constance (>=4.3.0,<4.4.0)
|
|
38
|
-
Requires-Dist: django-cors-headers (>=4.
|
|
38
|
+
Requires-Dist: django-cors-headers (>=4.7.0,<4.8.0)
|
|
39
39
|
Requires-Dist: django-db-file-storage (>=0.5.6.1,<0.6.0.0)
|
|
40
|
-
Requires-Dist: django-extensions (>=
|
|
40
|
+
Requires-Dist: django-extensions (>=4.1,<4.2)
|
|
41
41
|
Requires-Dist: django-filter (>=25.1,<25.2)
|
|
42
|
-
Requires-Dist: django-health-check (>=3.
|
|
42
|
+
Requires-Dist: django-health-check (>=3.20.0,<3.21.0)
|
|
43
43
|
Requires-Dist: django-jinja (>=2.11.0,<2.12.0)
|
|
44
|
-
Requires-Dist: django-prometheus (>=2.
|
|
45
|
-
Requires-Dist: django-redis (>=
|
|
46
|
-
Requires-Dist: django-silk (>=5.
|
|
47
|
-
Requires-Dist: django-storages (
|
|
48
|
-
Requires-Dist: django-structlog[celery] (>=9.
|
|
44
|
+
Requires-Dist: django-prometheus (>=2.4.1,<2.5.0)
|
|
45
|
+
Requires-Dist: django-redis (>=6.0.0,<6.1.0)
|
|
46
|
+
Requires-Dist: django-silk (>=5.4.1,<5.5.0)
|
|
47
|
+
Requires-Dist: django-storages (>=1.14.6,<1.15.0) ; extra == "all" or extra == "remote-storage"
|
|
48
|
+
Requires-Dist: django-structlog[celery] (>=9.1.1,<10.0.0)
|
|
49
49
|
Requires-Dist: django-tables2 (>=2.7.5,<2.8.0)
|
|
50
50
|
Requires-Dist: django-taggit (>=6.1.0,<6.2.0)
|
|
51
|
-
Requires-Dist: django-timezone-field (>=7.
|
|
52
|
-
Requires-Dist: django-tree-queries (>=0.
|
|
51
|
+
Requires-Dist: django-timezone-field (>=7.1,<7.2)
|
|
52
|
+
Requires-Dist: django-tree-queries (>=0.20.0,<0.21.0)
|
|
53
53
|
Requires-Dist: django-webserver (>=1.2.0,<1.3.0)
|
|
54
|
-
Requires-Dist: djangorestframework (>=3.15.2,<3.
|
|
55
|
-
Requires-Dist: drf-spectacular[sidecar] (>=0.
|
|
56
|
-
Requires-Dist: emoji (>=2.
|
|
54
|
+
Requires-Dist: djangorestframework (>=3.15.2,<3.17.0)
|
|
55
|
+
Requires-Dist: drf-spectacular[sidecar] (>=0.28.0,<0.29.0)
|
|
56
|
+
Requires-Dist: emoji (>=2.14.1,<2.15.0)
|
|
57
57
|
Requires-Dist: graphene-django (>=2.16.0,<2.17.0)
|
|
58
58
|
Requires-Dist: graphene-django-optimizer (>=0.8.0,<0.9.0)
|
|
59
59
|
Requires-Dist: jsonschema (>=4.7.0,<5.0.0)
|
|
60
60
|
Requires-Dist: kombu (>=5.4.2,<5.6.0)
|
|
61
|
-
Requires-Dist: kubernetes (>=
|
|
61
|
+
Requires-Dist: kubernetes (>=33.1.0,<34.0.0)
|
|
62
62
|
Requires-Dist: mysqlclient (>=2.2.7,<2.3.0) ; extra == "all" or extra == "mysql"
|
|
63
63
|
Requires-Dist: napalm (>=4.1.0,<6.0.0) ; extra == "all" or extra == "napalm"
|
|
64
64
|
Requires-Dist: netaddr (>=1.3.0,<1.4.0)
|
|
65
65
|
Requires-Dist: netutils (>=1.14.0,<2.0.0)
|
|
66
|
-
Requires-Dist: nh3 (>=0.
|
|
66
|
+
Requires-Dist: nh3 (>=0.3.0,<0.4.0)
|
|
67
67
|
Requires-Dist: packaging (>=23.1)
|
|
68
|
-
Requires-Dist: prometheus-client (>=0.
|
|
68
|
+
Requires-Dist: prometheus-client (>=0.22.0,<0.23.0)
|
|
69
69
|
Requires-Dist: psycopg2-binary (>=2.9.10,<2.10.0)
|
|
70
70
|
Requires-Dist: python-slugify (>=8.0.3,<8.1.0)
|
|
71
71
|
Requires-Dist: pyuwsgi (>=2.0.30,<2.1.0)
|
|
72
72
|
Requires-Dist: social-auth-app-django (>=5.4.3,<5.5.0)
|
|
73
|
-
Requires-Dist: social-auth-core[saml] (>=4.
|
|
73
|
+
Requires-Dist: social-auth-core[saml] (>=4.7.0,<4.8.0) ; extra == "all" or extra == "sso"
|
|
74
74
|
Requires-Dist: svgwrite (>=1.4.2,<1.5.0)
|
|
75
75
|
Project-URL: Documentation, https://docs.nautobot.com
|
|
76
76
|
Project-URL: Repository, https://github.com/nautobot/nautobot
|