I am looking to execute an Action-Command which is hidden from CLI/Northbound Interfaces via confd_cmd binary as below and not sure of the syntax or if it’s a possibility to execute this via confd_cmd?
container A{
tailf:hidden full;
tailf:action B {
tailf:actionpoint B1;
input {
leaf val {
mandatory true;
type int8;
}
}
}
}
Also another possible way would be to execute it via maapi --clicmd --no-hidden “A B val 2” but running into incomplete path errors for this.
confd_cmd has a command maction, but it supports only actions without parameters. My go-to CLI utility in such cases is curl to send a RESTCONF request, in your case it could be like this:
It obviously assumes that you have RESTCONF enabled and 8008 is your webui port; also, you may need to change username/password or provide the correct token, depending on your setup.