Skip to content

Cable schedule and switch port map exporters ​

Draftsman exports production-ready installation manifests directly from the diagram. The exporters are pure functions (buildCableScheduleCsv, buildSwitchPortMap, buildDrawio) covered by content tests.

1. Cable schedule (CSV) ​

One row per cable, in diagram order, for the technicians wiring the racks. UTF-8, RFC 4180 quoting; a cell that starts with =, +, -, @, tab or CR gets a leading apostrophe so a spreadsheet does not run it as a formula.

ColumnExample
Cable_TagCBL-001 (or the cable tag label)
Source_DeviceNode-1 (AX-760)
Source_PortOCP-P1 (Front Face when no port is set)
Target_DeviceArista 7050SX3 (ToR-A)
Target_PortEth1
Cable_MediumDAC (Direct Attach Copper)
Speed_Gbps25G / 100G
VLAN_IDVLAN 7 or Untagged
IntentNetwork ATC intent of the host port, e.g. Management_Compute
Notesfree text

2. Switch port map (TXT) ​

One block per switch or console server: model, role, zone and trunk VLANs (when set), then each port with the device and port on the other end and the VLAN tag (Trunk/Native when untagged). Use it to prepare the switch CLI trunk profiles.

3. draw.io ​

Export > Cabling Topology (draw.io) writes an uncompressed .drawio file. See draw.io export.

Released under the MIT License. Forked from AzLoFlows by Cristian Edwards Sabathe.