A current project I am working on requires deploying and managing a fleet of slightly heterogeneous OpenWRT devices with custom configs. To solve the configuration problem without overcomplicating things, I would like to build a wrapper around the image builder.
Is there a "friendly" interface to get a device's capabilities by its name? I'm looking for a programmatic way to get the following from the image builder:
- Radio phy list (count, names)
- Ethernet port list
- Flashable memory size
- LED names (not too necessary, but would be really nice)