Cable _terminations_modified set even if not modified #7432

Closed
opened 2025-12-29 20:23:27 +01:00 by adam · 0 comments
Owner

Originally created by @arthanson on GitHub (Dec 29, 2022).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.4.1

Python version

3.8

Steps to Reproduce

  1. put a breakpoint or print statement on a_terminations setter (https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/models/cables.py#L121)
  2. Edit a cable and save it (making no modifications)
  3. See that the breakpoint is hit and therefore _terminations_modified is set.

This is a problem as the signal handler (https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/signals.py#L84) will check _terminations_modified and create a new cablepath.

Expected Behavior

_terminations_modified should only get set if the terminations are actually changed.

Observed Behavior

_terminations_modified is set even if terminations are not changed.

Originally created by @arthanson on GitHub (Dec 29, 2022). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.4.1 ### Python version 3.8 ### Steps to Reproduce 1. put a breakpoint or print statement on a_terminations setter (https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/models/cables.py#L121) 2. Edit a cable and save it (making no modifications) 3. See that the breakpoint is hit and therefore _terminations_modified is set. This is a problem as the signal handler (https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/signals.py#L84) will check _terminations_modified and create a new cablepath. ### Expected Behavior _terminations_modified should only get set if the terminations are actually changed. ### Observed Behavior _terminations_modified is set even if terminations are not changed.
adam added the type: bugstatus: accepted labels 2025-12-29 20:23:27 +01:00
adam closed this issue 2025-12-29 20:23:27 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7432