Add a Certificate model alongside software licenses with type, common name, SANs, issuer, serial number, fingerprint, validity period, auto renewal, certificate file and storage locations. Certificates can be assigned to software products, installations, devices, virtual machines and tenants. Extract the expiration reminder settings and logic into a shared ExpirationNotificationModel base and a generic notification job, so certificates get the same default/custom reminders, NetBox notifications and optional SMTP emails as licenses (separate event type, log model and email permission). Includes UI views, filters, table, bulk import/edit, REST API endpoint, migration 0015, German translations, tests and README/CHANGELOG updates. Co-Authored-By: Claude Opus 5.5 <[email protected]>
18 lines
1.1 KiB
Python
18 lines
1.1 KiB
Python
from django.urls import path, include
|
|
|
|
from netbox_slm import views # noqa F401
|
|
from utilities.urls import get_model_urls
|
|
|
|
urlpatterns = [
|
|
path("software-products/", include(get_model_urls("netbox_slm", "softwareproduct", detail=False))),
|
|
path("software-products/<int:pk>/", include(get_model_urls("netbox_slm", "softwareproduct"))),
|
|
path("versions/", include(get_model_urls("netbox_slm", "softwareproductversion", detail=False))),
|
|
path("versions/<int:pk>/", include(get_model_urls("netbox_slm", "softwareproductversion"))),
|
|
path("installations/", include(get_model_urls("netbox_slm", "softwareproductinstallation", detail=False))),
|
|
path("installations/<int:pk>/", include(get_model_urls("netbox_slm", "softwareproductinstallation"))),
|
|
path("licenses/", include(get_model_urls("netbox_slm", "softwarelicense", detail=False))),
|
|
path("licenses/<int:pk>/", include(get_model_urls("netbox_slm", "softwarelicense"))),
|
|
path("certificates/", include(get_model_urls("netbox_slm", "certificate", detail=False))),
|
|
path("certificates/<int:pk>/", include(get_model_urls("netbox_slm", "certificate"))),
|
|
]
|