I want to use a huge container as input. This container includes all commands which i want to use on a multi app environment.
here is a small example:
grouping bla-action-listener-type { leaf app-id { type application-id; tailf:info “The ID”; }
tailf:action "request-status"
{
tailf:info "Request to write...";
input;
output
{
leaf console-out
{
type string;
}
}
}
tailf:action "request-keep-alive"
{
tailf:actionpoint "bla-action-point";
input;
output
{
leaf console-out
{
type string;
}
}
}
tailf:action "show-version"
{
tailf:actionpoint "bla-action-point";
input;
output
… and so on
I want to write a command which will get any possible leaf from this container, therefore I need something like this:
tailf:action "multi-command"
{
tailf:actionpoint "i-action-point";
input
{
uses bla-action-listener-type
leaf command
{
type bla-action-listener-type;
mandatory true;
}
}
output
{
leaf console-out
{
type string;
}
}
tailf:info "Runs a specified command from this list on a multi app environment";
}
the current structure doesn’t work out. Does anyone has any idea?