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

NetBox API /circuits/circuit-terminations/{id}/paths/ is mising from pynetbox #492

Closed
jwbensley opened this issue Aug 25, 2022 · 4 comments
Labels
status: duplicate This issue has already been raised

Comments

@jwbensley
Copy link

The following netBox API endpoint is simply not available via pynetbox:

grafik

/circuits/circuit-terminations/{id}/paths/

Interface inherfit from class PathEndpointMixin: https://github.com/netbox-community/netbox/blob/21b9732f061b7e91fa77c10da66bd098510354fc/netbox/dcim/api/views.py#L44

But CircuitTermination inherits from PassThroughPortMixin: https://github.com/netbox-community/netbox/blob/21b9732f061b7e91fa77c10da66bd098510354fc/netbox/dcim/api/views.py#L84

/circuits/circuit-terminations/{id} exists though, just not access to the paths endpoint:

>>> nb.circuits.circuit_terminations.get(id=2)
TEST-CIRCUIT-1
>>> nb.circuits.circuit_terminations.
nb.circuits.circuit_terminations.all(         nb.circuits.circuit_terminations.create(      nb.circuits.circuit_terminations.return_obj(
nb.circuits.circuit_terminations.api          nb.circuits.circuit_terminations.delete(      nb.circuits.circuit_terminations.session_key
nb.circuits.circuit_terminations.base_url     nb.circuits.circuit_terminations.filter(      nb.circuits.circuit_terminations.token
nb.circuits.circuit_terminations.choices()    nb.circuits.circuit_terminations.get(         nb.circuits.circuit_terminations.update(
nb.circuits.circuit_terminations.count(       nb.circuits.circuit_terminations.name         nb.circuits.circuit_terminations.url

PathEndpointMixin exposes a /path/ endpoint and ThroughPortMixin exposes a /trace/ endpoint. Both serialize a CablePath, but differently.

@arthanson arthanson self-assigned this Oct 24, 2022
@luoe
Copy link

luoe commented Feb 14, 2023

Any news on this? 😄

@jwbensley
Copy link
Author

Not far off 1 year later, any thoughts on progressing this?

@seismiccollision
Copy link

ran into this issue today

@abhi1693 abhi1693 added the status: duplicate This issue has already been raised label Aug 28, 2023
@abhi1693
Copy link
Member

This is sort of duplicate of #434 and can be solved together

@abhi1693 abhi1693 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate This issue has already been raised
Projects
None yet
Development

No branches or pull requests

5 participants