Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jeremystretch opened this issue Oct 8, 2020 · 0 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

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.)

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation labels Oct 8, 2020
@jeremystretch jeremystretch self-assigned this Oct 8, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant