Hi Guys,
I’m trying to build yang model with an action which would take some input from the user:
……….
tailf:action self-test {
tailf:info "Perform self-test of the service";
tailf:actionpoint eLineJava-self-test;
input {
leaf mode {
type enumeration {
enum ping;
enum show;
}
}
}
output {
leaf success {
type boolean;
}
leaf message {
type string;
description "Free format message.";
}
}
}
………………………………
pyang and make do not produce any errors but when I run it on cli I do not see any input options to select from:
…………………….
admin@ncs# services eLineJava eLineJava01 self-test ?
Possible completions:
| <cr>
admin@ncs# services eLineJava eLineJava01 self-test
………………………………………….
Is there a reason why?
Thanks
Solved! Go to Solution.
Try to TAB in the cli and you'll see, you can also mark the input param as mandatory - if that is what you want.
Try to TAB in the cli and you'll see, you can also mark the input param as mandatory - if that is what you want.
Seems like ncs was not reloading package correctly. I restarted ncs and now it works fine.