Fixed: [leafref in new type no work in union type](https://github.com/clicon/clixon/issues/388)
This commit is contained in:
parent
fb45085491
commit
ca23b63a4e
3 changed files with 39 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue