Bug 9005 - scope of model import prefix should be module/submodule 60/62260/1
authorPeter Kajsa <pkajsa@cisco.com>
Fri, 18 Aug 2017 10:24:32 +0000 (12:24 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 24 Aug 2017 10:31:33 +0000 (10:31 +0000)
commit201595da1577918362967eae9f0f490729dccae8
tree1e7aaed312acf759d2c4c3d311cb62732e0cc9f6
parentef6358f5c6ab1337f1fc370f940f000899de3d62
Bug 9005 - scope of model import prefix should be module/submodule

Yang parser includes all substatements of a submodule into a parent
module including all import statements of the submodule, what causes
mismatch of parent module imports.

Change-Id: I5c0b45348ca5e9f3ae54351c93e940135fe2b99d
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
(cherry picked from commit 81c8d73d4d85ef015a06145b2d4315fed8efb49d)
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/AbstractEffectiveModule.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug9005Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug9005/bar-1@2000-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug9005/bar-2@2000-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug9005/foo@2017-07-07.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug9005/sub-foo@2017-07-07.yang [new file with mode: 0644]