Open
Description
Reproducible with: yanglint 3.7.8
This YANG should be valid AFAICT but yanglint can't find the leafref's target:
module example {
yang-version 1.1;
namespace "ex:ample";
prefix example;
import ietf-yang-structure-ext {
prefix sx;
}
container files {
list file {
key id;
leaf id {
type uint32;
}
}
}
sx:structure struct {
container c {
}
}
sx:augment-structure "/example:struct/c" {
leaf id {
type leafref {
path "/example:files/example:file/example:id";
}
}
}
}
yanglint example.yang
libyang err : Not found node "files" in path. (/example:c/id)