feat: assign VLANs to network connections

This commit is contained in:
2026-08-19 12:24:40 +02:00
parent 1c6708216c
commit bd748ef985
15 changed files with 488 additions and 10 deletions
@@ -62,6 +62,14 @@ class FakeDevice:
class NetBoxExportRackWidthTest(SimpleTestCase):
def test_connection_vlan_assignments_remain_exportable(self):
from netbox_export.services.graph import is_exportable_model
from netbox_utilities.models import CableVLANAssignment, WirelessLinkVLANAssignment
self.assertTrue(is_exportable_model(CableVLANAssignment))
self.assertTrue(is_exportable_model(WirelessLinkVLANAssignment))
def test_export_embeds_partial_and_full_rack_widths_on_devices(self):
partial = FakeDevice(1, width=2, horizontal_position=2)
full = FakeDevice(2)