Fix transitive if-feature augments 79/93579/1
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 10:31:26 +0000 (11:31 +0100)
commit625195b4457bec462b56bb7ac1d533c315b3fe1c
tree2e9757f92039377f74d5a7933af8bb513fd6fcba
parent947a1d5c368b8ddef090f0cd7479462ccaefcc9a
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>
(cherry picked from commit fdfe9c4914bf8a9f9a92cd1ab390e1f17a89b2ce)
(cherry picked from commit b83966f5abb72503da77c19957c50f9e6dcd69be)
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]