Open FrostbyteGR opened 4 months ago
Hi @FrostbyteGR thanks for the suggestion.
It seems like a good idea to me. I'm not personally running MAAS anymore so I don't expect to get around to making new features here.
If you are offering to have a go at implementing this then I'd be happy to review and will merge any useful PRs.
Greetings,
Inspired by my previous idea, I believe that a RESTful type of device control could be more useful.
The added benefits versus the SSH variant would be:
Here's a generic example:
As usual, an example on how it could work with MikroTik PoE devices (i.e. CRS328-24P-4S+RM):
NOTE:
on-data
,off-data
andquery-data
should be ignored if their respectivemethod
is undefined, blank or set toGET
. There might also be a need to define additional options like the request header. (i.e.Content-Type: application/json
)Here's how I'm currently achieving it via
type: CommandLine
:And a
maaspower_rest_mikrotik.sh
that looks like this:And as always, many thanks again for this project!