feat: REST API for cable VLAN assignments

- New endpoint /api/plugins/utilities/cable-vlans/ to read and write the
  connection VLANs of a cable (cable ID and VLAN IDs, filter with ?cable_id=)
- Used by NetBox Synchronizer to keep the cable VLANs of switch ports in step
  with the port
- Version 0.31.0

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-26 10:58:20 +01:00
1 parent 280c0e0315
commit 1d6b16c0e4
6 files changed
+36 -5

No files matched your search

+4
View File
@@ -667,6 +667,10 @@ interfaces, since both ends can use different interface modes.
- An optional **VLAN group** field acts as a dynamic filter for the VLAN selection; it is not stored.
- Empty selections create no record; deleting a connection removes its VLAN assignment.
- With NetBox-Export installed, the assignments are exported and imported together with connections and VLANs.
- Cable VLANs can be read and written through `/api/plugins/utilities/cable-vlans/`
(`cable` = cable ID, `vlans` = VLAN IDs, filter with `?cable_id=`; permissions
`netbox_utilities.*_cablevlanassignment`). NetBox Synchronizer uses it to keep
the cable VLANs of switch ports in step with the port.
### Multiple devices in one rack unit