libyang icon indicating copy to clipboard operation
libyang copied to clipboard

A target of leafref to be referenced must be enabled when the require-instance property of the leafref is 'false'?

Open hansammy-suh opened this issue 3 months ago • 2 comments

I've got this error and YANG cannot be compiled normally.

cannot load module: Not found node "A" in path.: Schema path: /path/.../A/.../target-leaf: Target of leafref "leaf" cannot be referenced because it is disabled.: Schema path: /path/.../A/.../target-leaf

In .yang file, the abstraction of the leaf is below """ leaf target-leaf { require-instance false; path "/path/.../A/.../target-leaf" }

According to the spec RFC7950, a target of leafref to be referenced must be enabled when the require-instance property of the leafref is 'false'?

hansammy-suh avatar Nov 12 '25 11:11 hansammy-suh