Hi Olof!
I have a problem with mandatory leaf's.
For example I'm using openconfig-aaa.yang
grouping aaa-authentication-user-top {
description
"Top-level grouping for local users";
container users {
description
"Enclosing container list of local users";
list user {
key "username";
description
"user's";
leaf username {
type string;
description
"username";
}
container config {
description
"Configuration data for local users";
uses aaa-authentication-user-config;
}
container state {
config false;
description
"Operational state data for local users";
uses aaa-authentication-user-config;
uses aaa-authentication-user-state;
}
}
}
}
grouping aaa-authentication-user-config {
description
"Configuration data for local users";
// leaf username {
// type string;
// description
// "username";
// }
// leaf password {
// type string;
// oc-ext:openconfig-hashed-value;
// description
// "password";
// }
leaf password-hashed {
type string;
description
"password-hashed";
}
// leaf ssh-key {
// type string;
// description
// "ssh-key";
// }
leaf role {
type enumeration {
enum administrator {
description
"user role";
}
enum operator {
description
"user role";
}
}
description
"user role";
}
}
Hi Olof! I have a problem with mandatory leaf's. For example I'm using openconfig-aaa.yang
And my general yang-model
If I'm changing leaf as below
then I get an error
What could be the problem?