In the below schema, i want to allow the three_entry
only if the sub_of_list_one_2
is a subset of subset_of_list_one_1
. Is it possible through ‘must’ statement ?
list one {
key "k1";
leaf k1 {
type int;
}
}
list subset_of_list_one_1 {
key "name";
leaf name {
type string;
}
leaf-list k1-list {
type leafref {
path "../../one/k1";
}
}
}
list subset_of_list_one_2 {
key "name";
leaf name {
type string;
}
leaf-list k1-list {
type leafref {
path "../../one/k1";
}
}
}
list three {
key "id";
leaf id {
type int;
}
leaf three_entry {
type leafref {
path "../../subset_of_list_one_2/name";
}
}
}