Bug 4640: Change semantic-version to openconfig-version 47/58247/1
authorIgor Foltin <igor.foltin@pantheon.tech>
Mon, 5 Jun 2017 13:18:31 +0000 (15:18 +0200)
committerIgor Foltin <igor.foltin@pantheon.tech>
Mon, 5 Jun 2017 13:34:13 +0000 (15:34 +0200)
The concept of semantic version already exists in the
openconfig-extensions YANG module in the form of
openconfig-version extension.

Rename the internal representation of semantic-version
statement to openconfig-version in the yang-parser-impl module.

Also adjust existing unit tests accordingly.

Change-Id: Ie647bfce5c1a462e6d269103e55a13e08f163dc6
Signed-off-by: Igor Foltin <igor.foltin@pantheon.tech>
271 files changed:
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/impl/util/YangModelDependencyInfo.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/ImportStatementDefinition.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/ModuleStatementSupport.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/OpenconfigVersionStatementImpl.java [moved from yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/SemanticVersionStatementImpl.java with 82% similarity]
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/SupportedExtensionsMapping.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/YangInferencePipeline.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/AbstractEffectiveModule.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/OpenconfigVersionEffectiveStatementImpl.java [moved from yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/SemanticVersionEffectiveStatementImpl.java with 90% similarity]
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc7950/ImportStatementRfc7950Support.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc7950/ModuleStatementRfc7950Support.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/OpenconfigVerSharedSchemaRepositoryTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SemVerSharedSchemaRepositoryTest.java with 88% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionBorderCaseTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionBorderCaseTest.java with 77% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionComplexTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionComplexTest.java with 92% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionDefaultsTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionDefaultsTest.java with 86% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionIgnoringRevisionTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionIgnoringRevisionTest.java with 83% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionImportTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionImportTest.java with 67% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionMultipleImportTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionMultipleImportTest.java with 82% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionPositionTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionPositionTest.java with 82% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionTest.java with 83% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/yin/YinOpenconfigVersionTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/yin/YinSemanticVersionTest.java with 82% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/bar.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/bar.yang with 60% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/foo.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/foo.yang with 66% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/openconfig-extensions.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/semantic-version.yang with 51% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-3/foo.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/basic-3/foo.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-3/openconfig-extensions.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/semantic-version.yang with 51% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/bar@2016-01-01.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/bar@2016-01-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/bar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/bar@2016-01-31.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/openconfig-extensions.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/semantic-version.yang with 51% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/bar@2016-01-01.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/bar@2016-01-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/bar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/bar@2016-01-31.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/bar.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/basic/bar.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic/bar.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/bar.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/bar@2016-01-01.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/bar@2016-01-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/bar@2016-01-02.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/bar@2016-01-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/bar@2016-01-03.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/bar@2016-01-01.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/bar@2016-01-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/bar@2016-01-02.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/bar@2016-01-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/bar@2016-01-03.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/bar@2016-01-02.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/bar@2016-01-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/bar@2016-01-03.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/bar@2016-01-02.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/bar@2016-01-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/bar@2016-01-03.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-03.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-03.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/bar@2016-01-03.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/bar@2016-01-04.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/bar@2016-01-04.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foobar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foobar@2016-01-31.yang with 74% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foobar@2016-02-28.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foobar@2016-02-28.yang with 74% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/bar@2016-01-03.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/bar@2016-01-04.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/bar@2016-01-04.yang with 65% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-01-31.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-02-27.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-02-27.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-02-28.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-02-28.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/bar.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/bar.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/foo.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/foo.yang with 67% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/bar.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/foo.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/foo.yang with 67% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/defaults/bar.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/defaults/defaults/bar.yang with 100% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/defaults/foo.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/defaults/defaults/foo.yang with 100% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/bar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/bar@2016-01-31.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-1/foo.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-1/foo.yang with 60% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-1/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-2/foo.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-2/foo.yang with 60% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-2/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-1/foo.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-2/foo.yang with 60% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-1/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-2/foo.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-1/foo.yang with 60% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-2/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-valid/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-valid/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-03.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-04.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-04.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-31.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-02-28.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-02-28.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-02-01.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-02-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-02-02.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-02-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-02-01.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-02-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-02-02.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-02-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-02-01.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-02-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-02-02.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-02-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/foo.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/foo.yang with 57% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-02-01.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-02-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-02-02.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-02-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160404.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160404.yang with 57% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160405.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160405.yang with 62% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160406.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160406.yang with 65% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20170406.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20170406.yang with 68% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/bar.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/bar.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/openconfig-extensions.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/semantic-version.yang with 51% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/bar.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/bar.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/bar.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/bar@2016-01-01.yin [moved from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/bar@2016-01-01.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/bar@2016-01-31.yin [moved from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/bar@2016-01-31.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/foo@2016-02-01.yin [moved from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/foo@2016-02-01.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/openconfig-extensions@2017-01-29.yin [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/bar@2016-01-01.yin [moved from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/bar@2016-01-01.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/bar@2016-01-31.yin [moved from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/bar@2016-01-31.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/foo@2016-02-01.yin [moved from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/foo@2016-02-01.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/openconfig-extensions@2016-01-29.yin [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/bar@2016-01-31.yin [moved from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/bar@2016-01-31.yin with 59% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/foo@2016-02-01.yin [moved from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/foo@2016-02-01.yin with 60% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/openconfig-extensions@2017-01-29.yin [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/bar@2016-01-03.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/bar@2016-01-04.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/bar@2016-01-04.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foobar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foobar@2016-01-31.yang with 74% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foobar@2016-02-28.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foobar@2016-02-28.yang with 74% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/bar@2016-01-03.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/bar@2016-01-04.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/bar@2016-01-04.yang with 66% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-01-31.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-02-27.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-02-27.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-02-28.yang [moved from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-02-28.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/openconfig-extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-3/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/basic/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/basic/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-03.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-03.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/bar.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-1/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-2/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-1/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-2/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-valid/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-valid/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-03.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/node-test/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/node-test/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/bar.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/semantic-version.yang [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/semantic-version@2016-02-02.yin [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/semantic-version@2016-02-02.yin [deleted file]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/semantic-version@2016-02-02.yin [deleted file]

index 3ce0b60fe4dd7446c038801c9eabdf454fd4eaaa..0019afff702a797e83b5029cf611f9ee8863372a 100644 (file)
@@ -256,7 +256,7 @@ public abstract class YangModelDependencyInfo {
     private static SemVer getSemanticVersion(final StatementContext statement, final String sourceName) {
         final List<StatementContext> subStatements = statement.statement();
         String semVerString = null;
-        final String semVerStmtName = SupportedExtensionsMapping.SEMANTIC_VERSION.getStatementName().getLocalName();
+        final String semVerStmtName = SupportedExtensionsMapping.OPENCONFIG_VERSION.getStatementName().getLocalName();
         for (final StatementContext subStatement : subStatements) {
             final String subStatementName = Utils.trimPrefix(subStatement.keyword().getText());
             if (semVerStmtName.equals(subStatementName)) {
index 77337197b990d5cadb6c70206c24999265531a61..42214a1fe9c84046f29981603d70ba8d912643e3 100644 (file)
@@ -58,7 +58,7 @@ public class ImportStatementDefinition extends
             .builder(YangStmtMapping.IMPORT)
             .addMandatory(YangStmtMapping.PREFIX)
             .addOptional(YangStmtMapping.REVISION_DATE)
-            .addOptional(SupportedExtensionsMapping.SEMANTIC_VERSION)
+            .addOptional(SupportedExtensionsMapping.OPENCONFIG_VERSION)
             .build();
 
     public ImportStatementDefinition() {
index 2fbdad58e6fd3ee36e41cd8e754b1a4d7b34ccbf..643fead841d64a8f9710ac2d7164b2e4dcf7c390 100644 (file)
@@ -77,7 +77,7 @@ public class ModuleStatementSupport extends
             .addAny(YangStmtMapping.TYPEDEF)
             .addAny(YangStmtMapping.USES)
             .addOptional(YangStmtMapping.YANG_VERSION)
-            .addOptional(SupportedExtensionsMapping.SEMANTIC_VERSION)
+            .addOptional(SupportedExtensionsMapping.OPENCONFIG_VERSION)
             .build();
 
     public ModuleStatementSupport() {
@@ -16,25 +16,25 @@ import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement
 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
 import org.opendaylight.yangtools.yang.parser.spi.meta.SemanticVersionNamespace;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.SemanticVersionEffectiveStatementImpl;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.OpenconfigVersionEffectiveStatementImpl;
 
 @Beta
-public final class SemanticVersionStatementImpl extends AbstractDeclaredStatement<SemVer> implements
+public final class OpenconfigVersionStatementImpl extends AbstractDeclaredStatement<SemVer> implements
         UnknownStatement<SemVer> {
     private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
-            SupportedExtensionsMapping.SEMANTIC_VERSION).build();
+            SupportedExtensionsMapping.OPENCONFIG_VERSION).build();
 
-    SemanticVersionStatementImpl(
+    OpenconfigVersionStatementImpl(
             final StmtContext<SemVer, UnknownStatement<SemVer>, ?> context) {
         super(context);
     }
 
-    public static class SemanticVersionSupport
+    public static class OpenconfigVersionSupport
             extends
             AbstractStatementSupport<SemVer, UnknownStatement<SemVer>, EffectiveStatement<SemVer, UnknownStatement<SemVer>>> {
 
-        public SemanticVersionSupport() {
-            super(SupportedExtensionsMapping.SEMANTIC_VERSION);
+        public OpenconfigVersionSupport() {
+            super(SupportedExtensionsMapping.OPENCONFIG_VERSION);
         }
 
         @Override
@@ -50,13 +50,13 @@ public final class SemanticVersionStatementImpl extends AbstractDeclaredStatemen
         @Override
         public UnknownStatement<SemVer> createDeclared(
                 final StmtContext<SemVer, UnknownStatement<SemVer>, ?> ctx) {
-            return new SemanticVersionStatementImpl(ctx);
+            return new OpenconfigVersionStatementImpl(ctx);
         }
 
         @Override
         public EffectiveStatement<SemVer, UnknownStatement<SemVer>> createEffective(
                 final StmtContext<SemVer, UnknownStatement<SemVer>, EffectiveStatement<SemVer, UnknownStatement<SemVer>>> ctx) {
-            return new SemanticVersionEffectiveStatementImpl(ctx);
+            return new OpenconfigVersionEffectiveStatementImpl(ctx);
         }
 
         @Override
index f21322162db5fd5f581c22f67be1df5007e5745b..8029cc75e137b75cc1e9a8ad5477583e77cdcf41 100644 (file)
@@ -16,16 +16,16 @@ import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
 import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
 import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AnyxmlSchemaLocationEffectiveStatementImpl;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.SemanticVersionEffectiveStatementImpl;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.OpenconfigVersionEffectiveStatementImpl;
 
 @Beta
 public enum SupportedExtensionsMapping implements StatementDefinition {
     ANYXML_SCHEMA_LOCATION("urn:opendaylight:yang:extension:yang-ext", "2013-07-09",
         AnyxmlSchemaLocationStatementImpl.class, AnyxmlSchemaLocationEffectiveStatementImpl.class,
         "anyxml-schema-location", "target-node", false),
-    SEMANTIC_VERSION("urn:opendaylight:yang:extension:semantic-version", "2016-02-02",
-        SemanticVersionStatementImpl.class, SemanticVersionEffectiveStatementImpl.class,
-        "semantic-version", "semantic-version", false);
+    OPENCONFIG_VERSION("http://openconfig.net/yang/openconfig-ext",
+        OpenconfigVersionStatementImpl.class, OpenconfigVersionEffectiveStatementImpl.class,
+        "openconfig-version", "semver", false);
 
     private final Class<? extends DeclaredStatement<?>> type;
     private final Class<? extends EffectiveStatement<?, ?>> effectiveType;
index 7b283fcb61bb7fc0f773005099184456315ccd10..99a6e9a3c041d8f5bac3cc6c772e2ab763d6d445 100644 (file)
@@ -143,7 +143,7 @@ public final class YangInferencePipeline {
             .addSupport(sourceLocal(BelongsToModuleContext.class))
             .addSupport(sourceLocal(QNameToStatementDefinition.class))
             .addSupport(sourceLocal(BelongsToPrefixToModuleName.class))
-            .addSupport(new SemanticVersionStatementImpl.SemanticVersionSupport())
+            .addSupport(new OpenconfigVersionStatementImpl.OpenconfigVersionSupport())
             .addSupport(global(SemanticVersionNamespace.class))
             .addSupport(global(SemanticVersionModuleNamespace.class))
             .addSupport(sourceLocal(ImpPrefixToSemVerModuleIdentifier.class))
index 46409984e62e9f69c6ca849cc2ca657326d6f4fc..00d6b0863d6caf2f3d586ef6ebfb92bd70f2aaf7 100644 (file)
@@ -93,7 +93,8 @@ abstract class AbstractEffectiveModule<D extends DeclaredStatement<String>> exte
         final YangVersionEffectiveStatementImpl yangVersionStmt = firstEffective(YangVersionEffectiveStatementImpl.class);
         this.yangVersion = (yangVersionStmt == null) ? YangVersion.VERSION_1 : yangVersionStmt.argument();
 
-        final SemanticVersionEffectiveStatementImpl semanticVersionStmt = firstEffective(SemanticVersionEffectiveStatementImpl.class);
+        final OpenconfigVersionEffectiveStatementImpl semanticVersionStmt =
+                firstEffective(OpenconfigVersionEffectiveStatementImpl.class);
         this.semanticVersion = (semanticVersionStmt == null) ? DEFAULT_SEMANTIC_VERSION : semanticVersionStmt.argument();
 
         final OrganizationEffectiveStatementImpl organizationStmt = firstEffective(OrganizationEffectiveStatementImpl.class);
@@ -18,12 +18,12 @@ import org.opendaylight.yangtools.yang.model.api.stmt.UnknownStatement;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
 
 @Beta
-public final class SemanticVersionEffectiveStatementImpl extends
+public final class OpenconfigVersionEffectiveStatementImpl extends
         UnknownEffectiveStatementBase<SemVer> {
 
     private final SchemaPath path;
 
-    public SemanticVersionEffectiveStatementImpl(
+    public OpenconfigVersionEffectiveStatementImpl(
             final StmtContext<SemVer, UnknownStatement<SemVer>, ?> ctx) {
         super(ctx);
         path = ctx.getParentContext().getSchemaPath().get().createChild(getNodeType());
@@ -62,7 +62,7 @@ public final class SemanticVersionEffectiveStatementImpl extends
         if (getClass() != obj.getClass()) {
             return false;
         }
-        SemanticVersionEffectiveStatementImpl other = (SemanticVersionEffectiveStatementImpl) obj;
+        OpenconfigVersionEffectiveStatementImpl other = (OpenconfigVersionEffectiveStatementImpl) obj;
         if (!Objects.equals(path, other.path)) {
             return false;
         }
index 30ff823413ca3ed5c1f7ee0d0c5516b05aabc589..e442bad03c07b60861136dc1e01df18943653275 100644 (file)
@@ -24,7 +24,7 @@ public class ImportStatementRfc7950Support extends ImportStatementDefinition {
             .builder(YangStmtMapping.IMPORT)
             .addMandatory(YangStmtMapping.PREFIX)
             .addOptional(YangStmtMapping.REVISION_DATE)
-            .addOptional(SupportedExtensionsMapping.SEMANTIC_VERSION)
+            .addOptional(SupportedExtensionsMapping.OPENCONFIG_VERSION)
             .addOptional(YangStmtMapping.DESCRIPTION)
             .addOptional(YangStmtMapping.REFERENCE)
             .build();
index 124dfabe4a1d5cd51b29dbb53e656ec916cc2c7f..2a99221f388eb0ab517ecb56179637fa7a4c4b3d 100644 (file)
@@ -44,7 +44,7 @@ public class ModuleStatementRfc7950Support extends ModuleStatementSupport {
             .addAny(YangStmtMapping.TYPEDEF)
             .addAny(YangStmtMapping.USES)
             .addMandatory(YangStmtMapping.YANG_VERSION)
-            .addOptional(SupportedExtensionsMapping.SEMANTIC_VERSION)
+            .addOptional(SupportedExtensionsMapping.OPENCONFIG_VERSION)
             .build();
 
     @Override
@@ -24,23 +24,23 @@ import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
 import org.opendaylight.yangtools.yang.parser.util.ASTSchemaSource;
 import org.opendaylight.yangtools.yang.parser.util.TextToASTTransformer;
 
-public class SemVerSharedSchemaRepositoryTest {
+public class OpenconfigVerSharedSchemaRepositoryTest {
 
     @Test
     public void testSemVerSharedSchemaRepository() throws Exception {
         final SharedSchemaRepository sharedSchemaRepository = new SharedSchemaRepository(
-                "sem-ver-shared-schema-repo-test");
+                "openconfig-ver-shared-schema-repo-test");
 
         final SettableSchemaProvider<ASTSchemaSource> bar = getImmediateYangSourceProviderFromResource(
-            "/semantic-version/semver-shared-schema-repository/bar@2016-01-01.yang");
+                "/openconfig-version/openconfigver-shared-schema-repository/bar@2016-01-01.yang");
         bar.register(sharedSchemaRepository);
         bar.setResult();
         final SettableSchemaProvider<ASTSchemaSource> foo = getImmediateYangSourceProviderFromResource(
-            "/semantic-version/semver-shared-schema-repository/foo.yang");
+                "/openconfig-version/openconfigver-shared-schema-repository/foo.yang");
         foo.register(sharedSchemaRepository);
         foo.setResult();
         final SettableSchemaProvider<ASTSchemaSource> semVer = getImmediateYangSourceProviderFromResource(
-            "/semantic-version/semver-shared-schema-repository/semantic-version.yang");
+                "/openconfig-version/openconfigver-shared-schema-repository/openconfig-extensions.yang");
         semVer.register(sharedSchemaRepository);
         semVer.setResult();
 
@@ -64,15 +64,15 @@ public class SemVerSharedSchemaRepositoryTest {
         final SharedSchemaRepository sharedSchemaRepository = new SharedSchemaRepository("shared-schema-repo-test");
 
         final SettableSchemaProvider<ASTSchemaSource> bar = getImmediateYangSourceProviderFromResource(
-            "/semantic-version/shared-schema-repository/bar@2016-01-01.yang");
+                "/openconfig-version/shared-schema-repository/bar@2016-01-01.yang");
         bar.register(sharedSchemaRepository);
         bar.setResult();
         final SettableSchemaProvider<ASTSchemaSource> foo = getImmediateYangSourceProviderFromResource(
-            "/semantic-version/shared-schema-repository/foo.yang");
+                "/openconfig-version/shared-schema-repository/foo.yang");
         foo.register(sharedSchemaRepository);
         foo.setResult();
         final SettableSchemaProvider<ASTSchemaSource> semVer = getImmediateYangSourceProviderFromResource(
-            "/semantic-version/shared-schema-repository/semantic-version.yang");
+                "/openconfig-version/shared-schema-repository/openconfig-extensions.yang");
         semVer.register(sharedSchemaRepository);
         semVer.setResult();
 
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.yangtools.yang.stmt.semver;
+package org.opendaylight.yangtools.yang.stmt.openconfigver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -21,16 +21,16 @@ import org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
 
-public class SemanticVersionBorderCaseTest {
+public class OpenconfigVersionBorderCaseTest {
 
     @Test
     public void borderCaseValidMajorTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/border-case/border-case-valid-major",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-valid-major",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -41,12 +41,12 @@ public class SemanticVersionBorderCaseTest {
 
     @Test
     public void borderCaseValidMinorTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/border-case/border-case-valid-minor",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-valid-minor",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -57,12 +57,12 @@ public class SemanticVersionBorderCaseTest {
 
     @Test
     public void borderCaseValidPatchTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/border-case/border-case-valid-patch",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-valid-patch",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -74,9 +74,9 @@ public class SemanticVersionBorderCaseTest {
     @Test
     public void borderCaseInvalidMajorTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/border-case/border-case-invalid-major",
+            StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-invalid-major",
                     StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid semantic version");
+            fail("Test should fail due to invalid openconfig version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(5.5.5)]."));
@@ -86,9 +86,9 @@ public class SemanticVersionBorderCaseTest {
     @Test
     public void borderCaseInvalidMinorTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/border-case/border-case-invalid-minor",
+            StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-invalid-minor",
                     StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid semantic version");
+            fail("Test should fail due to invalid openconfig version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(5.5.5)]."));
@@ -98,9 +98,9 @@ public class SemanticVersionBorderCaseTest {
     @Test
     public void borderCaseInvalidPatchTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/border-case/border-case-invalid-patch",
+            StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-invalid-patch",
                     StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid semantic version");
+            fail("Test should fail due to invalid openconfig version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(5.5.5)]."));
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.yangtools.yang.stmt.semver;
+package org.opendaylight.yangtools.yang.stmt.openconfigver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -21,18 +21,18 @@ import org.opendaylight.yangtools.yang.model.util.RevisionAwareXPathImpl;
 import org.opendaylight.yangtools.yang.model.util.SchemaContextUtil;
 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
 
-public class SemanticVersionComplexTest {
+public class OpenconfigVersionComplexTest {
 
     @Test
     public void complexTest1() throws Exception {
-        final SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/complex/complex-1",
+        final SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/complex/complex-1",
                 StatementParserMode.SEMVER_MODE);
         verifySchemaContextTest1(context);
     }
 
     @Test
     public void complexTest1Yang1_1() throws Exception {
-        final SchemaContext context = StmtTestUtils.parseYangSources("/rfc7950/semantic-version/complex-1",
+        final SchemaContext context = StmtTestUtils.parseYangSources("/rfc7950/openconfig-version/complex-1",
                 StatementParserMode.SEMVER_MODE);
         verifySchemaContextTest1(context);
     }
@@ -42,7 +42,7 @@ public class SemanticVersionComplexTest {
 
         final Module foo = context.findModuleByNamespace(URI.create("foo")).iterator().next();
         final Module semVer = context.findModuleByNamespace(
-            URI.create("urn:opendaylight:yang:extension:semantic-version")).iterator().next();
+            URI.create("http://openconfig.net/yang/openconfig-ext")).iterator().next();
 
         // check module versions
         assertEquals(SemVer.valueOf("1.3.95"), semVer.getSemanticVersion());
@@ -71,14 +71,14 @@ public class SemanticVersionComplexTest {
 
     @Test
     public void complexTest2() throws Exception {
-        final SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/complex/complex-2",
+        final SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/complex/complex-2",
                 StatementParserMode.SEMVER_MODE);
         verifySchemaContextTest2(context);
     }
 
     @Test
     public void complexTest2Yang1_1() throws Exception {
-        final SchemaContext context = StmtTestUtils.parseYangSources("/rfc7950/semantic-version/complex-2",
+        final SchemaContext context = StmtTestUtils.parseYangSources("/rfc7950/openconfig-version/complex-2",
                 StatementParserMode.SEMVER_MODE);
         verifySchemaContextTest2(context);
     }
@@ -88,7 +88,7 @@ public class SemanticVersionComplexTest {
 
         final Module foo = context.findModuleByNamespace(URI.create("foo")).iterator().next();
         final Module semVer = context.findModuleByNamespace(URI.create(
-            "urn:opendaylight:yang:extension:semantic-version")).iterator().next();
+            "http://openconfig.net/yang/openconfig-ext")).iterator().next();
 
         // check module versions
         assertEquals(SemVer.valueOf("2.5.50"), semVer.getSemanticVersion());
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.yangtools.yang.stmt.semver;
+package org.opendaylight.yangtools.yang.stmt.openconfigver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -21,11 +21,11 @@ import org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
 
-public class SemanticVersionDefaultsTest {
+public class OpenconfigVersionDefaultsTest {
 
     @Test
     public void defaultsTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/defaults/defaults",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/defaults/defaults",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
@@ -38,7 +38,7 @@ public class SemanticVersionDefaultsTest {
 
     @Test
     public void defaultMajorValidTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/defaults/default-major-valid",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/defaults/default-major-valid",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
@@ -52,9 +52,9 @@ public class SemanticVersionDefaultsTest {
     @Test
     public void defaultMajorInvalidTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/defaults/default-major-invalid",
+            StmtTestUtils.parseYangSources("/openconfig-version/defaults/default-major-invalid",
                 StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid semantic version");
+            fail("Test should fail due to invalid openconfig version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(0.0.0)]."));
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.yangtools.yang.stmt.semver;
+package org.opendaylight.yangtools.yang.stmt.openconfigver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -18,17 +18,17 @@ import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 import org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode;
 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
 
-public class SemanticVersionIgnoringRevisionTest {
+public class OpenconfigVersionIgnoringRevisionTest {
 
     @Test
     public void ignoringRevisionTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/ignoring-revision",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/ignoring-revision",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
         Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -38,12 +38,12 @@ public class SemanticVersionIgnoringRevisionTest {
 
     @Test
     public void ignoringRevision2Test() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/ignoring-revision-2",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/ignoring-revision-2",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
         Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
 
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.yangtools.yang.stmt.semver;
+package org.opendaylight.yangtools.yang.stmt.openconfigver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -21,15 +21,15 @@ import org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
 
-public class SemanticVersionImportTest {
+public class OpenconfigVersionImportTest {
 
     @Test
     public void importValidTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/import/import-valid",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/import/import-valid",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("1.0.0"), semVer.getSemanticVersion());
@@ -38,48 +38,48 @@ public class SemanticVersionImportTest {
     @Test
     public void importInvalidDeprecatedTest1() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/import/import-invalid-deprecated-1",
+            StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-deprecated-1",
                     StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid import of semantic-version module");
+            fail("Test should fail due to invalid import of openconfig-version module");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Unable to find module compatible with requested import " + "[semantic-version(1.0.0)]."));
+                    "Unable to find module compatible with requested import " + "[openconfig-extensions(1.0.0)]."));
         }
     }
 
     @Test
     public void importInvalidDeprecatedTest2() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/import/import-invalid-deprecated-2",
+            StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-deprecated-2",
                     StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid import of semantic-version module");
+            fail("Test should fail due to invalid import of openconfig-version module");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Unable to find module compatible with requested import " + "[semantic-version(0.9.9)]."));
+                    "Unable to find module compatible with requested import " + "[openconfig-extensions(0.9.9)]."));
         }
     }
 
     @Test
     public void importInvalidNotsufficientTest1() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/import/import-invalid-notsufficient-1",
+            StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-notsufficient-1",
                     StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid import of semantic-version module");
+            fail("Test should fail due to invalid import of openconfig-version module");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Unable to find module compatible with requested import " + "[semantic-version(2.0.0)]."));
+                    "Unable to find module compatible with requested import " + "[openconfig-extensions(2.0.0)]."));
         }
     }
 
     @Test
     public void importInvalidNotsufficientTest2() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/import/import-invalid-notsufficient-2",
+            StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-notsufficient-2",
                     StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid import of semantic-version module");
+            fail("Test should fail due to invalid import of openconfig-version module");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Unable to find module compatible with requested import " + "[semantic-version(2.0.5)]."));
+                    "Unable to find module compatible with requested import " + "[openconfig-extensions(2.0.5)]."));
         }
     }
 }
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.yangtools.yang.stmt.semver;
+package org.opendaylight.yangtools.yang.stmt.openconfigver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -23,14 +23,14 @@ import org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
 
-public class SemanticVersionMultipleImportTest {
+public class OpenconfigVersionMultipleImportTest {
 
     @Test
     public void multipleInvalidDeprecatedTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/multiple/multiple-invalid-deprecated",
+            StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-invalid-deprecated",
                     StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid semantic version");
+            fail("Test should fail due to invalid openconfig version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(1.0.0)]."));
@@ -40,9 +40,9 @@ public class SemanticVersionMultipleImportTest {
     @Test
     public void multipleInvalidNosufficientTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/multiple/multiple-invalid-nosufficient",
+            StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-invalid-nosufficient",
                     StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid semantic version");
+            fail("Test should fail due to invalid openconfig version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(2.5.5)]."));
@@ -51,12 +51,12 @@ public class SemanticVersionMultipleImportTest {
 
     @Test
     public void multipleValidDefaultsTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/multiple/multiple-valid-defaults",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-valid-defaults",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -67,12 +67,12 @@ public class SemanticVersionMultipleImportTest {
 
     @Test
     public void multipleValidSpecifiedTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/multiple/multiple-valid-specified",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-valid-specified",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.yangtools.yang.stmt.semver;
+package org.opendaylight.yangtools.yang.stmt.openconfigver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -18,17 +18,17 @@ import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 import org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode;
 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
 
-public class SemanticVersionPositionTest {
+public class OpenconfigVersionPositionTest {
 
     @Test
     public void positionHeadTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/position/position-head",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/position/position-head",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
         Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -38,13 +38,13 @@ public class SemanticVersionPositionTest {
 
     @Test
     public void positionMiddleTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/position/position-middle",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/position/position-middle",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
         Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -54,13 +54,13 @@ public class SemanticVersionPositionTest {
 
     @Test
     public void positiontailTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/position/position-tail",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/position/position-tail",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
         Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
similarity index 83%
rename from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionTest.java
rename to yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionTest.java
index 23c2b104663896acff09f55a86eb9ac46e5eaa4e..f46f8cbcd3d522041e05bf4011ced512e98842fa 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.yangtools.yang.stmt.semver;
+package org.opendaylight.yangtools.yang.stmt.openconfigver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -27,16 +27,16 @@ import org.opendaylight.yangtools.yang.model.util.SchemaContextUtil;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
 
-public class SemanticVersionTest {
+public class OpenconfigVersionTest {
     @Test
     public void basicTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/basic",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic",
             StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
         Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -46,13 +46,13 @@ public class SemanticVersionTest {
 
     @Test
     public void basicTest2() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/basic-2",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic-2",
             StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
         Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -62,12 +62,12 @@ public class SemanticVersionTest {
 
     @Test
     public void basicTest3() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/basic-3",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic-3",
             StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -76,12 +76,12 @@ public class SemanticVersionTest {
 
     @Test
     public void basicImportTest1() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/basic-import-1",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic-import-1",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -92,12 +92,12 @@ public class SemanticVersionTest {
 
     @Test
     public void multipleModulesTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/multiple-modules",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/multiple-modules",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -109,8 +109,8 @@ public class SemanticVersionTest {
     @Test
     public void basicImportErrTest1() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/basic-import-invalid-1", StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid semantic version");
+            StmtTestUtils.parseYangSources("/openconfig-version/basic-import-invalid-1", StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid openconfig version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(0.1.2)]."));
@@ -120,8 +120,8 @@ public class SemanticVersionTest {
     @Test
     public void basicImportErrTest2() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/semantic-version/basic-import-invalid-2", StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid semantic version");
+            StmtTestUtils.parseYangSources("/openconfig-version/basic-import-invalid-2", StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid openconfig version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(0.1.2)]."));
@@ -130,12 +130,12 @@ public class SemanticVersionTest {
 
     @Test
     public void nodeTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/node-test",
+        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/node-test",
             StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -6,7 +6,7 @@
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 
-package org.opendaylight.yangtools.yang.stmt.semver.yin;
+package org.opendaylight.yangtools.yang.stmt.openconfigver.yin;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -25,17 +25,17 @@ import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
 import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
 
-public class YinSemanticVersionTest {
+public class YinOpenconfigVersionTest {
 
     @Test
     public void basicTest() throws SourceException, FileNotFoundException, ReactorException, URISyntaxException {
-        SchemaContext context = StmtTestUtils.parseYinSources("/semantic-version/yin-input/basic",
+        SchemaContext context = StmtTestUtils.parseYinSources("/openconfig-version/yin-input/basic",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
         Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -45,12 +45,12 @@ public class YinSemanticVersionTest {
 
     @Test
     public void basicImportTest1() throws SourceException, FileNotFoundException, ReactorException, URISyntaxException {
-        SchemaContext context = StmtTestUtils.parseYinSources("/semantic-version/yin-input/basic-import",
+        SchemaContext context = StmtTestUtils.parseYinSources("/openconfig-version/yin-input/basic-import",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
+        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
                 .iterator().next();
 
         assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
@@ -63,8 +63,8 @@ public class YinSemanticVersionTest {
     public void basicImportErrTest1() throws SourceException, FileNotFoundException, ReactorException,
             URISyntaxException {
         try {
-            StmtTestUtils.parseYinSources("/semantic-version/yin-input/basic-import-invalid", StatementParserMode.SEMVER_MODE);
-            fail("Test should fail due to invalid semantic version");
+            StmtTestUtils.parseYinSources("/openconfig-version/yin-input/basic-import-invalid", StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid openconfig version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(0.1.2)]."));
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/bar.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/bar.yang
index 5664e68ba9bd9841ede818757295ff2b2684d010..64c9a192545d001325d6b9d48961b669e757b2b3 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02;}
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29;}
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    sv:semantic-version "0.1.2";
+    oc-ext:openconfig-version "0.1.2";
 
     container root {
     }
similarity index 66%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/foo.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/foo.yang
index 01fe8e8905bf6797139617b7e96b6b10dc703be5..22a7e1571feec6989a9efa14f8cf70b8383a44f9 100644 (file)
@@ -3,13 +3,13 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02;}
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29;}
     import bar { prefix bar; revision-date 2016-01-31;}
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    sv:semantic-version "0.1.1";
+    oc-ext:openconfig-version "0.1.1";
 
     container root {
     }
similarity index 51%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/semantic-version.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/openconfig-extensions.yang
index ca84e112e2d8f0de249be7cbeacd5d5006695b19..23e90e3f34da584db4502f935127918e1bfebed7 100644 (file)
@@ -1,14 +1,40 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
 
-    revision 2016-02-02 {
-        description "Initial verison";
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
     }
 
-    extension semantic-version {
-        argument "semantic-version" {
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
             yin-element false;
         }
         description
@@ -44,5 +70,15 @@ module semantic-version {
             The version number is stored in the module meta-data.";
     }
 
-    sv:semantic-version "0.0.1";
-}
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/basic-3/foo.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-3/foo.yang
index 537f5d7ac675cf509d193d98c6e91c471ad1a49a..3945e5439d4f717ca24075b3875a535ab212f5ae 100644 (file)
@@ -3,12 +3,12 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    sv:semantic-version "0.1.1";
+    oc-ext:openconfig-version "0.1.1";
 
     container root {
     }
similarity index 51%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/semantic-version.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-3/openconfig-extensions.yang
index 14dc274ebe541eb600b90fe8ff8b12dd2146360a..23e90e3f34da584db4502f935127918e1bfebed7 100644 (file)
@@ -1,15 +1,40 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1.1;
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
 
-    revision 2016-02-02 {
-        description "Initial verison";
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
     }
-    sv:semantic-version "1.3.95";
 
-    extension semantic-version {
-        argument "semantic-version" {
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
             yin-element false;
         }
         description
@@ -44,4 +69,16 @@ module semantic-version {
 
             The version number is stored in the module meta-data.";
     }
-}
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/bar@2016-01-01.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/bar@2016-01-01.yang
index 54da0db564acb30c33b472f488298b87bd9d699d..2a435be8fa671b62d9f3dd7e4f37fe93d3307f6e 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-01" {
         description "Initial version";
     }
-    sv:semantic-version "0.1.2";
+    oc-ext:openconfig-version "0.1.2";
 
     container root {
     }
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/bar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/bar@2016-01-31.yang
index d3d101b61bebfb796912903f814ff5f4ea417059..2e84793fd79b942dca1366d9c86e4e044882cd05 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    sv:semantic-version "1.1.3";
+    oc-ext:openconfig-version "1.1.2";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/foo.yang
new file mode 100644 (file)
index 0000000..1a1c25a
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "0.1.2";}
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
similarity index 51%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/semantic-version.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/openconfig-extensions.yang
index dd92de6883a7ccae573bf8ec8bfeb3e835632a68..23e90e3f34da584db4502f935127918e1bfebed7 100644 (file)
@@ -1,15 +1,40 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
 
-    revision 2016-02-02 {
-        description "Initial verison";
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
     }
-    sv:semantic-version "0.0.1";
 
-    extension semantic-version {
-        argument "semantic-version" {
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
             yin-element false;
         }
         description
@@ -44,4 +69,16 @@ module semantic-version {
 
             The version number is stored in the module meta-data.";
     }
-}
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/bar@2016-01-01.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/bar@2016-01-01.yang
index 2e94728149331ed93b6cdb716ad14c217781744a..e1c85adb8b09e6cfeef6d7663345aa9d20eab90f 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-01" {
         description "Initial version";
     }
-    sv:semantic-version "1.1.2";
+    oc-ext:openconfig-version "1.1.2";
 
     container root {
     }
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/bar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/bar@2016-01-31.yang
index e61a340d48c82de1f0465330fef6a6af22c3dbe4..4f4f69514c6de2718f7f2381c495bea95990ea63 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    sv:semantic-version "1.1.2";
+    oc-ext:openconfig-version "1.1.3";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/foo.yang
new file mode 100644 (file)
index 0000000..1a1c25a
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "0.1.2";}
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/basic/bar.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/bar.yang
index 2adc1363bac65639706e59e13ebc9fe5ba753a08..2e84793fd79b942dca1366d9c86e4e044882cd05 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    sv:semantic-version "0.1.2";
+    oc-ext:openconfig-version "1.1.2";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/foo.yang
new file mode 100644 (file)
index 0000000..2b37c24
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; revision-date 2016-01-31; oc-ext:openconfig-version "0.1.2";}
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/bar.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/basic/bar.yang
index e7fe6096d5668ffe0e4017b7cc9df8396bb871c6..b973ab3f4ccd73b39b6844b3f6c6c4996061b4b1 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    sv:semantic-version "1.0.0";
+    oc-ext:openconfig-version "0.1.2";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/basic/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic/foo.yang
new file mode 100644 (file)
index 0000000..2b37c24
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; revision-date 2016-01-31; oc-ext:openconfig-version "0.1.2";}
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/basic/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-01" {
         description "Initial version";
     }
-    sv:semantic-version "2.5.5";
+    oc-ext:openconfig-version "2.5.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-02" {
         description "Initial version";
     }
-    sv:semantic-version "3.5.5";
+    oc-ext:openconfig-version "3.5.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-03" {
         description "Initial version";
     }
-    sv:semantic-version "4.5.5";
+    oc-ext:openconfig-version "4.5.5";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/foo.yang
new file mode 100644 (file)
index 0000000..4edb32e
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "5.5.5"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-01" {
         description "Initial version";
     }
-    sv:semantic-version "5.2.5";
+    oc-ext:openconfig-version "5.2.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-02" {
         description "Initial version";
     }
-    sv:semantic-version "5.3.5";
+    oc-ext:openconfig-version "5.3.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-03" {
         description "Initial version";
     }
-    sv:semantic-version "5.4.5";
+    oc-ext:openconfig-version "5.4.5";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/foo.yang
new file mode 100644 (file)
index 0000000..4edb32e
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "5.5.5"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..68b2f66
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "5.5.2";
+
+    container root {
+    }
+}
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-02" {
         description "Initial version";
     }
-    sv:semantic-version "5.5.3";
+    oc-ext:openconfig-version "5.5.3";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-03" {
         description "Initial version";
     }
-    sv:semantic-version "5.5.4";
+    oc-ext:openconfig-version "5.5.4";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/foo.yang
new file mode 100644 (file)
index 0000000..4edb32e
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "5.5.5"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..38172e4
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "4.5.5";
+
+    container root {
+    }
+}
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-02" {
         description "Initial version";
     }
-    sv:semantic-version "5.5.5";
+    oc-ext:openconfig-version "5.5.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-03" {
         description "Initial version";
     }
-    sv:semantic-version "6.5.5";
+    oc-ext:openconfig-version "6.5.5";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/foo.yang
new file mode 100644 (file)
index 0000000..4edb32e
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "5.5.5"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..5f6dfc8
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "5.4.5";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-02.yang
new file mode 100644 (file)
index 0000000..2221251
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-02" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "5.5.5";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-03.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-03.yang
new file mode 100644 (file)
index 0000000..0092918
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-03" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "5.6.5";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/foo.yang
new file mode 100644 (file)
index 0000000..4edb32e
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "5.5.5"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..6f0b2ae
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "5.5.4";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-02.yang
new file mode 100644 (file)
index 0000000..2221251
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-02" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "5.5.5";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-03.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-03.yang
new file mode 100644 (file)
index 0000000..2b35449
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-03" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "5.5.6";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/foo.yang
new file mode 100644 (file)
index 0000000..4edb32e
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "5.5.5"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 64%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/bar@2016-01-03.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/bar@2016-01-03.yang
index a7b14f1dfe6649d8952ced9e9765031eaf19b08a..138dbad9fdce674ed1c8a0be5fd1c9fbce790409 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "1.2.012"; }
-    import foobar { prefix foobar; sv:semantic-version "2.25.3"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.012"; }
+    import foobar { prefix foobar; oc-ext:openconfig-version "2.25.3"; }
 
     revision "2016-01-03" {
         description "Imported version";
     }
-    sv:semantic-version "1.2.6";
+    oc-ext:openconfig-version "1.2.6";
 
     container root {
         container test-container {
similarity index 64%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/bar@2016-01-04.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/bar@2016-01-04.yang
index eaff86f9c6b3fa09e6f0f643fa12bdb17a7d2bc5..10d176b9f5398f476e3cb593bb5520503a9165a6 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "1.2.210"; }
-    import foobar { prefix foobar; sv:semantic-version "2.25.3"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.210"; }
+    import foobar { prefix foobar; oc-ext:openconfig-version "2.25.3"; }
 
     revision "2016-01-04" {
         description "Not-imported version";
     }
-    sv:semantic-version "2.200.200";
+    oc-ext:openconfig-version "2.200.200";
 
     container root {
         container test-container {
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foo.yang
new file mode 100644 (file)
index 0000000..9caffd9
--- /dev/null
@@ -0,0 +1,13 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.0.0"; }
+    import bar { prefix bar; oc-ext:openconfig-version "1.2.5"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "1.50.02";
+}
similarity index 74%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foobar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foobar@2016-01-31.yang
index 6efe81dfc90d03e1f9aca2fc8973c6d661ac6a7d..173082532df8c93de52e88f18681894f56eb53f1 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "1.2.95"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.95"; }
 
     revision "2016-01-31" {
         description "Not-imported version";
     }
-    sv:semantic-version "2.25.2";
+    oc-ext:openconfig-version "2.25.2";
 
     grouping test-grouping {
         leaf name {
similarity index 74%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foobar@2016-02-28.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foobar@2016-02-28.yang
index 867d25eb0bb3944d629ba1a3c1936d9965aa3ca5..5e647e9c30071f3c9d08743500ade1aa563f53f1 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "1.3.95"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.3.95"; }
 
     revision "2016-02-28" {
         description "Imported version";
     }
-    sv:semantic-version "2.26.465";
+    oc-ext:openconfig-version "2.26.465";
 
     grouping test-grouping {
         leaf name {
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..6cff937
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "1.3.95";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 64%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/bar@2016-01-03.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/bar@2016-01-03.yang
index f11bdb094314e746b5e024f6265adcb560fbbaf3..fe922ff142d25076d2c8ba5ea0fed862bd118487 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "2.0.40"; }
-    import foobar { prefix foobar; sv:semantic-version "7.12.54"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.0.40"; }
+    import foobar { prefix foobar; oc-ext:openconfig-version "7.12.54"; }
 
     revision "2016-01-03" {
         description "Imported version";
     }
-    sv:semantic-version "4.9.8";
+    oc-ext:openconfig-version "4.9.8";
 
     augment "/foobar:root/foobar:test-container" {
         leaf should-present-leaf-1 {
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/bar@2016-01-04.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/bar@2016-01-04.yang
index 1066b8a9b6e2eb7a631e115763b3c8b8369acdf5..c232860931c742e2d24057333a080b48e58a3242 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "2.0.50"; }
-    import foobar { prefix foobar; sv:semantic-version "7.12.54"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.0.50"; }
+    import foobar { prefix foobar; oc-ext:openconfig-version "7.12.54"; }
 
     revision "2016-01-04" {
         description "Not-imported version";
     }
-    sv:semantic-version "3.0.5";
+    oc-ext:openconfig-version "3.0.5";
 
     augment "/foobar:root/foobar:test-container" {
         leaf should-not-be-present-leaf-1 {
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foo.yang
new file mode 100644 (file)
index 0000000..5f53491
--- /dev/null
@@ -0,0 +1,13 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.40"; }
+    import bar { prefix bar; oc-ext:openconfig-version "4.1.1"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "2.32.2";
+}
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-01-31.yang
index 435bea628d3b8a6d1348597f72bb76abbf450577..7c7ac1aaa32c7bfcc7780572e3408da705a0b8d7 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "2.1.950"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.1.950"; }
 
     revision "2016-01-31" {
         description "Not-imported version";
     }
-    sv:semantic-version "8.0.0";
+    oc-ext:openconfig-version "8.0.0";
 
     container root {
         leaf included-not-correct-mark {
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-02-27.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-02-27.yang
index 8b8f48e1a7ac9bf6a8dffaa522e43ccbb193cdcb..930c1162f489b549a1ecc8de7a025f7e1e4fb41f 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "2.5.50"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
 
     revision "2016-02-27" {
         description "Not-imported version";
     }
-    sv:semantic-version "7.13.0";
+    oc-ext:openconfig-version "7.13.0";
 
     container root {
         leaf included-not-correct-mark {
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-02-28.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-02-28.yang
index c45a020a521a42bf42494bc4f5b6f7ab362db51a..676834c3dd03464b2480b6d7bb8a0abe35bed8eb 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "2.5.50"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
 
     revision "2016-02-28" {
         description "Imported version";
     }
-    sv:semantic-version "7.13.99";
+    oc-ext:openconfig-version "7.13.99";
 
     container root {
         leaf included-correct-mark {
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..9b021b6
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "2.5.50";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/bar.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/bar.yang
index e61a340d48c82de1f0465330fef6a6af22c3dbe4..049c662137d62ab1a73c89aca90899c7e9b9262e 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    sv:semantic-version "1.1.2";
+    oc-ext:openconfig-version "1.0.0";
 
     container root {
     }
similarity index 67%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/foo.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/foo.yang
index e81c79130bed5108131912a36ca2a4386c17e616..3db561357f1a38641487e9bbc5997613706a6b55 100644 (file)
@@ -3,7 +3,7 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
     import bar { prefix bar; revision-date 2016-01-31; }
 
     revision "2016-02-01" {
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/bar.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/bar.yang
new file mode 100644 (file)
index 0000000..62e0506
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-31" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.99.99";
+
+    container root {
+    }
+}
similarity index 67%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/foo.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/foo.yang
index e81c79130bed5108131912a36ca2a4386c17e616..3db561357f1a38641487e9bbc5997613706a6b55 100644 (file)
@@ -3,7 +3,7 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
     import bar { prefix bar; revision-date 2016-01-31; }
 
     revision "2016-02-01" {
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..2a435be
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.2";
+
+    container root {
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/bar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/bar@2016-01-31.yang
index e61a340d48c82de1f0465330fef6a6af22c3dbe4..2e84793fd79b942dca1366d9c86e4e044882cd05 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    sv:semantic-version "1.1.2";
+    oc-ext:openconfig-version "1.1.2";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/foo.yang
new file mode 100644 (file)
index 0000000..2b37c24
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; revision-date 2016-01-31; oc-ext:openconfig-version "0.1.2";}
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..2a435be
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.2";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/foo.yang
new file mode 100644 (file)
index 0000000..2b37c24
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; revision-date 2016-01-31; oc-ext:openconfig-version "0.1.2";}
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-1/foo.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-1/foo.yang
index a6c665bd3ec1ef069e2107e197536b370eb2a85a..7d043d9f43bd2e610cb7451701d16a6875bf4c0d 100644 (file)
@@ -3,7 +3,7 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "1.0.0"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "1.0.0"; }
 
     revision "2016-02-01" {
         description "Initial version";
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-1/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-1/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..4601af9
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "2.0.0";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-2/foo.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-2/foo.yang
index d069eef1cbaebf84a6b8f5716187ab443161e498..6a217a9e2229b399bc259b3ac7c2b2224ac21157 100644 (file)
@@ -3,7 +3,7 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "2.0.5"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.9.9"; }
 
     revision "2016-02-01" {
         description "Initial version";
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-2/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-2/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..a310b5c
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "1.0.0";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-2/foo.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-1/foo.yang
index eacb99e2bfdea73a0ffb52c557936583fb72f208..12837d617b4e4a8416f16d7ec747b94d6cd403af 100644 (file)
@@ -3,7 +3,7 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.9.9"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "2.0.0"; }
 
     revision "2016-02-01" {
         description "Initial version";
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-1/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-1/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..a310b5c
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "1.0.0";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-1/foo.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-2/foo.yang
index 74446cc94063468775ca1af615e40f1e9e3ac94e..987eea37ca228f426e53c9e8e21e0566ac7c4873 100644 (file)
@@ -3,7 +3,7 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "2.0.0"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "2.0.5"; }
 
     revision "2016-02-01" {
         description "Initial version";
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-2/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-2/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..4601af9
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "2.0.0";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-valid/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-valid/foo.yang
new file mode 100644 (file)
index 0000000..7d043d9
--- /dev/null
@@ -0,0 +1,14 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "1.0.0"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-valid/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-valid/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..a310b5c
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "1.0.0";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..ff09241
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-02.yang
new file mode 100644 (file)
index 0000000..4280db0
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-02" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.2";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-03.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-03.yang
new file mode 100644 (file)
index 0000000..c2ff5a9
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-03" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.3";
+
+    container root {
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-04.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-04.yang
index adb243687a5098453fae774102ed1423028570c7..afa6b301630add2c2401ed7b25d3a74758e2e7c9 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-04" {
         description "Initial version";
     }
-    sv:semantic-version "0.10.4";
+    oc-ext:openconfig-version "0.10.4";
 
     container root {
     }
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-31.yang
index e61a340d48c82de1f0465330fef6a6af22c3dbe4..2e84793fd79b942dca1366d9c86e4e044882cd05 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    sv:semantic-version "1.1.2";
+    oc-ext:openconfig-version "1.1.2";
 
     container root {
     }
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-02-28.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-02-28.yang
index b4a6511ef43c4d3a1e54b8da84c6a1affdc9ac27..c6968db878f8e3564450a6fb5483464e0b550509 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-02-28" {
         description "Initial version";
     }
-    sv:semantic-version "1.2.28";
+    oc-ext:openconfig-version "1.2.28";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/foo.yang
new file mode 100644 (file)
index 0000000..1a1c25a
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "0.1.2";}
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..f701a5b
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "2.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-01-02.yang
new file mode 100644 (file)
index 0000000..c65cd27
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-02" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "2.1.2";
+
+    container root {
+    }
+}
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    sv:semantic-version "4.1.1";
+    oc-ext:openconfig-version "4.1.1";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-02-02" {
         description "Initial version";
     }
-    sv:semantic-version "5.0.0";
+    oc-ext:openconfig-version "5.0.0";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/foo.yang
new file mode 100644 (file)
index 0000000..243aa35
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; revision-date 2016-01-31; oc-ext:openconfig-version "1.0.0"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..ae8c8d5
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "2.0.0";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-01-02.yang
new file mode 100644 (file)
index 0000000..7aff7c5
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-02" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "2.1.0";
+
+    container root {
+    }
+}
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    sv:semantic-version "2.5.0";
+    oc-ext:openconfig-version "2.5.0";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-02-02" {
         description "Initial version";
     }
-    sv:semantic-version "2.5.4";
+    oc-ext:openconfig-version "2.5.4";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/foo.yang
new file mode 100644 (file)
index 0000000..f5c591b
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "2.5.5"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..5679d89
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.0.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-01-02.yang
new file mode 100644 (file)
index 0000000..0f94048
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-02" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.0";
+
+    container root {
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-02-01.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-02-01.yang
index 4405fa975bfec2e6cb60e77b4d3532baefbebe34..6a2560ad18fae5b22768e3a6b473836a1599385f 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    sv:semantic-version "0.9.5";
+    oc-ext:openconfig-version "0.9.5";
 
     container root {
     }
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-02-02.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-02-02.yang
index 54506080ba0688778dc8ec33edb6ed05b76fc30a..d343e2a047a7c7ea031b231fe5a2840b11a15ff9 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-02-02" {
         description "Initial version";
     }
-    sv:semantic-version "1.0.0";
+    oc-ext:openconfig-version "1.0.0";
 
     container root {
     }
similarity index 57%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/foo.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/foo.yang
index 3da8de0a25950e599c5c00693065dd2b4d81d178..25ec2fb4c9ea9da2e7bf78f33d17652fb644908d 100644 (file)
@@ -3,13 +3,13 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
     import bar { prefix bar; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    sv:semantic-version "0.1.1";
+    oc-ext:openconfig-version "0.1.1";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..720eee2
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "4.4.0";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-01-02.yang
new file mode 100644 (file)
index 0000000..a6116f3
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-02" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "5.5.0";
+
+    container root {
+    }
+}
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    sv:semantic-version "5.5.5";
+    oc-ext:openconfig-version "5.5.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-02-02" {
         description "Initial version";
     }
-    sv:semantic-version "5.5.6";
+    oc-ext:openconfig-version "5.5.6";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/foo.yang
new file mode 100644 (file)
index 0000000..4edb32e
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; oc-ext:openconfig-version "5.5.5"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 57%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160404.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160404.yang
index 69270ae68549da7ac4717e767eaaa1795328a177..5e70700d795606d455a9b43c6ff17cc43233c244 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
     
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision 2016-04-04 {
         description "test";
     }
     
-    sv:semantic-version "2016.4.4";
+    oc-ext:openconfig-version "2016.4.4";
 
     grouping grp {
         container con20160404 {
similarity index 62%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160405.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160405.yang
index f2bc4bee733fcbd66c611023111883669bb2dce3..97faa03d8c3069591841392baf2c3d4cb99da785 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
     
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision 2016-04-05 {
         description "test";
     }
     
-    sv:semantic-version "2016.4.5";
+    oc-ext:openconfig-version "2016.4.5";
 
     grouping grp {
         container con20160404 {
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160406.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160406.yang
index 46d63f075131e807f11c53cd16cc0c7f51973b2c..d2bd0f3711f60530a1731412973c45bf72b23cb5 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
     
     revision 2016-04-06 {
         description "test";
     }
     
-    sv:semantic-version "2016.4.6";
+    oc-ext:openconfig-version "2016.4.6";
 
     grouping grp {
         container con20160404 {
similarity index 68%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20170406.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20170406.yang
index 21066d44e6fd154449898c295e820488a4ba7c9b..bff38fc2cf9e910be41aff53419e4056617b9e86 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
     
     revision 2017-04-06 {
         description "test";
     }
     
-    sv:semantic-version "2017.4.6";
+    oc-ext:openconfig-version "2017.4.6";
 
     grouping grp {
         container con20160404 {
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/foo.yang
new file mode 100644 (file)
index 0000000..c723cc5
--- /dev/null
@@ -0,0 +1,18 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; revision-date 2017-04-06; oc-ext:openconfig-version "2016.4.5"; }
+
+    revision 2016-01-01 {
+        description "test";
+    }
+    
+    oc-ext:openconfig-version "2016.1.1";
+
+    container foo-root {
+        uses bar:grp;
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..2a435be
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.2";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/foo.yang
new file mode 100644 (file)
index 0000000..2b37c24
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; revision-date 2016-01-31; oc-ext:openconfig-version "0.1.2";}
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/bar.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/bar.yang
index 868ce014a040b17dade124bfd245379055b30d10..9e6429c7b2bc6f6c71b477f74a43dd43a5d6f24c 100644 (file)
@@ -1,11 +1,11 @@
 module bar {
-    sv:semantic-version "0.1.2";
+    oc-ext:openconfig-version "0.1.2";
 
     namespace "bar";
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/foo.yang
new file mode 100644 (file)
index 0000000..41b5fdf
--- /dev/null
@@ -0,0 +1,17 @@
+module foo {
+    oc-ext:openconfig-version "0.1.1";
+    import bar { prefix bar; revision-date 2016-01-31; oc-ext:openconfig-version "0.1.2";}
+
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+
+    container root {
+    }
+}
similarity index 51%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/semantic-version.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/openconfig-extensions.yang
index 3879c0670b4cdb0231b20b5b1cb6b6864dc06f96..43c5f3a2bf264ef7e23a2e827939d4e5c2433c47 100644 (file)
@@ -1,16 +1,39 @@
-module semantic-version {
-    sv:semantic-version "0.0.1";
+module openconfig-extensions {
+    oc-ext:openconfig-version "0.0.1";
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
 
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
+    organization "OpenConfig working group";
 
-    revision 2016-02-02 {
-        description "Initial verison";
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
     }
 
-    extension semantic-version {
-        argument "semantic-version" {
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    extension openconfig-version {
+        argument "semver" {
             yin-element false;
         }
         description
@@ -45,4 +68,16 @@ module semantic-version {
 
             The version number is stored in the module meta-data.";
     }
-}
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/bar.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/bar.yang
new file mode 100644 (file)
index 0000000..b973ab3
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-31" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.2";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/foo.yang
new file mode 100644 (file)
index 0000000..2b37c24
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; revision-date 2016-01-31; oc-ext:openconfig-version "0.1.2";}
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/bar.yang
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/bar.yang
index 8ce6838c35872adb3315333a034f6580ab6ffac6..65b82d4a657f202abf4d52c4fc75d486ebbb9ce2 100644 (file)
@@ -3,7 +3,7 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
@@ -12,5 +12,5 @@ module bar {
     container root {
     }
 
-    sv:semantic-version "0.1.2";
+    oc-ext:openconfig-version "0.1.2";
 }
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/foo.yang
new file mode 100644 (file)
index 0000000..005ef0b
--- /dev/null
@@ -0,0 +1,17 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+
+    container root {
+    }
+
+    oc-ext:openconfig-version "0.1.1";
+    import bar { prefix bar; revision-date 2016-01-31; oc-ext:openconfig-version "0.1.2";}
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..40d9fb9
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/bar@2016-01-01.yang
new file mode 100644 (file)
index 0000000..2a435be
--- /dev/null
@@ -0,0 +1,15 @@
+module bar {
+    namespace "bar";
+    prefix bar;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+
+    revision "2016-01-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.2";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/foo.yang
new file mode 100644 (file)
index 0000000..67ef067
--- /dev/null
@@ -0,0 +1,16 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1;
+
+    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import bar { prefix bar; revision-date 2016-01-01; oc-ext:openconfig-version "0.1.2";}
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "0.1.1";
+
+    container root {
+    }
+}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..23e90e3
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "0.0.1";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/bar@2016-01-01.yin
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/bar@2016-01-01.yin
index 6b4cfb52471eee86f83974871d12aaa2746bd72a..60c968dfea7ba79f70640d25e77bd982ab265356 100644 (file)
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:bar="bar"
-        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="bar">
+        xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext" name="bar">
     <yang-version value="1"></yang-version>
     <namespace uri="bar"></namespace>
     <prefix value="bar"></prefix>
-    <import module="semantic-version">
-        <prefix value="sv"></prefix>
+    <import module="openconfig-extensions">
+        <prefix value="oc-ext"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
+        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
     </import>
     <organization>
         <text></text>
@@ -16,7 +16,7 @@
         <text></text>
     </contact>
     <revision date="2016-01-01"></revision>
-    <sv:semantic-version semantic-version="1.1.2"></sv:semantic-version>
+    <oc-ext:openconfig-version semver="1.1.2"></oc-ext:openconfig-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/bar@2016-01-31.yin
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/bar@2016-01-31.yin
index b3fe6a230a4044961591025040e946b6a9e0c98d..31f989b3bdc6d8729e47633271f0a8591fd3e5e3 100644 (file)
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:bar="bar"
-        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="bar">
+        xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext" name="bar">
     <yang-version value="1"></yang-version>
     <namespace uri="bar"></namespace>
     <prefix value="bar"></prefix>
-    <import module="semantic-version">
-        <prefix value="sv"></prefix>
+    <import module="openconfig-extensions">
+        <prefix value="oc-ext"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
+        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
     </import>
     <organization>
         <text></text>
@@ -16,7 +16,7 @@
         <text></text>
     </contact>
     <revision date="2016-01-31"></revision>
-    <sv:semantic-version semantic-version="0.1.2"></sv:semantic-version>
+    <oc-ext:openconfig-version semver="1.1.3"></oc-ext:openconfig-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/foo@2016-02-01.yin
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/foo@2016-02-01.yin
index 19c5ea64d9d48cc43972117cddf800014a515fa1..3183859ffa7f95247f163a662390700a473f5401 100644 (file)
@@ -1,18 +1,18 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:foo="foo" xmlns:bar="bar"
-        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="foo">
+        xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext" name="foo">
     <yang-version value="1"></yang-version>
     <namespace uri="foo"></namespace>
     <prefix value="foo"></prefix>
     <import module="bar">
         <prefix value="bar"></prefix>
         <revision-date date="2016-01-31"></revision-date>
-        <sv:semantic-version semantic-version="0.1.2"></sv:semantic-version>
+        <oc-ext:openconfig-version semver="0.1.2"></oc-ext:openconfig-version>
     </import>
-    <import module="semantic-version">
-        <prefix value="sv"></prefix>
+    <import module="openconfig-extensions">
+        <prefix value="oc-ext"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
+        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
     </import>
     <organization>
         <text></text>
@@ -21,7 +21,7 @@
         <text></text>
     </contact>
     <revision date="2016-02-01"></revision>
-    <sv:semantic-version semantic-version="0.1.1"></sv:semantic-version>
+    <oc-ext:openconfig-version semver="0.1.1"></oc-ext:openconfig-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/openconfig-extensions@2017-01-29.yin b/yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/openconfig-extensions@2017-01-29.yin
new file mode 100644 (file)
index 0000000..e93a5a7
--- /dev/null
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext"
+        name="openconfig-extensions">
+    <yang-version value="1"></yang-version>
+    <namespace uri="http://openconfig.net/yang/openconfig-ext"></namespace>
+    <prefix value="oc-ext"></prefix>
+    <organization>
+        <text>OpenConfig working group</text>
+    </organization>
+    <contact>
+        <text>OpenConfig working group www.openconfig.net</text>
+    </contact>
+    <description>
+        <text>
+            This module provides extensions to the YANG language to allow
+            OpenConfig specific functionality and meta-data to be defined.
+        </text>
+    </description>
+    <revision date="2017-01-29">
+        <description>
+            <text>Added extension for annotating encrypted values.</text>
+        </description>
+        <reference>
+            <text>TBD</text>
+        </reference>
+    </revision>
+    <revision date="2015-10-09">
+        <description>
+            <text>Initial OpenConfig public release</text>
+        </description>
+        <reference>
+            <text>TBD</text>
+        </reference>
+    </revision>
+    <revision date="2015-10-05">
+        <description>
+            <text>Initial revision</text>
+        </description>
+        <reference>
+            <text>TBD</text>
+        </reference>
+    </revision>
+    <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
+    <extension name="openconfig-version">
+        <argument name="semver">
+            <yin-element value="false"></yin-element>
+        </argument>
+        <status value="current"></status>
+        <description>
+            <text>The OpenConfig version number for the module. This is
+                expressed as a semantic version number of the form:
+                x.y.z
+                where:
+                * x corresponds to the major version,
+                * y corresponds to a minor version,
+                * z corresponds to a patch version.
+                This version corresponds to the model file within which it is
+                defined, and does not cover the whole set of OpenConfig models.
+                Where several modules are used to build up a single block of
+                functionality, the same module version is specified across each
+                file that makes up the module.
+
+                A major version number of 0 indicates that this model is still
+                in development (whether within OpenConfig or with industry
+                partners), and is potentially subject to change.
+
+                Following a release of major version 1, all modules will
+                increment major revision number where backwards incompatible
+                changes to the model are made.
+
+                The minor version is changed when features are added to the
+                model that do not impact current clients use of the model.
+
+                The patch-level version is incremented when non-feature changes
+                (such as bugfixes or clarifications to human-readable
+                descriptions that do not impact model functionality) are made
+                that maintain backwards compatibility.
+
+                The version number is stored in the module meta-data.
+            </text>
+        </description>
+    </extension>
+    <extension name="openconfig-encrypted-value">
+        <description>
+            <text>
+                This extension provides an annotation on schema nodes to
+                indicate that the corresponding value should be stored and
+                reported in encrypted form.
+                Clients reading the configuration or applied configuration
+                for the node should expect to receive only the encrypted value.
+                This annotation may be used on nodes such as secure passwords
+                in which the device never reports a cleartext value, even
+                if the input is provided as cleartext.
+            </text>
+        </description>
+    </extension>
+</module>
\ No newline at end of file
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/bar@2016-01-01.yin
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/bar@2016-01-01.yin
index ab75b3a61e61937558081e443b56e722af6110a1..a3e08f19b4c474845853054ee45ed817ee33164d 100644 (file)
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:bar="bar"
-        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="bar">
+        xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext" name="bar">
     <yang-version value="1"></yang-version>
     <namespace uri="bar"></namespace>
     <prefix value="bar"></prefix>
-    <import module="semantic-version">
-        <prefix value="sv"></prefix>
+    <import module="openconfig-extensions">
+        <prefix value="oc-ext"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
+        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
     </import>
     <organization>
         <text></text>
@@ -16,7 +16,7 @@
         <text></text>
     </contact>
     <revision date="2016-01-01"></revision>
-    <sv:semantic-version semantic-version="0.1.2"></sv:semantic-version>
+    <oc-ext:openconfig-version semver="0.1.2"></oc-ext:openconfig-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/bar@2016-01-31.yin
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/bar@2016-01-31.yin
index 97d3dea508c2543a58cd2cd4ca61b922c5e895d6..959624bed2935eb339b9ec61781b62664b35635e 100644 (file)
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:bar="bar"
-        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="bar">
+        xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext" name="bar">
     <yang-version value="1"></yang-version>
     <namespace uri="bar"></namespace>
     <prefix value="bar"></prefix>
-    <import module="semantic-version">
-        <prefix value="sv"></prefix>
+    <import module="openconfig-extensions">
+        <prefix value="oc-ext"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
+        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
     </import>
     <organization>
         <text></text>
@@ -16,7 +16,7 @@
         <text></text>
     </contact>
     <revision date="2016-01-31"></revision>
-    <sv:semantic-version semantic-version="1.1.3"></sv:semantic-version>
+    <oc-ext:openconfig-version semver="1.1.2"></oc-ext:openconfig-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/foo@2016-02-01.yin
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/foo@2016-02-01.yin
index 19c5ea64d9d48cc43972117cddf800014a515fa1..3183859ffa7f95247f163a662390700a473f5401 100644 (file)
@@ -1,18 +1,18 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:foo="foo" xmlns:bar="bar"
-        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="foo">
+        xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext" name="foo">
     <yang-version value="1"></yang-version>
     <namespace uri="foo"></namespace>
     <prefix value="foo"></prefix>
     <import module="bar">
         <prefix value="bar"></prefix>
         <revision-date date="2016-01-31"></revision-date>
-        <sv:semantic-version semantic-version="0.1.2"></sv:semantic-version>
+        <oc-ext:openconfig-version semver="0.1.2"></oc-ext:openconfig-version>
     </import>
-    <import module="semantic-version">
-        <prefix value="sv"></prefix>
+    <import module="openconfig-extensions">
+        <prefix value="oc-ext"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
+        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
     </import>
     <organization>
         <text></text>
@@ -21,7 +21,7 @@
         <text></text>
     </contact>
     <revision date="2016-02-01"></revision>
-    <sv:semantic-version semantic-version="0.1.1"></sv:semantic-version>
+    <oc-ext:openconfig-version semver="0.1.1"></oc-ext:openconfig-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/openconfig-extensions@2016-01-29.yin b/yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/openconfig-extensions@2016-01-29.yin
new file mode 100644 (file)
index 0000000..e93a5a7
--- /dev/null
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext"
+        name="openconfig-extensions">
+    <yang-version value="1"></yang-version>
+    <namespace uri="http://openconfig.net/yang/openconfig-ext"></namespace>
+    <prefix value="oc-ext"></prefix>
+    <organization>
+        <text>OpenConfig working group</text>
+    </organization>
+    <contact>
+        <text>OpenConfig working group www.openconfig.net</text>
+    </contact>
+    <description>
+        <text>
+            This module provides extensions to the YANG language to allow
+            OpenConfig specific functionality and meta-data to be defined.
+        </text>
+    </description>
+    <revision date="2017-01-29">
+        <description>
+            <text>Added extension for annotating encrypted values.</text>
+        </description>
+        <reference>
+            <text>TBD</text>
+        </reference>
+    </revision>
+    <revision date="2015-10-09">
+        <description>
+            <text>Initial OpenConfig public release</text>
+        </description>
+        <reference>
+            <text>TBD</text>
+        </reference>
+    </revision>
+    <revision date="2015-10-05">
+        <description>
+            <text>Initial revision</text>
+        </description>
+        <reference>
+            <text>TBD</text>
+        </reference>
+    </revision>
+    <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
+    <extension name="openconfig-version">
+        <argument name="semver">
+            <yin-element value="false"></yin-element>
+        </argument>
+        <status value="current"></status>
+        <description>
+            <text>The OpenConfig version number for the module. This is
+                expressed as a semantic version number of the form:
+                x.y.z
+                where:
+                * x corresponds to the major version,
+                * y corresponds to a minor version,
+                * z corresponds to a patch version.
+                This version corresponds to the model file within which it is
+                defined, and does not cover the whole set of OpenConfig models.
+                Where several modules are used to build up a single block of
+                functionality, the same module version is specified across each
+                file that makes up the module.
+
+                A major version number of 0 indicates that this model is still
+                in development (whether within OpenConfig or with industry
+                partners), and is potentially subject to change.
+
+                Following a release of major version 1, all modules will
+                increment major revision number where backwards incompatible
+                changes to the model are made.
+
+                The minor version is changed when features are added to the
+                model that do not impact current clients use of the model.
+
+                The patch-level version is incremented when non-feature changes
+                (such as bugfixes or clarifications to human-readable
+                descriptions that do not impact model functionality) are made
+                that maintain backwards compatibility.
+
+                The version number is stored in the module meta-data.
+            </text>
+        </description>
+    </extension>
+    <extension name="openconfig-encrypted-value">
+        <description>
+            <text>
+                This extension provides an annotation on schema nodes to
+                indicate that the corresponding value should be stored and
+                reported in encrypted form.
+                Clients reading the configuration or applied configuration
+                for the node should expect to receive only the encrypted value.
+                This annotation may be used on nodes such as secure passwords
+                in which the device never reports a cleartext value, even
+                if the input is provided as cleartext.
+            </text>
+        </description>
+    </extension>
+</module>
\ No newline at end of file
similarity index 59%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/bar@2016-01-31.yin
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/bar@2016-01-31.yin
index 224c76744d006c7c1641231ad3543f84519dfab6..a3a644f944c09d337580108dd180cf92287d8f8d 100644 (file)
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:bar="bar"
-        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="bar">
+        xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext" name="bar">
     <yang-version value="1"></yang-version>
     <namespace uri="bar"></namespace>
     <prefix value="bar"></prefix>
-    <import module="semantic-version">
-        <prefix value="sv"></prefix>
-        <revision-date date="2016-02-02"></revision-date>
-        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
+    <import module="openconfig-extensions">
+        <prefix value="oc-ext"></prefix>
+        <revision-date date="2017-01-29"></revision-date>
+        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
     </import>
     <organization>
         <text></text>
@@ -16,7 +16,7 @@
         <text></text>
     </contact>
     <revision date="2016-01-31"></revision>
-    <sv:semantic-version semantic-version="1.1.2"></sv:semantic-version>
+    <oc-ext:openconfig-version semver="0.1.2"></oc-ext:openconfig-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/foo@2016-02-01.yin
rename to yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/foo@2016-02-01.yin
index 19c5ea64d9d48cc43972117cddf800014a515fa1..663286d2bf57e1930129d6c27e8a85bbebf12d8e 100644 (file)
@@ -1,18 +1,18 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:foo="foo" xmlns:bar="bar"
-        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="foo">
+        xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext" name="foo">
     <yang-version value="1"></yang-version>
     <namespace uri="foo"></namespace>
     <prefix value="foo"></prefix>
     <import module="bar">
         <prefix value="bar"></prefix>
         <revision-date date="2016-01-31"></revision-date>
-        <sv:semantic-version semantic-version="0.1.2"></sv:semantic-version>
+        <oc-ext:openconfig-version semver="0.1.2"></oc-ext:openconfig-version>
     </import>
-    <import module="semantic-version">
-        <prefix value="sv"></prefix>
-        <revision-date date="2016-02-02"></revision-date>
-        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
+    <import module="openconfig-extensions">
+        <prefix value="oc-ext"></prefix>
+        <revision-date date="2017-01-29"></revision-date>
+        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
     </import>
     <organization>
         <text></text>
@@ -21,7 +21,7 @@
         <text></text>
     </contact>
     <revision date="2016-02-01"></revision>
-    <sv:semantic-version semantic-version="0.1.1"></sv:semantic-version>
+    <oc-ext:openconfig-version semver="0.1.1"></oc-ext:openconfig-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/openconfig-extensions@2017-01-29.yin b/yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/openconfig-extensions@2017-01-29.yin
new file mode 100644 (file)
index 0000000..e93a5a7
--- /dev/null
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:oc-ext="http://openconfig.net/yang/openconfig-ext"
+        name="openconfig-extensions">
+    <yang-version value="1"></yang-version>
+    <namespace uri="http://openconfig.net/yang/openconfig-ext"></namespace>
+    <prefix value="oc-ext"></prefix>
+    <organization>
+        <text>OpenConfig working group</text>
+    </organization>
+    <contact>
+        <text>OpenConfig working group www.openconfig.net</text>
+    </contact>
+    <description>
+        <text>
+            This module provides extensions to the YANG language to allow
+            OpenConfig specific functionality and meta-data to be defined.
+        </text>
+    </description>
+    <revision date="2017-01-29">
+        <description>
+            <text>Added extension for annotating encrypted values.</text>
+        </description>
+        <reference>
+            <text>TBD</text>
+        </reference>
+    </revision>
+    <revision date="2015-10-09">
+        <description>
+            <text>Initial OpenConfig public release</text>
+        </description>
+        <reference>
+            <text>TBD</text>
+        </reference>
+    </revision>
+    <revision date="2015-10-05">
+        <description>
+            <text>Initial revision</text>
+        </description>
+        <reference>
+            <text>TBD</text>
+        </reference>
+    </revision>
+    <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
+    <extension name="openconfig-version">
+        <argument name="semver">
+            <yin-element value="false"></yin-element>
+        </argument>
+        <status value="current"></status>
+        <description>
+            <text>The OpenConfig version number for the module. This is
+                expressed as a semantic version number of the form:
+                x.y.z
+                where:
+                * x corresponds to the major version,
+                * y corresponds to a minor version,
+                * z corresponds to a patch version.
+                This version corresponds to the model file within which it is
+                defined, and does not cover the whole set of OpenConfig models.
+                Where several modules are used to build up a single block of
+                functionality, the same module version is specified across each
+                file that makes up the module.
+
+                A major version number of 0 indicates that this model is still
+                in development (whether within OpenConfig or with industry
+                partners), and is potentially subject to change.
+
+                Following a release of major version 1, all modules will
+                increment major revision number where backwards incompatible
+                changes to the model are made.
+
+                The minor version is changed when features are added to the
+                model that do not impact current clients use of the model.
+
+                The patch-level version is incremented when non-feature changes
+                (such as bugfixes or clarifications to human-readable
+                descriptions that do not impact model functionality) are made
+                that maintain backwards compatibility.
+
+                The version number is stored in the module meta-data.
+            </text>
+        </description>
+    </extension>
+    <extension name="openconfig-encrypted-value">
+        <description>
+            <text>
+                This extension provides an annotation on schema nodes to
+                indicate that the corresponding value should be stored and
+                reported in encrypted form.
+                Clients reading the configuration or applied configuration
+                for the node should expect to receive only the encrypted value.
+                This annotation may be used on nodes such as secure passwords
+                in which the device never reports a cleartext value, even
+                if the input is provided as cleartext.
+            </text>
+        </description>
+    </extension>
+</module>
\ No newline at end of file
similarity index 64%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/bar@2016-01-03.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/bar@2016-01-03.yang
index 207b4bdb8458611dbfecc756c5c032a915d0073d..3f495b84be26289f63450f4a3a4dd2b12eb2c88a 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1.1;
 
-    import semantic-version { prefix sv; sv:semantic-version "1.2.012"; }
-    import foobar { prefix foobar; sv:semantic-version "2.25.3"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.012"; }
+    import foobar { prefix foobar; oc-ext:openconfig-version "2.25.3"; }
 
     revision "2016-01-03" {
         description "Imported version";
     }
-    sv:semantic-version "1.2.6";
+    oc-ext:openconfig-version "1.2.6";
 
     container root {
         container test-container {
similarity index 64%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/bar@2016-01-04.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/bar@2016-01-04.yang
index 8328cbeccaba637c8bd1f415d2bcaeeaef9e4b77..7490e8df60ba65d3bc4897de1dd8f49e55744e0d 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1.1;
 
-    import semantic-version { prefix sv; sv:semantic-version "1.2.210"; }
-    import foobar { prefix foobar; sv:semantic-version "2.25.3"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.210"; }
+    import foobar { prefix foobar; oc-ext:openconfig-version "2.25.3"; }
 
     revision "2016-01-04" {
         description "Not-imported version";
     }
-    sv:semantic-version "2.200.200";
+    oc-ext:openconfig-version "2.200.200";
 
     container root {
         container test-container {
diff --git a/yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foo.yang b/yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foo.yang
new file mode 100644 (file)
index 0000000..087c05f
--- /dev/null
@@ -0,0 +1,13 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1.1;
+
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.0.0"; }
+    import bar { prefix bar; oc-ext:openconfig-version "1.2.5"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "1.50.02";
+}
similarity index 74%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foobar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foobar@2016-01-31.yang
index 773bc65a7ab942577355f4defc93a8a64593bf1a..89863b20a169397dda3e8c2a6289627876c9f432 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1.1;
 
-    import semantic-version { prefix sv; sv:semantic-version "1.2.95"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.95"; }
 
     revision "2016-01-31" {
         description "Not-imported version";
     }
-    sv:semantic-version "2.25.2";
+    oc-ext:openconfig-version "2.25.2";
 
     grouping test-grouping {
         leaf name {
similarity index 74%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foobar@2016-02-28.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foobar@2016-02-28.yang
index 4c92e9f30fd9b7b7f52d602c0d58500273cf7ec4..132e305b210dedf8428409ab5dd024a4263b88a7 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1.1;
 
-    import semantic-version { prefix sv; sv:semantic-version "1.3.95"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.3.95"; }
 
     revision "2016-02-28" {
         description "Imported version";
     }
-    sv:semantic-version "2.26.465";
+    oc-ext:openconfig-version "2.26.465";
 
     grouping test-grouping {
         leaf name {
diff --git a/yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..ff84c41
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1.1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "1.3.95";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
similarity index 64%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/bar@2016-01-03.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/bar@2016-01-03.yang
index f11bdb094314e746b5e024f6265adcb560fbbaf3..fe922ff142d25076d2c8ba5ea0fed862bd118487 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "2.0.40"; }
-    import foobar { prefix foobar; sv:semantic-version "7.12.54"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.0.40"; }
+    import foobar { prefix foobar; oc-ext:openconfig-version "7.12.54"; }
 
     revision "2016-01-03" {
         description "Imported version";
     }
-    sv:semantic-version "4.9.8";
+    oc-ext:openconfig-version "4.9.8";
 
     augment "/foobar:root/foobar:test-container" {
         leaf should-present-leaf-1 {
similarity index 66%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/bar@2016-01-04.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/bar@2016-01-04.yang
index 712b379c0159b5050cd07a1356bcab5485a4b048..858bb0466dba0f15a6c0e448b4f1ea2a06bb14ea 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1.1;
 
-    import semantic-version { prefix sv; sv:semantic-version "2.0.50"; }
-    import foobar { prefix foobar; sv:semantic-version "7.12.54"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.0.50"; }
+    import foobar { prefix foobar; oc-ext:openconfig-version "7.12.54"; }
 
     revision "2016-01-04" {
         description "Not-imported version";
     }
-    sv:semantic-version "3.0.5";
+    oc-ext:openconfig-version "3.0.5";
 
     augment "/foobar:root/foobar:test-container" {
         leaf should-not-be-present-leaf-1 {
diff --git a/yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foo.yang b/yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foo.yang
new file mode 100644 (file)
index 0000000..734f554
--- /dev/null
@@ -0,0 +1,13 @@
+module foo {
+    namespace "foo";
+    prefix foo;
+    yang-version 1.1;
+
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.40"; }
+    import bar { prefix bar; oc-ext:openconfig-version "4.1.1"; }
+
+    revision "2016-02-01" {
+        description "Initial version";
+    }
+    oc-ext:openconfig-version "2.32.2";
+}
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-01-31.yang
index 435bea628d3b8a6d1348597f72bb76abbf450577..7c7ac1aaa32c7bfcc7780572e3408da705a0b8d7 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "2.1.950"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.1.950"; }
 
     revision "2016-01-31" {
         description "Not-imported version";
     }
-    sv:semantic-version "8.0.0";
+    oc-ext:openconfig-version "8.0.0";
 
     container root {
         leaf included-not-correct-mark {
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-02-27.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-02-27.yang
index 8b8f48e1a7ac9bf6a8dffaa522e43ccbb193cdcb..930c1162f489b549a1ecc8de7a025f7e1e4fb41f 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "2.5.50"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
 
     revision "2016-02-27" {
         description "Not-imported version";
     }
-    sv:semantic-version "7.13.0";
+    oc-ext:openconfig-version "7.13.0";
 
     container root {
         leaf included-not-correct-mark {
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-02-28.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-02-28.yang
index c45a020a521a42bf42494bc4f5b6f7ab362db51a..676834c3dd03464b2480b6d7bb8a0abe35bed8eb 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import semantic-version { prefix sv; sv:semantic-version "2.5.50"; }
+    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
 
     revision "2016-02-28" {
         description "Imported version";
     }
-    sv:semantic-version "7.13.99";
+    oc-ext:openconfig-version "7.13.99";
 
     container root {
         leaf included-correct-mark {
diff --git a/yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/openconfig-extensions.yang
new file mode 100644 (file)
index 0000000..9b021b6
--- /dev/null
@@ -0,0 +1,84 @@
+module openconfig-extensions {
+    yang-version "1";
+    namespace "http://openconfig.net/yang/openconfig-ext";
+    prefix "oc-ext";
+
+    organization "OpenConfig working group";
+
+    contact
+        "OpenConfig working group
+        www.openconfig.net";
+
+    description
+        "This module provides extensions to the YANG language to allow
+        OpenConfig specific functionality and meta-data to be defined.";
+
+    revision "2017-01-29" {
+        description
+            "Added extension for annotating encrypted values.";
+        reference "TBD";
+    }
+
+    revision "2015-10-09" {
+        description
+            "Initial OpenConfig public release";
+        reference "TBD";
+    }
+
+    revision "2015-10-05" {
+        description
+            "Initial revision";
+        reference "TBD";
+    }
+
+    oc-ext:openconfig-version "2.5.50";
+
+    extension openconfig-version {
+        argument "semver" {
+            yin-element false;
+        }
+        description
+            "The OpenConfig version number for the module. This is
+            expressed as a semantic version number of the form:
+              x.y.z
+            where:
+              * x corresponds to the major version,
+              * y corresponds to a minor version,
+              * z corresponds to a patch version.
+            This version corresponds to the model file within which it is
+            defined, and does not cover the whole set of OpenConfig models.
+            Where several modules are used to build up a single block of
+            functionality, the same module version is specified across each
+            file that makes up the module.
+
+            A major version number of 0 indicates that this model is still
+            in development (whether within OpenConfig or with industry
+            partners), and is potentially subject to change.
+
+            Following a release of major version 1, all modules will
+            increment major revision number where backwards incompatible
+            changes to the model are made.
+
+            The minor version is changed when features are added to the
+            model that do not impact current clients use of the model.
+
+            The patch-level version is incremented when non-feature changes
+            (such as bugfixes or clarifications to human-readable
+            descriptions that do not impact model functionality) are made
+            that maintain backwards compatibility.
+
+            The version number is stored in the module meta-data.";
+    }
+
+    extension openconfig-encrypted-value {
+        description
+            "This extension provides an annotation on schema nodes to
+            indicate that the corresponding value should be stored and
+            reported in encrypted form.
+            Clients reading the configuration or applied configuration
+            for the node should expect to receive only the encrypted value.
+            This annotation may be used on nodes such as secure passwords
+            in which the device never reports a cleartext value, even
+            if the input is provided as cleartext.";
+    }
+}
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foo.yang b/yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foo.yang
deleted file mode 100644 (file)
index e3828f0..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1.1;
-
-    import semantic-version { prefix sv; sv:semantic-version "1.0.0"; }
-    import bar { prefix bar; sv:semantic-version "1.2.5"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "1.50.02";
-}
diff --git a/yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foo.yang b/yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foo.yang
deleted file mode 100644 (file)
index 3955eb5..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1.1;
-
-    import semantic-version { prefix sv; sv:semantic-version "2.5.40"; }
-    import bar { prefix bar; sv:semantic-version "4.1.1"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "2.32.2";
-}
diff --git a/yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/semantic-version.yang
deleted file mode 100644 (file)
index a7e5ba2..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "2.5.50";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/basic-3/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic-3/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/foo.yang
deleted file mode 100644 (file)
index 220c9cc..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "0.1.2";}
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/foo.yang
deleted file mode 100644 (file)
index 220c9cc..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "0.1.2";}
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/foo.yang
deleted file mode 100644 (file)
index dda1144..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; revision-date 2016-01-31; sv:semantic-version "0.1.2";}
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/basic/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic/foo.yang
deleted file mode 100644 (file)
index dda1144..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; revision-date 2016-01-31; sv:semantic-version "0.1.2";}
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/basic/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/foo.yang
deleted file mode 100644 (file)
index c89c60d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "5.5.5"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/foo.yang
deleted file mode 100644 (file)
index c89c60d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "5.5.5"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/bar@2016-01-01.yang
deleted file mode 100644 (file)
index f6dd765..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "5.5.2";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/foo.yang
deleted file mode 100644 (file)
index c89c60d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "5.5.5"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/bar@2016-01-01.yang
deleted file mode 100644 (file)
index c331b9e..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "4.5.5";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/foo.yang
deleted file mode 100644 (file)
index c89c60d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "5.5.5"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-01.yang
deleted file mode 100644 (file)
index c129995..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "5.4.5";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-02.yang
deleted file mode 100644 (file)
index 920c18a..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-02" {
-        description "Initial version";
-    }
-    sv:semantic-version "5.5.5";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-03.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-03.yang
deleted file mode 100644 (file)
index da8327c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-03" {
-        description "Initial version";
-    }
-    sv:semantic-version "5.6.5";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/foo.yang
deleted file mode 100644 (file)
index c89c60d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "5.5.5"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-01.yang
deleted file mode 100644 (file)
index 939c7e8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "5.5.4";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-02.yang
deleted file mode 100644 (file)
index 920c18a..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-02" {
-        description "Initial version";
-    }
-    sv:semantic-version "5.5.5";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-03.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-03.yang
deleted file mode 100644 (file)
index 5d3f96d..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-03" {
-        description "Initial version";
-    }
-    sv:semantic-version "5.5.6";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/foo.yang
deleted file mode 100644 (file)
index c89c60d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "5.5.5"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foo.yang
deleted file mode 100644 (file)
index bce4b87..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; sv:semantic-version "1.0.0"; }
-    import bar { prefix bar; sv:semantic-version "1.2.5"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "1.50.02";
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/semantic-version.yang
deleted file mode 100644 (file)
index a8de91c..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "1.3.95";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foo.yang
deleted file mode 100644 (file)
index 5be60d8..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; sv:semantic-version "2.5.40"; }
-    import bar { prefix bar; sv:semantic-version "4.1.1"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "2.32.2";
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/semantic-version.yang
deleted file mode 100644 (file)
index a7e5ba2..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "2.5.50";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/bar.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/bar.yang
deleted file mode 100644 (file)
index 678f4f6..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-31" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.99.99";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/bar@2016-01-01.yang
deleted file mode 100644 (file)
index 54da0db..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.2";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/foo.yang
deleted file mode 100644 (file)
index dda1144..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; revision-date 2016-01-31; sv:semantic-version "0.1.2";}
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/bar@2016-01-01.yang
deleted file mode 100644 (file)
index 54da0db..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.2";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/foo.yang
deleted file mode 100644 (file)
index dda1144..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; revision-date 2016-01-31; sv:semantic-version "0.1.2";}
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-1/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-1/semantic-version.yang
deleted file mode 100644 (file)
index ca9b177..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "2.0.0";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-2/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-2/semantic-version.yang
deleted file mode 100644 (file)
index 5b1f616..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "1.0.0";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-1/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-1/semantic-version.yang
deleted file mode 100644 (file)
index 5b1f616..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "1.0.0";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-2/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-2/semantic-version.yang
deleted file mode 100644 (file)
index ca9b177..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "2.0.0";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-valid/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-valid/foo.yang
deleted file mode 100644 (file)
index a6c665b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "1.0.0"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-valid/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/import/import-valid/semantic-version.yang
deleted file mode 100644 (file)
index 5b1f616..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "1.0.0";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-01.yang
deleted file mode 100644 (file)
index fdab507..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-02.yang
deleted file mode 100644 (file)
index 388f7f1..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-02" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.2";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-03.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-03.yang
deleted file mode 100644 (file)
index 1b7d0e3..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-03" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.3";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/foo.yang
deleted file mode 100644 (file)
index 220c9cc..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "0.1.2";}
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-01-01.yang
deleted file mode 100644 (file)
index 6352253..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "2.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-01-02.yang
deleted file mode 100644 (file)
index db806e8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-02" {
-        description "Initial version";
-    }
-    sv:semantic-version "2.1.2";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/foo.yang
deleted file mode 100644 (file)
index 3a2ab94..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; revision-date 2016-01-31; sv:semantic-version "1.0.0"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-01-01.yang
deleted file mode 100644 (file)
index 4422f6d..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "2.0.0";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-01-02.yang
deleted file mode 100644 (file)
index 9d916f6..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-02" {
-        description "Initial version";
-    }
-    sv:semantic-version "2.1.0";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/foo.yang
deleted file mode 100644 (file)
index ec773ae..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "2.5.5"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-01-01.yang
deleted file mode 100644 (file)
index 5c6572c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.0.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-01-02.yang
deleted file mode 100644 (file)
index b819db3..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-02" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.0";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-01-01.yang
deleted file mode 100644 (file)
index 732609a..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "4.4.0";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-01-02.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-01-02.yang
deleted file mode 100644 (file)
index 82dd7ef..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-02" {
-        description "Initial version";
-    }
-    sv:semantic-version "5.5.0";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/foo.yang
deleted file mode 100644 (file)
index c89c60d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; sv:semantic-version "5.5.5"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/node-test/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/node-test/foo.yang
deleted file mode 100644 (file)
index b4af346..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; revision-date 2017-04-06; sv:semantic-version "2016.4.5"; }
-
-    revision 2016-01-01 {
-        description "test";
-    }
-    
-    sv:semantic-version "2016.1.1";
-
-    container foo-root {
-        uses bar:grp;
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/node-test/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/node-test/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/foo.yang
deleted file mode 100644 (file)
index 4aee60f..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-module foo {
-    sv:semantic-version "0.1.1";
-    import bar { prefix bar; revision-date 2016-01-31; sv:semantic-version "0.1.2";}
-
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/bar.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/bar.yang
deleted file mode 100644 (file)
index 2adc136..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-31" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.2";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/foo.yang
deleted file mode 100644 (file)
index dda1144..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; revision-date 2016-01-31; sv:semantic-version "0.1.2";}
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/foo.yang
deleted file mode 100644 (file)
index 67e9025..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-
-    container root {
-    }
-
-    sv:semantic-version "0.1.1";
-    import bar { prefix bar; revision-date 2016-01-31; sv:semantic-version "0.1.2";}
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/bar@2016-01-01.yang
deleted file mode 100644 (file)
index 54da0db..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.2";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/foo.yang
deleted file mode 100644 (file)
index dda1144..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; revision-date 2016-01-31; sv:semantic-version "0.1.2";}
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/bar@2016-01-01.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/bar@2016-01-01.yang
deleted file mode 100644 (file)
index 54da0db..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-module bar {
-    namespace "bar";
-    prefix bar;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-
-    revision "2016-01-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.2";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/foo.yang
deleted file mode 100644 (file)
index fd7d13f..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-module foo {
-    namespace "foo";
-    prefix foo;
-    yang-version 1;
-
-    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
-    import bar { prefix bar; revision-date 2016-01-01; sv:semantic-version "0.1.2";}
-
-    revision "2016-02-01" {
-        description "Initial version";
-    }
-    sv:semantic-version "0.1.1";
-
-    container root {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/semantic-version.yang
deleted file mode 100644 (file)
index dd92de6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-module semantic-version {
-    namespace "urn:opendaylight:yang:extension:semantic-version";
-    prefix sv;
-    yang-version 1;
-
-    revision 2016-02-02 {
-        description "Initial verison";
-    }
-    sv:semantic-version "0.0.1";
-
-    extension semantic-version {
-        argument "semantic-version" {
-            yin-element false;
-        }
-        description
-            "The OpenConfig version number for the module. This is
-            expressed as a semantic version number of the form:
-              x.y.z
-            where:
-              * x corresponds to the major version,
-              * y corresponds to a minor version,
-              * z corresponds to a patch version.
-            This version corresponds to the model file within which it is
-            defined, and does not cover the whole set of OpenConfig models.
-            Where several modules are used to build up a single block of
-            functionality, the same module version is specified across each
-            file that makes up the module.
-
-            A major version number of 0 indicates that this model is still
-            in development (whether within OpenConfig or with industry
-            partners), and is potentially subject to change.
-
-            Following a release of major version 1, all modules will
-            increment major revision number where backwards incompatible
-            changes to the model are made.
-
-            The minor version is changed when features are added to the
-            model that do not impact current clients use of the model.
-
-            The patch-level version is incremented when non-feature changes
-            (such as bugfixes or clarifications to human-readable
-            descriptions that do not impact model functionality) are made
-            that maintain backwards compatibility.
-
-            The version number is stored in the module meta-data.";
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/semantic-version@2016-02-02.yin b/yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/semantic-version@2016-02-02.yin
deleted file mode 100644 (file)
index fe7aeb9..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:sv="urn:opendaylight:yang:extension:semantic-version"
-        name="semantic-version">
-    <yang-version value="1"></yang-version>
-    <namespace uri="urn:opendaylight:yang:extension:semantic-version"></namespace>
-    <prefix value="sv"></prefix>
-    <organization>
-        <text></text>
-    </organization>
-    <contact>
-        <text></text>
-    </contact>
-    <revision date="2016-02-02"></revision>
-    <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
-    <extension name="semantic-version">
-        <argument name="semantic-version">
-            <yin-element value="false"></yin-element>
-        </argument>
-        <status value="current"></status>
-        <description>
-            <text>The OpenConfig version number for the module. This is
-                expressed as a semantic version number of the form:
-                x.y.z
-                where:
-                * x corresponds to the major version,
-                * y corresponds to a minor version,
-                * z corresponds to a patch version.
-                This version corresponds to the model file within which it is
-                defined, and does not cover the whole set of OpenConfig models.
-                Where several modules are used to build up a single block of
-                functionality, the same module version is specified across each
-                file that makes up the module.
-
-                A major version number of 0 indicates that this model is still
-                in development (whether within OpenConfig or with industry
-                partners), and is potentially subject to change.
-
-                Following a release of major version 1, all modules will
-                increment major revision number where backwards incompatible
-                changes to the model are made.
-
-                The minor version is changed when features are added to the
-                model that do not impact current clients use of the model.
-
-                The patch-level version is incremented when non-feature changes
-                (such as bugfixes or clarifications to human-readable
-                descriptions that do not impact model functionality) are made
-                that maintain backwards compatibility.
-
-                The version number is stored in the module meta-data.
-            </text>
-        </description>
-    </extension>
-</module>
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/semantic-version@2016-02-02.yin b/yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/semantic-version@2016-02-02.yin
deleted file mode 100644 (file)
index fe7aeb9..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:sv="urn:opendaylight:yang:extension:semantic-version"
-        name="semantic-version">
-    <yang-version value="1"></yang-version>
-    <namespace uri="urn:opendaylight:yang:extension:semantic-version"></namespace>
-    <prefix value="sv"></prefix>
-    <organization>
-        <text></text>
-    </organization>
-    <contact>
-        <text></text>
-    </contact>
-    <revision date="2016-02-02"></revision>
-    <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
-    <extension name="semantic-version">
-        <argument name="semantic-version">
-            <yin-element value="false"></yin-element>
-        </argument>
-        <status value="current"></status>
-        <description>
-            <text>The OpenConfig version number for the module. This is
-                expressed as a semantic version number of the form:
-                x.y.z
-                where:
-                * x corresponds to the major version,
-                * y corresponds to a minor version,
-                * z corresponds to a patch version.
-                This version corresponds to the model file within which it is
-                defined, and does not cover the whole set of OpenConfig models.
-                Where several modules are used to build up a single block of
-                functionality, the same module version is specified across each
-                file that makes up the module.
-
-                A major version number of 0 indicates that this model is still
-                in development (whether within OpenConfig or with industry
-                partners), and is potentially subject to change.
-
-                Following a release of major version 1, all modules will
-                increment major revision number where backwards incompatible
-                changes to the model are made.
-
-                The minor version is changed when features are added to the
-                model that do not impact current clients use of the model.
-
-                The patch-level version is incremented when non-feature changes
-                (such as bugfixes or clarifications to human-readable
-                descriptions that do not impact model functionality) are made
-                that maintain backwards compatibility.
-
-                The version number is stored in the module meta-data.
-            </text>
-        </description>
-    </extension>
-</module>
\ No newline at end of file
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/semantic-version@2016-02-02.yin b/yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/semantic-version@2016-02-02.yin
deleted file mode 100644 (file)
index fe7aeb9..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:sv="urn:opendaylight:yang:extension:semantic-version"
-        name="semantic-version">
-    <yang-version value="1"></yang-version>
-    <namespace uri="urn:opendaylight:yang:extension:semantic-version"></namespace>
-    <prefix value="sv"></prefix>
-    <organization>
-        <text></text>
-    </organization>
-    <contact>
-        <text></text>
-    </contact>
-    <revision date="2016-02-02"></revision>
-    <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
-    <extension name="semantic-version">
-        <argument name="semantic-version">
-            <yin-element value="false"></yin-element>
-        </argument>
-        <status value="current"></status>
-        <description>
-            <text>The OpenConfig version number for the module. This is
-                expressed as a semantic version number of the form:
-                x.y.z
-                where:
-                * x corresponds to the major version,
-                * y corresponds to a minor version,
-                * z corresponds to a patch version.
-                This version corresponds to the model file within which it is
-                defined, and does not cover the whole set of OpenConfig models.
-                Where several modules are used to build up a single block of
-                functionality, the same module version is specified across each
-                file that makes up the module.
-
-                A major version number of 0 indicates that this model is still
-                in development (whether within OpenConfig or with industry
-                partners), and is potentially subject to change.
-
-                Following a release of major version 1, all modules will
-                increment major revision number where backwards incompatible
-                changes to the model are made.
-
-                The minor version is changed when features are added to the
-                model that do not impact current clients use of the model.
-
-                The patch-level version is incremented when non-feature changes
-                (such as bugfixes or clarifications to human-readable
-                descriptions that do not impact model functionality) are made
-                that maintain backwards compatibility.
-
-                The version number is stored in the module meta-data.
-            </text>
-        </description>
-    </extension>
-</module>
\ No newline at end of file