Fixed: [leafref in new type no work in union type](https://github.com/clicon/clixon/issues/388)

This commit is contained in:
Olof hagsand 2022-12-27 11:29:22 +01:00
parent fb45085491
commit ca23b63a4e
3 changed files with 39 additions and 11 deletions

View file

@ -50,6 +50,18 @@ module example{
identity saab {
base "airplane";
}
typedef ref1 {
type leafref {
path "../x";
require-instance true;
}
}
typedef ref2 {
type leafref {
path "../y";
require-instance true;
}
}
container c {
leaf x {
type string;
@ -70,6 +82,13 @@ module example{
}
}
}
leaf zdecl {
description "leafref union using declared types";
type union {
type ref1;
type ref2;
}
}
leaf w {
description "idref union";
type union {