RearPort position count should never be less than the number of mapped FrontPorts #4178

Closed
opened 2025-12-29 18:33:39 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Oct 8, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.9.4

Steps to Reproduce

  1. Create a rear port with 4 positions
  2. Create four front ports mapped to it
  3. Modify the rear port position count to 3 and save

Expected Behavior

This should trigger a validation error, as there are four front ports mapped to it.

Observed Behavior

The rear port is saved without error, leaving the database and cable path in an inconsistent state. (Attempting to modify the orphaned front port yields a validation error as expected.)

Originally created by @jeremystretch on GitHub (Oct 8, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.9.4 ### Steps to Reproduce 1. Create a rear port with 4 positions 2. Create four front ports mapped to it 3. Modify the rear port position count to 3 and save ### Expected Behavior This should trigger a validation error, as there are four front ports mapped to it. ### Observed Behavior The rear port is saved without error, leaving the database and cable path in an inconsistent state. (Attempting to modify the orphaned front port yields a validation error as expected.)
adam added the type: bugstatus: accepted labels 2025-12-29 18:33:39 +01:00
adam closed this issue 2025-12-29 18:33:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4178