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

Add an extended view for objects to show all of their relations #141

Open
jathanism opened this issue Aug 8, 2017 · 0 comments
Open

Add an extended view for objects to show all of their relations #141

jathanism opened this issue Aug 8, 2017 · 0 comments

Comments

@jathanism
Copy link
Contributor

jathanism commented Aug 8, 2017

If for example you run nsot networks list -c 10.10.10.1/32 you just get the output for that network itself:

$ nsot networks list -c 10.10.10.1/32
+-------------------------------------------------------------------------------+
| ID   CIDR (Key)      Is IP?   IP Ver.   Parent          State      Attributes |
+-------------------------------------------------------------------------------+
| 5    10.10.10.1/32   True     4         10.10.10.0/24   assigned              |
+-------------------------------------------------------------------------------+```

This idea is what if we add some kind of flag for "extended" view, it would also include other relations, something like:

$ ./nsot networks list -c 10.10.10.1/32 --extended
Network
+-------------------------------------------------------------------------------+
| ID   CIDR (Key)      Is IP?   IP Ver.   Parent          State      Attributes |
+-------------------------------------------------------------------------------+
| 5    10.10.10.1/32   True     4         10.10.10.0/24   assigned              |
+-------------------------------------------------------------------------------+

Assignments
+---------------------------+
| ID   Hostname   Interface |
+---------------------------+
| 2    lax-rtr1   eth0      |
+---------------------------+

Parent
+-------------------------------------------------------------------------+
| ID   CIDR (Key)      Is IP?   IP Ver.   Parent   State       Attributes |
+-------------------------------------------------------------------------+
| 4    10.10.10.0/24   False    4         None     allocated              |
+-------------------------------------------------------------------------+

Eh? Something like this? Perhaps in a more easily consumable format that isn't just a bunch of tables being output?

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

1 participant