Skip to content

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

@hansammy-suh

Description

@hansammy-suh

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'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions