Files
Netbox-Utilities/netbox_utilities/urls.py
T
MrBlakeandClaude Opus 5.5 63b3b31763 feat: client software overview based on netbox-slm
New page "Client Software Übersicht" in a "Software" group of the netbox-inventory
menu (fallback: own Hardware menu). It shows, per tenant or tenant group
including subgroups, the software products recorded with netbox-slm, their
versions and the clients they are installed on: key figures, charts of the most
widespread products and their version distribution, a sortable and searchable
product list, a drill-down per product/version with the list of clients, and a
CSV export. Without an own selection the global tenant filter applies; the
device role filter is pre-set to the configured client roles.

Devices with a client role (software_device_roles, default "Clients") get a
"Software" tab listing their installations with add, edit and delete actions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 14:18:59 +01:00

53 lines
3.0 KiB
Python

from django.apps import apps
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
app_name = "netbox_utilities"
urlpatterns = [
path("images/bulk-upload/", views.BulkImageUploadView.as_view(), name="bulk_image_upload"),
path("modules/bulk-install/", views.BulkModuleInstallView.as_view(), name="bulk_module_install"),
path("navigation/", views.NavigationPreferencesView.as_view(), name="navigation_preferences"),
path("navigation/layout/", views.NavigationLayoutView.as_view(), name="navigation_layout"),
path(
"racks/<int:pk>/elevation-svg/",
views.RackElevationOfflineSVGView.as_view(),
name="rack_elevation_offline_svg",
),
path("settings/", views.UtilitiesSettingsView.as_view(), name="settings"),
path("tenant/select/", views.SelectTenantView.as_view(), name="select_tenant"),
# Datenträger
path("disks/import-msa/", disk_views.MSADiskImportView.as_view(), name="disk_msa_import"),
path("disks/by-device/", disk_views.DiskByDeviceView.as_view(), name="disk_by_device"),
path("disks/", include(get_model_urls("netbox_utilities", "disk", detail=False))),
path("disks/<int:pk>/", include(get_model_urls("netbox_utilities", "disk"))),
path("disks/<int:pk>/replace/", disk_views.DiskReplaceView.as_view(), name="disk_replace"),
path("raid-groups/", include(get_model_urls("netbox_utilities", "raidgroup", detail=False))),
path("raid-groups/<int:pk>/", include(get_model_urls("netbox_utilities", "raidgroup"))),
path("disk-templates/", include(get_model_urls("netbox_utilities", "diskbaytemplate", detail=False))),
path("disk-templates/<int:pk>/", include(get_model_urls("netbox_utilities", "diskbaytemplate"))),
# CPU & RAM
path("cpu-models/", include(get_model_urls("netbox_utilities", "cpumodel", detail=False))),
path("cpu-models/<int:pk>/", include(get_model_urls("netbox_utilities", "cpumodel"))),
path("hardware/", include(get_model_urls("netbox_utilities", "devicehardware", detail=False))),
path("hardware/<int:pk>/", include(get_model_urls("netbox_utilities", "devicehardware"))),
path(
"devices/<int:pk>/switch-ports.pdf",
switch_port_views.SwitchPortsPDFView.as_view(),
name="device_switch_ports_pdf",
),
path("devices/<int:pk>/disks/setup/", disk_views.DeviceDiskSetupView.as_view(), name="device_disk_setup"),
path("devices/<int:pk>/disks/fill/", disk_views.DeviceDiskBulkFillView.as_view(), name="device_disk_fill"),
path("devices/<int:pk>/disks/move/", disk_views.DeviceDiskMoveView.as_view(), name="device_disk_move"),
]
if get_plugin_config("netbox_utilities", "software_enabled") and apps.is_installed("netbox_slm"):
from . import software_views
urlpatterns.append(
path("software/", software_views.SoftwareOverviewView.as_view(), name="software_overview"),
)