I am trying to hide the password field in tailf-aaa.yang through annotation as given in the example below.
//---- main.yang file ----
module xyz-main {
namespace "http://www.xyz.com/xyz-main";
prefix xyz;
include tailf-aaa-annotation;
// Other code
}
//---- tailf-aaa-annotation.yang file
submodule tailf-aaa-annotation {
belongs-to xyz-main {
prefix clp;
}
import tailf-common {
prefix tailf;
}
import tailf-aaa {
prefix aaa;
}
tailf:annotate "/aaa:aaa/aaa:authentication/aaa:users/(*)/aaa:password" {
tailf:hidden "hide-aaa-password";
}
// tailf:annotate "/aaa:aaa/aaa:authentication/aaa:users/aaa:user/(*)/aaa:password" {
// tailf:hidden "hide-aaa-password";
// }
}
ISSUE:
I am encountering problem with specifying wildcard as given in the above example.
I tried ‘()’ as used above, '’, etc. but it fails with the following message.
I also tried the code that is commented-out above, which also resulted in the same failure.
tailf-aaa-annotation.yang:14: error: bad argument value "/aaa:aaa/aaa:authentication/aaa:users/aaa:user/*/aaa:password", should be of type schema-nodeid-or-wildcard
Please le me know if any suggestion on how to specify the password for all users.
Thanks,
Sundar