nautobot 3.0.0a2__py3-none-any.whl → 3.0.0a3__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 +0 -2
- nautobot/apps/filters.py +7 -9
- nautobot/apps/models.py +2 -2
- nautobot/apps/ui.py +9 -1
- nautobot/circuits/filters.py +3 -2
- nautobot/circuits/navigation.py +3 -2
- nautobot/circuits/templates/circuits/circuit.html +1 -1
- nautobot/circuits/templates/circuits/circuit_create.html +3 -3
- nautobot/circuits/templates/circuits/circuittermination.html +1 -1
- nautobot/circuits/templates/circuits/circuittermination_create.html +9 -24
- nautobot/circuits/templates/circuits/circuittype.html +1 -1
- nautobot/circuits/templates/circuits/inc/circuit_termination_cable_fragment.html +6 -6
- nautobot/circuits/templates/circuits/inc/speed_widget.html +12 -12
- nautobot/circuits/templates/circuits/providernetwork.html +1 -1
- nautobot/circuits/tests/integration/test_circuit.py +10 -13
- nautobot/cloud/filters.py +1 -1
- nautobot/cloud/navigation.py +3 -2
- nautobot/core/api/schema.py +1 -1
- nautobot/core/api/serializers.py +6 -1
- nautobot/core/api/urls.py +1 -0
- nautobot/core/api/views.py +8 -0
- nautobot/core/apps/__init__.py +11 -10
- nautobot/core/celery/__init__.py +3 -5
- nautobot/core/checks.py +46 -0
- nautobot/core/cli/bootstrap_v3_to_v5.py +70 -1
- nautobot/core/cli/migrate_deprecated_templates.py +200 -0
- nautobot/core/constants.py +3 -0
- nautobot/core/context_processors.py +9 -1
- nautobot/core/forms/forms.py +1 -1
- nautobot/core/jobs/__init__.py +6 -3
- nautobot/core/jobs/groups.py +31 -1
- nautobot/core/management/commands/generate_test_data.py +28 -9
- nautobot/core/models/generics.py +9 -1
- nautobot/core/models/tree_queries.py +10 -5
- nautobot/core/settings.py +18 -12
- nautobot/core/settings.yaml +13 -7
- nautobot/core/signals.py +12 -1
- nautobot/core/tables.py +13 -6
- nautobot/core/templates/40x.html +1 -1
- nautobot/core/templates/500.html +2 -2
- nautobot/core/templates/admin/config/config.html +12 -12
- nautobot/core/templates/admin/index.html +3 -3
- nautobot/core/templates/buttons/export.html +1 -1
- nautobot/core/templates/components/button/dropdown.html +5 -3
- nautobot/core/templates/components/panel/body_wrapper_generic_table.html +1 -1
- nautobot/core/templates/components/panel/panel.html +3 -3
- nautobot/core/templates/components/tab/content_wrapper.html +2 -3
- nautobot/core/templates/components/tab/label_wrapper_distinct_view.html +1 -1
- nautobot/core/templates/echarts/echarts.html +1 -1
- nautobot/core/templates/generic/object_bulk_add_component.html +2 -1
- nautobot/core/templates/generic/object_bulk_create.html +4 -3
- nautobot/core/templates/generic/object_bulk_destroy.html +3 -3
- nautobot/core/templates/generic/object_bulk_remove.html +2 -2
- nautobot/core/templates/generic/object_bulk_update.html +5 -4
- nautobot/core/templates/generic/object_create.html +5 -4
- nautobot/core/templates/generic/object_import.html +2 -1
- nautobot/core/templates/generic/object_list.html +12 -4
- nautobot/core/templates/generic/object_notes.html +5 -3
- nautobot/core/templates/generic/object_retrieve.html +2 -3
- nautobot/core/templates/graphene/graphiql.html +7 -7
- nautobot/core/templates/home.html +1 -1
- nautobot/core/templates/import_success.html +2 -1
- nautobot/core/templates/inc/computed_fields/panel_data.html +1 -1
- nautobot/core/templates/inc/created_updated.html +7 -3
- nautobot/core/templates/inc/custom_fields/panel_data.html +1 -1
- nautobot/core/templates/inc/form_static_field.html +6 -0
- nautobot/core/templates/inc/header.html +1 -1
- nautobot/core/templates/inc/image_attachments.html +2 -1
- nautobot/core/templates/inc/nav_menu.html +2 -1
- nautobot/core/templates/inc/search_panel.html +4 -4
- nautobot/core/templates/login.html +4 -2
- nautobot/core/templates/nautobot_config.py.j2 +6 -5
- nautobot/core/templates/redoc_ui.html +7 -0
- nautobot/core/templates/search.html +1 -1
- nautobot/core/templates/swagger_ui.html +17 -3
- nautobot/core/templates/system_jobs/import_objects.html +1 -2
- nautobot/core/templates/utilities/confirmation_form.html +2 -2
- nautobot/core/templates/utilities/obj_table.html +10 -2
- nautobot/core/templates/utilities/render_field.html +7 -7
- nautobot/core/templates/utilities/render_jinja2.html +2 -2
- nautobot/core/templates/utilities/templatetags/filter_form_drawer.html +4 -4
- nautobot/core/templates/utilities/theme_preview.html +16 -3
- nautobot/core/templates/widgets/selectwithdisabled_option.html +3 -1
- nautobot/core/templatetags/helpers.py +52 -6
- nautobot/core/testing/api.py +68 -9
- nautobot/core/testing/filters.py +0 -23
- nautobot/core/testing/integration.py +23 -10
- nautobot/core/testing/mixins.py +2 -0
- nautobot/core/testing/views.py +4 -0
- nautobot/core/tests/integration/test_app_home.py +34 -30
- nautobot/core/tests/integration/test_app_navbar.py +3 -0
- nautobot/core/tests/nautobot_config_without_example_apps.py +4 -0
- nautobot/core/tests/runner.py +9 -1
- nautobot/core/tests/test_api.py +5 -3
- nautobot/core/tests/test_breadcrumbs.py +6 -7
- nautobot/core/tests/test_checks.py +28 -0
- nautobot/core/tests/test_cli.py +40 -0
- nautobot/core/tests/test_config.py +2 -1
- nautobot/core/tests/test_forms.py +55 -13
- nautobot/core/tests/test_jobs.py +75 -1
- nautobot/core/tests/test_nautobot_server.py +2 -0
- nautobot/core/tests/test_navigations.py +76 -1
- nautobot/core/tests/test_patch_social_django.py +42 -0
- nautobot/core/tests/test_tables.py +3 -1
- nautobot/core/tests/test_templatetags_helpers.py +53 -13
- nautobot/core/tests/test_templatetags_ui_framework.py +4 -4
- nautobot/core/tests/test_tree_queries.py +14 -1
- nautobot/core/tests/test_ui.py +1 -1
- nautobot/core/tests/test_utils.py +31 -4
- nautobot/core/tests/test_views.py +159 -31
- nautobot/core/ui/breadcrumbs.py +2 -12
- nautobot/core/ui/choices.py +142 -10
- nautobot/core/ui/constants.py +76 -12
- nautobot/core/ui/object_detail.py +92 -12
- nautobot/core/urls.py +12 -1
- nautobot/core/utils/cache.py +2 -1
- nautobot/core/utils/filtering.py +17 -17
- nautobot/core/utils/lookup.py +3 -8
- nautobot/core/utils/module_loading.py +21 -0
- nautobot/core/utils/patch_social_django.py +128 -0
- nautobot/core/views/__init__.py +38 -1
- nautobot/core/views/generic.py +3 -3
- nautobot/core/views/mixins.py +15 -3
- nautobot/core/views/renderers.py +2 -0
- nautobot/core/views/viewsets.py +2 -1
- nautobot/data_validation/apps.py +1 -5
- nautobot/data_validation/custom_validators.py +4 -4
- nautobot/data_validation/filters.py +1 -1
- nautobot/data_validation/forms.py +40 -0
- nautobot/data_validation/migrations/0001_initial.py +0 -7
- nautobot/data_validation/migrations/0002_data_migration_from_app.py +0 -12
- nautobot/data_validation/models.py +16 -7
- nautobot/data_validation/navigation.py +8 -1
- nautobot/data_validation/tables.py +12 -5
- nautobot/data_validation/templates/data_validation/datacompliance_tab.html +1 -0
- nautobot/data_validation/templates/data_validation/device_constraints.html +61 -0
- nautobot/data_validation/tests/__init__.py +2 -2
- nautobot/data_validation/tests/migrations/test_migrations.py +83 -3
- nautobot/data_validation/tests/test_data_compliance_rules.py +12 -7
- nautobot/data_validation/tests/test_filters.py +8 -6
- nautobot/data_validation/tests/test_models.py +15 -0
- nautobot/data_validation/tests/test_views.py +190 -32
- nautobot/data_validation/urls.py +2 -5
- nautobot/data_validation/views.py +73 -40
- nautobot/dcim/api/serializers.py +0 -13
- nautobot/dcim/apps.py +4 -0
- nautobot/dcim/choices.py +16 -0
- nautobot/dcim/custom_validators.py +84 -0
- nautobot/dcim/filter_mixins.py +353 -4
- nautobot/dcim/{filters/__init__.py → filters.py} +2 -35
- nautobot/dcim/forms.py +1 -1
- nautobot/dcim/migrations/0078_remove_device_location_tenant_name_uniqueness.py +16 -0
- nautobot/dcim/migrations/0079_device_name_data_migration.py +59 -0
- nautobot/dcim/models/device_components.py +81 -68
- nautobot/dcim/models/devices.py +13 -16
- nautobot/dcim/navigation.py +7 -6
- nautobot/dcim/tables/devices.py +3 -0
- nautobot/dcim/tables/template_code.py +14 -14
- nautobot/dcim/templates/dcim/cable.html +2 -61
- nautobot/dcim/templates/dcim/cable_connect.html +28 -112
- nautobot/dcim/templates/dcim/cable_edit.html +2 -5
- nautobot/dcim/templates/dcim/cable_retrieve.html +61 -0
- nautobot/dcim/templates/dcim/cable_trace.html +1 -3
- nautobot/dcim/templates/dcim/cable_update.html +5 -0
- nautobot/dcim/templates/dcim/consoleport.html +6 -5
- nautobot/dcim/templates/dcim/consoleserverport.html +6 -5
- nautobot/dcim/templates/dcim/device/config.html +2 -2
- nautobot/dcim/templates/dcim/device/consoleports.html +1 -1
- nautobot/dcim/templates/dcim/device/consoleserverports.html +1 -1
- nautobot/dcim/templates/dcim/device/devicebays.html +1 -1
- nautobot/dcim/templates/dcim/device/frontports.html +1 -1
- nautobot/dcim/templates/dcim/device/interfaces.html +1 -1
- nautobot/dcim/templates/dcim/device/inventory.html +1 -1
- nautobot/dcim/templates/dcim/device/lldp_neighbors.html +1 -1
- nautobot/dcim/templates/dcim/device/modulebays.html +1 -1
- nautobot/dcim/templates/dcim/device/poweroutlets.html +1 -1
- nautobot/dcim/templates/dcim/device/powerports.html +1 -1
- nautobot/dcim/templates/dcim/device/rearports.html +1 -1
- nautobot/dcim/templates/dcim/device/status.html +8 -8
- nautobot/dcim/templates/dcim/device/wireless.html +1 -1
- nautobot/dcim/templates/dcim/device.html +1 -1
- nautobot/dcim/templates/dcim/device_component_add.html +2 -2
- nautobot/dcim/templates/dcim/device_create.html +5 -3
- nautobot/dcim/templates/dcim/device_interface_delete.html +1 -1
- nautobot/dcim/templates/dcim/device_list.html +73 -10
- nautobot/dcim/templates/dcim/devicebay_populate.html +2 -2
- nautobot/dcim/templates/dcim/devicetype.html +1 -1
- nautobot/dcim/templates/dcim/devicetype_component_add.html +2 -2
- nautobot/dcim/templates/dcim/footer_convert_to_contact_or_team_record.html +14 -0
- nautobot/dcim/templates/dcim/frontport.html +9 -8
- nautobot/dcim/templates/dcim/inc/edit_form_softwareversion_js.html +2 -2
- nautobot/dcim/templates/dcim/interface.html +26 -6
- nautobot/dcim/templates/dcim/interface_bulk_delete.html +1 -1
- nautobot/dcim/templates/dcim/inventoryitem_add.html +3 -1
- nautobot/dcim/templates/dcim/inventoryitem_bulk_delete.html +1 -1
- nautobot/dcim/templates/dcim/inventoryitem_edit.html +3 -1
- nautobot/dcim/templates/dcim/location_retrieve.html +1 -242
- nautobot/dcim/templates/dcim/module/base.html +49 -9
- nautobot/dcim/templates/dcim/module_list.html +57 -8
- nautobot/dcim/templates/dcim/modulefamily_retrieve.html +1 -1
- nautobot/dcim/templates/dcim/moduletype_retrieve.html +49 -9
- nautobot/dcim/templates/dcim/platform_create.html +1 -1
- nautobot/dcim/templates/dcim/powerfeed.html +1 -1
- nautobot/dcim/templates/dcim/powerpanel.html +1 -1
- nautobot/dcim/templates/dcim/powerport.html +5 -4
- nautobot/dcim/templates/dcim/rack_elevation_list.html +16 -4
- nautobot/dcim/templates/dcim/rack_retrieve.html +33 -15
- nautobot/dcim/templates/dcim/rearport.html +7 -6
- nautobot/dcim/templates/dcim/virtualchassis.html +1 -1
- nautobot/dcim/templates/dcim/virtualchassis_add_member.html +16 -14
- nautobot/dcim/templates/dcim/virtualchassis_update.html +14 -6
- nautobot/dcim/tests/integration/test_controller.py +1 -0
- nautobot/dcim/tests/test_api.py +8 -0
- nautobot/dcim/tests/test_custom_validators.py +229 -0
- nautobot/dcim/tests/test_filters.py +12 -6
- nautobot/dcim/tests/test_models.py +63 -4
- nautobot/dcim/tests/test_views.py +63 -22
- nautobot/dcim/urls.py +64 -21
- nautobot/dcim/utils.py +3 -3
- nautobot/dcim/views.py +547 -273
- nautobot/extras/api/views.py +9 -1
- nautobot/extras/choices.py +2 -13
- nautobot/extras/{filters/mixins.py → filter_mixins.py} +1 -1
- nautobot/extras/{filters/customfields.py → filter_mixins_customfields.py} +42 -6
- nautobot/extras/{filters/__init__.py → filters.py} +14 -46
- nautobot/extras/forms/forms.py +5 -13
- nautobot/extras/forms/mixins.py +0 -41
- nautobot/extras/management/__init__.py +9 -0
- nautobot/extras/migrations/0127_approval_workflow_models.py +6 -6
- nautobot/extras/migrations/0129_jobresult_debug_log_count_jobresult_error_log_count_and_more.py +37 -0
- nautobot/extras/migrations/0130_jobresult_generate_log_entry_counts.py +42 -0
- nautobot/extras/models/__init__.py +1 -2
- nautobot/extras/models/approvals.py +22 -13
- nautobot/extras/models/contacts.py +2 -0
- nautobot/extras/models/groups.py +44 -5
- nautobot/extras/models/jobs.py +59 -1
- nautobot/extras/models/mixins.py +28 -0
- nautobot/extras/models/models.py +13 -0
- nautobot/extras/models/secrets.py +1 -0
- nautobot/extras/models/statuses.py +0 -15
- nautobot/extras/navigation.py +13 -9
- nautobot/extras/plugins/__init__.py +33 -55
- nautobot/extras/plugins/tables.py +3 -3
- nautobot/extras/plugins/urls.py +2 -21
- nautobot/extras/plugins/utils.py +1 -33
- nautobot/extras/plugins/views.py +0 -4
- nautobot/extras/signals.py +20 -19
- nautobot/extras/tables.py +52 -68
- nautobot/extras/templates/extras/approval_dashboard.html +7 -5
- nautobot/extras/templates/extras/approvalworkflowdefinition_update.html +4 -2
- nautobot/extras/templates/extras/approvalworkflowstage_retrieve.html +20 -12
- nautobot/extras/templates/extras/computedfield.html +1 -1
- nautobot/extras/templates/extras/configcontext.html +1 -1
- nautobot/extras/templates/extras/configcontextschema_validation.html +2 -2
- nautobot/extras/templates/extras/customfield.html +1 -1
- nautobot/extras/templates/extras/dynamicgroup_retrieve.html +11 -5
- nautobot/extras/templates/extras/dynamicgroup_update.html +1 -1
- nautobot/extras/templates/extras/gitrepository_result.html +0 -2
- nautobot/extras/templates/extras/graphqlquery_retrieve.html +1 -96
- nautobot/extras/templates/extras/inc/approval_buttons_column.html +20 -6
- nautobot/extras/templates/extras/inc/bulk_edit_overridable_field.html +8 -7
- nautobot/extras/templates/extras/inc/configcontext_format.html +10 -3
- nautobot/extras/templates/extras/inc/graphqlquery_execute.html +71 -0
- nautobot/extras/templates/extras/inc/job_tiles.html +15 -3
- nautobot/extras/templates/extras/inc/json_format.html +10 -3
- nautobot/extras/templates/extras/inc/overridable_field.html +13 -12
- nautobot/extras/templates/extras/job.html +29 -12
- nautobot/extras/templates/extras/job_bulk_edit.html +18 -0
- nautobot/extras/templates/extras/job_edit.html +52 -46
- nautobot/extras/templates/extras/job_list.html +29 -25
- nautobot/extras/templates/extras/marketplace.html +5 -9
- nautobot/extras/templates/extras/object_configcontext.html +1 -1
- nautobot/extras/templates/extras/object_dynamicgroups.html +2 -2
- nautobot/extras/templates/extras/objectchange_retrieve.html +19 -37
- nautobot/extras/templates/extras/plugin_detail.html +26 -21
- nautobot/extras/templates/extras/plugins_list.html +16 -26
- nautobot/extras/templates/extras/role_retrieve.html +64 -0
- nautobot/extras/templates/extras/scheduledjob.html +4 -2
- nautobot/extras/templates/extras/secretsgroup.html +1 -1
- nautobot/extras/templates/extras/tag.html +1 -1
- nautobot/extras/templatetags/custom_links.py +12 -12
- nautobot/extras/templatetags/job_buttons.py +14 -12
- nautobot/extras/test_jobs/invalid_import.py +9 -0
- nautobot/extras/test_jobs/log_counts_by_level.py +23 -0
- nautobot/extras/test_jobs/missing_import.py +11 -0
- nautobot/extras/tests/integration/test_configcontextschema.py +27 -26
- nautobot/extras/tests/integration/test_customfields.py +8 -7
- nautobot/extras/tests/integration/test_dynamicgroups.py +5 -1
- nautobot/extras/tests/integration/test_plugin_banner.py +3 -0
- nautobot/extras/tests/integration/test_plugins.py +18 -6
- nautobot/extras/tests/test_api.py +27 -18
- nautobot/extras/tests/test_approvals.py +38 -38
- nautobot/extras/tests/test_changelog.py +35 -3
- nautobot/extras/tests/test_customfields.py +22 -13
- nautobot/extras/tests/test_customfields_filters.py +479 -0
- nautobot/extras/tests/test_dynamicgroups.py +39 -1
- nautobot/extras/tests/test_filters.py +21 -19
- nautobot/extras/tests/test_forms.py +18 -21
- nautobot/extras/tests/test_jobs.py +25 -4
- nautobot/extras/tests/test_migrations.py +1 -0
- nautobot/extras/tests/test_models.py +13 -31
- nautobot/extras/tests/test_plugins.py +36 -10
- nautobot/extras/tests/test_views.py +31 -30
- nautobot/extras/views.py +81 -19
- nautobot/ipam/factory.py +7 -0
- nautobot/ipam/filter_mixins.py +38 -0
- nautobot/ipam/filters.py +27 -38
- nautobot/ipam/formfields.py +1 -1
- nautobot/ipam/forms.py +6 -3
- nautobot/ipam/migrations/0030_ipam__namespaces.py +13 -0
- nautobot/ipam/migrations/0031_ipam___data_migrations.py +4 -1
- nautobot/ipam/migrations/0054_namespace_tenant.py +25 -0
- nautobot/ipam/models.py +29 -2
- nautobot/ipam/navigation.py +3 -2
- nautobot/ipam/signals.py +71 -0
- nautobot/ipam/tables.py +13 -6
- nautobot/ipam/templates/ipam/inc/toggle_available.html +10 -10
- nautobot/ipam/templates/ipam/inc/vlangroup_header.html +1 -0
- nautobot/ipam/templates/ipam/ipaddress.html +14 -0
- nautobot/ipam/templates/ipam/ipaddress_merge.html +3 -3
- nautobot/ipam/templates/ipam/ipaddresstointerface_retrieve.html +1 -0
- nautobot/ipam/templates/ipam/namespace_update.html +15 -0
- nautobot/ipam/templates/ipam/prefix_delete.html +1 -1
- nautobot/ipam/templates/ipam/prefix_list.html +14 -13
- nautobot/ipam/templates/ipam/service.html +1 -1
- nautobot/ipam/templates/ipam/vlan.html +1 -1
- nautobot/ipam/templates/ipam/vlan_interfaces.html +1 -1
- nautobot/ipam/templates/ipam/vlan_vminterfaces.html +1 -1
- nautobot/ipam/tests/migration/test_migrations.py +89 -0
- nautobot/ipam/tests/test_api.py +13 -6
- nautobot/ipam/tests/test_filters.py +10 -0
- nautobot/ipam/tests/test_forms.py +1 -1
- nautobot/ipam/tests/test_models.py +43 -1
- nautobot/ipam/tests/test_tables.py +1 -2
- nautobot/ipam/tests/test_utils.py +1 -1
- nautobot/ipam/tests/test_views.py +13 -14
- nautobot/ipam/ui.py +0 -17
- nautobot/ipam/utils/migrations.py +16 -2
- nautobot/ipam/utils/testing.py +9 -3
- nautobot/ipam/views.py +46 -6
- nautobot/project-static/dist/css/nautobot.css +1 -1
- nautobot/project-static/dist/css/nautobot.css.map +1 -1
- nautobot/project-static/dist/js/nautobot.js +1 -1
- nautobot/project-static/dist/js/nautobot.js.map +1 -1
- nautobot/project-static/js/cabletrace.js +1 -1
- nautobot/project-static/js/interface_filtering.js +20 -16
- nautobot/project-static/nautobot-icons/battery-3.svg +3 -0
- nautobot/project-static/nautobot-icons/cloud.svg +1 -1
- nautobot/project-static/nautobot-icons/control-panel.svg +1 -1
- nautobot/project-static/nautobot-icons/device-lifecycle.svg +1 -1
- nautobot/project-static/nautobot-icons/elements.svg +1 -1
- nautobot/project-static/nautobot-icons/extensibility.svg +3 -0
- nautobot/project-static/nautobot-icons/hammer.svg +1 -1
- nautobot/project-static/nautobot-icons/organization.svg +3 -0
- nautobot/project-static/nautobot-icons/secrets.svg +1 -1
- nautobot/project-static/nautobot-icons/security.svg +3 -0
- nautobot/project-static/nautobot-icons/server.svg +1 -1
- nautobot/project-static/nautobot-icons/star-filled.svg +1 -1
- nautobot/project-static/nautobot-icons/star.svg +1 -1
- nautobot/tenancy/api/serializers.py +1 -0
- nautobot/tenancy/api/views.py +2 -1
- nautobot/tenancy/{filters/__init__.py → filters.py} +2 -10
- nautobot/tenancy/navigation.py +3 -1
- nautobot/tenancy/tests/test_filters.py +0 -2
- nautobot/tenancy/views.py +2 -1
- nautobot/ui/src/js/collapse.js +3 -3
- nautobot/ui/src/js/nautobot.js +16 -0
- nautobot/ui/src/scss/colors.scss +1 -1
- nautobot/ui/src/scss/nautobot.scss +61 -28
- nautobot/users/templates/users/profile.html +45 -12
- nautobot/users/templates/users/sessionkey_delete.html +1 -1
- nautobot/users/tests/test_api.py +4 -0
- nautobot/users/views.py +4 -2
- nautobot/virtualization/models.py +1 -68
- nautobot/virtualization/navigation.py +3 -2
- nautobot/virtualization/templates/virtualization/virtual_machine_vminterface_delete.html +1 -1
- nautobot/virtualization/templates/virtualization/virtualmachine.html +1 -1
- nautobot/virtualization/templates/virtualization/virtualmachine_list.html +2 -2
- nautobot/virtualization/templates/virtualization/virtualmachine_update.html +3 -1
- nautobot/virtualization/tests/test_api.py +3 -0
- nautobot/virtualization/tests/test_models.py +44 -4
- nautobot/vpn/__init__.py +0 -0
- nautobot/vpn/api/serializers.py +113 -0
- nautobot/vpn/api/urls.py +19 -0
- nautobot/vpn/api/views.py +70 -0
- nautobot/vpn/apps.py +8 -0
- nautobot/vpn/choices.py +171 -0
- nautobot/vpn/factory.py +209 -0
- nautobot/vpn/filters.py +233 -0
- nautobot/vpn/forms.py +486 -0
- nautobot/vpn/homepage.py +19 -0
- nautobot/vpn/migrations/0001_initial.py +541 -0
- nautobot/vpn/migrations/0002_populate_defaults.py +199 -0
- nautobot/vpn/migrations/__init__.py +0 -0
- nautobot/vpn/models.py +527 -0
- nautobot/vpn/navigation.py +98 -0
- nautobot/vpn/tables.py +380 -0
- nautobot/vpn/templates/vpn/vpnprofile.html +2 -0
- nautobot/vpn/templates/vpn/vpnprofile_create.html +150 -0
- nautobot/vpn/tests/__init__.py +0 -0
- nautobot/vpn/tests/test_api.py +341 -0
- nautobot/vpn/tests/test_filters.py +139 -0
- nautobot/vpn/tests/test_forms.py +294 -0
- nautobot/vpn/tests/test_models.py +97 -0
- nautobot/vpn/tests/test_views.py +281 -0
- nautobot/vpn/urls.py +16 -0
- nautobot/vpn/views.py +437 -0
- nautobot/wireless/navigation.py +3 -2
- nautobot/wireless/tests/integration/test_radio_profile.py +1 -5
- nautobot/wireless/tests/test_api.py +1 -1
- {nautobot-3.0.0a2.dist-info → nautobot-3.0.0a3.dist-info}/METADATA +14 -14
- {nautobot-3.0.0a2.dist-info → nautobot-3.0.0a3.dist-info}/RECORD +417 -366
- {nautobot-3.0.0a2.dist-info → nautobot-3.0.0a3.dist-info}/entry_points.txt +1 -0
- nautobot/data_validation/template_content.py +0 -42
- nautobot/dcim/filters/mixins.py +0 -354
- nautobot/ipam/templates/ipam/inc/prefix_header_extra_content_table.html +0 -4
- /nautobot/tenancy/{filters/mixins.py → filter_mixins.py} +0 -0
- {nautobot-3.0.0a2.dist-info → nautobot-3.0.0a3.dist-info}/LICENSE.txt +0 -0
- {nautobot-3.0.0a2.dist-info → nautobot-3.0.0a3.dist-info}/NOTICE +0 -0
- {nautobot-3.0.0a2.dist-info → nautobot-3.0.0a3.dist-info}/WHEEL +0 -0
nautobot/vpn/views.py
ADDED
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
"""Views for the vpn models."""
|
|
2
|
+
|
|
3
|
+
import logging
|
|
4
|
+
|
|
5
|
+
from django.core.exceptions import ValidationError
|
|
6
|
+
from rest_framework.decorators import action
|
|
7
|
+
from rest_framework.response import Response
|
|
8
|
+
|
|
9
|
+
from nautobot.apps.ui import ObjectDetailContent, ObjectFieldsPanel, ObjectsTablePanel, SectionChoices
|
|
10
|
+
from nautobot.apps.views import NautobotUIViewSet
|
|
11
|
+
from nautobot.core.ui import object_detail
|
|
12
|
+
from nautobot.extras.tables import DynamicGroupTable
|
|
13
|
+
from nautobot.ipam.tables import PrefixTable
|
|
14
|
+
|
|
15
|
+
from . import filters, forms, models, tables
|
|
16
|
+
from .api import serializers
|
|
17
|
+
|
|
18
|
+
logger = logging.getLogger(__name__)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class VPNProfileUIViewSet(NautobotUIViewSet):
|
|
22
|
+
"""ViewSet for VPNProfile."""
|
|
23
|
+
|
|
24
|
+
bulk_update_form_class = forms.VPNProfileBulkEditForm
|
|
25
|
+
filterset_class = filters.VPNProfileFilterSet
|
|
26
|
+
filterset_form_class = forms.VPNProfileFilterForm
|
|
27
|
+
form_class = forms.VPNProfileForm
|
|
28
|
+
lookup_field = "pk"
|
|
29
|
+
queryset = models.VPNProfile.objects.all()
|
|
30
|
+
serializer_class = serializers.VPNProfileSerializer
|
|
31
|
+
table_class = tables.VPNProfileTable
|
|
32
|
+
|
|
33
|
+
object_detail_content = ObjectDetailContent(
|
|
34
|
+
panels=[
|
|
35
|
+
ObjectFieldsPanel(
|
|
36
|
+
weight=100,
|
|
37
|
+
section=SectionChoices.LEFT_HALF,
|
|
38
|
+
fields=[
|
|
39
|
+
"name",
|
|
40
|
+
"description",
|
|
41
|
+
"keepalive_enabled",
|
|
42
|
+
"keepalive_interval",
|
|
43
|
+
"keepalive_retries",
|
|
44
|
+
"nat_traversal",
|
|
45
|
+
"extra_options",
|
|
46
|
+
"secrets_group",
|
|
47
|
+
"role",
|
|
48
|
+
"tenant",
|
|
49
|
+
],
|
|
50
|
+
),
|
|
51
|
+
ObjectsTablePanel(
|
|
52
|
+
weight=100,
|
|
53
|
+
table_class=tables.VPNProfilePhase1PolicyAssignmentTable,
|
|
54
|
+
table_filter="vpn_profile",
|
|
55
|
+
section=SectionChoices.RIGHT_HALF,
|
|
56
|
+
exclude_columns=[],
|
|
57
|
+
),
|
|
58
|
+
ObjectsTablePanel(
|
|
59
|
+
weight=200,
|
|
60
|
+
table_class=tables.VPNProfilePhase2PolicyAssignmentTable,
|
|
61
|
+
table_filter="vpn_profile",
|
|
62
|
+
section=SectionChoices.RIGHT_HALF,
|
|
63
|
+
exclude_columns=[],
|
|
64
|
+
),
|
|
65
|
+
],
|
|
66
|
+
extra_tabs=[
|
|
67
|
+
object_detail.DistinctViewTab(
|
|
68
|
+
weight=object_detail.Tab.WEIGHT_CHANGELOG_TAB + 100,
|
|
69
|
+
tab_id="vpn_vpns",
|
|
70
|
+
label="VPNs",
|
|
71
|
+
url_name="vpn:vpnprofile_vpns",
|
|
72
|
+
related_object_attribute="vpns",
|
|
73
|
+
hide_if_empty=True,
|
|
74
|
+
panels=(
|
|
75
|
+
object_detail.ObjectsTablePanel(
|
|
76
|
+
weight=100,
|
|
77
|
+
section=SectionChoices.FULL_WIDTH,
|
|
78
|
+
table_title="VPNs",
|
|
79
|
+
table_class=tables.VPNTable,
|
|
80
|
+
table_attribute="vpns",
|
|
81
|
+
related_field_name="vpn_profile",
|
|
82
|
+
select_related_fields=["role"],
|
|
83
|
+
exclude_columns=["vpn_profile"],
|
|
84
|
+
tab_id="vpns",
|
|
85
|
+
enable_bulk_actions=True,
|
|
86
|
+
include_paginator=True,
|
|
87
|
+
),
|
|
88
|
+
),
|
|
89
|
+
),
|
|
90
|
+
object_detail.DistinctViewTab(
|
|
91
|
+
weight=object_detail.Tab.WEIGHT_CHANGELOG_TAB + 200,
|
|
92
|
+
tab_id="vpn_tunnels",
|
|
93
|
+
label="VPN Tunnels",
|
|
94
|
+
url_name="vpn:vpnprofile_vpntunnels",
|
|
95
|
+
related_object_attribute="vpn_tunnels",
|
|
96
|
+
hide_if_empty=True,
|
|
97
|
+
panels=(
|
|
98
|
+
object_detail.ObjectsTablePanel(
|
|
99
|
+
weight=100,
|
|
100
|
+
section=SectionChoices.FULL_WIDTH,
|
|
101
|
+
table_title="VPN Tunnels",
|
|
102
|
+
table_class=tables.VPNTunnelTable,
|
|
103
|
+
table_attribute="vpn_tunnels",
|
|
104
|
+
related_field_name="vpn_profile",
|
|
105
|
+
select_related_fields=["endpoint_a", "endpoint_z", "role"],
|
|
106
|
+
exclude_columns=["vpn_profile"],
|
|
107
|
+
tab_id="vpn_tunnels",
|
|
108
|
+
enable_bulk_actions=True,
|
|
109
|
+
include_paginator=True,
|
|
110
|
+
),
|
|
111
|
+
),
|
|
112
|
+
),
|
|
113
|
+
object_detail.DistinctViewTab(
|
|
114
|
+
weight=object_detail.Tab.WEIGHT_CHANGELOG_TAB + 300,
|
|
115
|
+
tab_id="vpn_endpoints",
|
|
116
|
+
label="VPN Endpoints",
|
|
117
|
+
url_name="vpn:vpnprofile_vpnendpoints",
|
|
118
|
+
related_object_attribute="vpn_tunnel_endpoints",
|
|
119
|
+
hide_if_empty=True,
|
|
120
|
+
panels=(
|
|
121
|
+
object_detail.ObjectsTablePanel(
|
|
122
|
+
weight=100,
|
|
123
|
+
section=SectionChoices.FULL_WIDTH,
|
|
124
|
+
table_title="VPN Endpoints",
|
|
125
|
+
table_class=tables.VPNTunnelEndpointTable,
|
|
126
|
+
table_attribute="vpn_tunnel_endpoints",
|
|
127
|
+
related_field_name="vpn_profile",
|
|
128
|
+
select_related_fields=["source_interface", "role"],
|
|
129
|
+
exclude_columns=["vpn_profile"],
|
|
130
|
+
tab_id="vpn_endpoints",
|
|
131
|
+
enable_bulk_actions=True,
|
|
132
|
+
include_paginator=True,
|
|
133
|
+
),
|
|
134
|
+
),
|
|
135
|
+
),
|
|
136
|
+
],
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
def get_extra_context(self, request, instance=None):
|
|
140
|
+
ctx = super().get_extra_context(request, instance)
|
|
141
|
+
|
|
142
|
+
if self.action in ["create", "update"]:
|
|
143
|
+
ctx["vpn_phase1_policies"] = forms.VPNProfilePh1FormSet(
|
|
144
|
+
instance=instance,
|
|
145
|
+
data=request.POST if request.method == "POST" else None,
|
|
146
|
+
)
|
|
147
|
+
ctx["vpn_phase2_policies"] = forms.VPNProfilePh2FormSet(
|
|
148
|
+
instance=instance,
|
|
149
|
+
data=request.POST if request.method == "POST" else None,
|
|
150
|
+
)
|
|
151
|
+
return ctx
|
|
152
|
+
|
|
153
|
+
@action(
|
|
154
|
+
detail=True,
|
|
155
|
+
url_path="vpn-vpns",
|
|
156
|
+
url_name="vpns",
|
|
157
|
+
custom_view_base_action="view",
|
|
158
|
+
custom_view_additional_permissions=["vpn.view_vpns"],
|
|
159
|
+
)
|
|
160
|
+
def vpn_vpns(self, request, *args, **kwargs):
|
|
161
|
+
return Response({})
|
|
162
|
+
|
|
163
|
+
@action(
|
|
164
|
+
detail=True,
|
|
165
|
+
url_path="vpn-tunnels",
|
|
166
|
+
url_name="vpntunnels",
|
|
167
|
+
custom_view_base_action="view",
|
|
168
|
+
custom_view_additional_permissions=["vpn.view_vpntunnels"],
|
|
169
|
+
)
|
|
170
|
+
def vpn_tunnels(self, request, *args, **kwargs):
|
|
171
|
+
return Response({})
|
|
172
|
+
|
|
173
|
+
@action(
|
|
174
|
+
detail=True,
|
|
175
|
+
url_path="vpn-endpoints",
|
|
176
|
+
url_name="vpnendpoints",
|
|
177
|
+
custom_view_base_action="view",
|
|
178
|
+
custom_view_additional_permissions=["vpn.view_vpntunnelendpoints"],
|
|
179
|
+
)
|
|
180
|
+
def vpn_endpoints(self, request, *args, **kwargs):
|
|
181
|
+
return Response({})
|
|
182
|
+
|
|
183
|
+
def form_save(self, form, **kwargs):
|
|
184
|
+
obj = super().form_save(form, **kwargs)
|
|
185
|
+
ctx = self.get_extra_context(self.request, obj)
|
|
186
|
+
|
|
187
|
+
vpn_phase1_policies = ctx.get("vpn_phase1_policies")
|
|
188
|
+
if vpn_phase1_policies.is_valid():
|
|
189
|
+
vpn_phase1_policies.save()
|
|
190
|
+
else:
|
|
191
|
+
logger.debug("PH1 Policies")
|
|
192
|
+
logger.error(vpn_phase1_policies.errors)
|
|
193
|
+
raise ValidationError(vpn_phase1_policies.errors)
|
|
194
|
+
|
|
195
|
+
vpn_phase2_policies = ctx.get("vpn_phase2_policies")
|
|
196
|
+
if vpn_phase2_policies.is_valid():
|
|
197
|
+
vpn_phase2_policies.save()
|
|
198
|
+
else:
|
|
199
|
+
logger.debug("PH2 Policies")
|
|
200
|
+
logger.error(vpn_phase1_policies.errors)
|
|
201
|
+
raise ValidationError(vpn_phase2_policies.errors)
|
|
202
|
+
|
|
203
|
+
return obj
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
class VPNPhase1PolicyUIViewSet(NautobotUIViewSet):
|
|
207
|
+
"""ViewSet for VPNPhase1Policy."""
|
|
208
|
+
|
|
209
|
+
bulk_update_form_class = forms.VPNPhase1PolicyBulkEditForm
|
|
210
|
+
filterset_class = filters.VPNPhase1PolicyFilterSet
|
|
211
|
+
filterset_form_class = forms.VPNPhase1PolicyFilterForm
|
|
212
|
+
form_class = forms.VPNPhase1PolicyForm
|
|
213
|
+
lookup_field = "pk"
|
|
214
|
+
queryset = models.VPNPhase1Policy.objects.all()
|
|
215
|
+
serializer_class = serializers.VPNPhase1PolicySerializer
|
|
216
|
+
table_class = tables.VPNPhase1PolicyTable
|
|
217
|
+
|
|
218
|
+
object_detail_content = ObjectDetailContent(
|
|
219
|
+
panels=[
|
|
220
|
+
ObjectFieldsPanel(
|
|
221
|
+
weight=100,
|
|
222
|
+
section=SectionChoices.LEFT_HALF,
|
|
223
|
+
fields=[
|
|
224
|
+
"name",
|
|
225
|
+
"description",
|
|
226
|
+
"ike_version",
|
|
227
|
+
"aggressive_mode",
|
|
228
|
+
"encryption_algorithm",
|
|
229
|
+
"integrity_algorithm",
|
|
230
|
+
"dh_group",
|
|
231
|
+
"lifetime_seconds",
|
|
232
|
+
"lifetime_kb",
|
|
233
|
+
"authentication_method",
|
|
234
|
+
"tenant",
|
|
235
|
+
],
|
|
236
|
+
),
|
|
237
|
+
],
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
class VPNPhase2PolicyUIViewSet(NautobotUIViewSet):
|
|
242
|
+
"""ViewSet for VPNPhase2Policy."""
|
|
243
|
+
|
|
244
|
+
bulk_update_form_class = forms.VPNPhase2PolicyBulkEditForm
|
|
245
|
+
filterset_class = filters.VPNPhase2PolicyFilterSet
|
|
246
|
+
filterset_form_class = forms.VPNPhase2PolicyFilterForm
|
|
247
|
+
form_class = forms.VPNPhase2PolicyForm
|
|
248
|
+
lookup_field = "pk"
|
|
249
|
+
queryset = models.VPNPhase2Policy.objects.all()
|
|
250
|
+
serializer_class = serializers.VPNPhase2PolicySerializer
|
|
251
|
+
table_class = tables.VPNPhase2PolicyTable
|
|
252
|
+
|
|
253
|
+
object_detail_content = ObjectDetailContent(
|
|
254
|
+
panels=[
|
|
255
|
+
ObjectFieldsPanel(
|
|
256
|
+
weight=100,
|
|
257
|
+
section=SectionChoices.LEFT_HALF,
|
|
258
|
+
fields=[
|
|
259
|
+
"name",
|
|
260
|
+
"description",
|
|
261
|
+
"encryption_algorithm",
|
|
262
|
+
"integrity_algorithm",
|
|
263
|
+
"pfs_group",
|
|
264
|
+
"lifetime",
|
|
265
|
+
"tenant",
|
|
266
|
+
],
|
|
267
|
+
),
|
|
268
|
+
],
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
class VPNUIViewSet(NautobotUIViewSet):
|
|
273
|
+
"""ViewSet for VPN."""
|
|
274
|
+
|
|
275
|
+
bulk_update_form_class = forms.VPNBulkEditForm
|
|
276
|
+
filterset_class = filters.VPNFilterSet
|
|
277
|
+
filterset_form_class = forms.VPNFilterForm
|
|
278
|
+
form_class = forms.VPNForm
|
|
279
|
+
lookup_field = "pk"
|
|
280
|
+
queryset = models.VPN.objects.all()
|
|
281
|
+
serializer_class = serializers.VPNSerializer
|
|
282
|
+
table_class = tables.VPNTable
|
|
283
|
+
|
|
284
|
+
object_detail_content = ObjectDetailContent(
|
|
285
|
+
panels=[
|
|
286
|
+
ObjectFieldsPanel(
|
|
287
|
+
weight=100,
|
|
288
|
+
section=SectionChoices.LEFT_HALF,
|
|
289
|
+
fields=["vpn_profile", "name", "description", "vpn_id", "role", "tenant"],
|
|
290
|
+
),
|
|
291
|
+
ObjectsTablePanel(
|
|
292
|
+
weight=200,
|
|
293
|
+
table_class=tables.VPNTunnelTable,
|
|
294
|
+
table_filter="vpn",
|
|
295
|
+
section=SectionChoices.FULL_WIDTH,
|
|
296
|
+
exclude_columns=[],
|
|
297
|
+
),
|
|
298
|
+
],
|
|
299
|
+
)
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
class VPNTunnelUIViewSet(NautobotUIViewSet):
|
|
303
|
+
"""ViewSet for VPNTunnel."""
|
|
304
|
+
|
|
305
|
+
bulk_update_form_class = forms.VPNTunnelBulkEditForm
|
|
306
|
+
filterset_class = filters.VPNTunnelFilterSet
|
|
307
|
+
filterset_form_class = forms.VPNTunnelFilterForm
|
|
308
|
+
form_class = forms.VPNTunnelForm
|
|
309
|
+
lookup_field = "pk"
|
|
310
|
+
queryset = models.VPNTunnel.objects.all()
|
|
311
|
+
serializer_class = serializers.VPNTunnelSerializer
|
|
312
|
+
table_class = tables.VPNTunnelTable
|
|
313
|
+
|
|
314
|
+
object_detail_content = ObjectDetailContent(
|
|
315
|
+
panels=[
|
|
316
|
+
ObjectFieldsPanel(
|
|
317
|
+
weight=100,
|
|
318
|
+
section=SectionChoices.LEFT_HALF,
|
|
319
|
+
fields=[
|
|
320
|
+
"name",
|
|
321
|
+
"description",
|
|
322
|
+
"vpn",
|
|
323
|
+
"vpn_profile",
|
|
324
|
+
"tunnel_id",
|
|
325
|
+
"encapsulation",
|
|
326
|
+
"role",
|
|
327
|
+
"status",
|
|
328
|
+
"tenant",
|
|
329
|
+
],
|
|
330
|
+
),
|
|
331
|
+
ObjectsTablePanel(
|
|
332
|
+
weight=100,
|
|
333
|
+
label="A",
|
|
334
|
+
table_class=tables.VPNTunnelEndpointTable,
|
|
335
|
+
table_filter="endpoint_a_vpn_tunnels",
|
|
336
|
+
table_title="Tunnel Endpoint",
|
|
337
|
+
section=SectionChoices.RIGHT_HALF,
|
|
338
|
+
exclude_columns=[
|
|
339
|
+
"protected_prefixes_count",
|
|
340
|
+
"tenant",
|
|
341
|
+
],
|
|
342
|
+
add_button_route=None,
|
|
343
|
+
),
|
|
344
|
+
ObjectsTablePanel(
|
|
345
|
+
weight=200,
|
|
346
|
+
label="Z",
|
|
347
|
+
table_class=tables.VPNTunnelEndpointTable,
|
|
348
|
+
table_filter="endpoint_z_vpn_tunnels",
|
|
349
|
+
table_title="Tunnel Endpoint",
|
|
350
|
+
section=SectionChoices.RIGHT_HALF,
|
|
351
|
+
exclude_columns=[
|
|
352
|
+
"protected_prefixes_count",
|
|
353
|
+
"tenant",
|
|
354
|
+
],
|
|
355
|
+
add_button_route=None,
|
|
356
|
+
),
|
|
357
|
+
],
|
|
358
|
+
)
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
class VPNTunnelEndpointUIViewSet(NautobotUIViewSet):
|
|
362
|
+
"""ViewSet for VPNTunnelEndpoint."""
|
|
363
|
+
|
|
364
|
+
bulk_update_form_class = forms.VPNTunnelEndpointBulkEditForm
|
|
365
|
+
filterset_class = filters.VPNTunnelEndpointFilterSet
|
|
366
|
+
filterset_form_class = forms.VPNTunnelEndpointFilterForm
|
|
367
|
+
form_class = forms.VPNTunnelEndpointForm
|
|
368
|
+
lookup_field = "pk"
|
|
369
|
+
queryset = models.VPNTunnelEndpoint.objects.all()
|
|
370
|
+
serializer_class = serializers.VPNTunnelEndpointSerializer
|
|
371
|
+
table_class = tables.VPNTunnelEndpointTable
|
|
372
|
+
|
|
373
|
+
object_detail_content = ObjectDetailContent(
|
|
374
|
+
panels=[
|
|
375
|
+
ObjectFieldsPanel(
|
|
376
|
+
weight=100,
|
|
377
|
+
section=SectionChoices.LEFT_HALF,
|
|
378
|
+
fields=[
|
|
379
|
+
"name",
|
|
380
|
+
"vpn_profile",
|
|
381
|
+
"device",
|
|
382
|
+
"source_interface",
|
|
383
|
+
"source_ipaddress",
|
|
384
|
+
"source_fqdn",
|
|
385
|
+
"tunnel_interface",
|
|
386
|
+
"role",
|
|
387
|
+
"tenant",
|
|
388
|
+
],
|
|
389
|
+
),
|
|
390
|
+
ObjectsTablePanel(
|
|
391
|
+
weight=100,
|
|
392
|
+
table_class=tables.VPNTunnelTable,
|
|
393
|
+
table_filter="endpoint_a",
|
|
394
|
+
table_title="A Endpoint Tunnels",
|
|
395
|
+
section=SectionChoices.RIGHT_HALF,
|
|
396
|
+
exclude_columns=[
|
|
397
|
+
"description",
|
|
398
|
+
"endpoint_a",
|
|
399
|
+
"tenant",
|
|
400
|
+
"actions",
|
|
401
|
+
],
|
|
402
|
+
add_button_route=None,
|
|
403
|
+
),
|
|
404
|
+
ObjectsTablePanel(
|
|
405
|
+
weight=200,
|
|
406
|
+
table_class=tables.VPNTunnelTable,
|
|
407
|
+
table_filter="endpoint_z",
|
|
408
|
+
table_title="Z Endpoint Tunnels",
|
|
409
|
+
section=SectionChoices.RIGHT_HALF,
|
|
410
|
+
exclude_columns=[
|
|
411
|
+
"description",
|
|
412
|
+
"endpoint_z",
|
|
413
|
+
"tenant",
|
|
414
|
+
"actions",
|
|
415
|
+
],
|
|
416
|
+
add_button_route=None,
|
|
417
|
+
),
|
|
418
|
+
ObjectsTablePanel(
|
|
419
|
+
weight=100,
|
|
420
|
+
table_title="Protected Prefixes",
|
|
421
|
+
table_class=PrefixTable,
|
|
422
|
+
table_filter="vpn_tunnel_endpoints",
|
|
423
|
+
section=SectionChoices.FULL_WIDTH,
|
|
424
|
+
exclude_columns=[],
|
|
425
|
+
add_button_route=None,
|
|
426
|
+
),
|
|
427
|
+
ObjectsTablePanel(
|
|
428
|
+
weight=200,
|
|
429
|
+
table_title="Protected Prefixes from Dynamic Group",
|
|
430
|
+
table_class=DynamicGroupTable,
|
|
431
|
+
table_filter="vpn_tunnel_endpoints",
|
|
432
|
+
section=SectionChoices.FULL_WIDTH,
|
|
433
|
+
exclude_columns=[],
|
|
434
|
+
add_button_route=None,
|
|
435
|
+
),
|
|
436
|
+
],
|
|
437
|
+
)
|
nautobot/wireless/navigation.py
CHANGED
|
@@ -4,12 +4,13 @@ from nautobot.core.apps import (
|
|
|
4
4
|
NavMenuItem,
|
|
5
5
|
NavMenuTab,
|
|
6
6
|
)
|
|
7
|
+
from nautobot.core.ui.choices import NavigationIconChoices, NavigationWeightChoices
|
|
7
8
|
|
|
8
9
|
menu_items = (
|
|
9
10
|
NavMenuTab(
|
|
10
11
|
name="Wireless",
|
|
11
|
-
icon=
|
|
12
|
-
weight=
|
|
12
|
+
icon=NavigationIconChoices.WIRELESS,
|
|
13
|
+
weight=NavigationWeightChoices.WIRELESS,
|
|
13
14
|
groups=(
|
|
14
15
|
NavMenuGroup(
|
|
15
16
|
name="Wireless",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
from django.test import tag
|
|
2
1
|
from django.urls import reverse
|
|
3
2
|
|
|
4
3
|
from nautobot.core.testing.integration import SeleniumTestCase
|
|
@@ -10,7 +9,6 @@ class RadioProfileTestCase(SeleniumTestCase):
|
|
|
10
9
|
Perform set of Radio Profile tests using Selenium.
|
|
11
10
|
"""
|
|
12
11
|
|
|
13
|
-
@tag("fix_in_v3")
|
|
14
12
|
def test_radio_profile_bulk_edit(self):
|
|
15
13
|
"""
|
|
16
14
|
This test goes through the process of creating a radio profile and performing bulk edit.
|
|
@@ -37,6 +35,4 @@ class RadioProfileTestCase(SeleniumTestCase):
|
|
|
37
35
|
self.browser.find_by_xpath("//button[@name='_apply']", wait_time=5).click()
|
|
38
36
|
|
|
39
37
|
job_result = JobResult.objects.filter(name="Bulk Edit Objects").first()
|
|
40
|
-
self.assertEqual(
|
|
41
|
-
self.browser.url, self.live_server_url + reverse("extras:jobresult", args=[job_result.pk]) + "?tab=main"
|
|
42
|
-
)
|
|
38
|
+
self.assertEqual(self.browser.url, self.live_server_url + reverse("extras:jobresult", args=[job_result.pk]))
|
|
@@ -37,7 +37,7 @@ class SupportedDataRateTest(APIViewTestCases.APIViewTestCase):
|
|
|
37
37
|
|
|
38
38
|
class RadioProfileTest(APIViewTestCases.APIViewTestCase):
|
|
39
39
|
model = models.RadioProfile
|
|
40
|
-
choices_fields = ["frequency", "regulatory_domain"]
|
|
40
|
+
choices_fields = ["channel_width", "frequency", "regulatory_domain"]
|
|
41
41
|
|
|
42
42
|
@classmethod
|
|
43
43
|
def setUpTestData(cls):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: nautobot
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.0a3
|
|
4
4
|
Summary: Source of truth and network automation platform.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Keywords: Nautobot
|
|
@@ -21,20 +21,20 @@ Provides-Extra: mysql
|
|
|
21
21
|
Provides-Extra: napalm
|
|
22
22
|
Provides-Extra: remote-storage
|
|
23
23
|
Provides-Extra: sso
|
|
24
|
-
Requires-Dist: Django (>=4.2.
|
|
24
|
+
Requires-Dist: Django (>=4.2.25,<4.3.0)
|
|
25
25
|
Requires-Dist: GitPython (>=3.1.45,<3.2.0)
|
|
26
26
|
Requires-Dist: Jinja2 (>=3.1.6,<3.2.0)
|
|
27
27
|
Requires-Dist: Markdown (>=3.8.2,<3.9.0)
|
|
28
|
-
Requires-Dist: Pillow (>=
|
|
29
|
-
Requires-Dist: PyYAML (>=6.0.
|
|
28
|
+
Requires-Dist: Pillow (>=12.0.0,<12.1.0)
|
|
29
|
+
Requires-Dist: PyYAML (>=6.0.3,<6.1.0)
|
|
30
30
|
Requires-Dist: celery (>=5.5.3,<5.6.0)
|
|
31
|
-
Requires-Dist: cryptography (>=
|
|
31
|
+
Requires-Dist: cryptography (>=46.0.3,<46.1.0)
|
|
32
32
|
Requires-Dist: django-ajax-tables (>=1.1.1,<1.2.0)
|
|
33
33
|
Requires-Dist: django-auth-ldap (>=5.2.0,<5.3.0) ; extra == "all" or extra == "ldap"
|
|
34
34
|
Requires-Dist: django-celery-beat (>=2.7.0,<2.8.0)
|
|
35
35
|
Requires-Dist: django-celery-results (>=2.6.0,<2.7.0)
|
|
36
36
|
Requires-Dist: django-constance (>=4.3.2,<4.4.0)
|
|
37
|
-
Requires-Dist: django-cors-headers (>=4.
|
|
37
|
+
Requires-Dist: django-cors-headers (>=4.9.0,<4.10.0)
|
|
38
38
|
Requires-Dist: django-db-file-storage (>=0.5.6.1,<0.6.0.0)
|
|
39
39
|
Requires-Dist: django-extensions (>=4.1,<4.2)
|
|
40
40
|
Requires-Dist: django-filter (>=25.1,<25.2)
|
|
@@ -44,15 +44,15 @@ Requires-Dist: django-prometheus (>=2.4.1,<2.5.0)
|
|
|
44
44
|
Requires-Dist: django-redis (>=6.0.0,<6.1.0)
|
|
45
45
|
Requires-Dist: django-silk (>=5.4.3,<5.5.0)
|
|
46
46
|
Requires-Dist: django-storages (>=1.14.6,<1.15.0) ; extra == "all" or extra == "remote-storage"
|
|
47
|
-
Requires-Dist: django-structlog[celery] (>=
|
|
47
|
+
Requires-Dist: django-structlog[celery] (>=10.0.0,<10.1.0)
|
|
48
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.1,<7.2)
|
|
51
|
-
Requires-Dist: django-tree-queries (>=0.
|
|
51
|
+
Requires-Dist: django-tree-queries (>=0.21.2,<0.22.0)
|
|
52
52
|
Requires-Dist: django-webserver (>=1.2.0,<1.3.0)
|
|
53
|
-
Requires-Dist: djangorestframework (>=3.
|
|
53
|
+
Requires-Dist: djangorestframework (>=3.16.1,<3.17.0)
|
|
54
54
|
Requires-Dist: drf-spectacular[sidecar] (>=0.28.0,<0.29.0)
|
|
55
|
-
Requires-Dist: emoji (>=2.
|
|
55
|
+
Requires-Dist: emoji (>=2.15.0,<2.16.0)
|
|
56
56
|
Requires-Dist: graphene-django (>=3.2.3,<3.3.0)
|
|
57
57
|
Requires-Dist: graphene-django-optimizer (>=0.10.0,<0.11.0)
|
|
58
58
|
Requires-Dist: jsonschema (>=4.7.0,<5.0.0)
|
|
@@ -61,14 +61,14 @@ Requires-Dist: mysqlclient (>=2.2.7,<2.3.0) ; extra == "all" or extra == "mysql"
|
|
|
61
61
|
Requires-Dist: napalm (>=4.1.0,<6.0.0) ; extra == "all" or extra == "napalm"
|
|
62
62
|
Requires-Dist: netaddr (>=1.3.0,<1.4.0)
|
|
63
63
|
Requires-Dist: netutils (>=1.14.0,<2.0.0)
|
|
64
|
-
Requires-Dist: nh3 (>=0.3.
|
|
64
|
+
Requires-Dist: nh3 (>=0.3.1,<0.4.0)
|
|
65
65
|
Requires-Dist: packaging (>=23.1)
|
|
66
|
-
Requires-Dist: prometheus-client (>=0.
|
|
67
|
-
Requires-Dist: psycopg2-binary (>=2.9.
|
|
66
|
+
Requires-Dist: prometheus-client (>=0.23.1,<0.24.0)
|
|
67
|
+
Requires-Dist: psycopg2-binary (>=2.9.11,<2.10.0)
|
|
68
68
|
Requires-Dist: python-slugify (>=8.0.4,<8.1.0)
|
|
69
69
|
Requires-Dist: pyuwsgi (>=2.0.30,<2.1.0)
|
|
70
70
|
Requires-Dist: social-auth-app-django (>=5.4.3,<5.5.0)
|
|
71
|
-
Requires-Dist: social-auth-core[saml] (>=4.
|
|
71
|
+
Requires-Dist: social-auth-core[saml] (>=4.8.1,<4.9.0) ; extra == "all" or extra == "sso"
|
|
72
72
|
Requires-Dist: svgwrite (>=1.4.3,<1.5.0)
|
|
73
73
|
Project-URL: Documentation, https://docs.nautobot.com
|
|
74
74
|
Project-URL: Homepage, https://nautobot.com
|