Closes #20788: Cable profiles and and position mapping #880

Closed
opened 2026-04-05 18:29:00 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jeremystretch on 11/13/2025

Closes: #20788

  • Introduce cable profiles to define mapping & validation logic for various classes of cables (e.g. straight-through vs. breakout)
  • Add an optional profile choice field on dcim.Cable
  • Add a nullable cable_position integer field on all cabled objects (e.g. interfaces)
  • Rename create_cablepath() to create_cablepaths() and add position support
  • Extend cable tracing logic to consider the position of a path relative to its cable
  • Enable drag-and-drop of items within multi-select widgets
  • Refactor cable path tests
    • Split out base CablePathTestCase class
    • Introduced new profile-based tests in parallel to legacy (non-profile) tests
    • Did not alter any of the legacy tests, to ensure backward compatibility is retained
  • Update documentation for the Cable model
*Originally created by @jeremystretch on 11/13/2025* ### Closes: #20788 - Introduce cable profiles to define mapping & validation logic for various classes of cables (e.g. straight-through vs. breakout) - Add an optional `profile` choice field on dcim.Cable - Add a nullable `cable_position` integer field on all cabled objects (e.g. interfaces) - Rename `create_cablepath()` to `create_cablepaths()` and add position support - Extend cable tracing logic to consider the position of a path relative to its cable - Enable drag-and-drop of items within multi-select widgets - Refactor cable path tests - Split out base CablePathTestCase class - Introduced new profile-based tests in parallel to legacy (non-profile) tests - Did not alter any of the legacy tests, to ensure backward compatibility is retained - Update documentation for the Cable model
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#880