nautobot 3.0.0a3__py3-none-any.whl → 3.0.0rc1__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.
- nautobot/apps/choices.py +4 -0
- nautobot/apps/ui.py +4 -0
- nautobot/apps/utils.py +8 -0
- nautobot/circuits/tests/integration/test_circuits_bulk_operations.py +0 -3
- nautobot/circuits/views.py +6 -2
- nautobot/core/api/serializers.py +1 -1
- nautobot/core/api/urls.py +1 -0
- nautobot/core/api/views.py +4 -0
- nautobot/core/choices.py +1 -1
- nautobot/core/cli/bootstrap_v3_to_v5.py +36 -13
- nautobot/core/cli/migrate_deprecated_templates.py +36 -9
- nautobot/core/filters.py +4 -0
- nautobot/core/forms/__init__.py +2 -0
- nautobot/core/forms/widgets.py +21 -2
- nautobot/core/jobs/__init__.py +56 -0
- nautobot/core/management/commands/generate_test_data.py +3 -3
- nautobot/core/models/__init__.py +11 -0
- nautobot/core/models/utils.py +1 -1
- nautobot/core/settings.py +17 -7
- nautobot/core/settings.yaml +4 -26
- nautobot/core/templates/admin/base.html +1 -2
- nautobot/core/templates/admin/change_list.html +9 -12
- nautobot/core/templates/base_django.html +1 -2
- nautobot/core/templates/components/panel/header_extra_content_table.html +1 -1
- nautobot/core/templates/components/tab/content_wrapper.html +4 -4
- nautobot/core/templates/echarts/echarts.html +21 -8
- nautobot/core/templates/generic/object_bulk_create.html +2 -2
- nautobot/core/templates/generic/object_bulk_delete.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_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/generic/object_retrieve.html +2 -2
- nautobot/core/templates/graphene/graphiql.html +0 -1
- nautobot/core/templates/inc/footer.html +3 -1
- nautobot/core/templates/inc/header.html +10 -0
- nautobot/core/templates/inc/media.html +14 -0
- nautobot/core/templates/inc/nav_menu.html +1 -8
- nautobot/core/templates/inc/object_details_advanced_panel.html +2 -2
- nautobot/core/templates/nautobot_config.py.j2 +0 -6
- nautobot/core/templates/rest_framework/api.html +103 -2
- nautobot/core/templates/utilities/templatetags/filter_form_drawer.html +33 -0
- nautobot/core/templates/utilities/theme_preview.html +3 -0
- nautobot/core/templates/widgets/number_input_with_choices.html +44 -0
- nautobot/core/templatetags/helpers.py +24 -12
- nautobot/core/testing/integration.py +24 -13
- nautobot/core/testing/utils.py +18 -4
- nautobot/core/testing/views.py +104 -17
- nautobot/core/tests/integration/test_filters.py +48 -11
- nautobot/core/tests/integration/test_theme.py +22 -21
- nautobot/core/tests/nautobot_config.py +3 -0
- nautobot/core/tests/runner.py +1 -2
- nautobot/core/tests/test_breadcrumbs.py +21 -21
- nautobot/core/tests/test_jobs.py +73 -6
- nautobot/core/tests/test_renderers.py +59 -0
- nautobot/core/tests/test_settings_schema.py +1 -0
- nautobot/core/tests/test_templatetags_helpers.py +9 -0
- nautobot/core/tests/test_titles.py +0 -16
- nautobot/core/tests/test_ui.py +122 -3
- nautobot/core/tests/test_utils.py +41 -1
- nautobot/core/ui/breadcrumbs.py +68 -17
- nautobot/core/ui/bulk_buttons.py +1 -1
- nautobot/core/ui/choices.py +49 -65
- nautobot/core/ui/echarts.py +15 -20
- nautobot/core/ui/object_detail.py +54 -46
- nautobot/core/ui/titles.py +3 -6
- nautobot/core/urls.py +8 -8
- nautobot/core/utils/filtering.py +11 -1
- nautobot/core/utils/lookup.py +46 -0
- nautobot/core/views/mixins.py +31 -20
- nautobot/core/views/renderers.py +2 -3
- nautobot/data_validation/migrations/0002_data_migration_from_app.py +3 -2
- nautobot/dcim/api/serializers.py +3 -0
- nautobot/dcim/choices.py +49 -0
- nautobot/dcim/constants.py +7 -0
- nautobot/dcim/factory.py +1 -1
- nautobot/dcim/filters.py +13 -1
- nautobot/dcim/forms.py +89 -3
- nautobot/dcim/migrations/0075_interface_duplex_interface_speed_and_more.py +32 -0
- nautobot/dcim/migrations/{0075_add_deviceclusterassignment.py → 0076_add_deviceclusterassignment.py} +1 -1
- nautobot/dcim/migrations/{0076_device_cluster_to_clusters_data_migration.py → 0077_device_cluster_to_clusters_data_migration.py} +1 -1
- nautobot/dcim/migrations/{0077_remove_device_cluster.py → 0078_remove_device_cluster.py} +1 -1
- nautobot/dcim/migrations/{0078_remove_device_location_tenant_name_uniqueness.py → 0079_remove_device_location_tenant_name_uniqueness.py} +1 -1
- nautobot/dcim/migrations/{0079_device_name_data_migration.py → 0080_device_name_data_migration.py} +1 -1
- nautobot/dcim/migrations/0081_alter_device_device_redundancy_group_priority_and_more.py +25 -0
- nautobot/dcim/models/device_component_templates.py +33 -1
- nautobot/dcim/models/device_components.py +22 -1
- nautobot/dcim/models/devices.py +17 -4
- nautobot/dcim/tables/devices.py +15 -0
- nautobot/dcim/tables/devicetypes.py +8 -1
- nautobot/dcim/tables/racks.py +0 -2
- nautobot/dcim/tables/template_code.py +1 -1
- nautobot/dcim/templates/dcim/cable_trace.html +0 -2
- nautobot/dcim/templates/dcim/consoleport.html +1 -1
- nautobot/dcim/templates/dcim/consoleserverport.html +1 -1
- nautobot/dcim/templates/dcim/devicebay.html +1 -1
- nautobot/dcim/templates/dcim/frontport.html +1 -1
- nautobot/dcim/templates/dcim/inc/devicetype_component_table.html +1 -1
- nautobot/dcim/templates/dcim/inc/moduletype_component_table.html +1 -1
- nautobot/dcim/templates/dcim/inc/rack_elevation.html +1 -1
- nautobot/dcim/templates/dcim/interface.html +9 -1
- nautobot/dcim/templates/dcim/interface_edit.html +2 -0
- nautobot/dcim/templates/dcim/inventoryitem.html +1 -1
- nautobot/dcim/templates/dcim/module_consoleports.html +1 -1
- nautobot/dcim/templates/dcim/module_consoleserverports.html +1 -1
- nautobot/dcim/templates/dcim/module_frontports.html +1 -1
- nautobot/dcim/templates/dcim/module_interfaces.html +1 -1
- nautobot/dcim/templates/dcim/module_modulebays.html +1 -1
- nautobot/dcim/templates/dcim/module_poweroutlets.html +1 -1
- nautobot/dcim/templates/dcim/module_powerports.html +1 -1
- nautobot/dcim/templates/dcim/module_rearports.html +1 -1
- nautobot/dcim/templates/dcim/moduletype_list.html +2 -2
- nautobot/dcim/templates/dcim/poweroutlet.html +1 -1
- nautobot/dcim/templates/dcim/powerport.html +1 -1
- nautobot/dcim/templates/dcim/rack_elevation_list.html +1 -1
- nautobot/dcim/templates/dcim/rack_retrieve.html +0 -11
- nautobot/dcim/templates/dcim/rearport.html +1 -1
- nautobot/dcim/templates/dcim/trace/cable.html +1 -1
- nautobot/dcim/templates/dcim/virtualchassis_update.html +1 -1
- nautobot/dcim/tests/integration/test_controller.py +3 -6
- nautobot/dcim/tests/integration/test_controller_managed_device_group.py +1 -5
- nautobot/dcim/tests/integration/test_create_device.py +0 -2
- nautobot/dcim/tests/integration/test_device_bulk_operations.py +1 -3
- nautobot/dcim/tests/integration/test_fileinputpicker.py +6 -10
- nautobot/dcim/tests/integration/test_location_bulk_operations.py +0 -2
- nautobot/dcim/tests/integration/test_module_bay_position.py +3 -4
- nautobot/dcim/tests/test_api.py +186 -6
- nautobot/dcim/tests/test_filters.py +43 -1
- nautobot/dcim/tests/test_forms.py +110 -8
- nautobot/dcim/tests/test_graphql.py +44 -1
- nautobot/dcim/tests/test_models.py +265 -0
- nautobot/dcim/tests/test_tables.py +160 -0
- nautobot/dcim/tests/test_views.py +69 -7
- nautobot/dcim/views.py +232 -126
- nautobot/extras/api/views.py +51 -44
- nautobot/extras/datasources/git.py +3 -1
- nautobot/extras/filters.py +19 -2
- nautobot/extras/forms/forms.py +9 -2
- nautobot/extras/jobs.py +2 -0
- nautobot/extras/jobs_ui.py +4 -3
- nautobot/extras/management/__init__.py +2 -0
- nautobot/extras/management/commands/refresh_dynamic_group_member_caches.py +4 -1
- nautobot/extras/migrations/0131_configcontext_device_families.py +18 -0
- nautobot/extras/models/approvals.py +11 -1
- nautobot/extras/models/change_logging.py +4 -0
- nautobot/extras/models/jobs.py +1 -3
- nautobot/extras/models/models.py +10 -2
- nautobot/extras/plugins/marketplace_manifest.yml +49 -1
- nautobot/extras/plugins/views.py +0 -5
- nautobot/extras/querysets.py +8 -0
- nautobot/extras/tables.py +12 -0
- nautobot/extras/templates/django_ajax_tables/ajax_wrapper.html +2 -0
- nautobot/extras/templates/extras/configcontext_update.html +1 -0
- nautobot/extras/templates/extras/dynamicgroup_update.html +1 -1
- nautobot/extras/templates/extras/objectchange_retrieve.html +0 -2
- nautobot/extras/templates/extras/plugin_detail.html +3 -3
- nautobot/extras/templates/extras/secret_create.html +1 -1
- nautobot/extras/tests/integration/test_computedfields.py +8 -9
- nautobot/extras/tests/integration/test_customfields.py +1 -3
- nautobot/extras/tests/integration/test_dynamicgroups.py +7 -8
- nautobot/extras/tests/integration/test_relationships.py +0 -2
- nautobot/extras/tests/test_api.py +63 -0
- nautobot/extras/tests/test_changelog.py +24 -2
- nautobot/extras/tests/test_filters.py +36 -3
- nautobot/extras/tests/test_models.py +38 -2
- nautobot/extras/tests/test_utils.py +3 -4
- nautobot/extras/tests/test_views.py +22 -83
- nautobot/extras/urls.py +0 -14
- nautobot/extras/views.py +83 -52
- nautobot/ipam/filters.py +26 -0
- nautobot/ipam/tables.py +6 -0
- nautobot/ipam/templates/ipam/namespace_ip_addresses.html +1 -1
- nautobot/ipam/templates/ipam/namespace_prefixes.html +1 -1
- nautobot/ipam/templates/ipam/namespace_vrfs.html +1 -1
- nautobot/ipam/tests/test_filters.py +26 -1
- nautobot/ipam/tests/test_models.py +1 -1
- nautobot/ipam/views.py +9 -7
- nautobot/load_balancers/__init__.py +0 -0
- nautobot/load_balancers/api/__init__.py +1 -0
- nautobot/load_balancers/api/serializers.py +75 -0
- nautobot/load_balancers/api/urls.py +23 -0
- nautobot/load_balancers/api/views.py +61 -0
- nautobot/load_balancers/apps.py +17 -0
- nautobot/load_balancers/choices.py +167 -0
- nautobot/load_balancers/filters.py +225 -0
- nautobot/load_balancers/forms.py +532 -0
- nautobot/load_balancers/management/commands/__init__.py +0 -0
- nautobot/load_balancers/management/commands/generate_load_balancer_models_test_data.py +38 -0
- nautobot/load_balancers/migrations/0001_initial.py +465 -0
- nautobot/load_balancers/migrations/0002_create_default_statuses_pool_members.py +31 -0
- nautobot/load_balancers/migrations/__init__.py +0 -0
- nautobot/load_balancers/models.py +423 -0
- nautobot/load_balancers/navigation.py +80 -0
- nautobot/load_balancers/tables.py +255 -0
- nautobot/load_balancers/tests/__init__.py +474 -0
- nautobot/load_balancers/tests/test_api.py +353 -0
- nautobot/load_balancers/tests/test_filters.py +134 -0
- nautobot/load_balancers/tests/test_forms.py +266 -0
- nautobot/load_balancers/tests/test_models.py +195 -0
- nautobot/load_balancers/tests/test_views.py +229 -0
- nautobot/load_balancers/urls.py +17 -0
- nautobot/load_balancers/views.py +248 -0
- nautobot/project-static/dist/css/github-dark.min.css +10 -0
- nautobot/project-static/dist/css/github.min.css +10 -0
- nautobot/project-static/dist/css/nautobot.css +1 -11
- nautobot/project-static/dist/css/nautobot.css.map +1 -1
- nautobot/project-static/dist/js/libraries.js +1 -1
- nautobot/project-static/dist/js/libraries.js.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/forms.js +13 -0
- nautobot/project-static/nautobot-icons/bus-globe.svg +3 -0
- nautobot/project-static/nautobot-icons/bus-shield-check.svg +3 -0
- nautobot/project-static/nautobot-icons/bus-shield.svg +3 -0
- nautobot/ui/package-lock.json +87 -4
- nautobot/ui/package.json +2 -1
- nautobot/ui/src/js/nautobot.js +0 -1
- nautobot/ui/src/js/select2.js +53 -2
- nautobot/ui/src/scss/nautobot.scss +51 -2
- nautobot/ui/webpack.config.js +13 -0
- nautobot/users/templates/users/preferences.html +11 -2
- nautobot/virtualization/filters.py +6 -1
- nautobot/virtualization/tests/test_filters.py +10 -1
- nautobot/virtualization/tests/test_models.py +1 -0
- nautobot/virtualization/views.py +4 -1
- nautobot/vpn/factory.py +25 -15
- nautobot/vpn/filters.py +1 -0
- nautobot/vpn/forms.py +1 -0
- nautobot/vpn/migrations/0001_initial.py +1 -1
- nautobot/vpn/models.py +16 -8
- nautobot/vpn/tables.py +5 -2
- nautobot/vpn/tests/test_api.py +0 -5
- nautobot/vpn/tests/test_forms.py +1 -2
- nautobot/vpn/tests/test_models.py +57 -7
- nautobot/vpn/tests/test_views.py +22 -3
- nautobot/vpn/views.py +78 -20
- {nautobot-3.0.0a3.dist-info → nautobot-3.0.0rc1.dist-info}/METADATA +4 -4
- {nautobot-3.0.0a3.dist-info → nautobot-3.0.0rc1.dist-info}/RECORD +243 -352
- nautobot/circuits/templates/circuits/circuit.html +0 -2
- nautobot/circuits/templates/circuits/circuit_edit.html +0 -2
- nautobot/circuits/templates/circuits/circuit_retrieve.html +0 -2
- nautobot/circuits/templates/circuits/circuit_update.html +0 -1
- nautobot/circuits/templates/circuits/circuittermination.html +0 -2
- nautobot/circuits/templates/circuits/circuittermination_edit.html +0 -2
- nautobot/circuits/templates/circuits/circuittermination_retrieve.html +0 -2
- nautobot/circuits/templates/circuits/circuittermination_update.html +0 -1
- nautobot/circuits/templates/circuits/circuittype.html +0 -2
- nautobot/circuits/templates/circuits/circuittype_retrieve.html +0 -2
- nautobot/circuits/templates/circuits/inc/circuit_termination.html +0 -85
- nautobot/circuits/templates/circuits/provider.html +0 -2
- nautobot/circuits/templates/circuits/provider_edit.html +0 -2
- nautobot/circuits/templates/circuits/provider_retrieve.html +0 -1
- nautobot/circuits/templates/circuits/provider_update.html +0 -1
- nautobot/circuits/templates/circuits/providernetwork.html +0 -2
- nautobot/circuits/templates/circuits/providernetwork_retrieve.html +0 -2
- nautobot/cloud/templates/cloud/cloudaccount_retrieve.html +0 -2
- nautobot/cloud/templates/cloud/cloudnetwork_retrieve.html +0 -2
- nautobot/cloud/templates/cloud/cloudresourcetype_retrieve.html +0 -2
- nautobot/cloud/templates/cloud/cloudservice_retrieve.html +0 -2
- nautobot/core/templates/buttons/import.html +0 -9
- nautobot/data_validation/templates/data_validation/datacompliance_retrieve.html +0 -1
- nautobot/dcim/templates/dcim/cable.html +0 -2
- nautobot/dcim/templates/dcim/cable_edit.html +0 -2
- nautobot/dcim/templates/dcim/controller/base.html +0 -2
- nautobot/dcim/templates/dcim/controller_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/controller_wirelessnetworks.html +0 -2
- nautobot/dcim/templates/dcim/controllermanageddevicegroup_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/device/base.html +0 -2
- nautobot/dcim/templates/dcim/device/consoleports.html +0 -2
- nautobot/dcim/templates/dcim/device/consoleserverports.html +0 -2
- nautobot/dcim/templates/dcim/device/devicebays.html +0 -2
- nautobot/dcim/templates/dcim/device/frontports.html +0 -2
- nautobot/dcim/templates/dcim/device/interfaces.html +0 -2
- nautobot/dcim/templates/dcim/device/inventory.html +0 -2
- nautobot/dcim/templates/dcim/device/modulebays.html +0 -2
- nautobot/dcim/templates/dcim/device/poweroutlets.html +0 -2
- nautobot/dcim/templates/dcim/device/powerports.html +0 -2
- nautobot/dcim/templates/dcim/device/rearports.html +0 -2
- nautobot/dcim/templates/dcim/device/wireless.html +0 -2
- nautobot/dcim/templates/dcim/device_component.html +0 -2
- nautobot/dcim/templates/dcim/device_edit.html +0 -2
- nautobot/dcim/templates/dcim/devicefamily_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/deviceredundancygroup_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/devicetype.html +0 -2
- nautobot/dcim/templates/dcim/devicetype_edit.html +0 -2
- nautobot/dcim/templates/dcim/devicetype_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/inc/device_napalm_tabs.html +0 -1
- nautobot/dcim/templates/dcim/interfaceredundancygroup_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/location.html +0 -2
- nautobot/dcim/templates/dcim/location_edit.html +0 -2
- nautobot/dcim/templates/dcim/location_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/locationtype.html +0 -2
- nautobot/dcim/templates/dcim/locationtype_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/manufacturer.html +0 -2
- nautobot/dcim/templates/dcim/modulebay_retrieve.html +0 -1
- nautobot/dcim/templates/dcim/platform.html +0 -2
- nautobot/dcim/templates/dcim/powerfeed.html +0 -2
- nautobot/dcim/templates/dcim/powerfeed_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/powerpanel.html +0 -2
- nautobot/dcim/templates/dcim/powerpanel_edit.html +0 -2
- nautobot/dcim/templates/dcim/powerpanel_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/rack.html +0 -2
- nautobot/dcim/templates/dcim/rack_edit.html +0 -2
- nautobot/dcim/templates/dcim/rackgroup.html +0 -2
- nautobot/dcim/templates/dcim/rackreservation.html +0 -2
- nautobot/dcim/templates/dcim/softwareimagefile_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/softwareversion_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/virtualchassis.html +0 -2
- nautobot/dcim/templates/dcim/virtualchassis_add.html +0 -2
- nautobot/dcim/templates/dcim/virtualchassis_edit.html +0 -2
- nautobot/dcim/templates/dcim/virtualchassis_retrieve.html +0 -2
- nautobot/dcim/templates/dcim/virtualdevicecontext_retrieve.html +0 -2
- nautobot/dcim/ui.py +0 -29
- nautobot/extras/templates/extras/computedfield.html +0 -2
- nautobot/extras/templates/extras/computedfield_retrieve.html +0 -2
- nautobot/extras/templates/extras/configcontext.html +0 -2
- nautobot/extras/templates/extras/configcontext_edit.html +0 -2
- nautobot/extras/templates/extras/configcontext_retrieve.html +0 -2
- nautobot/extras/templates/extras/configcontextschema.html +0 -2
- nautobot/extras/templates/extras/configcontextschema_edit.html +0 -2
- nautobot/extras/templates/extras/contact_retrieve.html +0 -2
- nautobot/extras/templates/extras/customfield.html +0 -2
- nautobot/extras/templates/extras/customfield_edit.html +0 -2
- nautobot/extras/templates/extras/customfield_retrieve.html +0 -2
- nautobot/extras/templates/extras/customlink.html +0 -2
- nautobot/extras/templates/extras/dynamicgroup.html +0 -2
- nautobot/extras/templates/extras/dynamicgroup_edit.html +0 -2
- nautobot/extras/templates/extras/exporttemplate.html +0 -2
- nautobot/extras/templates/extras/gitrepository.html +0 -2
- nautobot/extras/templates/extras/gitrepository_object_edit.html +0 -2
- nautobot/extras/templates/extras/graphqlquery.html +0 -2
- nautobot/extras/templates/extras/graphqlquery_list.html +0 -1
- nautobot/extras/templates/extras/graphqlquery_retrieve.html +0 -2
- nautobot/extras/templates/extras/job_detail.html +0 -2
- nautobot/extras/templates/extras/jobbutton_retrieve.html +0 -2
- nautobot/extras/templates/extras/jobhook.html +0 -2
- nautobot/extras/templates/extras/jobqueue_retrieve.html +0 -2
- nautobot/extras/templates/extras/jobresult.html +0 -2
- nautobot/extras/templates/extras/metadatatype_retrieve.html +0 -2
- nautobot/extras/templates/extras/note.html +0 -2
- nautobot/extras/templates/extras/note_retrieve.html +0 -1
- nautobot/extras/templates/extras/object_changelog.html +0 -2
- nautobot/extras/templates/extras/object_notes.html +0 -2
- nautobot/extras/templates/extras/objectchange.html +0 -2
- nautobot/extras/templates/extras/objectchange_list.html +0 -3
- nautobot/extras/templates/extras/relationship.html +0 -1
- nautobot/extras/templates/extras/secret.html +0 -1
- nautobot/extras/templates/extras/secret_edit.html +0 -1
- nautobot/extras/templates/extras/secretsgroup.html +0 -2
- nautobot/extras/templates/extras/secretsgroup_edit.html +0 -2
- nautobot/extras/templates/extras/secretsgroup_retrieve.html +0 -2
- nautobot/extras/templates/extras/status.html +0 -2
- nautobot/extras/templates/extras/tag.html +0 -2
- nautobot/extras/templates/extras/tag_edit.html +0 -2
- nautobot/extras/templates/extras/tag_retrieve.html +0 -2
- nautobot/extras/templates/extras/team_retrieve.html +0 -2
- nautobot/ipam/templates/ipam/namespace_retrieve.html +0 -1
- nautobot/ipam/templates/ipam/prefix.html +0 -2
- nautobot/ipam/templates/ipam/prefix_edit.html +0 -1
- nautobot/ipam/templates/ipam/prefix_retrieve.html +0 -2
- nautobot/ipam/templates/ipam/rir.html +0 -2
- nautobot/ipam/templates/ipam/routetarget.html +0 -1
- nautobot/ipam/templates/ipam/service.html +0 -2
- nautobot/ipam/templates/ipam/service_edit.html +0 -2
- nautobot/ipam/templates/ipam/service_retrieve.html +0 -2
- nautobot/ipam/templates/ipam/vlan.html +0 -2
- nautobot/ipam/templates/ipam/vlan_edit.html +0 -2
- nautobot/ipam/templates/ipam/vlan_retrieve.html +0 -2
- nautobot/ipam/templates/ipam/vlangroup.html +0 -2
- nautobot/ipam/templates/ipam/vrf.html +0 -1
- nautobot/tenancy/templates/tenancy/tenant.html +0 -2
- nautobot/tenancy/templates/tenancy/tenant_edit.html +0 -2
- nautobot/tenancy/templates/tenancy/tenantgroup.html +0 -2
- nautobot/tenancy/templates/tenancy/tenantgroup_retrieve.html +0 -1
- nautobot/virtualization/templates/virtualization/clustergroup.html +0 -2
- nautobot/virtualization/templates/virtualization/clustertype.html +0 -2
- nautobot/virtualization/templates/virtualization/virtualmachine.html +0 -2
- nautobot/virtualization/templates/virtualization/virtualmachine_edit.html +0 -2
- nautobot/virtualization/templates/virtualization/virtualmachine_retrieve.html +0 -2
- nautobot/vpn/templates/vpn/vpnprofile.html +0 -2
- nautobot/wireless/templates/wireless/radioprofile_retrieve.html +0 -2
- nautobot/wireless/templates/wireless/supporteddatarate_retrieve.html +0 -2
- nautobot/wireless/templates/wireless/wirelessnetwork_retrieve.html +0 -2
- {nautobot-3.0.0a3.dist-info → nautobot-3.0.0rc1.dist-info}/LICENSE.txt +0 -0
- {nautobot-3.0.0a3.dist-info → nautobot-3.0.0rc1.dist-info}/NOTICE +0 -0
- {nautobot-3.0.0a3.dist-info → nautobot-3.0.0rc1.dist-info}/WHEEL +0 -0
- {nautobot-3.0.0a3.dist-info → nautobot-3.0.0rc1.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"""Tables for nautobot_load_balancer_models."""
|
|
2
|
+
|
|
3
|
+
import django_tables2 as tables
|
|
4
|
+
|
|
5
|
+
from nautobot.core.tables import (
|
|
6
|
+
BaseTable,
|
|
7
|
+
BooleanColumn,
|
|
8
|
+
ButtonsColumn,
|
|
9
|
+
LinkedCountColumn,
|
|
10
|
+
TagColumn,
|
|
11
|
+
ToggleColumn,
|
|
12
|
+
)
|
|
13
|
+
from nautobot.extras.tables import StatusTableMixin
|
|
14
|
+
from nautobot.load_balancers import models
|
|
15
|
+
from nautobot.tenancy.tables import TenantColumn
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class VirtualServerTable(BaseTable):
|
|
19
|
+
# pylint: disable=too-few-public-methods
|
|
20
|
+
"""Table for VirtualServer list view."""
|
|
21
|
+
|
|
22
|
+
pk = ToggleColumn()
|
|
23
|
+
name = tables.Column(linkify=True)
|
|
24
|
+
vip = tables.Column(linkify=True)
|
|
25
|
+
source_nat_pool = tables.Column(linkify=True)
|
|
26
|
+
load_balancer_pool = tables.Column(linkify=True)
|
|
27
|
+
enabled = BooleanColumn()
|
|
28
|
+
ssl_offload = BooleanColumn()
|
|
29
|
+
device = tables.Column(linkify=True)
|
|
30
|
+
device_redundancy_group = tables.Column(linkify=True)
|
|
31
|
+
cloud_service = tables.Column(linkify=True)
|
|
32
|
+
virtual_chassis = tables.Column(linkify=True)
|
|
33
|
+
tenant = TenantColumn()
|
|
34
|
+
health_check_monitor = tables.Column(linkify=True)
|
|
35
|
+
certificate_profiles_count = LinkedCountColumn(
|
|
36
|
+
viewname="load_balancers:certificateprofile_list",
|
|
37
|
+
verbose_name="Certificate Profiles",
|
|
38
|
+
url_params={"certificate_profiles": "name"},
|
|
39
|
+
)
|
|
40
|
+
actions = ButtonsColumn(models.VirtualServer)
|
|
41
|
+
tags = TagColumn(url_name="load_balancers:virtualserver_list")
|
|
42
|
+
|
|
43
|
+
class Meta(BaseTable.Meta):
|
|
44
|
+
"""Meta attributes."""
|
|
45
|
+
|
|
46
|
+
model = models.VirtualServer
|
|
47
|
+
fields = (
|
|
48
|
+
"pk",
|
|
49
|
+
"name",
|
|
50
|
+
"vip",
|
|
51
|
+
"enabled",
|
|
52
|
+
"load_balancer_type",
|
|
53
|
+
"port",
|
|
54
|
+
"protocol",
|
|
55
|
+
"load_balancer_pool",
|
|
56
|
+
"tenant",
|
|
57
|
+
"source_nat_pool",
|
|
58
|
+
"source_nat_type",
|
|
59
|
+
"device",
|
|
60
|
+
"device_redundancy_group",
|
|
61
|
+
"cloud_service",
|
|
62
|
+
"virtual_chassis",
|
|
63
|
+
"health_check_monitor",
|
|
64
|
+
"ssl_offload",
|
|
65
|
+
"certificate_profiles_count",
|
|
66
|
+
"tags",
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
default_columns = (
|
|
70
|
+
"pk",
|
|
71
|
+
"name",
|
|
72
|
+
"vip",
|
|
73
|
+
"enabled",
|
|
74
|
+
"load_balancer_type",
|
|
75
|
+
"load_balancer_pool",
|
|
76
|
+
"port",
|
|
77
|
+
"protocol",
|
|
78
|
+
"actions",
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class LoadBalancerPoolTable(BaseTable):
|
|
83
|
+
# pylint: disable=too-few-public-methods
|
|
84
|
+
"""Table for LoadBalancerPool list view."""
|
|
85
|
+
|
|
86
|
+
pk = ToggleColumn()
|
|
87
|
+
health_check_monitor = tables.Column(linkify=True)
|
|
88
|
+
name = tables.Column(linkify=True)
|
|
89
|
+
virtual_server = tables.Column(linkify=True)
|
|
90
|
+
load_balancer_pool_member_count = LinkedCountColumn(
|
|
91
|
+
viewname="load_balancers:loadbalancerpoolmember_list",
|
|
92
|
+
url_params={"load_balancer_pool": "name"},
|
|
93
|
+
verbose_name="Load Balancer Pool Members",
|
|
94
|
+
)
|
|
95
|
+
tenant = TenantColumn()
|
|
96
|
+
actions = ButtonsColumn(models.LoadBalancerPool)
|
|
97
|
+
tags = TagColumn(url_name="load_balancers:loadbalancerpool_list")
|
|
98
|
+
|
|
99
|
+
class Meta(BaseTable.Meta):
|
|
100
|
+
"""Meta attributes."""
|
|
101
|
+
|
|
102
|
+
model = models.LoadBalancerPool
|
|
103
|
+
fields = (
|
|
104
|
+
"pk",
|
|
105
|
+
"name",
|
|
106
|
+
"virtual_server",
|
|
107
|
+
"load_balancing_algorithm",
|
|
108
|
+
"load_balancer_pool_member_count",
|
|
109
|
+
"health_check_monitor",
|
|
110
|
+
"tenant",
|
|
111
|
+
)
|
|
112
|
+
default_columns = (
|
|
113
|
+
"pk",
|
|
114
|
+
"name",
|
|
115
|
+
"virtual_server",
|
|
116
|
+
"load_balancing_algorithm",
|
|
117
|
+
"load_balancer_pool_member_count",
|
|
118
|
+
"actions",
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class LoadBalancerPoolMemberTable(StatusTableMixin, BaseTable):
|
|
123
|
+
# pylint: disable=too-few-public-methods
|
|
124
|
+
"""Table for LoadBalancerPoolMember list view."""
|
|
125
|
+
|
|
126
|
+
pk = ToggleColumn()
|
|
127
|
+
display = tables.Column(linkify=True, verbose_name="Load Balancer Pool Member")
|
|
128
|
+
ip_address = tables.Column(linkify=True, verbose_name="IP Address")
|
|
129
|
+
load_balancer_pool = tables.Column(linkify=True, verbose_name="Load Balancer Pool")
|
|
130
|
+
health_check_monitor = tables.Column(linkify=True)
|
|
131
|
+
ssl_offload = BooleanColumn()
|
|
132
|
+
certificate_profiles_count = LinkedCountColumn(
|
|
133
|
+
viewname="load_balancers:certificateprofile_list",
|
|
134
|
+
verbose_name="Certificate Profiles",
|
|
135
|
+
url_params={"certificate_profiles": "name"},
|
|
136
|
+
)
|
|
137
|
+
tenant = TenantColumn()
|
|
138
|
+
actions = ButtonsColumn(models.LoadBalancerPoolMember)
|
|
139
|
+
tags = TagColumn(url_name="load_balancers:loadbalancerpoolmember_list")
|
|
140
|
+
|
|
141
|
+
class Meta(BaseTable.Meta):
|
|
142
|
+
"""Meta attributes."""
|
|
143
|
+
|
|
144
|
+
model = models.LoadBalancerPoolMember
|
|
145
|
+
fields = (
|
|
146
|
+
"pk",
|
|
147
|
+
"display",
|
|
148
|
+
"status",
|
|
149
|
+
"ip_address",
|
|
150
|
+
"load_balancer_pool",
|
|
151
|
+
"port",
|
|
152
|
+
"ssl_offload",
|
|
153
|
+
"health_check_monitor",
|
|
154
|
+
"certificate_profiles_count",
|
|
155
|
+
"tenant",
|
|
156
|
+
)
|
|
157
|
+
default_columns = (
|
|
158
|
+
"pk",
|
|
159
|
+
"display",
|
|
160
|
+
"status",
|
|
161
|
+
"port",
|
|
162
|
+
"load_balancer_pool",
|
|
163
|
+
"ssl_offload",
|
|
164
|
+
"actions",
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class HealthCheckMonitorTable(BaseTable):
|
|
169
|
+
# pylint: disable=too-few-public-methods
|
|
170
|
+
"""Table for HealthCheckMonitor list view."""
|
|
171
|
+
|
|
172
|
+
pk = ToggleColumn()
|
|
173
|
+
name = tables.Column(linkify=True)
|
|
174
|
+
tenant = TenantColumn()
|
|
175
|
+
virtual_server_count = LinkedCountColumn(
|
|
176
|
+
viewname="load_balancers:virtualserver_list",
|
|
177
|
+
url_params={"health_check_monitor": "name"},
|
|
178
|
+
verbose_name="Virtual Servers",
|
|
179
|
+
)
|
|
180
|
+
load_balancer_pool_count = LinkedCountColumn(
|
|
181
|
+
viewname="load_balancers:loadbalancerpool_list",
|
|
182
|
+
url_params={"health_check_monitor": "name"},
|
|
183
|
+
verbose_name="Pools",
|
|
184
|
+
)
|
|
185
|
+
load_balancer_pool_member_count = LinkedCountColumn(
|
|
186
|
+
viewname="load_balancers:loadbalancerpoolmember_list",
|
|
187
|
+
url_params={"health_check_monitor": "name"},
|
|
188
|
+
verbose_name="Load Balancer Pool Members",
|
|
189
|
+
)
|
|
190
|
+
actions = ButtonsColumn(models.HealthCheckMonitor)
|
|
191
|
+
tags = TagColumn(url_name="load_balancers:healthcheckmonitor_list")
|
|
192
|
+
|
|
193
|
+
class Meta(BaseTable.Meta):
|
|
194
|
+
"""Meta attributes."""
|
|
195
|
+
|
|
196
|
+
model = models.HealthCheckMonitor
|
|
197
|
+
fields = (
|
|
198
|
+
"pk",
|
|
199
|
+
"name",
|
|
200
|
+
"health_check_type",
|
|
201
|
+
"port",
|
|
202
|
+
"interval",
|
|
203
|
+
"retry",
|
|
204
|
+
"timeout",
|
|
205
|
+
"virtual_server_count",
|
|
206
|
+
"load_balancer_pool_count",
|
|
207
|
+
"load_balancer_pool_member_count",
|
|
208
|
+
"tenant",
|
|
209
|
+
)
|
|
210
|
+
default_columns = (
|
|
211
|
+
"pk",
|
|
212
|
+
"name",
|
|
213
|
+
"health_check_type",
|
|
214
|
+
"port",
|
|
215
|
+
"interval",
|
|
216
|
+
"retry",
|
|
217
|
+
"timeout",
|
|
218
|
+
"actions",
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
class CertificateProfileTable(BaseTable):
|
|
223
|
+
# pylint: disable=too-few-public-methods
|
|
224
|
+
"""Table for CertificateProfile list view."""
|
|
225
|
+
|
|
226
|
+
pk = ToggleColumn()
|
|
227
|
+
name = tables.Column(linkify=True)
|
|
228
|
+
tenant = TenantColumn()
|
|
229
|
+
actions = ButtonsColumn(models.CertificateProfile)
|
|
230
|
+
tags = TagColumn(url_name="load_balancers:certificateprofile_list")
|
|
231
|
+
|
|
232
|
+
class Meta(BaseTable.Meta):
|
|
233
|
+
"""Meta attributes."""
|
|
234
|
+
|
|
235
|
+
model = models.CertificateProfile
|
|
236
|
+
fields = (
|
|
237
|
+
"pk",
|
|
238
|
+
"name",
|
|
239
|
+
"certificate_type",
|
|
240
|
+
"certificate_file_path",
|
|
241
|
+
"chain_file_path",
|
|
242
|
+
"key_file_path",
|
|
243
|
+
"expiration_date",
|
|
244
|
+
"cipher",
|
|
245
|
+
"tenant",
|
|
246
|
+
)
|
|
247
|
+
default_columns = (
|
|
248
|
+
"pk",
|
|
249
|
+
"name",
|
|
250
|
+
"certificate_type",
|
|
251
|
+
"expiration_date",
|
|
252
|
+
"cipher",
|
|
253
|
+
"tenant",
|
|
254
|
+
"actions",
|
|
255
|
+
)
|