-
Notifications
You must be signed in to change notification settings - Fork 263
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
GraphQL connected_circuit_termination does not return circuit termination in some cases #1495
Comments
Thanks for the report! I think this is working as intended due to #104. The |
Ack. Would it be possible/beneficial to add a We could alternatively acquire data from the cable objects attached to the interface in order to determine that, but in that event the client has to implement logic to understand which side is the circuit termination and therefore which side to look at circuit properties for. There are two problems I see with using this approach:
|
Another thought. If we did add the
I think we've ruled 3 out, not sure what the best option is between 1 and 2 (if we do want to implement this query). |
Environment
Steps to Reproduce
Expected Behavior
I expected to acquire the circuit ID for the circuit used to connect the two device interfaces together.
Observed Behavior
The circuit termination comes back as null
It looks like the gql query uses the interface's
connected_endpoint
attribute and checks to see if it is aCircuitTermination
in order to derive whether or not a circuit is attached. In cases where a circuit is attached to an interface on both sides of the circuit, theconnected_endpoint
comes back as the remote device's interface rather than theCircuitTermination
of the attached circuit. Thus the gql query therefore returnsnull
because the connected endpoint is not aCircuitTermination
, even though there is a CircuitTermination connected to the interface.https://github.com/nautobot/nautobot/blob/develop/nautobot/dcim/graphql/mixins.py#L20
The text was updated successfully, but these errors were encountered: