choice/case structures are collapsed to their parent data tree
node, hence it is invalid to define (in same namespace) the equivalent
of:
container {
leaf foo { type string; }
choice some {
case foo {
leaf foo { type string; }
}
}
}
Fix up the testing model.
Change-Id: I1e3ef8f9b38016e0290221f22b8233fba176bc0e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
}
}
+ grouping leaf2-from-grouping {
+ leaf leaf2-from-grouping {
+ type string;
+ }
+ }
+
grouping complex-from-grouping {
container container-with-uses {
uses leaf-from-grouping;
augment "/test:top/test:top-level-list/test:choice-in-list" {
case simple-via-uses {
- uses leaf-from-grouping;
+ uses leaf2-from-grouping;
}
case empty-leaf {
leaf empty-type {
augment "/test:put-top/test:input/test:top-level-list/test:choice-in-list" {
case simple-via-uses {
- uses leaf-from-grouping;
+ uses leaf2-from-grouping;
}
}