I want to create a leafref from one grouping to another, is it possible?
I have the following files:
a.yang:
module a
{
namespace "http://something.com/a";
prefix a;
import b
{
prefix b;
}
description "a configuration";
container a
{
uses b:group1;
uses b:group2;
}
}
so, module a has two instances, group1 & group2.
I want a leafref from group2 to point on a leaf from group1.
b.yang:
module b
{
namespace "http://something.com/b";
prefix b;
description "b configurations";
grouping group1
{
container group1
{
leaf parameter-x
{
type uint8;
}
}
}
grouping group2
{
container group2
{
leaf ref-parameter-x
{
type leafref
{
path "????/parameter-x of group1";
}
}
}
}
}
Solved with
augment. I do not know if possible withgrouping.