Fix nested augmentations 57/101057/1
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 20:22:00 +0000 (22:22 +0200)
commitb7b239044f2e6879d1641aa793067c6d4355d879
treecade897fe13fa35d0186aa3a9f0699705238e40f
parentd5e412c7b433dd574869d8f4f730da5f8445ff5e
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>
(cherry picked from commit d79a5579918d5110599bdcc225c927c0225a177f)
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]