Hi,
Can we put a constraint in the yang, while configuring a string in one leaf-list A, this string should be present in another leaf-list B , at the same hierarchy .
Thanks
Phani.
Hi,
Can we put a constraint in the yang, while configuring a string in one leaf-list A, this string should be present in another leaf-list B , at the same hierarchy .
Thanks
Phani.
Hi Phani,
Example:
leaf-list A {
type string;
must "../B = ." {
error-message "String must be present in leaf-list B";
}
}
leaf-list B {
type string;
}
Hi Cohult,
Thanks for the response. It solved my issue.