feat: export device types as YAML in devicetype-library format
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
713556a33e
commit
280c0e0315
8 files changed
+242
-3
No files matched your search
@@ -3,7 +3,7 @@ from django.urls import include, path
|
||||
from netbox.plugins import get_plugin_config
|
||||
from utilities.urls import get_model_urls
|
||||
|
||||
from . import disk_views, hardware_views, switch_port_views, views # noqa: F401 - hardware_views registers its model views
|
||||
from . import devicetype_views, disk_views, hardware_views, switch_port_views, views # noqa: F401 - hardware_views registers its model views
|
||||
|
||||
app_name = "netbox_utilities"
|
||||
|
||||
@@ -17,6 +17,16 @@ urlpatterns = [
|
||||
views.RackElevationOfflineSVGView.as_view(),
|
||||
name="rack_elevation_offline_svg",
|
||||
),
|
||||
path(
|
||||
"device-types/export-yaml/",
|
||||
devicetype_views.DeviceTypeBulkYAMLExportView.as_view(),
|
||||
name="devicetype_bulk_yaml",
|
||||
),
|
||||
path(
|
||||
"device-types/<int:pk>/export.yaml",
|
||||
devicetype_views.DeviceTypeYAMLExportView.as_view(),
|
||||
name="devicetype_yaml",
|
||||
),
|
||||
path("settings/", views.UtilitiesSettingsView.as_view(), name="settings"),
|
||||
path("tenant/select/", views.SelectTenantView.as_view(), name="select_tenant"),
|
||||
# Datenträger
|
||||
|
||||
Reference in new issue
Block a user