lorawan-stack icon indicating copy to clipboard operation
lorawan-stack copied to clipboard

CLI Relay commands required for managing an installation

Open HeadBoffin opened this issue 11 months ago • 1 comments

Summary

Querying an application to find relays and served devices needs multiple calls. Finding out which index/slots are in use requires a 16 calls, one for each index. This is relatively a minor inconvenience but does result in a lot of unnecessary interaction. With an application with many devices this could take a while to find the relays.

Current Situation

There is no relays list <application-id>.

This would supply a list of relays to:

relays devices list <device-id-of-relay>

which ideally returns the forwarding-rules index that it occupies. I've got to relays uplink-forwarding-rules list <app-id> <relay-id> --device-id but we don't get the indexes back.

Why do we need this? Who uses it, and when?

This will facilitate an efficient retrieve of the current configuration and save issues managing served devices with tracking indexes.

The users are likely to be field engineers who have to deploy or add to an installation or replace devices or relays.

Proposed Implementation

As per current situation - some additional command options to get the data back.

I'm working on a GUI interface that works but has to do the queries described above. Once it & the hardware get out in to the wild there may be some further enhancements identified.

As there is a work-around there is no urgent requirement.

Contributing

  • [x] I can help by doing more research.
  • [ ] I can help by implementing the feature after the proposal above is approved.
  • [x] I can help by testing the feature before it's released.

Validation

Code of Conduct

HeadBoffin avatar Feb 20 '25 15:02 HeadBoffin

Thanks for the issue. We'll get back to this in a future milestone.

KrishnaIyer avatar Feb 21 '25 09:02 KrishnaIyer