In a list I’d like the leaves under a required choice/case statement to be unique. Is it allowed? I couldn’t make it work (“internal error”), either by splitting it into two unique statements (debatable) or putting everything into one, which in theory should make sense, as in the example below:
list my-list-element {
key "name";
// unique statement below won't work!
unique "a b c";
leaf name {
type string;
description "A name for the list element";
}
choice a-or-b-c {
mandatory true;
case choose-a {
leaf a {
type string;
description
"leaf A";
}
}
case choose-b-c {
leaf b {
type string;
description
"leaf B";
}
leaf c {
type string;
description
"leaf C";
}
}
}
}