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

Better Circuit lookups: by device, etc. #310

Open
nickpegg opened this issue Jan 12, 2018 · 1 comment
Open

Better Circuit lookups: by device, etc. #310

nickpegg opened this issue Jan 12, 2018 · 1 comment
Milestone

Comments

@nickpegg
Copy link
Contributor

We have the ability to look up Circuit object by their endpoints via the Interface primary keys or natural keys (interface name slug), but it would be also useful to be able to look up Circuits directly by device hostname. This is possible via the circuits detail view on Device, but being able to do this directly on Circuit would be nice.

Something else along these lines that would be awesome would be the ability to look up mutual Circuits between two devices. Like, given two device primary/natural keys, return every Circuit object that connects the two.

@jathanism jathanism added this to the v2.0 milestone Jan 12, 2018
@jathanism
Copy link
Contributor

The first paragraph could be satisfied pretty easily using existing API filtering by adding nested related fields as filter fields (e.g. endpoint_a__device_hostname or endpoint_z__device_hostname), but man are those long and ugly!

The second paragraph might be more desirable, because we can customize, tune, and optimize the way it's done, but will require more work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants