Skip to content

Cable length calculation incorrect when segment lengths are missing #5650

@cpmills1975

Description

@cpmills1975

Environment

  • Python version: 2.10.3
  • NetBox version: 3.9

Steps to Reproduce

  1. Create two devices
  2. Create two 'patch panel' devices with front and rear ports
  3. Connect the rear ports of the patch panels without specifying the length
  4. Connect the two devices to each of the patch panels and specify the length in one or both
  5. Trace the cable between the devices

Expected Behavior

Ideally, the total length should indicate that it is 'at least' n meters long or in some better way indicate that only some of the lengths were populated and therefore the calculated length is somewhat short of the actual.

Observed Behavior

With only some of the cable lengths specified - perhaps the patch cables between the patch panels and the devices and not the length of the horizontal cable between the patch panels, NetBox outputs a calculated length which is the correct sum of the lengths that it has available in the database. This is obviously incorrect due to missing data, but no indication of this is given to the user who might (not unreasonably) think that the total length as calculated by NetBox is correct.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions