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

Circuit termination connected endpoint does not show up in API response #5165

Closed
ggidofalvy-tc opened this issue Sep 22, 2020 · 4 comments
Closed
Labels
status: duplicate This issue has already been raised

Comments

@ggidofalvy-tc
Copy link

ggidofalvy-tc commented Sep 22, 2020

Environment

  • Python version: 3.7.3
  • NetBox version: 2.9.3

Steps to Reproduce

  1. Create circuit
  2. Create A-side termination
  3. Connect A-side termination to arbitrary interface on a device
  4. Create Z-side termination
  5. Connect Z-side termination to arbitrary interface on a device
  6. Check web interface + API result of circuit

Expected Behavior

The web interface and the API shows the connected interfaces/devices on both A and Z sides.

Observed Behavior

The web interface shows the connected interfaces/devices on both A and Z sides; however, the API only shows the A side as connected.

Deleting the terminations and creating the Z-side termination first, then the A-side termination leads to the A-side termination not showing any connected endpoints when queried through the API.

NetBox UI correctly shows the connections
NetBox API does not!

Swapping terminations leads to the API showing the A-side as having nothing connected to it.

NetBox UI correctly shows the connections after swap
NetBox API still doesn't, now the A-side is affected...

The actual circuit terminations created are also affected by this issue.

c5

The 'fix' for this issue did not fix the problem with the model itself, it is a mere workaround, querying the attached cable (and not the connected_endpoint, which can be null).

@ggidofalvy-tc
Copy link
Author

ggidofalvy-tc commented Sep 22, 2020

Seems to be a duplicate of #4851 ?

Also only affects new circuits. The issue began after updating from v2.7.10.

@ggidofalvy-tc ggidofalvy-tc changed the title Second L2Circuit circuit termination does not show up in API response Second circuit termination does not show up in API response Sep 22, 2020
@ggidofalvy-tc
Copy link
Author

ggidofalvy-tc commented Sep 22, 2020

For "end-user" developers who ran into this issue: A workaround is to query the cable within the circuit termination, then use the termination within the cable that isn't the original circuit termination (this is what the previous fix essentially did).

@ggidofalvy-tc
Copy link
Author

Doing another reproduction pass revealed that there are some cases when both circuit terminations show their connected_endpoint as null, even when both are connected.

@ggidofalvy-tc ggidofalvy-tc changed the title Second circuit termination does not show up in API response Circuit termination connected endpoint does not show up in API response Sep 23, 2020
@lampwins lampwins added status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application labels Sep 26, 2020
@jeremystretch
Copy link
Member

This appears to be the same issue described in #4925.

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

No branches or pull requests

3 participants