nautobot 2.4.1__py3-none-any.whl → 2.4.3__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/circuits/templates/circuits/inc/circuit_termination.html +1 -1
- nautobot/circuits/tests/integration/test_circuit.py +135 -0
- nautobot/circuits/tests/integration/test_circuits_bulk_operations.py +43 -0
- nautobot/circuits/tests/integration/test_relationships.py +1 -1
- nautobot/circuits/views.py +4 -1
- nautobot/cloud/api/views.py +3 -3
- nautobot/core/apps/__init__.py +0 -5
- nautobot/core/constants.py +0 -1
- nautobot/core/forms/__init__.py +2 -0
- nautobot/core/forms/forms.py +2 -1
- nautobot/core/forms/widgets.py +8 -0
- nautobot/core/management/commands/generate_performance_test_endpoints.py +268 -0
- nautobot/core/templates/generic/object_bulk_delete.html +1 -1
- nautobot/core/templates/generic/object_bulk_destroy.html +1 -1
- nautobot/core/templates/generic/object_bulk_edit.html +1 -1
- nautobot/core/templates/generic/object_bulk_import.html +1 -1
- nautobot/core/templates/generic/object_create.html +5 -0
- nautobot/core/templates/generic/object_delete.html +1 -1
- nautobot/core/templates/generic/object_detail.html +1 -1
- nautobot/core/templates/generic/object_edit.html +1 -1
- nautobot/core/templates/inc/javascript.html +2 -0
- nautobot/core/templates/widgets/clearable_file.html +5 -0
- nautobot/core/templatetags/helpers.py +3 -3
- nautobot/core/testing/integration.py +469 -12
- nautobot/core/tests/test_commands.py +31 -0
- nautobot/core/tests/test_jobs.py +34 -2
- nautobot/core/tests/test_utils.py +17 -2
- nautobot/core/utils/git.py +7 -2
- nautobot/core/utils/lookup.py +12 -1
- nautobot/core/views/generic.py +10 -2
- nautobot/core/views/mixins.py +22 -7
- nautobot/core/views/utils.py +2 -2
- nautobot/dcim/api/views.py +11 -10
- nautobot/dcim/forms.py +15 -6
- nautobot/dcim/models/devices.py +1 -2
- nautobot/dcim/tables/devices.py +2 -1
- nautobot/dcim/templates/dcim/cable.html +1 -1
- nautobot/dcim/templates/dcim/cable_trace.html +4 -4
- nautobot/dcim/templates/dcim/consoleport.html +14 -4
- nautobot/dcim/templates/dcim/consoleserverport.html +14 -4
- nautobot/dcim/templates/dcim/device/base.html +1 -1
- nautobot/dcim/templates/dcim/device/lldp_neighbors.html +3 -3
- nautobot/dcim/templates/dcim/device.html +2 -2
- nautobot/dcim/templates/dcim/device_component.html +1 -1
- nautobot/dcim/templates/dcim/devicetype.html +1 -1
- nautobot/dcim/templates/dcim/frontport.html +7 -2
- nautobot/dcim/templates/dcim/interface.html +9 -4
- nautobot/dcim/templates/dcim/location.html +1 -1
- nautobot/dcim/templates/dcim/locationtype.html +1 -1
- nautobot/dcim/templates/dcim/locationtype_retrieve.html +1 -1
- nautobot/dcim/templates/dcim/manufacturer.html +1 -1
- nautobot/dcim/templates/dcim/platform.html +1 -1
- nautobot/dcim/templates/dcim/powerfeed.html +9 -4
- nautobot/dcim/templates/dcim/poweroutlet.html +14 -4
- nautobot/dcim/templates/dcim/powerpanel.html +1 -1
- nautobot/dcim/templates/dcim/powerport.html +14 -4
- nautobot/dcim/templates/dcim/rack.html +1 -1
- nautobot/dcim/templates/dcim/rackgroup.html +1 -1
- nautobot/dcim/templates/dcim/rackreservation.html +2 -2
- nautobot/dcim/templates/dcim/rearport.html +7 -2
- nautobot/dcim/templates/dcim/virtualchassis.html +1 -1
- nautobot/dcim/tests/integration/test_device_bulk_operations.py +30 -0
- nautobot/dcim/tests/integration/test_fileinputpicker.py +87 -0
- nautobot/dcim/tests/integration/test_location_bulk_operations.py +43 -0
- nautobot/dcim/tests/test_models.py +1 -1
- nautobot/dcim/tests/test_views.py +9 -1
- nautobot/dcim/views.py +12 -15
- nautobot/extras/api/serializers.py +33 -0
- nautobot/extras/api/views.py +13 -5
- nautobot/extras/constants.py +1 -0
- nautobot/extras/datasources/git.py +125 -0
- nautobot/extras/forms/forms.py +4 -0
- nautobot/extras/jobs.py +8 -1
- nautobot/extras/migrations/0122_add_graphqlquery_owner_content_type.py +34 -0
- nautobot/extras/models/customfields.py +29 -12
- nautobot/extras/models/datasources.py +85 -0
- nautobot/extras/models/models.py +15 -0
- nautobot/extras/models/relationships.py +17 -5
- nautobot/extras/signals.py +15 -1
- nautobot/extras/templates/extras/computedfield.html +1 -1
- nautobot/extras/templates/extras/configcontext.html +1 -1
- nautobot/extras/templates/extras/configcontextschema.html +1 -1
- nautobot/extras/templates/extras/customfield.html +1 -1
- nautobot/extras/templates/extras/customlink.html +1 -1
- nautobot/extras/templates/extras/dynamicgroup.html +1 -1
- nautobot/extras/templates/extras/exporttemplate.html +1 -1
- nautobot/extras/templates/extras/gitrepository.html +1 -1
- nautobot/extras/templates/extras/graphqlquery.html +1 -1
- nautobot/extras/templates/extras/job.html +1 -0
- nautobot/extras/templates/extras/job_detail.html +1 -1
- nautobot/extras/templates/extras/jobbutton_retrieve.html +1 -1
- nautobot/extras/templates/extras/jobhook.html +1 -1
- nautobot/extras/templates/extras/jobresult.html +1 -1
- nautobot/extras/templates/extras/objectchange.html +1 -1
- nautobot/extras/templates/extras/plugin_detail.html +1 -1
- nautobot/extras/templates/extras/relationship.html +1 -63
- nautobot/extras/templates/extras/role_retrieve.html +1 -1
- nautobot/extras/templates/extras/scheduledjob.html +1 -1
- nautobot/extras/templates/extras/secret.html +1 -1
- nautobot/extras/templates/extras/secretsgroup.html +1 -1
- nautobot/extras/templates/extras/status.html +1 -1
- nautobot/extras/templates/extras/tag.html +1 -1
- nautobot/extras/templates/extras/webhook.html +1 -1
- nautobot/extras/tests/git_data/01-valid-files/graphql_queries/device_interfaces.gql +8 -0
- nautobot/extras/tests/git_data/01-valid-files/graphql_queries/device_names.gql +5 -0
- nautobot/extras/tests/git_data/02-invalid-files/graphql_queries/bad_device_names.gql +5 -0
- nautobot/extras/tests/git_helper.py +9 -1
- nautobot/extras/tests/integration/__init__.py +29 -16
- nautobot/extras/tests/test_api.py +6 -0
- nautobot/extras/tests/test_customfields.py +49 -51
- nautobot/extras/tests/test_datasources.py +27 -0
- nautobot/extras/tests/test_dynamicgroups.py +14 -0
- nautobot/extras/tests/test_models.py +283 -0
- nautobot/extras/tests/test_utils.py +22 -1
- nautobot/extras/tests/test_views.py +197 -9
- nautobot/extras/utils.py +47 -8
- nautobot/extras/views.py +84 -26
- nautobot/ipam/api/views.py +3 -3
- nautobot/ipam/forms.py +2 -6
- nautobot/ipam/models.py +8 -2
- nautobot/ipam/tables.py +2 -2
- nautobot/ipam/templates/ipam/ipaddress.html +1 -1
- nautobot/ipam/templates/ipam/prefix.html +1 -1
- nautobot/ipam/templates/ipam/rir.html +1 -1
- nautobot/ipam/templates/ipam/routetarget.html +1 -1
- nautobot/ipam/templates/ipam/service.html +1 -1
- nautobot/ipam/templates/ipam/vlan.html +1 -1
- nautobot/ipam/templates/ipam/vlangroup.html +1 -1
- nautobot/ipam/templates/ipam/vrf.html +1 -1
- nautobot/ipam/tests/test_models.py +24 -0
- nautobot/ipam/tests/test_utils.py +41 -2
- nautobot/ipam/utils/__init__.py +18 -11
- nautobot/project-static/bootstrap-filestyle-1.2.3/bootstrap-filestyle.min.js +11 -0
- nautobot/project-static/docs/404.html +87 -12
- nautobot/project-static/docs/apps/index.html +88 -13
- nautobot/project-static/docs/apps/nautobot-apps.html +88 -13
- nautobot/project-static/docs/assets/javascripts/{bundle.88dd0f4e.min.js → bundle.60a45f97.min.js} +1 -1
- nautobot/project-static/docs/assets/javascripts/{bundle.88dd0f4e.min.js.map → bundle.60a45f97.min.js.map} +1 -1
- nautobot/project-static/docs/assets/javascripts/workers/{search.6ce7567c.min.js → search.f8cc74c7.min.js} +1 -1
- nautobot/project-static/docs/assets/javascripts/workers/{search.6ce7567c.min.js.map → search.f8cc74c7.min.js.map} +1 -1
- nautobot/project-static/docs/assets/stylesheets/{main.6f8fc17f.min.css → main.a40c8224.min.css} +1 -1
- nautobot/project-static/docs/code-reference/nautobot/apps/__init__.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/admin.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/api.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/change_logging.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/choices.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/config.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/constants.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/datasources.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/events.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/exceptions.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/factory.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/filters.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/forms.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/graphql.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/jobs.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/models.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/querysets.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/secrets.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/tables.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/testing.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/ui.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/urls.html +87 -12
- nautobot/project-static/docs/code-reference/nautobot/apps/utils.html +177 -20
- nautobot/project-static/docs/code-reference/nautobot/apps/views.html +114 -17
- nautobot/project-static/docs/development/apps/api/configuration-view.html +87 -12
- nautobot/project-static/docs/development/apps/api/database-backend-config.html +87 -12
- nautobot/project-static/docs/development/apps/api/models/django-admin.html +87 -12
- nautobot/project-static/docs/development/apps/api/models/global-search.html +87 -12
- nautobot/project-static/docs/development/apps/api/models/graphql.html +96 -21
- nautobot/project-static/docs/development/apps/api/models/index.html +87 -12
- nautobot/project-static/docs/development/apps/api/nautobot-app-config.html +87 -12
- nautobot/project-static/docs/development/apps/api/platform-features/custom-validators.html +87 -12
- nautobot/project-static/docs/development/apps/api/platform-features/filter-extensions.html +89 -14
- nautobot/project-static/docs/development/apps/api/platform-features/git-repository-content.html +87 -12
- nautobot/project-static/docs/development/apps/api/platform-features/index.html +87 -12
- nautobot/project-static/docs/development/apps/api/platform-features/jinja2-filters.html +87 -12
- nautobot/project-static/docs/development/apps/api/platform-features/jobs.html +87 -12
- nautobot/project-static/docs/development/apps/api/platform-features/populating-extensibility-features.html +87 -12
- nautobot/project-static/docs/development/apps/api/platform-features/secrets-providers.html +87 -12
- nautobot/project-static/docs/development/apps/api/platform-features/table-extensions.html +87 -12
- nautobot/project-static/docs/development/apps/api/platform-features/uniquely-identify-objects.html +87 -12
- nautobot/project-static/docs/development/apps/api/prometheus.html +87 -12
- nautobot/project-static/docs/development/apps/api/setup.html +88 -13
- nautobot/project-static/docs/development/apps/api/testing.html +87 -12
- nautobot/project-static/docs/development/apps/api/ui-extensions/banners.html +87 -12
- nautobot/project-static/docs/development/apps/api/ui-extensions/home-page.html +87 -12
- nautobot/project-static/docs/development/apps/api/ui-extensions/index.html +87 -12
- nautobot/project-static/docs/development/apps/api/ui-extensions/navigation.html +87 -12
- nautobot/project-static/docs/development/apps/api/ui-extensions/object-views.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/base-template.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/core-view-overrides.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/django-generic-views.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/help-documentation.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/index.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/nautobot-generic-views.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewset.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewsetrouter.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/notes.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/rest-api.html +87 -12
- nautobot/project-static/docs/development/apps/api/views/urls.html +87 -12
- nautobot/project-static/docs/development/apps/index.html +87 -12
- nautobot/project-static/docs/development/apps/migration/code-updates.html +93 -17
- nautobot/project-static/docs/development/apps/migration/dependency-updates.html +89 -14
- nautobot/project-static/docs/development/apps/migration/from-v1.html +90 -15
- nautobot/project-static/docs/development/apps/migration/model-updates/dcim.html +87 -12
- nautobot/project-static/docs/development/apps/migration/model-updates/extras.html +87 -12
- nautobot/project-static/docs/development/apps/migration/model-updates/global.html +87 -12
- nautobot/project-static/docs/development/apps/migration/model-updates/ipam.html +87 -12
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/best-practices.html +87 -12
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/custom-content.html +87 -12
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/index.html +88 -13
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/migration-steps.html +87 -12
- nautobot/project-static/docs/development/apps/porting-from-netbox.html +87 -12
- nautobot/project-static/docs/development/core/application-registry.html +87 -12
- nautobot/project-static/docs/development/core/best-practices.html +88 -13
- nautobot/project-static/docs/development/core/bootstrap-ui.html +88 -13
- nautobot/project-static/docs/development/core/caching.html +87 -12
- nautobot/project-static/docs/development/core/controllers.html +87 -12
- nautobot/project-static/docs/development/core/docker-compose-advanced-use-cases.html +94 -19
- nautobot/project-static/docs/development/core/generic-views.html +87 -12
- nautobot/project-static/docs/development/core/getting-started.html +89 -14
- nautobot/project-static/docs/development/core/homepage.html +87 -12
- nautobot/project-static/docs/development/core/index.html +88 -13
- nautobot/project-static/docs/development/core/minikube-dev-environment-for-k8s-jobs.html +90 -15
- nautobot/project-static/docs/development/core/model-checklist.html +88 -13
- nautobot/project-static/docs/development/core/model-features.html +87 -12
- nautobot/project-static/docs/development/core/natural-keys.html +87 -12
- nautobot/project-static/docs/development/core/navigation-menu.html +88 -13
- nautobot/project-static/docs/development/core/release-checklist.html +88 -13
- nautobot/project-static/docs/development/core/role-internals.html +87 -12
- nautobot/project-static/docs/development/core/settings.html +88 -13
- nautobot/project-static/docs/development/core/style-guide.html +91 -16
- nautobot/project-static/docs/development/core/templates.html +88 -13
- nautobot/project-static/docs/development/core/testing.html +87 -12
- nautobot/project-static/docs/development/core/ui-component-framework.html +87 -12
- nautobot/project-static/docs/development/core/user-preferences.html +87 -12
- nautobot/project-static/docs/development/index.html +87 -12
- nautobot/project-static/docs/development/jobs/index.html +95 -13
- nautobot/project-static/docs/development/jobs/migration/from-v1.html +90 -14
- nautobot/project-static/docs/index.html +90 -14
- nautobot/project-static/docs/objects.inv +0 -0
- nautobot/project-static/docs/overview/application_stack.html +89 -14
- nautobot/project-static/docs/overview/design_philosophy.html +87 -12
- nautobot/project-static/docs/release-notes/index.html +87 -12
- nautobot/project-static/docs/release-notes/version-1.0.html +89 -14
- nautobot/project-static/docs/release-notes/version-1.1.html +89 -14
- nautobot/project-static/docs/release-notes/version-1.2.html +90 -15
- nautobot/project-static/docs/release-notes/version-1.3.html +88 -13
- nautobot/project-static/docs/release-notes/version-1.4.html +104 -29
- nautobot/project-static/docs/release-notes/version-1.5.html +95 -20
- nautobot/project-static/docs/release-notes/version-1.6.html +91 -16
- nautobot/project-static/docs/release-notes/version-2.0.html +97 -22
- nautobot/project-static/docs/release-notes/version-2.1.html +94 -19
- nautobot/project-static/docs/release-notes/version-2.2.html +88 -13
- nautobot/project-static/docs/release-notes/version-2.3.html +91 -16
- nautobot/project-static/docs/release-notes/version-2.4.html +465 -12
- nautobot/project-static/docs/requirements.txt +1 -1
- nautobot/project-static/docs/search/search_index.json +1 -1
- nautobot/project-static/docs/sitemap.xml +296 -288
- nautobot/project-static/docs/sitemap.xml.gz +0 -0
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/ldap.html +90 -15
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/remote.html +87 -12
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/sso.html +91 -16
- nautobot/project-static/docs/user-guide/administration/configuration/index.html +87 -12
- nautobot/project-static/docs/user-guide/administration/configuration/redis.html +88 -13
- nautobot/project-static/docs/user-guide/administration/configuration/settings.html +90 -15
- nautobot/project-static/docs/user-guide/administration/configuration/time-zones.html +87 -12
- nautobot/project-static/docs/user-guide/administration/guides/celery-queues.html +95 -20
- nautobot/project-static/docs/user-guide/administration/guides/docker.html +90 -15
- nautobot/project-static/docs/user-guide/administration/guides/health-checks.html +88 -13
- nautobot/project-static/docs/user-guide/administration/guides/permissions.html +87 -12
- nautobot/project-static/docs/user-guide/administration/guides/prometheus-metrics.html +91 -16
- nautobot/project-static/docs/user-guide/administration/guides/replicating-nautobot.html +87 -12
- nautobot/project-static/docs/user-guide/administration/guides/request-profiling.html +102 -27
- nautobot/project-static/docs/user-guide/administration/guides/s3-django-storage.html +89 -14
- nautobot/project-static/docs/user-guide/administration/guides/selinux-troubleshooting.html +87 -12
- nautobot/project-static/docs/user-guide/administration/installation/app-install.html +88 -13
- nautobot/project-static/docs/user-guide/administration/installation/external-authentication.html +87 -12
- nautobot/project-static/docs/user-guide/administration/installation/http-server.html +87 -12
- nautobot/project-static/docs/user-guide/administration/installation/index.html +87 -12
- nautobot/project-static/docs/user-guide/administration/installation/install_system.html +88 -13
- nautobot/project-static/docs/user-guide/administration/installation/nautobot.html +93 -18
- nautobot/project-static/docs/user-guide/administration/installation/services.html +88 -13
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-netbox.html +87 -12
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-postgresql.html +87 -12
- nautobot/project-static/docs/user-guide/administration/security/index.html +9420 -0
- nautobot/project-static/docs/user-guide/administration/security/notices.html +9844 -0
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-server.html +87 -12
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-shell.html +88 -13
- nautobot/project-static/docs/user-guide/administration/upgrading/database-backup.html +87 -12
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/after-you-upgrade.html +87 -12
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/before-you-upgrade.html +87 -12
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/for-developers.html +87 -12
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/index.html +87 -12
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/whats-changed.html +87 -12
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/region-and-site-data-migration-guide.html +87 -12
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/upgrading-from-nautobot-v1.html +98 -20
- nautobot/project-static/docs/user-guide/administration/upgrading/upgrading.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuit.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittermination.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittype.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/circuits/provider.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/circuits/providernetwork.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloud.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudaccount.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetwork.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetworkprefixassignment.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudresourcetype.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservice.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservicenetworkassignment.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/cable.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleport.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleporttemplate.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverport.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverporttemplate.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controller.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controllermanageddevicegroup.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/device.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebay.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebaytemplate.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicefamily.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/deviceredundancygroup.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicetype.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontport.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontporttemplate.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interface.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfaceredundancygroup.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfacetemplate.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/inventoryitem.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/location.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/locationtype.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/manufacturer.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/module.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebay.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebaytemplate.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/moduletype.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/platform.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerfeed.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlet.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlettemplate.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerpanel.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerport.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerporttemplate.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rack.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackgroup.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackreservation.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearport.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearporttemplate.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareimagefile.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareversion.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualchassis.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualdevicecontext.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontext.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontextschema.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/extras/contact.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/extras/team.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/ipam/ipaddress.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/ipam/namespace.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/ipam/prefix.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/ipam/rir.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/ipam/routetarget.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/ipam/service.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlan.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlangroup.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vrf.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/overview/introduction.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenant.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenantgroup.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/cluster.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustergroup.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustertype.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/virtualmachine.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/vminterface.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/wireless/index.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/wireless/radioprofile.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/wireless/supporteddatarate.html +87 -12
- nautobot/project-static/docs/user-guide/core-data-model/wireless/wirelessnetwork.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/contacts-and-teams.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/custom-fields.html +99 -24
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-devices.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-location-types-and-locations.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/index.html +90 -15
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/interfaces.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/ipam.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/platforms.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/search-bar.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/tenants.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/vlans-and-vlan-groups.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/git-data-source.html +188 -30
- nautobot/project-static/docs/user-guide/feature-guides/graphql.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/ip-address-merge-tool.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/relationships.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/software-image-files-and-versions.html +87 -12
- nautobot/project-static/docs/user-guide/feature-guides/wireless-networks-and-controllers.html +87 -12
- nautobot/project-static/docs/user-guide/index.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/change-logging.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/computedfield.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/customfield.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/customlink.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/dynamicgroup.html +88 -13
- nautobot/project-static/docs/user-guide/platform-functionality/events.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/exporttemplate.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/externalintegration.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/gitrepository.html +407 -14
- nautobot/project-static/docs/user-guide/platform-functionality/graphql.html +90 -15
- nautobot/project-static/docs/user-guide/platform-functionality/graphqlquery.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/imageattachment.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/index.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/job-scheduling-and-approvals.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobbutton.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobhook.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobqueue.html +89 -14
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/kubernetes-job-support.html +93 -18
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/models.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/napalm.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/note.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/objectmetadata.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/relationship.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/rendering-jinja-templates.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/authentication.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/filtering.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/overview.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/ui-related-endpoints.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/role.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/savedview.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/secret.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/staticgroupassociation.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/status.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/tag.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/template-filters.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/users/objectpermission.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/users/token.html +87 -12
- nautobot/project-static/docs/user-guide/platform-functionality/webhook.html +87 -12
- nautobot/project-static/js/dropdown.js +28 -0
- nautobot/tenancy/forms.py +9 -0
- nautobot/tenancy/templates/tenancy/tenant.html +1 -2
- nautobot/tenancy/templates/tenancy/tenant_create.html +21 -0
- nautobot/tenancy/templates/tenancy/tenant_edit.html +2 -21
- nautobot/tenancy/templates/tenancy/tenantgroup.html +2 -44
- nautobot/tenancy/templates/tenancy/tenantgroup_retrieve.html +1 -0
- nautobot/tenancy/tests/test_views.py +5 -1
- nautobot/tenancy/urls.py +7 -79
- nautobot/tenancy/views.py +51 -80
- nautobot/virtualization/templates/virtualization/cluster.html +1 -1
- nautobot/virtualization/templates/virtualization/clustergroup.html +1 -1
- nautobot/virtualization/templates/virtualization/clustertype.html +1 -1
- nautobot/virtualization/templates/virtualization/virtualmachine.html +1 -1
- nautobot/virtualization/templates/virtualization/vminterface.html +1 -1
- nautobot/wireless/api/serializers.py +6 -1
- nautobot/wireless/api/views.py +3 -3
- nautobot/wireless/tests/test_api.py +5 -0
- {nautobot-2.4.1.dist-info → nautobot-2.4.3.dist-info}/METADATA +12 -12
- {nautobot-2.4.1.dist-info → nautobot-2.4.3.dist-info}/RECORD +459 -443
- nautobot/dcim/tests/integration/test_device_bulk_delete.py +0 -189
- nautobot/dcim/tests/integration/test_device_bulk_edit.py +0 -181
- /nautobot/project-static/docs/assets/stylesheets/{main.6f8fc17f.min.css.map → main.a40c8224.min.css.map} +0 -0
- {nautobot-2.4.1.dist-info → nautobot-2.4.3.dist-info}/LICENSE.txt +0 -0
- {nautobot-2.4.1.dist-info → nautobot-2.4.3.dist-info}/NOTICE +0 -0
- {nautobot-2.4.1.dist-info → nautobot-2.4.3.dist-info}/WHEEL +0 -0
- {nautobot-2.4.1.dist-info → nautobot-2.4.3.dist-info}/entry_points.txt +0 -0
nautobot/tenancy/urls.py
CHANGED
|
@@ -1,83 +1,11 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
3
|
-
from nautobot.extras.views import ObjectChangeLogView, ObjectNotesView
|
|
1
|
+
from nautobot.core.views.routers import NautobotUIViewSetRouter
|
|
4
2
|
|
|
5
3
|
from . import views
|
|
6
|
-
from .models import Tenant, TenantGroup
|
|
7
4
|
|
|
8
5
|
app_name = "tenancy"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
name="tenantgroup_add",
|
|
16
|
-
),
|
|
17
|
-
path(
|
|
18
|
-
"tenant-groups/import/",
|
|
19
|
-
views.TenantGroupBulkImportView.as_view(), # 3.0 TODO: remove, unused
|
|
20
|
-
name="tenantgroup_import",
|
|
21
|
-
),
|
|
22
|
-
path(
|
|
23
|
-
"tenant-groups/delete/",
|
|
24
|
-
views.TenantGroupBulkDeleteView.as_view(),
|
|
25
|
-
name="tenantgroup_bulk_delete",
|
|
26
|
-
),
|
|
27
|
-
path(
|
|
28
|
-
"tenant-groups/<uuid:pk>/",
|
|
29
|
-
views.TenantGroupView.as_view(),
|
|
30
|
-
name="tenantgroup",
|
|
31
|
-
),
|
|
32
|
-
path(
|
|
33
|
-
"tenant-groups/<uuid:pk>/edit/",
|
|
34
|
-
views.TenantGroupEditView.as_view(),
|
|
35
|
-
name="tenantgroup_edit",
|
|
36
|
-
),
|
|
37
|
-
path(
|
|
38
|
-
"tenant-groups/<uuid:pk>/delete/",
|
|
39
|
-
views.TenantGroupDeleteView.as_view(),
|
|
40
|
-
name="tenantgroup_delete",
|
|
41
|
-
),
|
|
42
|
-
path(
|
|
43
|
-
"tenant-groups/<uuid:pk>/changelog/",
|
|
44
|
-
ObjectChangeLogView.as_view(),
|
|
45
|
-
name="tenantgroup_changelog",
|
|
46
|
-
kwargs={"model": TenantGroup},
|
|
47
|
-
),
|
|
48
|
-
path(
|
|
49
|
-
"tenant-groups/<uuid:pk>/notes/",
|
|
50
|
-
ObjectNotesView.as_view(),
|
|
51
|
-
name="tenantgroup_notes",
|
|
52
|
-
kwargs={"model": TenantGroup},
|
|
53
|
-
),
|
|
54
|
-
# Tenants
|
|
55
|
-
path("tenants/", views.TenantListView.as_view(), name="tenant_list"),
|
|
56
|
-
path("tenants/add/", views.TenantEditView.as_view(), name="tenant_add"),
|
|
57
|
-
path("tenants/import/", views.TenantBulkImportView.as_view(), name="tenant_import"), # 3.0 TODO: remove, unused
|
|
58
|
-
path("tenants/edit/", views.TenantBulkEditView.as_view(), name="tenant_bulk_edit"),
|
|
59
|
-
path(
|
|
60
|
-
"tenants/delete/",
|
|
61
|
-
views.TenantBulkDeleteView.as_view(),
|
|
62
|
-
name="tenant_bulk_delete",
|
|
63
|
-
),
|
|
64
|
-
path("tenants/<uuid:pk>/", views.TenantView.as_view(), name="tenant"),
|
|
65
|
-
path("tenants/<uuid:pk>/edit/", views.TenantEditView.as_view(), name="tenant_edit"),
|
|
66
|
-
path(
|
|
67
|
-
"tenants/<uuid:pk>/delete/",
|
|
68
|
-
views.TenantDeleteView.as_view(),
|
|
69
|
-
name="tenant_delete",
|
|
70
|
-
),
|
|
71
|
-
path(
|
|
72
|
-
"tenants/<uuid:pk>/changelog/",
|
|
73
|
-
ObjectChangeLogView.as_view(),
|
|
74
|
-
name="tenant_changelog",
|
|
75
|
-
kwargs={"model": Tenant},
|
|
76
|
-
),
|
|
77
|
-
path(
|
|
78
|
-
"tenants/<uuid:pk>/notes/",
|
|
79
|
-
ObjectNotesView.as_view(),
|
|
80
|
-
name="tenant_notes",
|
|
81
|
-
kwargs={"model": Tenant},
|
|
82
|
-
),
|
|
83
|
-
]
|
|
6
|
+
router = NautobotUIViewSetRouter()
|
|
7
|
+
router.register("tenant-groups", views.TenantGroupUIViewSet)
|
|
8
|
+
router.register("tenants", views.TenantUIViewSet)
|
|
9
|
+
|
|
10
|
+
urlpatterns = []
|
|
11
|
+
urlpatterns += router.urls
|
nautobot/tenancy/views.py
CHANGED
|
@@ -2,12 +2,13 @@ from django_tables2 import RequestConfig
|
|
|
2
2
|
|
|
3
3
|
from nautobot.circuits.models import Circuit
|
|
4
4
|
from nautobot.core.ui.choices import SectionChoices
|
|
5
|
-
from nautobot.core.ui.object_detail import ObjectDetailContent, ObjectFieldsPanel, StatsPanel
|
|
6
|
-
from nautobot.core.views import generic
|
|
5
|
+
from nautobot.core.ui.object_detail import ObjectDetailContent, ObjectFieldsPanel, ObjectsTablePanel, StatsPanel
|
|
7
6
|
from nautobot.core.views.paginator import EnhancedPaginator, get_paginate_count
|
|
7
|
+
from nautobot.core.views.viewsets import NautobotUIViewSet
|
|
8
8
|
from nautobot.dcim.models import Controller, ControllerManagedDeviceGroup, Device, Location, Rack, RackReservation
|
|
9
9
|
from nautobot.extras.models import DynamicGroup
|
|
10
10
|
from nautobot.ipam.models import IPAddress, Prefix, VLAN, VRF
|
|
11
|
+
from nautobot.tenancy.api import serializers
|
|
11
12
|
from nautobot.virtualization.models import Cluster, VirtualMachine
|
|
12
13
|
|
|
13
14
|
from . import filters, forms, tables
|
|
@@ -18,52 +19,51 @@ from .models import Tenant, TenantGroup
|
|
|
18
19
|
#
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
class
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class TenantGroupView(generic.ObjectView):
|
|
22
|
+
class TenantGroupUIViewSet(NautobotUIViewSet):
|
|
23
|
+
bulk_update_form_class = forms.TenantGroupBulkEditForm
|
|
24
|
+
filterset_class = filters.TenantGroupFilterSet
|
|
25
|
+
filterset_form_class = forms.TenantGroupFilterForm
|
|
26
|
+
form_class = forms.TenantGroupForm
|
|
29
27
|
queryset = TenantGroup.objects.all()
|
|
28
|
+
serializer_class = serializers.TenantGroupSerializer
|
|
29
|
+
table_class = tables.TenantGroupTable
|
|
30
|
+
object_detail_content = ObjectDetailContent(
|
|
31
|
+
panels=(
|
|
32
|
+
ObjectFieldsPanel(
|
|
33
|
+
section=SectionChoices.LEFT_HALF,
|
|
34
|
+
weight=100,
|
|
35
|
+
fields="__all__",
|
|
36
|
+
),
|
|
37
|
+
ObjectsTablePanel(
|
|
38
|
+
weight=100,
|
|
39
|
+
section=SectionChoices.RIGHT_HALF,
|
|
40
|
+
context_table_key="tenant_table",
|
|
41
|
+
exclude_columns=["tenant_group"],
|
|
42
|
+
),
|
|
43
|
+
)
|
|
44
|
+
)
|
|
30
45
|
|
|
31
46
|
def get_extra_context(self, request, instance):
|
|
32
47
|
# Tenants
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class TenantGroupDeleteView(generic.ObjectDeleteView):
|
|
55
|
-
queryset = TenantGroup.objects.all()
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
class TenantGroupBulkImportView(generic.BulkImportView): # 3.0 TODO: remove, unused
|
|
59
|
-
queryset = TenantGroup.objects.all()
|
|
60
|
-
table = tables.TenantGroupTable
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
class TenantGroupBulkDeleteView(generic.BulkDeleteView):
|
|
64
|
-
queryset = TenantGroup.objects.all()
|
|
65
|
-
table = tables.TenantGroupTable
|
|
66
|
-
filterset = filters.TenantGroupFilterSet
|
|
48
|
+
context = super().get_extra_context(request, instance)
|
|
49
|
+
if self.action == "retrieve":
|
|
50
|
+
# ObjectsTablePanel usually handles the generation of this table, this is an exception here
|
|
51
|
+
# Because we are filtering on its tenant_group as well as the tenant group's descendants
|
|
52
|
+
# i.e. `instance.descendants(include_self=True)`
|
|
53
|
+
tenants = Tenant.objects.restrict(request.user, "view").filter(
|
|
54
|
+
tenant_group__in=instance.descendants(include_self=True)
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
tenant_table = tables.TenantTable(tenants)
|
|
58
|
+
tenant_table.columns.hide("tenant_group")
|
|
59
|
+
|
|
60
|
+
paginate = {
|
|
61
|
+
"paginator_class": EnhancedPaginator,
|
|
62
|
+
"per_page": get_paginate_count(request),
|
|
63
|
+
}
|
|
64
|
+
RequestConfig(request, paginate).configure(tenant_table)
|
|
65
|
+
context["tenant_table"] = tenant_table
|
|
66
|
+
return context
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
#
|
|
@@ -71,15 +71,14 @@ class TenantGroupBulkDeleteView(generic.BulkDeleteView):
|
|
|
71
71
|
#
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class TenantUIViewSet(NautobotUIViewSet):
|
|
75
|
+
bulk_update_form_class = forms.TenantBulkEditForm
|
|
76
|
+
filterset_class = filters.TenantFilterSet
|
|
77
|
+
filterset_form_class = forms.TenantFilterForm
|
|
78
|
+
form_class = forms.TenantForm
|
|
75
79
|
queryset = Tenant.objects.all()
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
table = tables.TenantTable
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
class TenantView(generic.ObjectView):
|
|
82
|
-
queryset = Tenant.objects.select_related("tenant_group")
|
|
80
|
+
serializer_class = serializers.TenantSerializer
|
|
81
|
+
table_class = tables.TenantTable
|
|
83
82
|
object_detail_content = ObjectDetailContent(
|
|
84
83
|
panels=(
|
|
85
84
|
ObjectFieldsPanel(
|
|
@@ -112,31 +111,3 @@ class TenantView(generic.ObjectView):
|
|
|
112
111
|
),
|
|
113
112
|
)
|
|
114
113
|
)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
class TenantEditView(generic.ObjectEditView):
|
|
118
|
-
queryset = Tenant.objects.all()
|
|
119
|
-
model_form = forms.TenantForm
|
|
120
|
-
template_name = "tenancy/tenant_edit.html"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
class TenantDeleteView(generic.ObjectDeleteView):
|
|
124
|
-
queryset = Tenant.objects.all()
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
class TenantBulkImportView(generic.BulkImportView): # 3.0 TODO: remove, unused
|
|
128
|
-
queryset = Tenant.objects.all()
|
|
129
|
-
table = tables.TenantTable
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
class TenantBulkEditView(generic.BulkEditView):
|
|
133
|
-
queryset = Tenant.objects.select_related("tenant_group")
|
|
134
|
-
filterset = filters.TenantFilterSet
|
|
135
|
-
table = tables.TenantTable
|
|
136
|
-
form = forms.TenantBulkEditForm
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
class TenantBulkDeleteView(generic.BulkDeleteView):
|
|
140
|
-
queryset = Tenant.objects.select_related("tenant_group")
|
|
141
|
-
filterset = filters.TenantFilterSet
|
|
142
|
-
table = tables.TenantTable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{% extends 'generic/
|
|
1
|
+
{% extends 'generic/object_retrieve.html' %}
|
|
@@ -15,10 +15,15 @@ class SupportedDataRateSerializer(TaggedModelSerializerMixin, NautobotModelSeria
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class RadioProfileSerializer(TaggedModelSerializerMixin, NautobotModelSerializer):
|
|
18
|
-
channel_width = serializers.ListField(
|
|
18
|
+
channel_width = serializers.ListField(
|
|
19
|
+
child=ChoiceField(choices=RadioProfileChannelWidthChoices),
|
|
20
|
+
allow_empty=True,
|
|
21
|
+
required=False,
|
|
22
|
+
)
|
|
19
23
|
allowed_channel_list = serializers.ListField(
|
|
20
24
|
child=serializers.IntegerField(required=False),
|
|
21
25
|
allow_empty=True,
|
|
26
|
+
required=False,
|
|
22
27
|
)
|
|
23
28
|
|
|
24
29
|
class Meta:
|
nautobot/wireless/api/views.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from nautobot.extras.api.views import NautobotModelViewSet
|
|
1
|
+
from nautobot.extras.api.views import ModelViewSet, NautobotModelViewSet
|
|
2
2
|
from nautobot.wireless import filters, models
|
|
3
3
|
|
|
4
4
|
from . import serializers
|
|
@@ -22,13 +22,13 @@ class WirelessNetworkViewSet(NautobotModelViewSet):
|
|
|
22
22
|
filterset_class = filters.WirelessNetworkFilterSet
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
class ControllerManagedDeviceGroupWirelessNetworkAssignmentViewSet(
|
|
25
|
+
class ControllerManagedDeviceGroupWirelessNetworkAssignmentViewSet(ModelViewSet):
|
|
26
26
|
queryset = models.ControllerManagedDeviceGroupWirelessNetworkAssignment.objects.all()
|
|
27
27
|
serializer_class = serializers.ControllerManagedDeviceGroupWirelessNetworkAssignmentSerializer
|
|
28
28
|
filterset_class = filters.ControllerManagedDeviceGroupWirelessNetworkAssignmentFilterSet
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
class ControllerManagedDeviceGroupRadioProfileAssignmentViewSet(
|
|
31
|
+
class ControllerManagedDeviceGroupRadioProfileAssignmentViewSet(ModelViewSet):
|
|
32
32
|
queryset = models.ControllerManagedDeviceGroupRadioProfileAssignment.objects.all()
|
|
33
33
|
serializer_class = serializers.ControllerManagedDeviceGroupRadioProfileAssignmentSerializer
|
|
34
34
|
filterset_class = filters.ControllerManagedDeviceGroupRadioProfileAssignmentFilterSet
|
|
@@ -107,6 +107,11 @@ class RadioProfileTest(APIViewTestCases.APIViewTestCase):
|
|
|
107
107
|
"tx_power_min": 20,
|
|
108
108
|
"allowed_channel_list": [],
|
|
109
109
|
},
|
|
110
|
+
{
|
|
111
|
+
"name": "Radio Profile 7",
|
|
112
|
+
"frequency": "6GHz",
|
|
113
|
+
"regulatory_domain": "US",
|
|
114
|
+
},
|
|
110
115
|
]
|
|
111
116
|
cls.bulk_update_data = {
|
|
112
117
|
"frequency": "5GHz",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: nautobot
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.3
|
|
4
4
|
Summary: Source of truth and network automation platform.
|
|
5
5
|
Home-page: https://nautobot.com
|
|
6
6
|
License: Apache-2.0
|
|
@@ -22,8 +22,8 @@ Provides-Extra: mysql
|
|
|
22
22
|
Provides-Extra: napalm
|
|
23
23
|
Provides-Extra: remote-storage
|
|
24
24
|
Provides-Extra: sso
|
|
25
|
-
Requires-Dist: Django (>=4.2.
|
|
26
|
-
Requires-Dist: GitPython (>=3.1.
|
|
25
|
+
Requires-Dist: Django (>=4.2.19,<4.3.0)
|
|
26
|
+
Requires-Dist: GitPython (>=3.1.44,<3.2.0)
|
|
27
27
|
Requires-Dist: Jinja2 (>=3.1.5,<3.2.0)
|
|
28
28
|
Requires-Dist: Markdown (>=3.6,<3.7)
|
|
29
29
|
Requires-Dist: Pillow (>=11.0.0,<11.1.0)
|
|
@@ -33,7 +33,7 @@ Requires-Dist: django-ajax-tables (>=1.1.1,<1.2.0)
|
|
|
33
33
|
Requires-Dist: django-auth-ldap (>=5.1.0,<5.2.0) ; extra == "all" or extra == "ldap"
|
|
34
34
|
Requires-Dist: django-celery-beat (>=2.6.0,<2.7.0)
|
|
35
35
|
Requires-Dist: django-celery-results (>=2.5.1,<2.6.0)
|
|
36
|
-
Requires-Dist: django-constance (>=3.
|
|
36
|
+
Requires-Dist: django-constance (>=4.3.0,<4.4.0)
|
|
37
37
|
Requires-Dist: django-cors-headers (>=4.4.0,<4.5.0)
|
|
38
38
|
Requires-Dist: django-db-file-storage (>=0.5.6.1,<0.6.0.0)
|
|
39
39
|
Requires-Dist: django-extensions (>=3.2.3,<3.3.0)
|
|
@@ -42,10 +42,10 @@ Requires-Dist: django-health-check (>=3.18.3,<3.19.0)
|
|
|
42
42
|
Requires-Dist: django-jinja (>=2.11.0,<2.12.0)
|
|
43
43
|
Requires-Dist: django-prometheus (>=2.3.1,<2.4.0)
|
|
44
44
|
Requires-Dist: django-redis (>=5.4.0,<5.5.0)
|
|
45
|
-
Requires-Dist: django-silk (>=5.3.
|
|
45
|
+
Requires-Dist: django-silk (>=5.3.2,<5.4.0)
|
|
46
46
|
Requires-Dist: django-storages (==1.14.3) ; extra == "all" or extra == "remote-storage"
|
|
47
|
-
Requires-Dist: django-structlog[celery] (>=9.0.
|
|
48
|
-
Requires-Dist: django-tables2 (>=2.7.
|
|
47
|
+
Requires-Dist: django-structlog[celery] (>=9.0.1,<10.0.0)
|
|
48
|
+
Requires-Dist: django-tables2 (>=2.7.5,<2.8.0)
|
|
49
49
|
Requires-Dist: django-taggit (>=6.1.0,<6.2.0)
|
|
50
50
|
Requires-Dist: django-timezone-field (>=7.0,<7.1)
|
|
51
51
|
Requires-Dist: django-tree-queries (>=0.19.0,<0.20.0)
|
|
@@ -57,8 +57,8 @@ Requires-Dist: graphene-django (>=2.16.0,<2.17.0)
|
|
|
57
57
|
Requires-Dist: graphene-django-optimizer (>=0.8.0,<0.9.0)
|
|
58
58
|
Requires-Dist: jsonschema (>=4.7.0,<5.0.0)
|
|
59
59
|
Requires-Dist: kombu (>=5.4.2,<5.5.0)
|
|
60
|
-
Requires-Dist: kubernetes (>=
|
|
61
|
-
Requires-Dist: mysqlclient (>=2.2.
|
|
60
|
+
Requires-Dist: kubernetes (>=32.0.0,<33.0.0)
|
|
61
|
+
Requires-Dist: mysqlclient (>=2.2.7,<2.3.0) ; extra == "all" or extra == "mysql"
|
|
62
62
|
Requires-Dist: napalm (>=4.1.0,<6.0.0) ; extra == "all" or extra == "napalm"
|
|
63
63
|
Requires-Dist: netaddr (>=1.3.0,<1.4.0)
|
|
64
64
|
Requires-Dist: netutils (>=1.6.0,<2.0.0)
|
|
@@ -68,8 +68,8 @@ Requires-Dist: prometheus-client (>=0.20.0,<0.21.0)
|
|
|
68
68
|
Requires-Dist: psycopg2-binary (>=2.9.10,<2.10.0)
|
|
69
69
|
Requires-Dist: python-slugify (>=8.0.3,<8.1.0)
|
|
70
70
|
Requires-Dist: pyuwsgi (>=2.0.26,<2.1.0)
|
|
71
|
-
Requires-Dist: social-auth-app-django (>=5.4.
|
|
72
|
-
Requires-Dist: social-auth-core[saml] (>=4.5.
|
|
71
|
+
Requires-Dist: social-auth-app-django (>=5.4.3,<5.5.0)
|
|
72
|
+
Requires-Dist: social-auth-core[saml] (>=4.5.6,<4.6.0) ; extra == "all" or extra == "sso"
|
|
73
73
|
Requires-Dist: svgwrite (>=1.4.2,<1.5.0)
|
|
74
74
|
Project-URL: Documentation, https://docs.nautobot.com
|
|
75
75
|
Project-URL: Repository, https://github.com/nautobot/nautobot
|
|
@@ -92,7 +92,7 @@ Nautobot is a Network Source of Truth and Network Automation Platform built as a
|
|
|
92
92
|
|
|
93
93
|
The complete documentation for Nautobot can be found at [Read the Docs](https://docs.nautobot.com/).
|
|
94
94
|
|
|
95
|
-
Questions? Comments? Start by perusing our [GitHub discussions](https://github.com/nautobot/nautobot/discussions) for the topic you have in mind, or join the
|
|
95
|
+
Questions? Comments? Start by perusing our [GitHub discussions](https://github.com/nautobot/nautobot/discussions) for the topic you have in mind, or join the `#nautobot` channel on [Network to Code's Slack community](https://slack.networktocode.com/)!
|
|
96
96
|
|
|
97
97
|
## Build Status
|
|
98
98
|
|