Check for nested augmentations 45/81145/6
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 19 Feb 2019 10:22:49 +0000 (11:22 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 25 Jul 2019 19:01:51 +0000 (21:01 +0200)
commit759e69d85991edb987a760165adb83fa3f2ab67b
treeec9d264bad9957948d7052426074bd6bfcdbf54a
parentf5154f56cc640e1fc8d10aed7ffed1fc73aab696
Check for nested augmentations

When we are augmenting an already-conditional-augmented node from
the same module, we should inherit the previous when statement.

JIRA: YANGTOOLS-956
Change-Id: Ia3c04d60f4975bd721406b26aa4c2e7d8b05122b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
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/YT956Test.java [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/another-module.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/mainmodule.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/sub-module-1.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/sub-module-2.yang [new file with mode: 0644]