Skip to content

feat: export connections to CSV/JSON #273

@ggfevans

Description

@ggfevans

Parent Epic

Part of #71 (Network Interface Visualization and Connectivity)

Summary

Export cable connection data to machine-readable formats for documentation and integration.

Export Formats

CSV Format

cable_id,cable_label,cable_type,a_device,a_port,b_device,b_port,length,color
c001,Patch-001,cat6a,Switch-01,eth0,Patch-Panel-01,01,2.5m,0000ff
c002,,cat6a,Switch-01,eth1,Patch-Panel-01,02,2.5m,0000ff

JSON Format (NetBox-compatible)

{
  "cables": [
    {
      "id": "c001",
      "label": "Patch-001",
      "type": "cat6a",
      "a_terminations": [
        { "device": "Switch-01", "interface": "eth0" }
      ],
      "b_terminations": [
        { "device": "Patch-Panel-01", "interface": "01" }
      ],
      "length": 2.5,
      "length_unit": "m",
      "color": "0000ff"
    }
  ]
}

Acceptance Criteria

  • Export cables to CSV
  • Export cables to JSON
  • Include all cable properties
  • Device names (not just IDs) in export
  • Download as file
  • Copy to clipboard option

UI Location

Export dialog → Format dropdown → add "CSV (Connections)" and "JSON (Connections)"

Dependencies

References

  • NetBox cable export format

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions