Hi,
So I I’m using confd 6.0 and I noticed a behaviour I can’t explain.
Let’s say I have a.yang and b.yang. In a.yang I define a typedef with an enumeration and a grouping that uses such typedef. In b.yang I simply use that grouping.
What happens is that the generated b_ns.py will never contain the values defined in the enumeration unless I remove the typedef and insert the numeration directly under the type of the leaf.
On the other hand, the generated a_ns.py file will always contain the values of the enumeration.
For instance, this won’t work:
typedef mytype {
type enumeration {
enum value1;
enum value2;
enum value3;
}
}
grouping mygrouping {
leaf myleaf {
type mytype;
}
}
While this will work:
grouping mygrouping {
leaf myleaf {
type enumeration {
enum value1;
enum value2;
enum value3;
}
}
}
Is this a bug or am I missing something?
Thanks!