[FEATURE] core-cli query node should also contain position and geo
See original GitHub issueIs your feature request related to a problem? Please describe.
We often use external (bash/python) scripts to interact with or visualize different aspects of the simulation.
coresendmsg
and core-cli
can be used to update positions but for external tools to extract the position we always parse the *.xy
files in the filesystem as core-cli query node -i 39983 -n 1
only delivers the following output:
ID | Name | Type
1 | n1 | DEFAULT
Interfaces
Connected To | ID | MAC Address | IP4 Address | IP6 Address
wlan3 | 0 | 00:00:00:aa:00:00 | 10.0.0.10/24 | 2001::10/128
Describe the solution you’d like
Either adding pos/geo to the default output or add a verbose flag that will contain these information would be really helpful - also for interactive debugging of headless simulations.
Similarly, having query session
have all positions/geo locations in a tabular view for all nodes at once would be really nice!
Describe alternatives you’ve considered
--json
does seem to contain these information but also much more. This behavior is kind of undocumented. It took me a while to find this. It’s fine for automated parsing but pretty overwhelming for interactive analyses.
Thank you for the great work so far!
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
adding the json flag back, which will have similar values, some cases may not be directly protobuf translation, but the session dump will be.
also adding geo output to the session overview for the simple printed view, hopefully these are ok for now.
these are on develop for next release.
I think your asks are reasonable, I would probably look to add the json support back in with the caveat you noted, that it could change if the related protobufs change. That might be reasonable to deal with though and ideally don’t end up changing often/much.