Bug 5481: When condition of augment added in constraints of augment target 58/36058/2
authorPeter Kajsa <pkajsa@cisco.com>
Wed, 9 Mar 2016 17:22:46 +0000 (18:22 +0100)
committerPeter Kajsa <pkajsa@cisco.com>
Thu, 10 Mar 2016 16:18:43 +0000 (16:18 +0000)
commit337e8676b2432cc7000ecf29c583e2f3c1c79327
tree342e88bcbd560f7383fee0a7e13af4dcd0d4edb9
parentb6d7ee20c622441c5bf97f185960235131b9de46
Bug 5481: When condition of augment added in constraints of augment target

The patch excludes When, Status, Description and Reference statements
from copying of top augment's nodes.

Change-Id: I72bf65aba09e43799ac619cd4de9ed03230ad071
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/AugmentUtils.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/test/Bug5481.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug5481/module1.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug5481/module2.yang [new file with mode: 0644]