Fix nested augmentations 35/101035/11
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 10 May 2022 06:01:21 +0000 (08:01 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 10 May 2022 19:41:52 +0000 (21:41 +0200)
commitd79a5579918d5110599bdcc225c927c0225a177f
treef78e6b2b9d2c9e0c80967a2b97f04a8708ab1374
parent592c7c3c4ce4f19b9ebb00a880d47e2649c589ef
Fix nested augmentations

When we are entering an augmentation, we need to look at the effective
instantiation. For DataNodeContainers that means using
EffectiveAugmentationSchema to get the correct filter, for choices we do
not have a utility, so just retain the same parent.

JIRA: YANGTOOLS-1433
Change-Id: I0aa36499a5bcf6088be5b49b79d202f8985f5eca
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
data/yang-data-api/pom.xml
data/yang-data-api/src/main/java/module-info.java
data/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/stream/YangInstanceIdentifierWriter.java
data/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/schema/stream/YT1433Test.java [new file with mode: 0644]
data/yang-data-api/src/test/resources/YT1433/bar.yang [new file with mode: 0644]
data/yang-data-api/src/test/resources/YT1433/foo.yang [new file with mode: 0644]