Skip to content

Cable terminations are not refreshed correctly on API PATCH of Cable #18263

Closed
@bctiemann

Description

@bctiemann

Deployment Type

Self-hosted

Triage priority

I volunteer to perform this work (if approved)

NetBox Version

v4.1.8

Python Version

3.10

Steps to Reproduce

Ideally populate the DB with a large number (1000+) of Interfaces and Cables connecting them.

API call:

http://127.0.0.1:8000/api/dcim/cables/1/
{
    "b_terminations": [
        {
            "object_type": "dcim.interface",
            "object_id": 161
        }
    ]
}

Compare to UI edit of Cable where B-side interface is changed.

Expected Behavior

Both operations (UI and API) should have the same effect and execute in the same amount of time.

Observed Behavior

The UI call completes in a few hundred ms; but depending on the data size, the API call can take many seconds or minutes to complete.

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtopic: cablingtype: 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