Fix transitive if-feature augments 98/69298/40
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 9 Mar 2018 00:05:41 +0000 (01:05 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Nov 2020 01:28:23 +0000 (02:28 +0100)
commitfdfe9c4914bf8a9f9a92cd1ab390e1f17a89b2ce
tree54f7e953674020483bd2d6e21192c9c283c32fd4
parent4929fb6d63325fcbcbd72c16758a44ba19c3d20d
Fix transitive if-feature augments

We cannot just ignore augments, as they drive namespace population.
Instead of that, let's populate target nodes, but make sure they
are marked as unsupported.

This allows ChildSchemaNodeNamespace-driven lookups to find the resulting
node, but does not allow it to materialize as an EffectiveStatement.

JIRA: YANGTOOLS-859
Change-Id: Ib817e6e20563005427471098bf6ff2991fb60e01
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/module-info.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/augment/AbstractAugmentStatementSupport.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/YT859Test.java [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT859/bar.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT859/baz.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT859/foo.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT859/xyzzy.yang [new file with mode: 0644]