I would like to model a show command as follows:
show application app appA version
show application app appB version
I am using a list node named ‘application’ that takes in two keys ‘app’ and ‘version’, where appA and appB are the possible values for the ‘app’ key and version has a string value.
My model looks like this:
list application
{
tailf:cli-incomplete-show-path;
key "app version";
config false;
leaf app {
type enumeration {
enum appA;
enum appB;
}
}
leaf version {
type string {
length "1..32";
}
}
}
With this model, when I do a show application app appA, I get an error message that the command has a syntax error at “app”. Could you tell me where I am going wrong here?