Bug 6875 - [Yang 1.1] Allow imports of multiple revisions of a module. 67/51567/4
authorPeter Kajsa <pkajsa@cisco.com>
Wed, 8 Feb 2017 16:20:50 +0000 (17:20 +0100)
committerRobert Varga <nite@hq.sk>
Mon, 13 Feb 2017 14:13:57 +0000 (14:13 +0000)
commit4d5bda95b177476ce3a2060c75cb1566ba760fd6
tree2f45787dac9cded90a034bb5a048ee8f2cb317a6
parent2f46e334bf564d22350ca9cac4ef8a90ff115f86
Bug 6875 - [Yang 1.1] Allow imports of multiple revisions of a module.

Since Yang 1.1, it is allowed to import a module multiple times even with
different revisions. This patch introduced this functionality for Yang 1.1
sources.

Change-Id: I99f36308079cd7bd0af412b03f63eb2bb75242ef
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/util/ModuleDependencySort.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/MultipleRevImportBug6875Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/bug6875/yang1-0/bar@1999-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/bug6875/yang1-0/bar@2017-02-06.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/bug6875/yang1-0/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/bug6875/yang1-1/bar@1970-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/bug6875/yang1-1/bar@1999-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/bug6875/yang1-1/bar@2017-02-06.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/bug6875/yang1-1/foo.yang [new file with mode: 0644]