Hi,
Can anyone please tell whether the leafref path defined for leaf x is correct? If it is correct, please tell what value will it hold(i.e., will it always hold the current selected if-name value?)
list a{
key “if-name”;
leaf if-name {
type leafref { path “./wan:interface/wan:name”;}
}
container b{
container c{
leaf x{
type leafref {path “./a[if-name=current()]”;}
}
}
}