Revert "Bug 4640: Change semantic-version to openconfig-version" 18/58218/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 4 Jun 2017 15:56:03 +0000 (17:56 +0200)
committerRobert Varga <nite@hq.sk>
Sun, 4 Jun 2017 17:03:48 +0000 (17:03 +0000)
This reverts commit e826b441fd88057793b5cea7e784522ea7adcd40.

Change-Id: I823a6789a02d47d03d7c2617310221a517c16ca0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
299 files changed:
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/Module.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ModuleIdentifier.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ModuleImport.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SemVerSourceIdentifier.java [moved from yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/OpenconfigVerSourceIdentifier.java with 59% similarity]
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SourceIdentifier.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/StatementParserMode.java
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/ModuleIdentifierImpl.java
yang/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/util/SchemaContextProxyTest.java
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/repo/DependencyResolver.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/SemVerDependencyResolver.java [moved from yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/OpenconfigVerDependencyResolver.java with 71% similarity]
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaContextFactory.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/ModelProcessingPhase.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/SemanticVersionModuleNamespace.java [moved from yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/OpenconfigVersionModuleNamespace.java with 75% similarity]
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/SemanticVersionNamespace.java [moved from yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/OpenconfigVersionNamespace.java with 76% similarity]
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StmtContext.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/source/ImpPrefixToSemVerModuleIdentifier.java [moved from yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/source/ImpPrefixToOpenconfigVerModuleIdentifier.java with 81% similarity]
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/source/StatementStreamSource.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/BuildGlobalContext.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/CrossSourceStatementReactor.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/RootStatementContext.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/SourceSpecificContext.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/SubstatementContext.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/SemanticVersionStatementImpl.java [moved from yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/OpenconfigVersionStatementImpl.java with 76% 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/ImportEffectiveStatementImpl.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/ModuleImportImpl.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/SemanticVersionEffectiveStatementImpl.java [moved from yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/OpenconfigVersionEffectiveStatementImpl.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/main/java/org/opendaylight/yangtools/yang/parser/util/ASTSchemaSource.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SemVerSharedSchemaRepositoryTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/OpenconfigVerSharedSchemaRepositoryTest.java with 86% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionBorderCaseTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionBorderCaseTest.java with 57% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionComplexTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionComplexTest.java with 79% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionDefaultsTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionDefaultsTest.java with 69% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionIgnoringRevisionTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionIgnoringRevisionTest.java with 60% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionImportTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionImportTest.java with 57% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionMultipleImportTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionMultipleImportTest.java with 66% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionPositionTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionPositionTest.java with 56% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionTest.java with 63% similarity]
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/yin/YinSemanticVersionTest.java [moved from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/yin/YinOpenconfigVersionTest.java with 66% similarity]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-3/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/basic/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/bar@2016-01-03.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-minor/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/bar@2016-01-03.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-patch/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/bar.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-1/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-2/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-1/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-2/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-valid/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-valid/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-03.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-31.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-01-02.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/openconfigver-shared-schema-repository/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/bar.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-middle/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/bar@2016-01-01.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/shared-schema-repository/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/openconfig-extensions@2017-01-29.yin [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/openconfig-extensions@2016-01-29.yin [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/bar@2016-01-31.yin [deleted file]
yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/openconfig-extensions@2017-01-29.yin [deleted file]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foo.yang [deleted file]
yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/openconfig-extensions.yang [deleted file]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/bar@2016-01-03.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/bar@2016-01-04.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/bar@2016-01-04.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foobar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foobar@2016-01-31.yang with 74% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foobar@2016-02-28.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foobar@2016-02-28.yang with 74% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/semantic-version.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/openconfig-extensions.yang with 51% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/bar@2016-01-03.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/bar@2016-01-04.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/bar@2016-01-04.yang with 66% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-01-31.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-02-27.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-02-27.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-02-28.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-02-28.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/semantic-version.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/openconfig-extensions.yang with 51% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/bar.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/bar.yang with 60% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/foo.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/foo.yang with 66% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-3/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-3/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/bar@2016-01-01.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/bar@2016-01-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/bar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/bar@2016-01-31.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/bar@2016-01-01.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/bar@2016-01-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/bar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/bar@2016-01-31.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/bar.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic/bar.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/basic/bar.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/bar.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/basic/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/basic/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/bar@2016-01-01.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/bar@2016-01-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/bar@2016-01-02.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/bar@2016-01-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-valid-major/bar@2016-01-03.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/bar@2016-01-01.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/bar@2016-01-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/bar@2016-01-02.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/bar@2016-01-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/bar@2016-01-03.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/bar@2016-01-02.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/bar@2016-01-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/bar@2016-01-03.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-patch/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/bar@2016-01-02.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/bar@2016-01-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-patch/bar@2016-01-03.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-major/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/bar@2016-01-03.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-minor/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/bar@2016-01-03.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-valid-patch/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/bar@2016-01-03.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/bar@2016-01-04.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/bar@2016-01-04.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foobar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foobar@2016-01-31.yang with 74% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foobar@2016-02-28.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foobar@2016-02-28.yang with 74% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/bar@2016-01-03.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/bar@2016-01-03.yang with 64% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/bar@2016-01-04.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/bar@2016-01-04.yang with 65% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-01-31.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-02-27.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-02-27.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-02-28.yang [moved from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-02-28.yang with 70% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/bar.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/bar.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/foo.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/foo.yang with 67% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/bar.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/foo.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/foo.yang with 67% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/defaults/bar.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/defaults/bar.yang with 100% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/defaults/defaults/foo.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/defaults/foo.yang with 100% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/bar@2016-01-31.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/bar@2016-01-31.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-1/foo.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-2/foo.yang with 60% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-1/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-2/foo.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-1/foo.yang with 60% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-2/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-1/foo.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-2/foo.yang with 60% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-1/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-2/foo.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-1/foo.yang with 60% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-2/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-valid/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/import/import-valid/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-03.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-04.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-04.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-31.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-02-28.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-02-28.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-02-01.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-02-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/bar@2016-02-02.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-specified/bar@2016-02-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-deprecated/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-02-01.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-02-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/bar@2016-02-02.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-deprecated/bar@2016-02-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-invalid-nosufficient/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-02-01.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-02-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/bar@2016-02-02.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-invalid-nosufficient/bar@2016-02-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/foo.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/foo.yang with 57% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-02-01.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-02-01.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-02-02.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-02-02.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160404.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160404.yang with 57% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160405.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160405.yang with 62% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160406.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160406.yang with 65% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20170406.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20170406.yang with 68% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/node-test/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/node-test/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/bar.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/bar.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/semantic-version.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/openconfig-extensions.yang with 51% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/bar.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/bar.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/bar.yang with 53% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/semantic-version.yang [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-3/openconfig-extensions.yang with 51% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/semver-shared-schema-repository/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/bar@2016-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/shared-schema-repository/semantic-version.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/bar@2016-01-01.yin [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/bar@2016-01-01.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/bar@2016-01-31.yin [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/bar@2016-01-31.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/foo@2016-02-01.yin [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/foo@2016-02-01.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/semantic-version@2016-02-02.yin [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/bar@2016-01-01.yin [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/bar@2016-01-01.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/bar@2016-01-31.yin [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/bar@2016-01-31.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/foo@2016-02-01.yin [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/foo@2016-02-01.yin with 65% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/semantic-version@2016-02-02.yin [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/bar@2016-01-31.yin [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/foo@2016-02-01.yin [moved from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/foo@2016-02-01.yin with 60% similarity]
yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/semantic-version@2016-02-02.yin [new file with mode: 0644]

index 0088db2558fd988181c72d73081a7351bda17415..d64a4de98c950ecd7ba13b4a6420f47545f94277 100644 (file)
@@ -61,9 +61,9 @@ import org.opendaylight.yangtools.concepts.SemVer;
 @Immutable
 public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIdentifier, NotificationNodeContainer {
     /**
-     * Default openconfig version of Module.
+     * Default semantic version of Module.
      */
-    SemVer DEFAULT_OPENCONFIG_VERSION = SemVer.create(0, 0, 0);
+    SemVer DEFAULT_SEMANTIC_VERSION = SemVer.create(0, 0, 0);
 
     /**
      * Returns the prefix of the module
index 9ede1bf913a87aff6b923ef0e4d90cf7bed1ed05..6afd21a3d51da47d36e399907a0017a32aad3ba1 100644 (file)
@@ -55,16 +55,17 @@ public interface ModuleIdentifier {
     Date getRevision();
 
     /**
-     * Returns the openconfig version of yang module.
+     * Returns the semantic version of yang module.
      *
-     * If the openconfig version is not specified, default openconfig version of
+     * If the semantic version is not specified, default semantic version of
      * module is returned.
      *
-     * @return SemVer openconfig version of yang module which is specified as
+     * @return SemVer semantic version of yang module which is specified as
      *         argument of
-     *         (http://openconfig.net/yang/openconfig-ext)openconfig-version statement
+     *         (urn:opendaylight:yang:extension:semantic-version?revision
+     *         =2016-02-02)semantic-version statement
      */
-    default SemVer getOpenconfigVersion() {
-        return Module.DEFAULT_OPENCONFIG_VERSION;
+    default SemVer getSemanticVersion() {
+        return Module.DEFAULT_SEMANTIC_VERSION;
     }
 }
index f165e3bceb35117cf1bbd9750d91364cec530e97..d352aeacbe866dc19ccf71b860d9f8b90f6df112 100644 (file)
@@ -30,10 +30,10 @@ public interface ModuleImport extends DocumentedNode {
     Date getRevision();
 
     /**
-     * @return Openconfig version of module to import
+     * @return Semantic version of module to import
      */
-    default SemVer getOpenconfigVersion() {
-        return Module.DEFAULT_OPENCONFIG_VERSION;
+    default SemVer getSemanticVersion() {
+        return Module.DEFAULT_SEMANTIC_VERSION;
     }
 
     /**
similarity index 59%
rename from yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/OpenconfigVerSourceIdentifier.java
rename to yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SemVerSourceIdentifier.java
index 496514a6a3edbe01ab2bc52d2e8e89091ee42a62..76c9ec507db93556f76902d6d15020e2c6da3747 100644 (file)
@@ -14,13 +14,13 @@ import org.opendaylight.yangtools.concepts.SemVer;
 import org.opendaylight.yangtools.yang.model.api.Module;
 
 /**
- * YANG Schema source identifier with specified openconfig version
+ * YANG Schema source identifier with specified semantic version
  *
  * Simple transfer object represents identifier of source for YANG schema
  * (module or submodule), which consists of
  * <ul>
  * <li>YANG schema name {@link #getName()}
- * <li>Openconfig version of yang schema {@link #getOpenconfigVersion()}
+ * <li>Semantic version of yang schema {@link #getSemanticVersion()}
  * <li>(Optional) Module revision ({link {@link #getRevision()}
  * </ul>
  *
@@ -35,12 +35,12 @@ import org.opendaylight.yangtools.yang.model.api.Module;
  * and http://tools.ietf.org/html/rfc6022#section-3.1 ).
  */
 @Beta
-public final class OpenconfigVerSourceIdentifier extends SourceIdentifier {
+public final class SemVerSourceIdentifier extends SourceIdentifier {
     private static final long serialVersionUID = 1L;
     private final SemVer semVer;
 
     /**
-     * Creates new YANG Schema openconfig-version source identifier.
+     * Creates new YANG Schema semVer source identifier.
      *
      * @param name
      *            Name of schema
@@ -48,66 +48,66 @@ public final class OpenconfigVerSourceIdentifier extends SourceIdentifier {
      *            Optional of source revision in format YYYY-mm-dd. If not
      *            present, default value will be used.
      * @param semVer
-     *            openconfig version of source
+     *            semantic version of source
      */
-    OpenconfigVerSourceIdentifier(final String name, final Optional<String> formattedRevision, final SemVer semVer) {
+    SemVerSourceIdentifier(final String name, final Optional<String> formattedRevision, final SemVer semVer) {
         super(name, formattedRevision);
-        this.semVer = semVer == null ? Module.DEFAULT_OPENCONFIG_VERSION : semVer;
+        this.semVer = semVer == null ? Module.DEFAULT_SEMANTIC_VERSION : semVer;
     }
 
     /**
-     * Creates new YANG Schema openconfig-version source identifier.
+     * Creates new YANG Schema semVer source identifier.
      *
      * @param name
      *            Name of schema
      * @param semVer
-     *            openconfig version of source
+     *            semantic version of source
      */
-    OpenconfigVerSourceIdentifier(final String name, final SemVer semVer) {
+    SemVerSourceIdentifier(final String name, final SemVer semVer) {
         this(name, Optional.absent(), semVer);
     }
 
     /**
-     * Returns openconfig version of source or
-     * {@link Module#DEFAULT_OPENCONFIG_VERSION} if openconfig version was not
+     * Returns semantic version of source or
+     * {@link Module#DEFAULT_SEMANTIC_VERSION} if semantic version was not
      * supplied.
      *
-     * @return revision of source or {@link Module#DEFAULT_OPENCONFIG_VERSION} if
+     * @return revision of source or {@link Module#DEFAULT_SEMANTIC_VERSION} if
      *         revision was not supplied.
      */
-    public SemVer getOpenconfigVersion() {
+    public SemVer getSemanticVersion() {
         return semVer;
     }
 
     /**
-     * Creates new YANG Schema openconfig-version source identifier.
+     * Creates new YANG Schema semVer source identifier.
      *
      * @param moduleName
      *            Name of schema
      * @param semVer
-     *            openconfig version of source
+     *            semantic version of source
      */
-    public static OpenconfigVerSourceIdentifier create(final String moduleName, final SemVer semVer) {
-        return new OpenconfigVerSourceIdentifier(moduleName, semVer);
+    public static SemVerSourceIdentifier create(final String moduleName, final SemVer semVer) {
+        return new SemVerSourceIdentifier(moduleName, semVer);
     }
 
     /**
-     * Creates new YANG Schema openconfig-version source identifier.
+     * Creates new YANG Schema semVer source identifier.
      *
      * @param moduleName
      *            Name of schema
      * @param revision
      *            Revision of source in format YYYY-mm-dd
      * @param semVer
-     *            openconfig version of source
+     *            semantic version of source
      */
-    public static OpenconfigVerSourceIdentifier create(final String moduleName, final String revision,
+    public static SemVerSourceIdentifier create(final String moduleName, final String revision,
             final SemVer semVer) {
-        return new OpenconfigVerSourceIdentifier(moduleName, Optional.of(revision), semVer);
+        return new SemVerSourceIdentifier(moduleName, Optional.of(revision), semVer);
     }
 
     /**
-     * Creates new YANG Schema openconfig-version source identifier.
+     * Creates new YANG Schema semVer source identifier.
      *
      * @param moduleName
      *            Name of schema
@@ -115,11 +115,11 @@ public final class OpenconfigVerSourceIdentifier extends SourceIdentifier {
      *            Optional of source revision in format YYYY-mm-dd. If not
      *            present, default value will be used.
      * @param semVer
-     *            openconfig version of source
+     *            semantic version of source
      */
-    public static OpenconfigVerSourceIdentifier create(final String moduleName,
+    public static SemVerSourceIdentifier create(final String moduleName,
             final Optional<String> revision, final SemVer semVer) {
-        return new OpenconfigVerSourceIdentifier(moduleName, revision, semVer);
+        return new SemVerSourceIdentifier(moduleName, revision, semVer);
     }
 
     @Override
@@ -136,15 +136,15 @@ public final class OpenconfigVerSourceIdentifier extends SourceIdentifier {
         if (this == obj) {
             return true;
         }
-        if (!(obj instanceof OpenconfigVerSourceIdentifier)) {
+        if (!(obj instanceof SemVerSourceIdentifier)) {
             return false;
         }
-        final OpenconfigVerSourceIdentifier other = (OpenconfigVerSourceIdentifier) obj;
+        final SemVerSourceIdentifier other = (SemVerSourceIdentifier) obj;
         return Objects.equals(getName(), other.getName()) && Objects.equals(semVer, other.semVer);
     }
 
     @Override
     public String toString() {
-        return "OpenconfigVerSourceIdentifier [name=" + getName() + "(" + semVer + ")" + "@" + getRevision() + "]";
+        return "SemVerSourceIdentifier [name=" + getName() + "(" + semVer + ")" + "@" + getRevision() + "]";
     }
 }
index 967a41f423a707a19542e3f8f3956d84d8415425..8692bedfe04413c44500c2848c6f15d9e8e271ad 100644 (file)
@@ -95,7 +95,7 @@ public abstract class SourceIdentifier implements Identifier, Immutable {
     }
 
     /**
-     * Return an interned reference to a equivalent OpenconfigVerSourceIdentifier.
+     * Return an interned reference to a equivalent SemVerSourceIdentifier.
      *
      * @return Interned reference, or this object if it was interned.
      */
@@ -124,14 +124,14 @@ public abstract class SourceIdentifier implements Identifier, Immutable {
 
     /**
      * <p>
-     * Since we've got two ways of model versioning (revision &amp; openconfig version),
+     * Since we've got two ways of model versioning (revision &amp; semantic version),
      * this method shouldn't be called directly anymore. Eventually, callers of this method
      * should be notified before method gets deleted.
      * @deprecated use either
      * <ul>
-     * <li>{@link OpenconfigVerSourceIdentifier#create(String, SemVer)}</li>
-     * <li>{@link OpenconfigVerSourceIdentifier#create(String, Optional, SemVer)}</li>
-     * <li>{@link OpenconfigVerSourceIdentifier#create(String, String, SemVer)}</li>
+     * <li>{@link SemVerSourceIdentifier#create(String, SemVer)}</li>
+     * <li>{@link SemVerSourceIdentifier#create(String, Optional, SemVer)}</li>
+     * <li>{@link SemVerSourceIdentifier#create(String, String, SemVer)}</li>
      * </ul>
      * or
      * <ul>
index c62266c2c9bc32ae23ce4aaea63b0239d8e8fb9f..e2e71a278dbbcd7fe9c7add6e9b001d17f063a99 100644 (file)
@@ -16,8 +16,8 @@ public enum StatementParserMode {
      */
     DEFAULT_MODE,
     /**
-     * Openconfig version mode of statement parser. If it is enabled, module
-     * imports are processed on the basis of openconfig versions.
+     * Semantic version mode of statement parser. If it is enabled, module
+     * imports are processed on the basis of semantic versions.
      */
-    OPENCONFIG_VER_MODE
+    SEMVER_MODE
 }
\ No newline at end of file
index b4c1536dc2d62300d8f93ed1afd6df3e28e8259e..cb59566eea26eaa3e99b553ffa2421f508176e6c 100644 (file)
@@ -34,12 +34,12 @@ public final class ModuleIdentifierImpl implements ModuleIdentifier {
             final SemVer semVer) {
         this.name = checkNotNull(name);
         this.qnameModule = QNameModule.create(namespace.orElse(null), revision.orElse(null));
-        this.semVer = (semVer == null ? Module.DEFAULT_OPENCONFIG_VERSION : semVer);
+        this.semVer = (semVer == null ? Module.DEFAULT_SEMANTIC_VERSION : semVer);
     }
 
     public static ModuleIdentifier create(final String name, final Optional<URI> namespace,
             final Optional<Date> revision) {
-        return create(name, namespace, revision, Module.DEFAULT_OPENCONFIG_VERSION);
+        return create(name, namespace, revision, Module.DEFAULT_SEMANTIC_VERSION);
     }
 
     public static ModuleIdentifier create(final String name, final Optional<URI> namespace,
@@ -58,7 +58,7 @@ public final class ModuleIdentifierImpl implements ModuleIdentifier {
     }
 
     @Override
-    public SemVer getOpenconfigVersion() {
+    public SemVer getSemanticVersion() {
         return semVer;
     }
 
@@ -106,7 +106,7 @@ public final class ModuleIdentifierImpl implements ModuleIdentifier {
             return false;
         }
 
-        if (!Objects.equals(getOpenconfigVersion(), other.getOpenconfigVersion())) {
+        if (!Objects.equals(getSemanticVersion(), other.getSemanticVersion())) {
             return false;
         }
 
index 09d63dbf2ec1e74b6cb6c861fbe31abb387ce62b..52398a71428f82b21c6395d31ea88b299fed0a7c 100644 (file)
@@ -648,8 +648,8 @@ public class SchemaContextProxyTest {
                 }
 
                 @Override
-                public SemVer getOpenconfigVersion() {
-                    return module.getOpenconfigVersion();
+                public SemVer getSemanticVersion() {
+                    return module.getSemanticVersion();
                 }
 
                 @Override
index 53ba55347d5f52185a4b50063ca55640d8b97522..3ce0b60fe4dd7446c038801c9eabdf454fd4eaaa 100644 (file)
@@ -120,11 +120,11 @@ public abstract class YangModelDependencyInfo {
     }
 
     /**
-     * Returns openconfig version of module
+     * Returns semantic version of module
      *
-     * @return openconfig version
+     * @return semantic version
      */
-    public Optional<SemVer> getOpenconfigVersion() {
+    public Optional<SemVer> getSemanticVersion() {
         return semVer;
     }
 
@@ -224,7 +224,7 @@ public abstract class YangModelDependencyInfo {
     private static YangModelDependencyInfo parseModuleContext(final StatementContext module, final String sourceName) {
         final String name = Utils.stringFromStringContext(module.argument(), getReference(sourceName, module));
         final String latestRevision = getLatestRevision(module, sourceName);
-        final Optional<SemVer> semVer = Optional.fromNullable(getOpenconfigVersion(module, sourceName));
+        final Optional<SemVer> semVer = Optional.fromNullable(getSemanticVersion(module, sourceName));
         final ImmutableSet<ModuleImport> imports = parseImports(module, sourceName);
         final ImmutableSet<ModuleImport> includes = parseIncludes(module, sourceName);
 
@@ -245,7 +245,7 @@ public abstract class YangModelDependencyInfo {
                         getReference(sourceName, subStatementContext));
                 final Date revisionDate = (revisionDateStr == null) ? null : QName
                         .parseRevision(revisionDateStr);
-                final Optional<SemVer> importSemVer = Optional.fromNullable(getOpenconfigVersion(subStatementContext, sourceName));
+                final Optional<SemVer> importSemVer = Optional.fromNullable(getSemanticVersion(subStatementContext, sourceName));
                 result.add(new ModuleImportImpl(importedModuleName,
                         revisionDate, importSemVer));
             }
@@ -253,10 +253,10 @@ public abstract class YangModelDependencyInfo {
         return ImmutableSet.copyOf(result);
     }
 
-    private static SemVer getOpenconfigVersion(final StatementContext statement, final String sourceName) {
+    private static SemVer getSemanticVersion(final StatementContext statement, final String sourceName) {
         final List<StatementContext> subStatements = statement.statement();
         String semVerString = null;
-        final String semVerStmtName = SupportedExtensionsMapping.OPENCONFIG_VERSION.getStatementName().getLocalName();
+        final String semVerStmtName = SupportedExtensionsMapping.SEMANTIC_VERSION.getStatementName().getLocalName();
         for (final StatementContext subStatement : subStatements) {
             final String subStatementName = Utils.trimPrefix(subStatement.keyword().getText());
             if (semVerStmtName.equals(subStatementName)) {
@@ -387,7 +387,8 @@ public abstract class YangModelDependencyInfo {
         @Override
         public String toString() {
             return "Module [name=" + getName() + ", revision=" + getRevision() + ", semanticVersion="
-                    + getOpenconfigVersion().or(Module.DEFAULT_OPENCONFIG_VERSION) + ", dependencies=" + getDependencies() + "]";
+                    + getSemanticVersion().or(Module.DEFAULT_SEMANTIC_VERSION) + ", dependencies=" + getDependencies()
+                    + "]";
         }
     }
 
@@ -444,7 +445,7 @@ public abstract class YangModelDependencyInfo {
         public ModuleImportImpl(final String moduleName, final Date revision, final Optional<SemVer> semVer) {
             this.name = Preconditions.checkNotNull(moduleName, "Module name must not be null.");
             this.revision = revision;
-            this.semVer = semVer.or(Module.DEFAULT_OPENCONFIG_VERSION);
+            this.semVer = semVer.or(Module.DEFAULT_SEMANTIC_VERSION);
         }
 
         @Override
@@ -458,7 +459,7 @@ public abstract class YangModelDependencyInfo {
         }
 
         @Override
-        public SemVer getOpenconfigVersion() {
+        public SemVer getSemanticVersion() {
             return this.semVer;
         }
 
@@ -504,7 +505,7 @@ public abstract class YangModelDependencyInfo {
                 return false;
             }
 
-            if (!Objects.equals(getOpenconfigVersion(), other.getOpenconfigVersion())) {
+            if (!Objects.equals(getSemanticVersion(), other.getSemanticVersion())) {
                 return false;
             }
             return true;
@@ -513,7 +514,7 @@ public abstract class YangModelDependencyInfo {
         @Override
         public String toString() {
             return "ModuleImportImpl [name=" + name + ", revision="
-                    + QName.formattedRevision(revision) + ", semanticVersion=" + getOpenconfigVersion() + "]";
+                    + QName.formattedRevision(revision) + ", semanticVersion=" + getSemanticVersion() + "]";
         }
     }
 }
index 6bce00a841d5350d66c518f56e800cf59d1d826c..bc339f7f54932488dc77211a9372424a1376a370 100644 (file)
@@ -175,7 +175,7 @@ abstract class DependencyResolver {
         }
 
         @Override
-        public SemVer getOpenconfigVersion() {
+        public SemVer getSemanticVersion() {
             return null;
         }
 
@@ -13,13 +13,13 @@ import java.util.Map;
 import org.opendaylight.yangtools.concepts.SemVer;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.ModuleImport;
-import org.opendaylight.yangtools.yang.model.repo.api.OpenconfigVerSourceIdentifier;
+import org.opendaylight.yangtools.yang.model.repo.api.SemVerSourceIdentifier;
 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
 import org.opendaylight.yangtools.yang.parser.impl.util.YangModelDependencyInfo;
 
-final class OpenconfigVerDependencyResolver extends DependencyResolver {
+final class SemVerDependencyResolver extends DependencyResolver {
 
-    protected OpenconfigVerDependencyResolver(final Map<SourceIdentifier, YangModelDependencyInfo> depInfo) {
+    protected SemVerDependencyResolver(final Map<SourceIdentifier, YangModelDependencyInfo> depInfo) {
         super(depInfo);
     }
 
@@ -27,7 +27,7 @@ final class OpenconfigVerDependencyResolver extends DependencyResolver {
         final String requestedModuleName = mi.getModuleName();
         for (SourceIdentifier r : haystack) {
             if (requestedModuleName.equals(r.getName())
-                    && isCompatible(((OpenconfigVerSourceIdentifier) r).getOpenconfigVersion(), mi.getOpenconfigVersion())) {
+                    && isCompatible(((SemVerSourceIdentifier) r).getSemanticVersion(), mi.getSemanticVersion())) {
                 return r;
             }
         }
@@ -42,7 +42,7 @@ final class OpenconfigVerDependencyResolver extends DependencyResolver {
     @Override
     protected boolean isKnown(final Collection<SourceIdentifier> haystack, final ModuleImport mi) {
         final String rev = mi.getRevision() != null ? QName.formattedRevision(mi.getRevision()) : null;
-        final OpenconfigVerSourceIdentifier msi = OpenconfigVerSourceIdentifier.create(mi.getModuleName(), Optional.fromNullable(rev), mi.getOpenconfigVersion());
+        final SemVerSourceIdentifier msi = SemVerSourceIdentifier.create(mi.getModuleName(), Optional.fromNullable(rev), mi.getSemanticVersion());
 
         // Quick lookup
         if (haystack.contains(msi)) {
@@ -53,7 +53,7 @@ final class OpenconfigVerDependencyResolver extends DependencyResolver {
         return findCompatibleVersion(haystack, mi) != null;
     }
 
-    public static OpenconfigVerDependencyResolver create(final Map<SourceIdentifier, YangModelDependencyInfo> depInfo) {
-        return new OpenconfigVerDependencyResolver(depInfo);
+    public static SemVerDependencyResolver create(final Map<SourceIdentifier, YangModelDependencyInfo> depInfo) {
+        return new SemVerDependencyResolver(depInfo);
     }
 }
\ No newline at end of file
index 1f055831304f32728320dbc7018ab39c6d44a18b..c9c3db8f730298c0b2cfd8864e2a8c5fbb1e6334 100644 (file)
@@ -74,7 +74,7 @@ final class SharedSchemaContextFactory implements SchemaContextFactory {
             final Collection<SourceIdentifier> requiredSources, final StatementParserMode statementParserMode,
             final Set<QName> supportedFeatures) {
         return createSchemaContext(requiredSources,
-                statementParserMode == StatementParserMode.OPENCONFIG_VER_MODE ? this.semVerCache : this.cache,
+                statementParserMode == StatementParserMode.SEMVER_MODE ? this.semVerCache : this.cache,
                 new AssembleSources(Optional.ofNullable(supportedFeatures), statementParserMode));
     }
 
@@ -183,7 +183,7 @@ final class SharedSchemaContextFactory implements SchemaContextFactory {
             this.supportedFeatures = supportedFeatures;
             this.statementParserMode = Preconditions.checkNotNull(statementParserMode);
             switch (statementParserMode) {
-            case OPENCONFIG_VER_MODE:
+            case SEMVER_MODE:
                 this.getIdentifier = ASTSchemaSource::getSemVerIdentifier;
                 break;
             default:
@@ -200,8 +200,8 @@ final class SharedSchemaContextFactory implements SchemaContextFactory {
 
             LOG.debug("Resolving dependency reactor {}", deps);
 
-            final DependencyResolver res = this.statementParserMode == StatementParserMode.OPENCONFIG_VER_MODE
-                    ? OpenconfigVerDependencyResolver.create(deps) : RevisionDependencyResolver.create(deps);
+            final DependencyResolver res = this.statementParserMode == StatementParserMode.SEMVER_MODE
+                    ? SemVerDependencyResolver.create(deps) : RevisionDependencyResolver.create(deps);
             if (!res.getUnresolvedSources().isEmpty()) {
                 LOG.debug("Omitting models {} due to unsatisfied imports {}", res.getUnresolvedSources(),
                     res.getUnsatisfiedImports());
index 89792a3e60b1f79e901f3b9f86b83392ba7057db..3fe2ccc0f110040d9de60f24b9ba9776cfa24111 100644 (file)
@@ -16,7 +16,7 @@ public enum ModelProcessingPhase {
      * Preliminary cross-source relationship resolution phase which collects
      * available module names and module namespaces. It is necessary in order to
      * correct resolution of unknown statements used in linkage phase (e.g.
-     * openconfig version of yang modules).
+     * semantic version of yang modules).
      */
     SOURCE_PRE_LINKAGE(INIT),
     /**
@@ -14,8 +14,8 @@ import org.opendaylight.yangtools.yang.model.api.meta.IdentifierNamespace;
 
 /**
  * Namespace class for storing Maps of all modules with the same name. This namespace is
- * used only in case the openconfig versioning is enabled, otherwise it is empty.
+ * used only in case the semantic versioning is enabled, otherwise it is empty.
  */
 @Beta
-public interface OpenconfigVersionModuleNamespace extends IdentifierNamespace<String, NavigableMap<SemVer, StmtContext<?, ?, ?>>> {
+public interface SemanticVersionModuleNamespace extends IdentifierNamespace<String, NavigableMap<SemVer, StmtContext<?, ?, ?>>> {
 }
@@ -12,8 +12,8 @@ import org.opendaylight.yangtools.concepts.SemVer;
 import org.opendaylight.yangtools.yang.model.api.meta.IdentifierNamespace;
 
 /**
- * namespace class for storing openconfig version of yang modules
+ * namespace class for storing semantic version of yang modules
  */
 @Beta
-public interface OpenconfigVersionNamespace extends IdentifierNamespace<StmtContext<?, ?, ?>, SemVer> {
+public interface SemanticVersionNamespace extends IdentifierNamespace<StmtContext<?, ?, ?>, SemVer> {
 }
index df28f4dc4a05b01882df8f9c4a832083ed819817..bd0e1d83229b89b61582b26569d13e302aa65702 100644 (file)
@@ -61,7 +61,7 @@ public interface StmtContext<A, D extends DeclaredStatement<A>, E extends Effect
 
     boolean isConfiguration();
 
-    boolean isEnabledOpenconfigVersioning();
+    boolean isEnabledSemanticVersioning();
 
     @Nonnull
     <K, V, KT extends K, N extends IdentifierNamespace<K, V>> V getFromNamespace(
@@ -13,8 +13,8 @@ import org.opendaylight.yangtools.yang.model.api.meta.IdentifierNamespace;
 
 /**
  *
- * Source-specific mapping of prefixes to module identifier with specified openconfig version
+ * Source-specific mapping of prefixes to module identifier with specified semantic version
  */
 @Beta
-public interface ImpPrefixToOpenconfigVerModuleIdentifier extends IdentifierNamespace<String, ModuleIdentifier> {
+public interface ImpPrefixToSemVerModuleIdentifier extends IdentifierNamespace<String, ModuleIdentifier> {
 }
index 393adb3f5510e4d18dc0f78c51fe788d5bdc857c..25107e6a707f77c5c2c6d15cb1f6d31204889bcd 100644 (file)
@@ -32,7 +32,7 @@ import org.opendaylight.yangtools.yang.common.YangVersion;
  * supplied statement definition map. This step is used as preparatory cross-source
  * relationship resolution phase which collects available module names and namespaces.
  * It is necessary in order to correct resolution of unknown statements used by linkage
- * phase (e.g. openconfig version of yang modules).
+ * phase (e.g. semantic version of yang modules).
  * </li>
  * <li>{@link #writeLinkage(StatementWriter, QNameToStatementDefinition, PrefixToModule)} -
  * Source MUST emit only statements related in linkage, which are present in
index ecd85d8b73ec6423d152087ae932b6951d89cdf5..322b05ffb624c31fbdba2158b6771772896b664c 100644 (file)
@@ -80,7 +80,7 @@ class BuildGlobalContext extends NamespaceStorageSupport implements NamespaceBeh
     private final Map<ModelProcessingPhase, StatementSupportBundle> supports;
     private final Set<SourceSpecificContext> sources = new HashSet<>();
     private final Set<YangVersion> supportedVersions;
-    private final boolean enabledOpenconfigVersions;
+    private final boolean enabledSemanticVersions;
 
     private Set<SourceSpecificContext> libSources = new HashSet<>();
     private ModelProcessingPhase currentPhase = ModelProcessingPhase.INIT;
@@ -93,10 +93,10 @@ class BuildGlobalContext extends NamespaceStorageSupport implements NamespaceBeh
 
         switch (statementParserMode) {
             case DEFAULT_MODE:
-                enabledOpenconfigVersions = false;
+                enabledSemanticVersions = false;
                 break;
-            case OPENCONFIG_VER_MODE:
-                enabledOpenconfigVersions = true;
+            case SEMVER_MODE:
+                enabledSemanticVersions = true;
                 break;
             default:
                 throw new IllegalArgumentException("Unhandled parser mode " + statementParserMode);
@@ -109,8 +109,8 @@ class BuildGlobalContext extends NamespaceStorageSupport implements NamespaceBeh
         this.supportedVersions = ImmutableSet.copyOf(supports.get(ModelProcessingPhase.INIT).getSupportedVersions());
     }
 
-    boolean isEnabledOpenconfigVersioning() {
-        return enabledOpenconfigVersions;
+    boolean isEnabledSemanticVersioning() {
+        return enabledSemanticVersions;
     }
 
     StatementSupportBundle getSupportsForPhase(final ModelProcessingPhase currentPhase) {
@@ -122,8 +122,8 @@ class BuildGlobalContext extends NamespaceStorageSupport implements NamespaceBeh
     }
 
     void addLibSource(@Nonnull final StatementStreamSource libSource) {
-        Preconditions.checkState(!isEnabledOpenconfigVersioning(),
-                "Library sources are not supported in openconfig version mode currently.");
+        Preconditions.checkState(!isEnabledSemanticVersioning(),
+                "Library sources are not supported in semantic version mode currently.");
         Preconditions.checkState(currentPhase == ModelProcessingPhase.INIT,
                 "Add library source is allowed in ModelProcessingPhase.INIT only");
         libSources.add(new SourceSpecificContext(this, libSource));
index 5495c3ccff513e7644c1a6a92f8935df55bb7127..c44e2463bc24f42f847062a01e068340288c4c8b 100644 (file)
@@ -235,7 +235,7 @@ public final class CrossSourceStatementReactor {
          * are present in resulting SchemaContext. Any other library sources are
          * ignored and this also applies to error reporting.
          *
-         * Library sources are not supported in openconfig version mode currently.
+         * Library sources are not supported in semantic version mode currently.
          *
          * @param libSources
          *            yang sources which should be added into library sources
index fae13e73e8189945ec5f9672cbeef44494a5c182..f81050ff8ee74f6a90d3346489884086b07c8754 100644 (file)
@@ -190,8 +190,8 @@ public class RootStatementContext<A, D extends DeclaredStatement<A>, E extends E
     }
 
     @Override
-    public boolean isEnabledOpenconfigVersioning() {
-        return sourceContext.isEnabledOpenconfigVersioning();
+    public boolean isEnabledSemanticVersioning() {
+        return sourceContext.isEnabledSemanticVersioning();
     }
 
     @Override
index 0fe22b13db9ccbdddfaab591ed4d809e93dba69b..ee72425c428943737255952f4491ce053c896b6d 100644 (file)
@@ -90,8 +90,8 @@ public class SourceSpecificContext implements NamespaceStorageNode, NamespaceBeh
         this.source = Preconditions.checkNotNull(source);
     }
 
-    boolean isEnabledOpenconfigVersioning(){
-        return currentContext.isEnabledOpenconfigVersioning();
+    boolean isEnabledSemanticVersioning(){
+        return currentContext.isEnabledSemanticVersioning();
     }
 
     ModelProcessingPhase getInProgressPhase() {
index fabe7692b14cafa2544650014c73e5dffad2c3bc..d2e5c733d3bf63c44bb213db9afc5d895746ce58 100644 (file)
@@ -322,8 +322,8 @@ final class SubstatementContext<A, D extends DeclaredStatement<A>, E extends Eff
     }
 
     @Override
-    public boolean isEnabledOpenconfigVersioning() {
-        return parent.isEnabledOpenconfigVersioning();
+    public boolean isEnabledSemanticVersioning() {
+        return parent.isEnabledSemanticVersioning();
     }
 
     @Override
index 884e2b7da39786f49ee578027e0330145d214b2a..77337197b990d5cadb6c70206c24999265531a61 100644 (file)
@@ -39,13 +39,13 @@ import org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ModelActionBuilder;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ModelActionBuilder.InferenceAction;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ModelActionBuilder.Prerequisite;
-import org.opendaylight.yangtools.yang.parser.spi.meta.OpenconfigVersionModuleNamespace;
-import org.opendaylight.yangtools.yang.parser.spi.meta.OpenconfigVersionNamespace;
+import org.opendaylight.yangtools.yang.parser.spi.meta.SemanticVersionModuleNamespace;
+import org.opendaylight.yangtools.yang.parser.spi.meta.SemanticVersionNamespace;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.Mutable;
 import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToModuleIdentifier;
 import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToNamespace;
-import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToOpenconfigVerModuleIdentifier;
+import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToSemVerModuleIdentifier;
 import org.opendaylight.yangtools.yang.parser.spi.source.ImportedModuleContext;
 import org.opendaylight.yangtools.yang.parser.spi.source.ModuleCtxToModuleIdentifier;
 import org.opendaylight.yangtools.yang.parser.spi.source.ModuleNameToNamespace;
@@ -58,7 +58,7 @@ public class ImportStatementDefinition extends
             .builder(YangStmtMapping.IMPORT)
             .addMandatory(YangStmtMapping.PREFIX)
             .addOptional(YangStmtMapping.REVISION_DATE)
-            .addOptional(SupportedExtensionsMapping.OPENCONFIG_VERSION)
+            .addOptional(SupportedExtensionsMapping.SEMANTIC_VERSION)
             .build();
 
     public ImportStatementDefinition() {
@@ -123,8 +123,8 @@ public class ImportStatementDefinition extends
     @Override
     public void onLinkageDeclared(
             final Mutable<String, ImportStatement, EffectiveStatement<String, ImportStatement>> stmt) {
-        if (stmt.isEnabledOpenconfigVersioning()) {
-            OpenconfigVersionImport.onLinkageDeclared(stmt);
+        if (stmt.isEnabledSemanticVersioning()) {
+            SemanticVersionImport.onLinkageDeclared(stmt);
         } else {
             RevisionImport.onLinkageDeclared(stmt);
         }
@@ -219,8 +219,8 @@ public class ImportStatementDefinition extends
         }
     }
 
-    private static class OpenconfigVersionImport {
-        private OpenconfigVersionImport() {
+    private static class SemanticVersionImport {
+        private SemanticVersionImport() {
             throw new UnsupportedOperationException("Utility class");
         }
 
@@ -245,7 +245,7 @@ public class ImportStatementDefinition extends
                     if (importedModuleEntry != null) {
                         importedModule = importedModuleEntry.getValue();
                         importedModuleIdentifier = importedModule.getFromNamespace(ModuleCtxToModuleIdentifier.class, importedModule);
-                        semVerModuleIdentifier = createOpenconfigVerModuleIdentifier(importedModuleIdentifier, importedModuleEntry.getKey());
+                        semVerModuleIdentifier = createSemVerModuleIdentifier(importedModuleIdentifier, importedModuleEntry.getKey());
                     } else {
                         throw new InferenceException(stmt.getStatementSourceReference(),
                                 "Unable to find module compatible with requested import [%s(%s)].", impIdentifier
@@ -255,7 +255,7 @@ public class ImportStatementDefinition extends
                     linkageTarget.get().addToNs(ImportedModuleContext.class, importedModuleIdentifier, importedModule);
                     final String impPrefix = firstAttributeOf(stmt.declaredSubstatements(), PrefixStatement.class);
                     stmt.addToNs(ImpPrefixToModuleIdentifier.class, impPrefix, importedModuleIdentifier);
-                    stmt.addToNs(ImpPrefixToOpenconfigVerModuleIdentifier.class, impPrefix, semVerModuleIdentifier);
+                    stmt.addToNs(ImpPrefixToSemVerModuleIdentifier.class, impPrefix, semVerModuleIdentifier);
 
                     final URI modNs = firstAttributeOf(importedModule.declaredSubstatements(), NamespaceStatement.class);
                     stmt.addToNs(URIStringToImpPrefix.class, modNs.toString(), impPrefix);
@@ -273,9 +273,9 @@ public class ImportStatementDefinition extends
         }
 
         private static SemVer getRequestedImportVersion(final Mutable<?, ?, ?> impStmt) {
-            SemVer requestedImportVersion = impStmt.getFromNamespace(OpenconfigVersionNamespace.class, impStmt);
+            SemVer requestedImportVersion = impStmt.getFromNamespace(SemanticVersionNamespace.class, impStmt);
             if (requestedImportVersion == null) {
-                requestedImportVersion = Module.DEFAULT_OPENCONFIG_VERSION;
+                requestedImportVersion = Module.DEFAULT_SEMANTIC_VERSION;
             }
             return requestedImportVersion;
         }
@@ -283,7 +283,7 @@ public class ImportStatementDefinition extends
         private static Entry<SemVer, StmtContext<?, ?, ?>> findRecentCompatibleModuleEntry(final String moduleName,
                 final Mutable<String, ImportStatement, EffectiveStatement<String, ImportStatement>> impStmt) {
             NavigableMap<SemVer, StmtContext<?, ?, ?>> allRelevantModulesMap = impStmt.getFromNamespace(
-                    OpenconfigVersionModuleNamespace.class, moduleName);
+                    SemanticVersionModuleNamespace.class, moduleName);
             if (allRelevantModulesMap == null) {
                 return null;
             }
@@ -303,7 +303,7 @@ public class ImportStatementDefinition extends
                     Optional.of(SimpleDateFormatUtil.DEFAULT_DATE_IMP));
         }
 
-        private static ModuleIdentifier createOpenconfigVerModuleIdentifier(final ModuleIdentifier importedModuleIdentifier,
+        private static ModuleIdentifier createSemVerModuleIdentifier(final ModuleIdentifier importedModuleIdentifier,
                 final SemVer semVer) {
             return ModuleIdentifierImpl.create(importedModuleIdentifier.getName(),
                 Optional.ofNullable(importedModuleIdentifier.getNamespace()),
index a3b9fee0aa127641a1fba86f34f1d9fe83e2ed65..2fbdad58e6fd3ee36e41cd8e754b1a4d7b34ccbf 100644 (file)
@@ -30,8 +30,8 @@ import org.opendaylight.yangtools.yang.parser.spi.NamespaceToModule;
 import org.opendaylight.yangtools.yang.parser.spi.PreLinkageModuleNamespace;
 import org.opendaylight.yangtools.yang.parser.spi.SubstatementValidator;
 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
-import org.opendaylight.yangtools.yang.parser.spi.meta.OpenconfigVersionModuleNamespace;
-import org.opendaylight.yangtools.yang.parser.spi.meta.OpenconfigVersionNamespace;
+import org.opendaylight.yangtools.yang.parser.spi.meta.SemanticVersionModuleNamespace;
+import org.opendaylight.yangtools.yang.parser.spi.meta.SemanticVersionNamespace;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.Mutable;
 import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToModuleIdentifier;
@@ -77,7 +77,7 @@ public class ModuleStatementSupport extends
             .addAny(YangStmtMapping.TYPEDEF)
             .addAny(YangStmtMapping.USES)
             .addOptional(YangStmtMapping.YANG_VERSION)
-            .addOptional(SupportedExtensionsMapping.OPENCONFIG_VERSION)
+            .addOptional(SupportedExtensionsMapping.SEMANTIC_VERSION)
             .build();
 
     public ModuleStatementSupport() {
@@ -169,25 +169,25 @@ public class ModuleStatementSupport extends
         stmt.addToNs(ModuleIdentifierToModuleQName.class, moduleIdentifier, qNameModule);
         stmt.addToNs(ImpPrefixToModuleIdentifier.class, modulePrefix, moduleIdentifier);
 
-        if (stmt.isEnabledOpenconfigVersioning()) {
-            addToOpenconfigVerModuleNamespace(stmt);
+        if (stmt.isEnabledSemanticVersioning()) {
+            addToSemVerModuleNamespace(stmt);
         }
     }
 
-    private static void addToOpenconfigVerModuleNamespace(
+    private static void addToSemVerModuleNamespace(
             final Mutable<String, ModuleStatement, EffectiveStatement<String, ModuleStatement>> stmt) {
         final String moduleName = stmt.getStatementArgument();
         NavigableMap<SemVer, StmtContext<?, ?, ?>> modulesMap = stmt.getFromNamespace(
-                OpenconfigVersionModuleNamespace.class, moduleName);
+                SemanticVersionModuleNamespace.class, moduleName);
         if (modulesMap == null) {
             modulesMap = new TreeMap<>();
         }
-        SemVer moduleSemVer = stmt.getFromNamespace(OpenconfigVersionNamespace.class, stmt);
+        SemVer moduleSemVer = stmt.getFromNamespace(SemanticVersionNamespace.class, stmt);
         if(moduleSemVer == null) {
-            moduleSemVer = Module.DEFAULT_OPENCONFIG_VERSION;
+            moduleSemVer = Module.DEFAULT_SEMANTIC_VERSION;
         }
         modulesMap.put(moduleSemVer, stmt);
-        stmt.addToNs(OpenconfigVersionModuleNamespace.class, moduleName, modulesMap);
+        stmt.addToNs(SemanticVersionModuleNamespace.class, moduleName, modulesMap);
     }
 
     @Override
@@ -14,27 +14,27 @@ import org.opendaylight.yangtools.yang.model.api.stmt.UnknownStatement;
 import org.opendaylight.yangtools.yang.parser.spi.SubstatementValidator;
 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.OpenconfigVersionNamespace;
+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.OpenconfigVersionEffectiveStatementImpl;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.SemanticVersionEffectiveStatementImpl;
 
 @Beta
-public final class OpenconfigVersionStatementImpl extends AbstractDeclaredStatement<SemVer> implements
+public final class SemanticVersionStatementImpl extends AbstractDeclaredStatement<SemVer> implements
         UnknownStatement<SemVer> {
     private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(
-            SupportedExtensionsMapping.OPENCONFIG_VERSION).build();
+            SupportedExtensionsMapping.SEMANTIC_VERSION).build();
 
-    OpenconfigVersionStatementImpl(
+    SemanticVersionStatementImpl(
             final StmtContext<SemVer, UnknownStatement<SemVer>, ?> context) {
         super(context);
     }
 
-    public static class OpenconfigVersionSupport
+    public static class SemanticVersionSupport
             extends
             AbstractStatementSupport<SemVer, UnknownStatement<SemVer>, EffectiveStatement<SemVer, UnknownStatement<SemVer>>> {
 
-        public OpenconfigVersionSupport() {
-            super(SupportedExtensionsMapping.OPENCONFIG_VERSION);
+        public SemanticVersionSupport() {
+            super(SupportedExtensionsMapping.SEMANTIC_VERSION);
         }
 
         @Override
@@ -44,19 +44,19 @@ public final class OpenconfigVersionStatementImpl extends AbstractDeclaredStatem
 
         @Override
         public void onLinkageDeclared(final StmtContext.Mutable<SemVer,UnknownStatement<SemVer>,EffectiveStatement<SemVer,UnknownStatement<SemVer>>> stmt) {
-            stmt.addToNs(OpenconfigVersionNamespace.class, stmt.getParentContext(), stmt.getStatementArgument());
+            stmt.addToNs(SemanticVersionNamespace.class, stmt.getParentContext(), stmt.getStatementArgument());
         }
 
         @Override
         public UnknownStatement<SemVer> createDeclared(
                 final StmtContext<SemVer, UnknownStatement<SemVer>, ?> ctx) {
-            return new OpenconfigVersionStatementImpl(ctx);
+            return new SemanticVersionStatementImpl(ctx);
         }
 
         @Override
         public EffectiveStatement<SemVer, UnknownStatement<SemVer>> createEffective(
                 final StmtContext<SemVer, UnknownStatement<SemVer>, EffectiveStatement<SemVer, UnknownStatement<SemVer>>> ctx) {
-            return new OpenconfigVersionEffectiveStatementImpl(ctx);
+            return new SemanticVersionEffectiveStatementImpl(ctx);
         }
 
         @Override
index f25f0a6e020237266a8d2880c407d73e2b5d436e..f21322162db5fd5f581c22f67be1df5007e5745b 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.OpenconfigVersionEffectiveStatementImpl;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.SemanticVersionEffectiveStatementImpl;
 
 @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),
-    OPENCONFIG_VERSION("http://openconfig.net/yang/openconfig-ext", OpenconfigVersionStatementImpl.class,
-            OpenconfigVersionEffectiveStatementImpl.class,
-        "openconfig-version", "semver", false);
+    SEMANTIC_VERSION("urn:opendaylight:yang:extension:semantic-version", "2016-02-02",
+        SemanticVersionStatementImpl.class, SemanticVersionEffectiveStatementImpl.class,
+        "semantic-version", "semantic-version", false);
 
     private final Class<? extends DeclaredStatement<?>> type;
     private final Class<? extends EffectiveStatement<?, ?>> effectiveType;
index aeeb70b316a2585968617185636fbfeca345d938..7b283fcb61bb7fc0f773005099184456315ccd10 100644 (file)
@@ -31,8 +31,8 @@ import org.opendaylight.yangtools.yang.parser.spi.TypeNamespace;
 import org.opendaylight.yangtools.yang.parser.spi.meta.DerivedIdentitiesNamespace;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ModelProcessingPhase;
 import org.opendaylight.yangtools.yang.parser.spi.meta.QNameCacheNamespace;
-import org.opendaylight.yangtools.yang.parser.spi.meta.OpenconfigVersionModuleNamespace;
-import org.opendaylight.yangtools.yang.parser.spi.meta.OpenconfigVersionNamespace;
+import org.opendaylight.yangtools.yang.parser.spi.meta.SemanticVersionModuleNamespace;
+import org.opendaylight.yangtools.yang.parser.spi.meta.SemanticVersionNamespace;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StatementDefinitionNamespace;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupportBundle;
 import org.opendaylight.yangtools.yang.parser.spi.source.AnyxmlSchemaLocationNamespace;
@@ -42,7 +42,7 @@ import org.opendaylight.yangtools.yang.parser.spi.source.BelongsToPrefixToModule
 import org.opendaylight.yangtools.yang.parser.spi.source.BelongsToPrefixToModuleName;
 import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToModuleIdentifier;
 import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToNamespace;
-import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToOpenconfigVerModuleIdentifier;
+import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToSemVerModuleIdentifier;
 import org.opendaylight.yangtools.yang.parser.spi.source.ImportedModuleContext;
 import org.opendaylight.yangtools.yang.parser.spi.source.IncludedModuleContext;
 import org.opendaylight.yangtools.yang.parser.spi.source.IncludedSubmoduleNameToIdentifier;
@@ -143,10 +143,10 @@ public final class YangInferencePipeline {
             .addSupport(sourceLocal(BelongsToModuleContext.class))
             .addSupport(sourceLocal(QNameToStatementDefinition.class))
             .addSupport(sourceLocal(BelongsToPrefixToModuleName.class))
-            .addSupport(new OpenconfigVersionStatementImpl.OpenconfigVersionSupport())
-            .addSupport(global(OpenconfigVersionNamespace.class))
-            .addSupport(global(OpenconfigVersionModuleNamespace.class))
-            .addSupport(sourceLocal(ImpPrefixToOpenconfigVerModuleIdentifier.class))
+            .addSupport(new SemanticVersionStatementImpl.SemanticVersionSupport())
+            .addSupport(global(SemanticVersionNamespace.class))
+            .addSupport(global(SemanticVersionModuleNamespace.class))
+            .addSupport(sourceLocal(ImpPrefixToSemVerModuleIdentifier.class))
             .build();
 
     public static final StatementSupportBundle STMT_DEF_BUNDLE = StatementSupportBundle
index 68ae3ade285da80dd014f7f0ae20da4d2a0242fb..46409984e62e9f69c6ca849cc2ca657326d6f4fc 100644 (file)
@@ -93,8 +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 OpenconfigVersionEffectiveStatementImpl semanticVersionStmt = firstEffective(OpenconfigVersionEffectiveStatementImpl.class);
-        this.semanticVersion = (semanticVersionStmt == null) ? DEFAULT_OPENCONFIG_VERSION : semanticVersionStmt.argument();
+        final SemanticVersionEffectiveStatementImpl semanticVersionStmt = firstEffective(SemanticVersionEffectiveStatementImpl.class);
+        this.semanticVersion = (semanticVersionStmt == null) ? DEFAULT_SEMANTIC_VERSION : semanticVersionStmt.argument();
 
         final OrganizationEffectiveStatementImpl organizationStmt = firstEffective(OrganizationEffectiveStatementImpl.class);
         this.organization = (organizationStmt == null) ? null : organizationStmt.argument();
@@ -250,7 +250,7 @@ abstract class AbstractEffectiveModule<D extends DeclaredStatement<String>> exte
 
         this.unknownNodes = ImmutableList.copyOf(unknownNodesInit);
         this.augmentations = ImmutableSet.copyOf(augmentationsInit);
-        if (ctx.isEnabledOpenconfigVersioning()) {
+        if (ctx.isEnabledSemanticVersioning()) {
             this.imports = ImmutableSet.copyOf(importsInit);
         } else {
             this.imports = ImmutableSet.copyOf(resolveModuleImports(importsInit, ctx));
@@ -412,7 +412,7 @@ abstract class AbstractEffectiveModule<D extends DeclaredStatement<String>> exte
     }
 
     @Override
-    public SemVer getOpenconfigVersion() {
+    public SemVer getSemanticVersion() {
         return semanticVersion;
     }
 
index da2e3f65442a28050f6be68c106f967868ff7a40..8209c346a8eb0a2fbfc538d1720a3276024b2921 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.yangtools.yang.model.api.ModuleImport;
 import org.opendaylight.yangtools.yang.model.api.stmt.ImportStatement;
 import org.opendaylight.yangtools.yang.parser.spi.meta.MissingSubstatementException;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
-import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToOpenconfigVerModuleIdentifier;
+import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToSemVerModuleIdentifier;
 
 public class ImportEffectiveStatementImpl extends DeclaredEffectiveStatementBase<String, ImportStatement> implements
         ModuleImport {
@@ -42,15 +42,15 @@ public class ImportEffectiveStatementImpl extends DeclaredEffectiveStatementBase
                     ctx.getStatementSourceReference());
         }
 
-        if (!ctx.isEnabledOpenconfigVersioning()) {
+        if (!ctx.isEnabledSemanticVersioning()) {
             RevisionDateEffectiveStatementImpl revisionDateStmt = firstEffective(RevisionDateEffectiveStatementImpl.class);
             this.revision = (revisionDateStmt == null) ? SimpleDateFormatUtil.DEFAULT_DATE_IMP : revisionDateStmt
                     .argument();
-            this.semVer = Module.DEFAULT_OPENCONFIG_VERSION;
+            this.semVer = Module.DEFAULT_SEMANTIC_VERSION;
         } else {
-            ModuleIdentifier importedModuleIdentifier = ctx.getFromNamespace(ImpPrefixToOpenconfigVerModuleIdentifier.class, prefix);
+            ModuleIdentifier importedModuleIdentifier = ctx.getFromNamespace(ImpPrefixToSemVerModuleIdentifier.class, prefix);
             revision = importedModuleIdentifier.getRevision();
-            semVer = importedModuleIdentifier.getOpenconfigVersion();
+            semVer = importedModuleIdentifier.getSemanticVersion();
         }
 
         DescriptionEffectiveStatementImpl descriptionStmt = firstEffective(DescriptionEffectiveStatementImpl.class);
@@ -71,7 +71,7 @@ public class ImportEffectiveStatementImpl extends DeclaredEffectiveStatementBase
     }
 
     @Override
-    public SemVer getOpenconfigVersion() {
+    public SemVer getSemanticVersion() {
         return semVer;
     }
 
@@ -115,7 +115,7 @@ public class ImportEffectiveStatementImpl extends DeclaredEffectiveStatementBase
     @Override
     public String toString() {
         return MoreObjects.toStringHelper(this).add("moduleName", getModuleName())
-                .add("revision", getRevision()).add("openconfig version", getOpenconfigVersion())
+                .add("revision", getRevision()).add("semantic version", getSemanticVersion())
                 .add("prefix", getPrefix()).add("description", getDescription())
                 .add("reference", getReference()).toString();
     }
index 2a38ab2bf2252c03dc0cdc44c4add9b94cccc617..fccc90be9f28168c29c39fd8eaff4d1a78cd7976 100644 (file)
@@ -21,14 +21,14 @@ final class ModuleImportImpl implements ModuleImport {
     private final String prefix;
 
     public ModuleImportImpl(final String moduleName, final Date revision, final String prefix) {
-        this(moduleName, revision, prefix, Module.DEFAULT_OPENCONFIG_VERSION);
+        this(moduleName, revision, prefix, Module.DEFAULT_SEMANTIC_VERSION);
     }
 
     public ModuleImportImpl(final String moduleName, final Date revision, final String prefix, final SemVer semVer) {
         this.moduleName = Preconditions.checkNotNull(moduleName, "Module name must not be null.");
         this.revision = revision;
         this.prefix = Preconditions.checkNotNull(prefix, "Import prefix must not be null.");
-        this.semVer = Preconditions.checkNotNull(semVer, "Openconfig version of module must not be null.");
+        this.semVer = Preconditions.checkNotNull(semVer, "Semantic version of module must not be null.");
     }
 
     @Override
@@ -42,7 +42,7 @@ final class ModuleImportImpl implements ModuleImport {
     }
 
     @Override
-    public SemVer getOpenconfigVersion() {
+    public SemVer getSemanticVersion() {
         return semVer;
     }
 
@@ -83,7 +83,7 @@ final class ModuleImportImpl implements ModuleImport {
         if (!Objects.equals(getPrefix(), other.getPrefix())) {
             return false;
         }
-        if (!Objects.equals(getOpenconfigVersion(), other.getOpenconfigVersion())) {
+        if (!Objects.equals(getSemanticVersion(), other.getSemanticVersion())) {
             return false;
         }
         return true;
@@ -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 OpenconfigVersionEffectiveStatementImpl extends
+public final class SemanticVersionEffectiveStatementImpl extends
         UnknownEffectiveStatementBase<SemVer> {
 
     private final SchemaPath path;
 
-    public OpenconfigVersionEffectiveStatementImpl(
+    public SemanticVersionEffectiveStatementImpl(
             final StmtContext<SemVer, UnknownStatement<SemVer>, ?> ctx) {
         super(ctx);
         path = ctx.getParentContext().getSchemaPath().get().createChild(getNodeType());
@@ -62,7 +62,7 @@ public final class OpenconfigVersionEffectiveStatementImpl extends
         if (getClass() != obj.getClass()) {
             return false;
         }
-        OpenconfigVersionEffectiveStatementImpl other = (OpenconfigVersionEffectiveStatementImpl) obj;
+        SemanticVersionEffectiveStatementImpl other = (SemanticVersionEffectiveStatementImpl) obj;
         if (!Objects.equals(path, other.path)) {
             return false;
         }
index e442bad03c07b60861136dc1e01df18943653275..30ff823413ca3ed5c1f7ee0d0c5516b05aabc589 100644 (file)
@@ -24,7 +24,7 @@ public class ImportStatementRfc7950Support extends ImportStatementDefinition {
             .builder(YangStmtMapping.IMPORT)
             .addMandatory(YangStmtMapping.PREFIX)
             .addOptional(YangStmtMapping.REVISION_DATE)
-            .addOptional(SupportedExtensionsMapping.OPENCONFIG_VERSION)
+            .addOptional(SupportedExtensionsMapping.SEMANTIC_VERSION)
             .addOptional(YangStmtMapping.DESCRIPTION)
             .addOptional(YangStmtMapping.REFERENCE)
             .build();
index 2a99221f388eb0ab517ecb56179637fa7a4c4b3d..124dfabe4a1d5cd51b29dbb53e656ec916cc2c7f 100644 (file)
@@ -44,7 +44,7 @@ public class ModuleStatementRfc7950Support extends ModuleStatementSupport {
             .addAny(YangStmtMapping.TYPEDEF)
             .addAny(YangStmtMapping.USES)
             .addMandatory(YangStmtMapping.YANG_VERSION)
-            .addOptional(SupportedExtensionsMapping.OPENCONFIG_VERSION)
+            .addOptional(SupportedExtensionsMapping.SEMANTIC_VERSION)
             .build();
 
     @Override
index f1899959e1e9d939a786511835421e5d45bd4e8c..44aaeba0bd208df7f8a3b31826e597e9c35de093 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.yangtools.yang.parser.util;
 
-import static org.opendaylight.yangtools.yang.model.api.Module.DEFAULT_OPENCONFIG_VERSION;
+import static org.opendaylight.yangtools.yang.model.api.Module.DEFAULT_SEMANTIC_VERSION;
 
 import com.google.common.annotations.Beta;
 import com.google.common.base.Function;
@@ -19,7 +19,7 @@ import org.antlr.v4.runtime.ParserRuleContext;
 import org.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException;
 import org.opendaylight.yangtools.yang.model.repo.api.RevisionSourceIdentifier;
 import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation;
-import org.opendaylight.yangtools.yang.model.repo.api.OpenconfigVerSourceIdentifier;
+import org.opendaylight.yangtools.yang.model.repo.api.SemVerSourceIdentifier;
 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
 import org.opendaylight.yangtools.yang.parser.impl.util.YangModelDependencyInfo;
 
@@ -48,12 +48,12 @@ public final class ASTSchemaSource implements SchemaSourceRepresentation {
     public static final Function<ASTSchemaSource, ParserRuleContext> GET_AST = ASTSchemaSource::getAST;
 
     private final YangModelDependencyInfo depInfo;
-    private final OpenconfigVerSourceIdentifier semVerId;
+    private final SemVerSourceIdentifier semVerId;
     private final ParserRuleContext tree;
     private final SourceIdentifier id;
     private final String symbolicName;
 
-    private ASTSchemaSource(@Nonnull final SourceIdentifier id, @Nonnull final OpenconfigVerSourceIdentifier semVerId,
+    private ASTSchemaSource(@Nonnull final SourceIdentifier id, @Nonnull final SemVerSourceIdentifier semVerId,
             @Nonnull final ParserRuleContext tree, @Nonnull final YangModelDependencyInfo depInfo,
             @Nullable final String symbolicName) {
         this.depInfo = Preconditions.checkNotNull(depInfo);
@@ -76,7 +76,7 @@ public final class ASTSchemaSource implements SchemaSourceRepresentation {
             throws YangSyntaxErrorException {
         final YangModelDependencyInfo depInfo = YangModelDependencyInfo.fromAST(name, tree);
         final SourceIdentifier id = getSourceId(depInfo);
-        final OpenconfigVerSourceIdentifier semVerId = getOpenconfigVerSourceId(depInfo);
+        final SemVerSourceIdentifier semVerId = getSemVerSourceId(depInfo);
         return new ASTSchemaSource(id, semVerId, tree, depInfo, null);
     }
 
@@ -86,12 +86,12 @@ public final class ASTSchemaSource implements SchemaSourceRepresentation {
                 : RevisionSourceIdentifier.create(name, depInfo.getFormattedRevision());
     }
 
-    private static OpenconfigVerSourceIdentifier getOpenconfigVerSourceId(final YangModelDependencyInfo depInfo) {
+    private static SemVerSourceIdentifier getSemVerSourceId(final YangModelDependencyInfo depInfo) {
         return depInfo.getFormattedRevision() == null
-                ? OpenconfigVerSourceIdentifier.create(depInfo.getName(),
-                    depInfo.getOpenconfigVersion().or(DEFAULT_OPENCONFIG_VERSION))
-                        : OpenconfigVerSourceIdentifier.create(depInfo.getName(), depInfo.getFormattedRevision(),
-                            depInfo.getOpenconfigVersion().or(DEFAULT_OPENCONFIG_VERSION));
+                ? SemVerSourceIdentifier.create(depInfo.getName(),
+                    depInfo.getSemanticVersion().or(DEFAULT_SEMANTIC_VERSION))
+                        : SemVerSourceIdentifier.create(depInfo.getName(), depInfo.getFormattedRevision(),
+                            depInfo.getSemanticVersion().or(DEFAULT_SEMANTIC_VERSION));
     }
 
     /**
@@ -158,11 +158,11 @@ public final class ASTSchemaSource implements SchemaSourceRepresentation {
         final YangModelDependencyInfo depInfo = YangModelDependencyInfo.fromAST(identifier.getName(), tree);
         final SourceIdentifier id = getSourceId(depInfo);
 
-        final OpenconfigVerSourceIdentifier semVerId;
-        if (identifier instanceof OpenconfigVerSourceIdentifier && !depInfo.getOpenconfigVersion().isPresent()) {
-            semVerId = (OpenconfigVerSourceIdentifier) identifier;
+        final SemVerSourceIdentifier semVerId;
+        if (identifier instanceof SemVerSourceIdentifier && !depInfo.getSemanticVersion().isPresent()) {
+            semVerId = (SemVerSourceIdentifier) identifier;
         } else {
-            semVerId = getOpenconfigVerSourceId(depInfo);
+            semVerId = getSemVerSourceId(depInfo);
         }
 
         return new ASTSchemaSource(id, semVerId, tree, depInfo, symbolicName);
@@ -179,7 +179,7 @@ public final class ASTSchemaSource implements SchemaSourceRepresentation {
         return Optional.ofNullable(symbolicName);
     }
 
-    public OpenconfigVerSourceIdentifier getSemVerIdentifier() {
+    public SemVerSourceIdentifier getSemVerIdentifier() {
         return semVerId;
     }
 
@@ -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 OpenconfigVerSharedSchemaRepositoryTest {
+public class SemVerSharedSchemaRepositoryTest {
 
     @Test
     public void testSemVerSharedSchemaRepository() throws Exception {
         final SharedSchemaRepository sharedSchemaRepository = new SharedSchemaRepository(
-                "openconfig-ver-shared-schema-repo-test");
+                "sem-ver-shared-schema-repo-test");
 
         final SettableSchemaProvider<ASTSchemaSource> bar = getImmediateYangSourceProviderFromResource(
-                "/openconfig-version/openconfigver-shared-schema-repository/bar@2016-01-01.yang");
+            "/semantic-version/semver-shared-schema-repository/bar@2016-01-01.yang");
         bar.register(sharedSchemaRepository);
         bar.setResult();
         final SettableSchemaProvider<ASTSchemaSource> foo = getImmediateYangSourceProviderFromResource(
-                "/openconfig-version/openconfigver-shared-schema-repository/foo.yang");
+            "/semantic-version/semver-shared-schema-repository/foo.yang");
         foo.register(sharedSchemaRepository);
         foo.setResult();
         final SettableSchemaProvider<ASTSchemaSource> semVer = getImmediateYangSourceProviderFromResource(
-                "/openconfig-version/openconfigver-shared-schema-repository/openconfig-extensions.yang");
+            "/semantic-version/semver-shared-schema-repository/semantic-version.yang");
         semVer.register(sharedSchemaRepository);
         semVer.setResult();
 
@@ -49,12 +49,12 @@ public class OpenconfigVerSharedSchemaRepositoryTest {
 
         final CheckedFuture<SchemaContext, SchemaResolutionException> inetAndTopologySchemaContextFuture = fact
                 .createSchemaContext(Lists.newArrayList(bar.getId(), foo.getId(), semVer.getId()),
-                    StatementParserMode.OPENCONFIG_VER_MODE);
+                    StatementParserMode.SEMVER_MODE);
         assertTrue(inetAndTopologySchemaContextFuture.isDone());
         assertSchemaContext(inetAndTopologySchemaContextFuture.checkedGet(), 3);
 
         final CheckedFuture<SchemaContext, SchemaResolutionException> barSchemaContextFuture = fact
-                .createSchemaContext(Lists.newArrayList(bar.getId(), semVer.getId()), StatementParserMode.OPENCONFIG_VER_MODE);
+                .createSchemaContext(Lists.newArrayList(bar.getId(), semVer.getId()), StatementParserMode.SEMVER_MODE);
         assertTrue(barSchemaContextFuture.isDone());
         assertSchemaContext(barSchemaContextFuture.checkedGet(), 2);
     }
@@ -64,15 +64,15 @@ public class OpenconfigVerSharedSchemaRepositoryTest {
         final SharedSchemaRepository sharedSchemaRepository = new SharedSchemaRepository("shared-schema-repo-test");
 
         final SettableSchemaProvider<ASTSchemaSource> bar = getImmediateYangSourceProviderFromResource(
-                "/openconfig-version/shared-schema-repository/bar@2016-01-01.yang");
+            "/semantic-version/shared-schema-repository/bar@2016-01-01.yang");
         bar.register(sharedSchemaRepository);
         bar.setResult();
         final SettableSchemaProvider<ASTSchemaSource> foo = getImmediateYangSourceProviderFromResource(
-                "/openconfig-version/shared-schema-repository/foo.yang");
+            "/semantic-version/shared-schema-repository/foo.yang");
         foo.register(sharedSchemaRepository);
         foo.setResult();
         final SettableSchemaProvider<ASTSchemaSource> semVer = getImmediateYangSourceProviderFromResource(
-                "/openconfig-version/shared-schema-repository/openconfig-extensions.yang");
+            "/semantic-version/shared-schema-repository/semantic-version.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.openconfigver;
+package org.opendaylight.yangtools.yang.stmt.semver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -21,62 +21,62 @@ 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 OpenconfigVersionBorderCaseTest {
+public class SemanticVersionBorderCaseTest {
 
     @Test
     public void borderCaseValidMajorTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-valid-major",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
         Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("5.5.5"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("5.5.5"), bar.getSemanticVersion());
     }
 
     @Test
     public void borderCaseValidMinorTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-valid-minor",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
         Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("5.6.5"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("5.6.5"), bar.getSemanticVersion());
     }
 
     @Test
     public void borderCaseValidPatchTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-valid-patch",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
         Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("5.5.6"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("5.5.6"), bar.getSemanticVersion());
     }
 
     @Test
     public void borderCaseInvalidMajorTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-invalid-major",
-                    StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid openconfig version");
+            StmtTestUtils.parseYangSources("/semantic-version/border-case/border-case-invalid-major",
+                    StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid semantic 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 OpenconfigVersionBorderCaseTest {
     @Test
     public void borderCaseInvalidMinorTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-invalid-minor",
-                    StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid openconfig version");
+            StmtTestUtils.parseYangSources("/semantic-version/border-case/border-case-invalid-minor",
+                    StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid semantic 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 OpenconfigVersionBorderCaseTest {
     @Test
     public void borderCaseInvalidPatchTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-invalid-patch",
-                    StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid openconfig version");
+            StmtTestUtils.parseYangSources("/semantic-version/border-case/border-case-invalid-patch",
+                    StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid semantic 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.openconfigver;
+package org.opendaylight.yangtools.yang.stmt.semver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -21,19 +21,19 @@ 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 OpenconfigVersionComplexTest {
+public class SemanticVersionComplexTest {
 
     @Test
     public void complexTest1() throws Exception {
-        final SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/complex/complex-1",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        final SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/complex/complex-1",
+                StatementParserMode.SEMVER_MODE);
         verifySchemaContextTest1(context);
     }
 
     @Test
     public void complexTest1Yang1_1() throws Exception {
-        final SchemaContext context = StmtTestUtils.parseYangSources("/rfc7950/openconfig-version/complex-1",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        final SchemaContext context = StmtTestUtils.parseYangSources("/rfc7950/semantic-version/complex-1",
+                StatementParserMode.SEMVER_MODE);
         verifySchemaContextTest1(context);
     }
 
@@ -42,17 +42,17 @@ public class OpenconfigVersionComplexTest {
 
         final Module foo = context.findModuleByNamespace(URI.create("foo")).iterator().next();
         final Module semVer = context.findModuleByNamespace(
-            URI.create("http://openconfig.net/yang/openconfig-ext")).iterator().next();
+            URI.create("urn:opendaylight:yang:extension:semantic-version")).iterator().next();
 
         // check module versions
-        assertEquals(SemVer.valueOf("1.3.95"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("1.50.2"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("1.3.95"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("1.50.2"), foo.getSemanticVersion());
 
         final Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("1.2.6"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("1.2.6"), bar.getSemanticVersion());
 
         final Module foobar = StmtTestUtils.findImportedModule(context, bar, "foobar");
-        assertEquals(SemVer.valueOf("2.26.465"), foobar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("2.26.465"), foobar.getSemanticVersion());
 
         // check imported components
         assertNotNull("This component should be present", SchemaContextUtil.findDataSchemaNode(context, foo,
@@ -71,15 +71,15 @@ public class OpenconfigVersionComplexTest {
 
     @Test
     public void complexTest2() throws Exception {
-        final SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/complex/complex-2",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        final SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/complex/complex-2",
+                StatementParserMode.SEMVER_MODE);
         verifySchemaContextTest2(context);
     }
 
     @Test
     public void complexTest2Yang1_1() throws Exception {
-        final SchemaContext context = StmtTestUtils.parseYangSources("/rfc7950/openconfig-version/complex-2",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        final SchemaContext context = StmtTestUtils.parseYangSources("/rfc7950/semantic-version/complex-2",
+                StatementParserMode.SEMVER_MODE);
         verifySchemaContextTest2(context);
     }
 
@@ -88,17 +88,17 @@ public class OpenconfigVersionComplexTest {
 
         final Module foo = context.findModuleByNamespace(URI.create("foo")).iterator().next();
         final Module semVer = context.findModuleByNamespace(URI.create(
-            "http://openconfig.net/yang/openconfig-ext")).iterator().next();
+            "urn:opendaylight:yang:extension:semantic-version")).iterator().next();
 
         // check module versions
-        assertEquals(SemVer.valueOf("2.5.50"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("2.32.2"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("2.5.50"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("2.32.2"), foo.getSemanticVersion());
 
         final Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("4.9.8"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("4.9.8"), bar.getSemanticVersion());
 
         final Module foobar = StmtTestUtils.findImportedModule(context, bar, "foobar");
-        assertEquals(SemVer.valueOf("7.13.99"), foobar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("7.13.99"), foobar.getSemanticVersion());
 
         // check used augmentations
         assertNotNull("This component should be present", SchemaContextUtil.findDataSchemaNode(context, 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.openconfigver;
+package org.opendaylight.yangtools.yang.stmt.semver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -21,40 +21,40 @@ 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 OpenconfigVersionDefaultsTest {
+public class SemanticVersionDefaultsTest {
 
     @Test
     public void defaultsTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/defaults/defaults",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/defaults/defaults",
+                StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
         Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.0"), foo.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.0.0"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.0"), foo.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.0.0"), bar.getSemanticVersion());
     }
 
     @Test
     public void defaultMajorValidTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/defaults/default-major-valid",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/defaults/default-major-valid",
+                StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
         Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.0"), foo.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.99.99"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.0"), foo.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.99.99"), bar.getSemanticVersion());
     }
 
     @Test
     public void defaultMajorInvalidTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/defaults/default-major-invalid",
-                StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid openconfig version");
+            StmtTestUtils.parseYangSources("/semantic-version/defaults/default-major-invalid",
+                StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid semantic 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.openconfigver;
+package org.opendaylight.yangtools.yang.stmt.semver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -18,37 +18,37 @@ 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 OpenconfigVersionIgnoringRevisionTest {
+public class SemanticVersionIgnoringRevisionTest {
 
     @Test
     public void ignoringRevisionTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/ignoring-revision",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.2"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion());
     }
 
     @Test
     public void ignoringRevision2Test() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/ignoring-revision-2",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/ignoring-revision-2",
+                StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
         Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.2"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.2"), bar.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.openconfigver;
+package org.opendaylight.yangtools.yang.stmt.semver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -21,65 +21,65 @@ 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 OpenconfigVersionImportTest {
+public class SemanticVersionImportTest {
 
     @Test
     public void importValidTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/import/import-valid",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/import/import-valid",
+                StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
-        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("1.0.0"), semVer.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("1.0.0"), semVer.getSemanticVersion());
     }
 
     @Test
     public void importInvalidDeprecatedTest1() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-deprecated-1",
-                    StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid import of openconfig-version module");
+            StmtTestUtils.parseYangSources("/semantic-version/import/import-invalid-deprecated-1",
+                    StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid import of semantic-version module");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Unable to find module compatible with requested import " + "[openconfig-extensions(1.0.0)]."));
+                    "Unable to find module compatible with requested import " + "[semantic-version(1.0.0)]."));
         }
     }
 
     @Test
     public void importInvalidDeprecatedTest2() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-deprecated-2",
-                    StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid import of openconfig-version module");
+            StmtTestUtils.parseYangSources("/semantic-version/import/import-invalid-deprecated-2",
+                    StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid import of semantic-version module");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Unable to find module compatible with requested import " + "[openconfig-extensions(0.9.9)]."));
+                    "Unable to find module compatible with requested import " + "[semantic-version(0.9.9)]."));
         }
     }
 
     @Test
     public void importInvalidNotsufficientTest1() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-notsufficient-1",
-                    StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid import of openconfig-version module");
+            StmtTestUtils.parseYangSources("/semantic-version/import/import-invalid-notsufficient-1",
+                    StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid import of semantic-version module");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Unable to find module compatible with requested import " + "[openconfig-extensions(2.0.0)]."));
+                    "Unable to find module compatible with requested import " + "[semantic-version(2.0.0)]."));
         }
     }
 
     @Test
     public void importInvalidNotsufficientTest2() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-notsufficient-2",
-                    StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid import of openconfig-version module");
+            StmtTestUtils.parseYangSources("/semantic-version/import/import-invalid-notsufficient-2",
+                    StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid import of semantic-version module");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Unable to find module compatible with requested import " + "[openconfig-extensions(2.0.5)]."));
+                    "Unable to find module compatible with requested import " + "[semantic-version(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.openconfigver;
+package org.opendaylight.yangtools.yang.stmt.semver;
 
 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 OpenconfigVersionMultipleImportTest {
+public class SemanticVersionMultipleImportTest {
 
     @Test
     public void multipleInvalidDeprecatedTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-invalid-deprecated",
-                    StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid openconfig version");
+            StmtTestUtils.parseYangSources("/semantic-version/multiple/multiple-invalid-deprecated",
+                    StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid semantic 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 OpenconfigVersionMultipleImportTest {
     @Test
     public void multipleInvalidNosufficientTest() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-invalid-nosufficient",
-                    StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid openconfig version");
+            StmtTestUtils.parseYangSources("/semantic-version/multiple/multiple-invalid-nosufficient",
+                    StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid semantic version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(2.5.5)]."));
@@ -51,34 +51,34 @@ public class OpenconfigVersionMultipleImportTest {
 
     @Test
     public void multipleValidDefaultsTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-valid-defaults",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
         Module bar = findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("0.9.5"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.9.5"), bar.getSemanticVersion());
     }
 
     @Test
     public void multipleValidSpecifiedTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-valid-specified",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
         Module bar = findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("5.5.6"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("5.5.6"), bar.getSemanticVersion());
     }
 
     private static Module findImportedModule(final SchemaContext context, final Module rootModule,
@@ -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.openconfigver;
+package org.opendaylight.yangtools.yang.stmt.semver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -18,53 +18,53 @@ 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 OpenconfigVersionPositionTest {
+public class SemanticVersionPositionTest {
 
     @Test
     public void positionHeadTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/position/position-head",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.2"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion());
     }
 
     @Test
     public void positionMiddleTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/position/position-middle",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.2"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion());
     }
 
     @Test
     public void positiontailTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/position/position-tail",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.2"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion());
     }
 }
similarity index 63%
rename from yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/openconfigver/OpenconfigVersionTest.java
rename to yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/semver/SemanticVersionTest.java
index c88f9bcfb03f21facf492266465a9674a63f36e6..23c2b104663896acff09f55a86eb9ac46e5eaa4e 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.openconfigver;
+package org.opendaylight.yangtools.yang.stmt.semver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -27,90 +27,90 @@ 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 OpenconfigVersionTest {
+public class SemanticVersionTest {
     @Test
     public void basicTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic",
-            StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.2"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion());
     }
 
     @Test
     public void basicTest2() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic-2",
-            StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.2"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion());
     }
 
     @Test
     public void basicTest3() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic-3",
-            StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/basic-3",
+            StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
     }
 
     @Test
     public void basicImportTest1() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic-import-1",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/basic-import-1",
+                StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
         Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("0.1.2"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion());
     }
 
     @Test
     public void multipleModulesTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/multiple-modules",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/multiple-modules",
+                StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
         Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("0.10.4"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.10.4"), bar.getSemanticVersion());
     }
 
     @Test
     public void basicImportErrTest1() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/basic-import-invalid-1", StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid openconfig version");
+            StmtTestUtils.parseYangSources("/semantic-version/basic-import-invalid-1", StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid semantic 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 OpenconfigVersionTest {
     @Test
     public void basicImportErrTest2() throws Exception {
         try {
-            StmtTestUtils.parseYangSources("/openconfig-version/basic-import-invalid-2", StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid openconfig version");
+            StmtTestUtils.parseYangSources("/semantic-version/basic-import-invalid-2", StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid semantic version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(0.1.2)]."));
@@ -130,18 +130,18 @@ public class OpenconfigVersionTest {
 
     @Test
     public void nodeTest() throws Exception {
-        SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/node-test",
-            StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/node-test",
+            StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
         Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("2016.1.1"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("2016.1.1"), foo.getSemanticVersion());
         Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("2016.4.6"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("2016.4.6"), bar.getSemanticVersion());
 
         QName root = QName.create("foo", "2016-01-01", "foo-root");
         QName container20160404 = QName.create("foo", "2016-01-01", "con20160404");
@@ -6,7 +6,7 @@
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 
-package org.opendaylight.yangtools.yang.stmt.openconfigver.yin;
+package org.opendaylight.yangtools.yang.stmt.semver.yin;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
@@ -25,46 +25,46 @@ 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 YinOpenconfigVersionTest {
+public class YinSemanticVersionTest {
 
     @Test
     public void basicTest() throws SourceException, FileNotFoundException, ReactorException, URISyntaxException {
-        SchemaContext context = StmtTestUtils.parseYinSources("/openconfig-version/yin-input/basic",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYinSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.2"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion());
     }
 
     @Test
     public void basicImportTest1() throws SourceException, FileNotFoundException, ReactorException, URISyntaxException {
-        SchemaContext context = StmtTestUtils.parseYinSources("/openconfig-version/yin-input/basic-import",
-                StatementParserMode.OPENCONFIG_VER_MODE);
+        SchemaContext context = StmtTestUtils.parseYinSources("/semantic-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("http://openconfig.net/yang/openconfig-ext"))
+        Module semVer = context.findModuleByNamespace(new URI("urn:opendaylight:yang:extension:semantic-version"))
                 .iterator().next();
 
-        assertEquals(SemVer.valueOf("0.0.1"), semVer.getOpenconfigVersion());
-        assertEquals(SemVer.valueOf("0.1.1"), foo.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion());
+        assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion());
         Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
-        assertEquals(SemVer.valueOf("0.1.2"), bar.getOpenconfigVersion());
+        assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion());
     }
 
     @Test
     public void basicImportErrTest1() throws SourceException, FileNotFoundException, ReactorException,
             URISyntaxException {
         try {
-            StmtTestUtils.parseYinSources("/openconfig-version/yin-input/basic-import-invalid", StatementParserMode.OPENCONFIG_VER_MODE);
-            fail("Test should fail due to invalid openconfig version");
+            StmtTestUtils.parseYinSources("/semantic-version/yin-input/basic-import-invalid", StatementParserMode.SEMVER_MODE);
+            fail("Test should fail due to invalid semantic version");
         } catch (ReactorException e) {
             assertTrue(e.getCause().getMessage()
                     .startsWith("Unable to find module compatible with requested import [bar(0.1.2)]."));
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/openconfig-extensions.yang
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/basic-3/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-3/foo.yang
deleted file mode 100644 (file)
index 3945e54..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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";
-    }
-    oc-ext:openconfig-version "0.1.1";
-
-    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
deleted file mode 100644 (file)
index 1a1c25a..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/foo.yang
deleted file mode 100644 (file)
index 1a1c25a..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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-2/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/foo.yang
deleted file mode 100644 (file)
index 2b37c24..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/basic/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/basic/foo.yang
deleted file mode 100644 (file)
index 2b37c24..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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-major/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/foo.yang
deleted file mode 100644 (file)
index 4edb32e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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-minor/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/foo.yang
deleted file mode 100644 (file)
index 4edb32e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 68b2f66..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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 {
-    }
-}
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
deleted file mode 100644 (file)
index 4edb32e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 38172e4..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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 {
-    }
-}
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
deleted file mode 100644 (file)
index 4edb32e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 5f6dfc8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 2221251..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 0092918..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 4edb32e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 6f0b2ae..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 2221251..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 2b35449..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 4edb32e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/complex/complex-1/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foo.yang
deleted file mode 100644 (file)
index 9caffd9..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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";
-}
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
deleted file mode 100644 (file)
index 6cff937..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
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
deleted file mode 100644 (file)
index 5f53491..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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";
-}
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
deleted file mode 100644 (file)
index 9b021b6..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 62e0506..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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 {
-    }
-}
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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 2a435be..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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-2/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/foo.yang
deleted file mode 100644 (file)
index 2b37c24..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 2a435be..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 2b37c24..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/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
deleted file mode 100644 (file)
index 4601af9..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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-invalid-deprecated-2/openconfig-extensions.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-2/openconfig-extensions.yang
deleted file mode 100644 (file)
index a310b5c..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/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
deleted file mode 100644 (file)
index a310b5c..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/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
deleted file mode 100644 (file)
index 4601af9..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 7d043d9..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-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
deleted file mode 100644 (file)
index a310b5c..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index ff09241..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 4280db0..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index c2ff5a9..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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 {
-    }
-}
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-31.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-31.yang
deleted file mode 100644 (file)
index 2e84793..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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 "1.1.2";
-
-    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
deleted file mode 100644 (file)
index 1a1c25a..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index f701a5b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index c65cd27..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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 {
-    }
-}
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
deleted file mode 100644 (file)
index 243aa35..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index ae8c8d5..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 7aff7c5..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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 {
-    }
-}
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
deleted file mode 100644 (file)
index f5c591b..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 5679d89..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 0f94048..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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 {
-    }
-}
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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 720eee2..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index a6116f3..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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 {
-    }
-}
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
deleted file mode 100644 (file)
index 4edb32e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/node-test/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/foo.yang
deleted file mode 100644 (file)
index c723cc5..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 2a435be..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 2b37c24..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/position/position-head/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/foo.yang
deleted file mode 100644 (file)
index 41b5fdf..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-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 {
-    }
-}
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
deleted file mode 100644 (file)
index b973ab3..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 2b37c24..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/position/position-tail/foo.yang b/yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/foo.yang
deleted file mode 100644 (file)
index 005ef0b..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-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
deleted file mode 100644 (file)
index 40d9fb9..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
deleted file mode 100644 (file)
index 2a435be..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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
deleted file mode 100644 (file)
index 67ef067..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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
deleted file mode 100644 (file)
index 23e90e3..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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/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
deleted file mode 100644 (file)
index e93a5a7..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<?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
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
deleted file mode 100644 (file)
index e93a5a7..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<?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
diff --git a/yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/bar@2016-01-31.yin b/yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/bar@2016-01-31.yin
deleted file mode 100644 (file)
index a3a644f..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:bar="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="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>
-    </organization>
-    <contact>
-        <text></text>
-    </contact>
-    <revision date="2016-01-31"></revision>
-    <oc-ext:openconfig-version semver="0.1.2"></oc-ext:openconfig-version>
-    <container name="root">
-        <presence value="false"></presence>
-        <config value="true"></config>
-        <status value="current"></status>
-    </container>
-</module>
\ No newline at end of file
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
deleted file mode 100644 (file)
index e93a5a7..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<?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
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
deleted file mode 100644 (file)
index 087c05f..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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";
-}
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
deleted file mode 100644 (file)
index ff84c41..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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
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
deleted file mode 100644 (file)
index 734f554..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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";
-}
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
deleted file mode 100644 (file)
index 9b021b6..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-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 64%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/bar@2016-01-03.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/bar@2016-01-03.yang
index 3f495b84be26289f63450f4a3a4dd2b12eb2c88a..207b4bdb8458611dbfecc756c5c032a915d0073d 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1.1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.012"; }
-    import foobar { prefix foobar; oc-ext:openconfig-version "2.25.3"; }
+    import semantic-version { prefix sv; sv:semantic-version "1.2.012"; }
+    import foobar { prefix foobar; sv:semantic-version "2.25.3"; }
 
     revision "2016-01-03" {
         description "Imported version";
     }
-    oc-ext:openconfig-version "1.2.6";
+    sv:semantic-version "1.2.6";
 
     container root {
         container test-container {
similarity index 64%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/bar@2016-01-04.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/bar@2016-01-04.yang
index 7490e8df60ba65d3bc4897de1dd8f49e55744e0d..8328cbeccaba637c8bd1f415d2bcaeeaef9e4b77 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1.1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.210"; }
-    import foobar { prefix foobar; oc-ext:openconfig-version "2.25.3"; }
+    import semantic-version { prefix sv; sv:semantic-version "1.2.210"; }
+    import foobar { prefix foobar; sv:semantic-version "2.25.3"; }
 
     revision "2016-01-04" {
         description "Not-imported version";
     }
-    oc-ext:openconfig-version "2.200.200";
+    sv:semantic-version "2.200.200";
 
     container root {
         container test-container {
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
new file mode 100644 (file)
index 0000000..e3828f0
--- /dev/null
@@ -0,0 +1,13 @@
+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";
+}
similarity index 74%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foobar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foobar@2016-01-31.yang
index 89863b20a169397dda3e8c2a6289627876c9f432..773bc65a7ab942577355f4defc93a8a64593bf1a 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1.1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.95"; }
+    import semantic-version { prefix sv; sv:semantic-version "1.2.95"; }
 
     revision "2016-01-31" {
         description "Not-imported version";
     }
-    oc-ext:openconfig-version "2.25.2";
+    sv:semantic-version "2.25.2";
 
     grouping test-grouping {
         leaf name {
similarity index 74%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-1/foobar@2016-02-28.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/foobar@2016-02-28.yang
index 132e305b210dedf8428409ab5dd024a4263b88a7..4c92e9f30fd9b7b7f52d602c0d58500273cf7ec4 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1.1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.3.95"; }
+    import semantic-version { prefix sv; sv:semantic-version "1.3.95"; }
 
     revision "2016-02-28" {
         description "Imported version";
     }
-    oc-ext:openconfig-version "2.26.465";
+    sv:semantic-version "2.26.465";
 
     grouping test-grouping {
         leaf name {
similarity index 51%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/openconfig-extensions.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-1/semantic-version.yang
index 23e90e3f34da584db4502f935127918e1bfebed7..14dc274ebe541eb600b90fe8ff8b12dd2146360a 100644 (file)
@@ -1,40 +1,15 @@
-module openconfig-extensions {
-    yang-version "1";
-    namespace "http://openconfig.net/yang/openconfig-ext";
-    prefix "oc-ext";
+module semantic-version {
+    namespace "urn:opendaylight:yang:extension:semantic-version";
+    prefix sv;
+    yang-version 1.1;
 
-    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 2016-02-02 {
+        description "Initial verison";
     }
+    sv:semantic-version "1.3.95";
 
-    revision "2015-10-05" {
-        description
-            "Initial revision";
-        reference "TBD";
-    }
-
-    oc-ext:openconfig-version "0.0.1";
-
-    extension openconfig-version {
-        argument "semver" {
+    extension semantic-version {
+        argument "semantic-version" {
             yin-element false;
         }
         description
@@ -69,16 +44,4 @@ module openconfig-extensions {
 
             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/openconfig-version/complex-2/bar@2016-01-03.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/bar@2016-01-03.yang
index fe922ff142d25076d2c8ba5ea0fed862bd118487..f11bdb094314e746b5e024f6265adcb560fbbaf3 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.0.40"; }
-    import foobar { prefix foobar; oc-ext:openconfig-version "7.12.54"; }
+    import semantic-version { prefix sv; sv:semantic-version "2.0.40"; }
+    import foobar { prefix foobar; sv:semantic-version "7.12.54"; }
 
     revision "2016-01-03" {
         description "Imported version";
     }
-    oc-ext:openconfig-version "4.9.8";
+    sv:semantic-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/openconfig-version/complex-2/bar@2016-01-04.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/bar@2016-01-04.yang
index 858bb0466dba0f15a6c0e448b4f1ea2a06bb14ea..712b379c0159b5050cd07a1356bcab5485a4b048 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1.1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.0.50"; }
-    import foobar { prefix foobar; oc-ext:openconfig-version "7.12.54"; }
+    import semantic-version { prefix sv; sv:semantic-version "2.0.50"; }
+    import foobar { prefix foobar; sv:semantic-version "7.12.54"; }
 
     revision "2016-01-04" {
         description "Not-imported version";
     }
-    oc-ext:openconfig-version "3.0.5";
+    sv:semantic-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/semantic-version/complex-2/foo.yang b/yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foo.yang
new file mode 100644 (file)
index 0000000..3955eb5
--- /dev/null
@@ -0,0 +1,13 @@
+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";
+}
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-01-31.yang
index 7c7ac1aaa32c7bfcc7780572e3408da705a0b8d7..435bea628d3b8a6d1348597f72bb76abbf450577 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.1.950"; }
+    import semantic-version { prefix sv; sv:semantic-version "2.1.950"; }
 
     revision "2016-01-31" {
         description "Not-imported version";
     }
-    oc-ext:openconfig-version "8.0.0";
+    sv:semantic-version "8.0.0";
 
     container root {
         leaf included-not-correct-mark {
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-02-27.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-02-27.yang
index 930c1162f489b549a1ecc8de7a025f7e1e4fb41f..8b8f48e1a7ac9bf6a8dffaa522e43ccbb193cdcb 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
+    import semantic-version { prefix sv; sv:semantic-version "2.5.50"; }
 
     revision "2016-02-27" {
         description "Not-imported version";
     }
-    oc-ext:openconfig-version "7.13.0";
+    sv:semantic-version "7.13.0";
 
     container root {
         leaf included-not-correct-mark {
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-02-28.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/foobar@2016-02-28.yang
index 676834c3dd03464b2480b6d7bb8a0abe35bed8eb..c45a020a521a42bf42494bc4f5b6f7ab362db51a 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
+    import semantic-version { prefix sv; sv:semantic-version "2.5.50"; }
 
     revision "2016-02-28" {
         description "Imported version";
     }
-    oc-ext:openconfig-version "7.13.99";
+    sv:semantic-version "7.13.99";
 
     container root {
         leaf included-correct-mark {
similarity index 51%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/openconfig-extensions.yang
rename to yang/yang-parser-impl/src/test/resources/rfc7950/semantic-version/complex-2/semantic-version.yang
index 23e90e3f34da584db4502f935127918e1bfebed7..a7e5ba2a62f96f3f8baa6018e4dc801d5b522f8c 100644 (file)
@@ -1,40 +1,15 @@
-module openconfig-extensions {
-    yang-version "1";
-    namespace "http://openconfig.net/yang/openconfig-ext";
-    prefix "oc-ext";
+module semantic-version {
+    namespace "urn:opendaylight:yang:extension:semantic-version";
+    prefix sv;
+    yang-version 1;
 
-    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 2016-02-02 {
+        description "Initial verison";
     }
+    sv:semantic-version "2.5.50";
 
-    revision "2015-10-05" {
-        description
-            "Initial revision";
-        reference "TBD";
-    }
-
-    oc-ext:openconfig-version "0.0.1";
-
-    extension openconfig-version {
-        argument "semver" {
+    extension semantic-version {
+        argument "semantic-version" {
             yin-element false;
         }
         description
@@ -69,16 +44,4 @@ module openconfig-extensions {
 
             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/openconfig-version/basic-2/bar.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/bar.yang
index 64c9a192545d001325d6b9d48961b669e757b2b3..5664e68ba9bd9841ede818757295ff2b2684d010 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29;}
+    import semantic-version { prefix sv; revision-date 2016-02-02;}
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "0.1.2";
+    sv:semantic-version "0.1.2";
 
     container root {
     }
similarity index 66%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-2/foo.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/foo.yang
index 22a7e1571feec6989a9efa14f8cf70b8383a44f9..01fe8e8905bf6797139617b7e96b6b10dc703be5 100644 (file)
@@ -3,13 +3,13 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29;}
+    import semantic-version { prefix sv; revision-date 2016-02-02;}
     import bar { prefix bar; revision-date 2016-01-31;}
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "0.1.1";
+    sv:semantic-version "0.1.1";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/semantic-version.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic-2/semantic-version.yang
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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-3/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/basic-3/foo.yang
new file mode 100644 (file)
index 0000000..537f5d7
--- /dev/null
@@ -0,0 +1,15 @@
+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";
+    }
+    sv:semantic-version "0.1.1";
+
+    container root {
+    }
+}
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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-minor/bar@2016-01-01.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/bar@2016-01-01.yang
index eca43da12e1830165d9da450528c403013f3209d..54da0db564acb30c33b472f488298b87bd9d699d 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-01" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "5.2.5";
+    sv:semantic-version "0.1.2";
 
     container root {
     }
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/bar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-1/bar@2016-01-31.yang
index 2e84793fd79b942dca1366d9c86e4e044882cd05..e61a340d48c82de1f0465330fef6a6af22c3dbe4 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "1.1.2";
+    sv:semantic-version "1.1.2";
 
     container root {
     }
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
new file mode 100644 (file)
index 0000000..220c9cc
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/border-case/border-case-invalid-major/bar@2016-01-01.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/bar@2016-01-01.yang
index 5ccae0cdcfc625d9d73d49badfdf3b3220d755c4..2e94728149331ed93b6cdb716ad14c217781744a 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-01" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "2.5.5";
+    sv:semantic-version "1.1.2";
 
     container root {
     }
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/bar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-1/bar@2016-01-31.yang
index 4f4f69514c6de2718f7f2381c495bea95990ea63..d3d101b61bebfb796912903f814ff5f4ea417059 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "1.1.3";
+    sv:semantic-version "1.1.3";
 
     container root {
     }
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
new file mode 100644 (file)
index 0000000..220c9cc
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/basic/bar.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/basic-import-invalid-2/bar.yang
index b973ab3f4ccd73b39b6844b3f6c6c4996061b4b1..e61a340d48c82de1f0465330fef6a6af22c3dbe4 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "0.1.2";
+    sv:semantic-version "1.1.2";
 
     container root {
     }
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
new file mode 100644 (file)
index 0000000..dda1144
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/bar.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/basic/bar.yang
index 049c662137d62ab1a73c89aca90899c7e9b9262e..2adc1363bac65639706e59e13ebc9fe5ba753a08 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "1.0.0";
+    sv:semantic-version "0.1.2";
 
     container root {
     }
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
new file mode 100644 (file)
index 0000000..dda1144
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-1/bar@2016-01-01.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-major/bar@2016-01-01.yang
index e1c85adb8b09e6cfeef6d7663345aa9d20eab90f..e016dde777946083775cc7906e9770ed1b316507 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-01" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "1.1.2";
+    sv:semantic-version "2.5.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-02" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "5.5.5";
+    sv:semantic-version "3.5.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-03" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "6.5.5";
+    sv:semantic-version "4.5.5";
 
     container root {
     }
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
new file mode 100644 (file)
index 0000000..c89c60d
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-1/bar@2016-01-01.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/border-case/border-case-invalid-minor/bar@2016-01-01.yang
index 2a435be8fa671b62d9f3dd7e4f37fe93d3307f6e..06c3e48f38e57cd09e671ac4c1629cc6067d01cb 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-01" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "0.1.2";
+    sv:semantic-version "5.2.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-02" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "3.5.5";
+    sv:semantic-version "5.3.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-03" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "4.5.5";
+    sv:semantic-version "5.4.5";
 
     container root {
     }
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
new file mode 100644 (file)
index 0000000..c89c60d
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..f6dd765
--- /dev/null
@@ -0,0 +1,15 @@
+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 {
+    }
+}
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-02" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "5.3.5";
+    sv:semantic-version "5.5.3";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-03" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "5.4.5";
+    sv:semantic-version "5.5.4";
 
     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
new file mode 100644 (file)
index 0000000..c89c60d
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..c331b9e
--- /dev/null
@@ -0,0 +1,15 @@
+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 {
+    }
+}
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-02" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "5.5.3";
+    sv:semantic-version "5.5.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-03" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "5.5.4";
+    sv:semantic-version "6.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
new file mode 100644 (file)
index 0000000..c89c60d
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..c129995
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..920c18a
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..da8327c
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..c89c60d
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..939c7e8
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..920c18a
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..5d3f96d
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..c89c60d
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 64%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/bar@2016-01-03.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/bar@2016-01-03.yang
index 138dbad9fdce674ed1c8a0be5fd1c9fbce790409..a7b14f1dfe6649d8952ced9e9765031eaf19b08a 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.012"; }
-    import foobar { prefix foobar; oc-ext:openconfig-version "2.25.3"; }
+    import semantic-version { prefix sv; sv:semantic-version "1.2.012"; }
+    import foobar { prefix foobar; sv:semantic-version "2.25.3"; }
 
     revision "2016-01-03" {
         description "Imported version";
     }
-    oc-ext:openconfig-version "1.2.6";
+    sv:semantic-version "1.2.6";
 
     container root {
         container test-container {
similarity index 64%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/bar@2016-01-04.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/bar@2016-01-04.yang
index 10d176b9f5398f476e3cb593bb5520503a9165a6..eaff86f9c6b3fa09e6f0f643fa12bdb17a7d2bc5 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.210"; }
-    import foobar { prefix foobar; oc-ext:openconfig-version "2.25.3"; }
+    import semantic-version { prefix sv; sv:semantic-version "1.2.210"; }
+    import foobar { prefix foobar; sv:semantic-version "2.25.3"; }
 
     revision "2016-01-04" {
         description "Not-imported version";
     }
-    oc-ext:openconfig-version "2.200.200";
+    sv:semantic-version "2.200.200";
 
     container root {
         container test-container {
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
new file mode 100644 (file)
index 0000000..bce4b87
--- /dev/null
@@ -0,0 +1,13 @@
+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";
+}
similarity index 74%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foobar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foobar@2016-01-31.yang
index 173082532df8c93de52e88f18681894f56eb53f1..6efe81dfc90d03e1f9aca2fc8973c6d661ac6a7d 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.95"; }
+    import semantic-version { prefix sv; sv:semantic-version "1.2.95"; }
 
     revision "2016-01-31" {
         description "Not-imported version";
     }
-    oc-ext:openconfig-version "2.25.2";
+    sv:semantic-version "2.25.2";
 
     grouping test-grouping {
         leaf name {
similarity index 74%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-1/foobar@2016-02-28.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-1/foobar@2016-02-28.yang
index 5e647e9c30071f3c9d08743500ade1aa563f53f1..867d25eb0bb3944d629ba1a3c1936d9965aa3ca5 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.3.95"; }
+    import semantic-version { prefix sv; sv:semantic-version "1.3.95"; }
 
     revision "2016-02-28" {
         description "Imported version";
     }
-    oc-ext:openconfig-version "2.26.465";
+    sv:semantic-version "2.26.465";
 
     grouping test-grouping {
         leaf name {
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
new file mode 100644 (file)
index 0000000..a8de91c
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 64%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/bar@2016-01-03.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/bar@2016-01-03.yang
index fe922ff142d25076d2c8ba5ea0fed862bd118487..f11bdb094314e746b5e024f6265adcb560fbbaf3 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.0.40"; }
-    import foobar { prefix foobar; oc-ext:openconfig-version "7.12.54"; }
+    import semantic-version { prefix sv; sv:semantic-version "2.0.40"; }
+    import foobar { prefix foobar; sv:semantic-version "7.12.54"; }
 
     revision "2016-01-03" {
         description "Imported version";
     }
-    oc-ext:openconfig-version "4.9.8";
+    sv:semantic-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/openconfig-version/complex/complex-2/bar@2016-01-04.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/bar@2016-01-04.yang
index c232860931c742e2d24057333a080b48e58a3242..1066b8a9b6e2eb7a631e115763b3c8b8369acdf5 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.0.50"; }
-    import foobar { prefix foobar; oc-ext:openconfig-version "7.12.54"; }
+    import semantic-version { prefix sv; sv:semantic-version "2.0.50"; }
+    import foobar { prefix foobar; sv:semantic-version "7.12.54"; }
 
     revision "2016-01-04" {
         description "Not-imported version";
     }
-    oc-ext:openconfig-version "3.0.5";
+    sv:semantic-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/semantic-version/complex/complex-2/foo.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foo.yang
new file mode 100644 (file)
index 0000000..5be60d8
--- /dev/null
@@ -0,0 +1,13 @@
+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";
+}
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-01-31.yang
index 7c7ac1aaa32c7bfcc7780572e3408da705a0b8d7..435bea628d3b8a6d1348597f72bb76abbf450577 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.1.950"; }
+    import semantic-version { prefix sv; sv:semantic-version "2.1.950"; }
 
     revision "2016-01-31" {
         description "Not-imported version";
     }
-    oc-ext:openconfig-version "8.0.0";
+    sv:semantic-version "8.0.0";
 
     container root {
         leaf included-not-correct-mark {
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/complex/complex-2/foobar@2016-02-27.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-02-27.yang
index 930c1162f489b549a1ecc8de7a025f7e1e4fb41f..8b8f48e1a7ac9bf6a8dffaa522e43ccbb193cdcb 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
+    import semantic-version { prefix sv; sv:semantic-version "2.5.50"; }
 
     revision "2016-02-27" {
         description "Not-imported version";
     }
-    oc-ext:openconfig-version "7.13.0";
+    sv:semantic-version "7.13.0";
 
     container root {
         leaf included-not-correct-mark {
similarity index 70%
rename from yang/yang-parser-impl/src/test/resources/rfc7950/openconfig-version/complex-2/foobar@2016-02-28.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/complex/complex-2/foobar@2016-02-28.yang
index 676834c3dd03464b2480b6d7bb8a0abe35bed8eb..c45a020a521a42bf42494bc4f5b6f7ab362db51a 100644 (file)
@@ -3,12 +3,12 @@ module foobar {
     prefix foobar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
+    import semantic-version { prefix sv; sv:semantic-version "2.5.50"; }
 
     revision "2016-02-28" {
         description "Imported version";
     }
-    oc-ext:openconfig-version "7.13.99";
+    sv:semantic-version "7.13.99";
 
     container root {
         leaf included-correct-mark {
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
new file mode 100644 (file)
index 0000000..a7e5ba2
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-import-invalid-2/bar.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/bar.yang
index 2e84793fd79b942dca1366d9c86e4e044882cd05..e7fe6096d5668ffe0e4017b7cc9df8396bb871c6 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "1.1.2";
+    sv:semantic-version "1.0.0";
 
     container root {
     }
similarity index 67%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-invalid/foo.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-invalid/foo.yang
index 3db561357f1a38641487e9bbc5997613706a6b55..e81c79130bed5108131912a36ca2a4386c17e616 100644 (file)
@@ -3,7 +3,7 @@ module 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 semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-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/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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..678f4f6
--- /dev/null
@@ -0,0 +1,15 @@
+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 {
+    }
+}
similarity index 67%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/defaults/default-major-valid/foo.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/defaults/default-major-valid/foo.yang
index 3db561357f1a38641487e9bbc5997613706a6b55..e81c79130bed5108131912a36ca2a4386c17e616 100644 (file)
@@ -3,7 +3,7 @@ module 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 semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-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/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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..54da0db
--- /dev/null
@@ -0,0 +1,15 @@
+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 {
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/ignoring-revision-2/bar@2016-01-31.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/ignoring-revision-2/bar@2016-01-31.yang
index 2e84793fd79b942dca1366d9c86e4e044882cd05..e61a340d48c82de1f0465330fef6a6af22c3dbe4 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "1.1.2";
+    sv:semantic-version "1.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
new file mode 100644 (file)
index 0000000..dda1144
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..54da0db
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..dda1144
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-2/foo.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-1/foo.yang
index 6a217a9e2229b399bc259b3ac7c2b2224ac21157..a6c665bd3ec1ef069e2107e197536b370eb2a85a 100644 (file)
@@ -3,7 +3,7 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.9.9"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "1.0.0"; }
 
     revision "2016-02-01" {
         description "Initial version";
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
new file mode 100644 (file)
index 0000000..ca9b177
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-deprecated-1/foo.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-deprecated-2/foo.yang
index 7d043d9f43bd2e610cb7451701d16a6875bf4c0d..eacb99e2bfdea73a0ffb52c557936583fb72f208 100644 (file)
@@ -3,7 +3,7 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "1.0.0"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.9.9"; }
 
     revision "2016-02-01" {
         description "Initial version";
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
new file mode 100644 (file)
index 0000000..5b1f616
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-2/foo.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-1/foo.yang
index 987eea37ca228f426e53c9e8e21e0566ac7c4873..74446cc94063468775ca1af615e40f1e9e3ac94e 100644 (file)
@@ -3,7 +3,7 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "2.0.5"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "2.0.0"; }
 
     revision "2016-02-01" {
         description "Initial version";
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
new file mode 100644 (file)
index 0000000..5b1f616
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/import/import-invalid-notsufficient-1/foo.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/import/import-invalid-notsufficient-2/foo.yang
index 12837d617b4e4a8416f16d7ec747b94d6cd403af..d069eef1cbaebf84a6b8f5716187ab443161e498 100644 (file)
@@ -3,7 +3,7 @@ module foo {
     prefix foo;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "2.0.0"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "2.0.5"; }
 
     revision "2016-02-01" {
         description "Initial version";
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
new file mode 100644 (file)
index 0000000..ca9b177
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..a6c665b
--- /dev/null
@@ -0,0 +1,14 @@
+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
new file mode 100644 (file)
index 0000000..5b1f616
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..fdab507
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..388f7f1
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..1b7d0e3
--- /dev/null
@@ -0,0 +1,15 @@
+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 {
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-01-04.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-04.yang
index afa6b301630add2c2401ed7b25d3a74758e2e7c9..adb243687a5098453fae774102ed1423028570c7 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-04" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "0.10.4";
+    sv:semantic-version "0.10.4";
 
     container root {
     }
diff --git a/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-31.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-01-31.yang
new file mode 100644 (file)
index 0000000..e61a340
--- /dev/null
@@ -0,0 +1,15 @@
+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 "1.1.2";
+
+    container root {
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple-modules/bar@2016-02-28.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/multiple-modules/bar@2016-02-28.yang
index c6968db878f8e3564450a6fb5483464e0b550509..b4a6511ef43c4d3a1e54b8da84c6a1affdc9ac27 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-02-28" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "1.2.28";
+    sv:semantic-version "1.2.28";
 
     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
new file mode 100644 (file)
index 0000000..220c9cc
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..6352253
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..db806e8
--- /dev/null
@@ -0,0 +1,15 @@
+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 {
+    }
+}
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "5.5.5";
+    sv:semantic-version "4.1.1";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-02-02" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "5.5.6";
+    sv:semantic-version "5.0.0";
 
     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
new file mode 100644 (file)
index 0000000..3a2ab94
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..4422f6d
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..9d916f6
--- /dev/null
@@ -0,0 +1,15 @@
+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 {
+    }
+}
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "4.1.1";
+    sv:semantic-version "2.5.0";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-02-02" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "5.0.0";
+    sv:semantic-version "2.5.4";
 
     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
new file mode 100644 (file)
index 0000000..ec773ae
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..5c6572c
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..b819db3
--- /dev/null
@@ -0,0 +1,15 @@
+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 {
+    }
+}
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "2.5.0";
+    sv:semantic-version "0.9.5";
 
     container root {
     }
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-02-02" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "2.5.4";
+    sv:semantic-version "1.0.0";
 
     container root {
     }
similarity index 57%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/foo.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-defaults/foo.yang
index 25ec2fb4c9ea9da2e7bf78f33d17652fb644908d..3da8de0a25950e599c5c00693065dd2b4d81d178 100644 (file)
@@ -3,13 +3,13 @@ module 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 semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
     import bar { prefix bar; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "0.1.1";
+    sv:semantic-version "0.1.1";
 
     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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..732609a
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..82dd7ef
--- /dev/null
@@ -0,0 +1,15 @@
+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 {
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-02-01.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-02-01.yang
index 6a2560ad18fae5b22768e3a6b473836a1599385f..32edae48fb6de9cea54487f301db71029654019e 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-02-01" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "0.9.5";
+    sv:semantic-version "5.5.5";
 
     container root {
     }
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/multiple/multiple-valid-defaults/bar@2016-02-02.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/multiple/multiple-valid-specified/bar@2016-02-02.yang
index d343e2a047a7c7ea031b231fe5a2840b11a15ff9..a4d94b5af82447b6b90096d9bb1d9cfe2e9e7bf4 100644 (file)
@@ -3,12 +3,12 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-02-02" {
         description "Initial version";
     }
-    oc-ext:openconfig-version "1.0.0";
+    sv:semantic-version "5.5.6";
 
     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
new file mode 100644 (file)
index 0000000..c89c60d
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 57%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160404.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160404.yang
index 5e70700d795606d455a9b43c6ff17cc43233c244..69270ae68549da7ac4717e767eaaa1795328a177 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
     
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision 2016-04-04 {
         description "test";
     }
     
-    oc-ext:openconfig-version "2016.4.4";
+    sv:semantic-version "2016.4.4";
 
     grouping grp {
         container con20160404 {
similarity index 62%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160405.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160405.yang
index 97faa03d8c3069591841392baf2c3d4cb99da785..f2bc4bee733fcbd66c611023111883669bb2dce3 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
     
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision 2016-04-05 {
         description "test";
     }
     
-    oc-ext:openconfig-version "2016.4.5";
+    sv:semantic-version "2016.4.5";
 
     grouping grp {
         container con20160404 {
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20160406.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20160406.yang
index d2bd0f3711f60530a1731412973c45bf72b23cb5..46d63f075131e807f11c53cd16cc0c7f51973b2c 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
     
     revision 2016-04-06 {
         description "test";
     }
     
-    oc-ext:openconfig-version "2016.4.6";
+    sv:semantic-version "2016.4.6";
 
     grouping grp {
         container con20160404 {
similarity index 68%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/node-test/bar@20170406.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/node-test/bar@20170406.yang
index bff38fc2cf9e910be41aff53419e4056617b9e86..21066d44e6fd154449898c295e820488a4ba7c9b 100644 (file)
@@ -3,13 +3,13 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
     
     revision 2017-04-06 {
         description "test";
     }
     
-    oc-ext:openconfig-version "2017.4.6";
+    sv:semantic-version "2017.4.6";
 
     grouping grp {
         container con20160404 {
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
new file mode 100644 (file)
index 0000000..b4af346
--- /dev/null
@@ -0,0 +1,18 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/bar.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/bar.yang
index 9e6429c7b2bc6f6c71b477f74a43dd43a5d6f24c..868ce014a040b17dade124bfd245379055b30d10 100644 (file)
@@ -1,11 +1,11 @@
 module bar {
-    oc-ext:openconfig-version "0.1.2";
+    sv:semantic-version "0.1.2";
 
     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"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
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
new file mode 100644 (file)
index 0000000..4aee60f
--- /dev/null
@@ -0,0 +1,17 @@
+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 {
+    }
+}
similarity index 51%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-head/openconfig-extensions.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/position/position-head/semantic-version.yang
index 43c5f3a2bf264ef7e23a2e827939d4e5c2433c47..3879c0670b4cdb0231b20b5b1cb6b6864dc06f96 100644 (file)
@@ -1,39 +1,16 @@
-module openconfig-extensions {
-    oc-ext:openconfig-version "0.0.1";
-    yang-version "1";
-    namespace "http://openconfig.net/yang/openconfig-ext";
-    prefix "oc-ext";
+module semantic-version {
+    sv:semantic-version "0.0.1";
 
-    organization "OpenConfig working group";
+    namespace "urn:opendaylight:yang:extension:semantic-version";
+    prefix sv;
+    yang-version 1;
 
-    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 2016-02-02 {
+        description "Initial verison";
     }
 
-    revision "2015-10-05" {
-        description
-            "Initial revision";
-        reference "TBD";
-    }
-
-    extension openconfig-version {
-        argument "semver" {
+    extension semantic-version {
+        argument "semantic-version" {
             yin-element false;
         }
         description
@@ -68,16 +45,4 @@ module openconfig-extensions {
 
             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/semantic-version/position/position-middle/bar.yang b/yang/yang-parser-impl/src/test/resources/semantic-version/position/position-middle/bar.yang
new file mode 100644 (file)
index 0000000..2adc136
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..dda1144
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 53%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/position/position-tail/bar.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/bar.yang
index 65b82d4a657f202abf4d52c4fc75d486ebbb9ce2..8ce6838c35872adb3315333a034f6580ab6ffac6 100644 (file)
@@ -3,7 +3,7 @@ module bar {
     prefix bar;
     yang-version 1;
 
-    import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "0.0.1"; }
+    import semantic-version { prefix sv; revision-date 2016-02-02; sv:semantic-version "0.0.1"; }
 
     revision "2016-01-31" {
         description "Initial version";
@@ -12,5 +12,5 @@ module bar {
     container root {
     }
 
-    oc-ext:openconfig-version "0.1.2";
+    sv:semantic-version "0.1.2";
 }
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
new file mode 100644 (file)
index 0000000..67e9025
--- /dev/null
@@ -0,0 +1,17 @@
+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";}
+}
similarity index 51%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/basic-3/openconfig-extensions.yang
rename to yang/yang-parser-impl/src/test/resources/semantic-version/position/position-tail/semantic-version.yang
index 23e90e3f34da584db4502f935127918e1bfebed7..ca84e112e2d8f0de249be7cbeacd5d5006695b19 100644 (file)
@@ -1,40 +1,14 @@
-module openconfig-extensions {
-    yang-version "1";
-    namespace "http://openconfig.net/yang/openconfig-ext";
-    prefix "oc-ext";
+module semantic-version {
+    namespace "urn:opendaylight:yang:extension:semantic-version";
+    prefix sv;
+    yang-version 1;
 
-    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 2016-02-02 {
+        description "Initial verison";
     }
 
-    revision "2015-10-05" {
-        description
-            "Initial revision";
-        reference "TBD";
-    }
-
-    oc-ext:openconfig-version "0.0.1";
-
-    extension openconfig-version {
-        argument "semver" {
+    extension semantic-version {
+        argument "semantic-version" {
             yin-element false;
         }
         description
@@ -70,15 +44,5 @@ module openconfig-extensions {
             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
+    sv:semantic-version "0.0.1";
+}
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
new file mode 100644 (file)
index 0000000..54da0db
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..dda1144
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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
new file mode 100644 (file)
index 0000000..54da0db
--- /dev/null
@@ -0,0 +1,15 @@
+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
new file mode 100644 (file)
index 0000000..fd7d13f
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..dd92de6
--- /dev/null
@@ -0,0 +1,47 @@
+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.";
+    }
+}
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/bar@2016-01-01.yin
rename to yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/bar@2016-01-01.yin
index 60c968dfea7ba79f70640d25e77bd982ab265356..6b4cfb52471eee86f83974871d12aaa2746bd72a 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:oc-ext="http://openconfig.net/yang/openconfig-ext" name="bar">
+        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="bar">
     <yang-version value="1"></yang-version>
     <namespace uri="bar"></namespace>
     <prefix value="bar"></prefix>
-    <import module="openconfig-extensions">
-        <prefix value="oc-ext"></prefix>
+    <import module="semantic-version">
+        <prefix value="sv"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
+        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
     </import>
     <organization>
         <text></text>
@@ -16,7 +16,7 @@
         <text></text>
     </contact>
     <revision date="2016-01-01"></revision>
-    <oc-ext:openconfig-version semver="1.1.2"></oc-ext:openconfig-version>
+    <sv:semantic-version semantic-version="1.1.2"></sv:semantic-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/bar@2016-01-31.yin
rename to yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/bar@2016-01-31.yin
index 31f989b3bdc6d8729e47633271f0a8591fd3e5e3..97d3dea508c2543a58cd2cd4ca61b922c5e895d6 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:oc-ext="http://openconfig.net/yang/openconfig-ext" name="bar">
+        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="bar">
     <yang-version value="1"></yang-version>
     <namespace uri="bar"></namespace>
     <prefix value="bar"></prefix>
-    <import module="openconfig-extensions">
-        <prefix value="oc-ext"></prefix>
+    <import module="semantic-version">
+        <prefix value="sv"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
+        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
     </import>
     <organization>
         <text></text>
@@ -16,7 +16,7 @@
         <text></text>
     </contact>
     <revision date="2016-01-31"></revision>
-    <oc-ext:openconfig-version semver="1.1.3"></oc-ext:openconfig-version>
+    <sv:semantic-version semantic-version="1.1.3"></sv:semantic-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/foo@2016-02-01.yin
rename to yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import-invalid/foo@2016-02-01.yin
index 3183859ffa7f95247f163a662390700a473f5401..19c5ea64d9d48cc43972117cddf800014a515fa1 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:oc-ext="http://openconfig.net/yang/openconfig-ext" name="foo">
+        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" 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>
-        <oc-ext:openconfig-version semver="0.1.2"></oc-ext:openconfig-version>
+        <sv:semantic-version semantic-version="0.1.2"></sv:semantic-version>
     </import>
-    <import module="openconfig-extensions">
-        <prefix value="oc-ext"></prefix>
+    <import module="semantic-version">
+        <prefix value="sv"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
+        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
     </import>
     <organization>
         <text></text>
@@ -21,7 +21,7 @@
         <text></text>
     </contact>
     <revision date="2016-02-01"></revision>
-    <oc-ext:openconfig-version semver="0.1.1"></oc-ext:openconfig-version>
+    <sv:semantic-version semantic-version="0.1.1"></sv:semantic-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
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
new file mode 100644 (file)
index 0000000..fe7aeb9
--- /dev/null
@@ -0,0 +1,54 @@
+<?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
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/bar@2016-01-01.yin
rename to yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/bar@2016-01-01.yin
index a3e08f19b4c474845853054ee45ed817ee33164d..ab75b3a61e61937558081e443b56e722af6110a1 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:oc-ext="http://openconfig.net/yang/openconfig-ext" name="bar">
+        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="bar">
     <yang-version value="1"></yang-version>
     <namespace uri="bar"></namespace>
     <prefix value="bar"></prefix>
-    <import module="openconfig-extensions">
-        <prefix value="oc-ext"></prefix>
+    <import module="semantic-version">
+        <prefix value="sv"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
+        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
     </import>
     <organization>
         <text></text>
@@ -16,7 +16,7 @@
         <text></text>
     </contact>
     <revision date="2016-01-01"></revision>
-    <oc-ext:openconfig-version semver="0.1.2"></oc-ext:openconfig-version>
+    <sv:semantic-version semantic-version="0.1.2"></sv:semantic-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import/bar@2016-01-31.yin
rename to yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/bar@2016-01-31.yin
index 959624bed2935eb339b9ec61781b62664b35635e..224c76744d006c7c1641231ad3543f84519dfab6 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:oc-ext="http://openconfig.net/yang/openconfig-ext" name="bar">
+        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" name="bar">
     <yang-version value="1"></yang-version>
     <namespace uri="bar"></namespace>
     <prefix value="bar"></prefix>
-    <import module="openconfig-extensions">
-        <prefix value="oc-ext"></prefix>
+    <import module="semantic-version">
+        <prefix value="sv"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
+        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
     </import>
     <organization>
         <text></text>
@@ -16,7 +16,7 @@
         <text></text>
     </contact>
     <revision date="2016-01-31"></revision>
-    <oc-ext:openconfig-version semver="1.1.2"></oc-ext:openconfig-version>
+    <sv:semantic-version semantic-version="1.1.2"></sv:semantic-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
similarity index 65%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic-import-invalid/foo@2016-02-01.yin
rename to yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic-import/foo@2016-02-01.yin
index 3183859ffa7f95247f163a662390700a473f5401..19c5ea64d9d48cc43972117cddf800014a515fa1 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:oc-ext="http://openconfig.net/yang/openconfig-ext" name="foo">
+        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" 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>
-        <oc-ext:openconfig-version semver="0.1.2"></oc-ext:openconfig-version>
+        <sv:semantic-version semantic-version="0.1.2"></sv:semantic-version>
     </import>
-    <import module="openconfig-extensions">
-        <prefix value="oc-ext"></prefix>
+    <import module="semantic-version">
+        <prefix value="sv"></prefix>
         <revision-date date="2016-02-02"></revision-date>
-        <oc-ext:openconfig-version semver="0.0.1"></oc-ext:openconfig-version>
+        <sv:semantic-version semantic-version="0.0.1"></sv:semantic-version>
     </import>
     <organization>
         <text></text>
@@ -21,7 +21,7 @@
         <text></text>
     </contact>
     <revision date="2016-02-01"></revision>
-    <oc-ext:openconfig-version semver="0.1.1"></oc-ext:openconfig-version>
+    <sv:semantic-version semantic-version="0.1.1"></sv:semantic-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
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
new file mode 100644 (file)
index 0000000..fe7aeb9
--- /dev/null
@@ -0,0 +1,54 @@
+<?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/bar@2016-01-31.yin b/yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/bar@2016-01-31.yin
new file mode 100644 (file)
index 0000000..b3fe6a2
--- /dev/null
@@ -0,0 +1,25 @@
+<?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">
+    <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>
+    <organization>
+        <text></text>
+    </organization>
+    <contact>
+        <text></text>
+    </contact>
+    <revision date="2016-01-31"></revision>
+    <sv:semantic-version semantic-version="0.1.2"></sv:semantic-version>
+    <container name="root">
+        <presence value="false"></presence>
+        <config value="true"></config>
+        <status value="current"></status>
+    </container>
+</module>
\ No newline at end of file
similarity index 60%
rename from yang/yang-parser-impl/src/test/resources/openconfig-version/yin-input/basic/foo@2016-02-01.yin
rename to yang/yang-parser-impl/src/test/resources/semantic-version/yin-input/basic/foo@2016-02-01.yin
index 663286d2bf57e1930129d6c27e8a85bbebf12d8e..19c5ea64d9d48cc43972117cddf800014a515fa1 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:oc-ext="http://openconfig.net/yang/openconfig-ext" name="foo">
+        xmlns:sv="urn:opendaylight:yang:extension:semantic-version" 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>
-        <oc-ext:openconfig-version semver="0.1.2"></oc-ext:openconfig-version>
+        <sv:semantic-version semantic-version="0.1.2"></sv:semantic-version>
     </import>
-    <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 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>
     <organization>
         <text></text>
@@ -21,7 +21,7 @@
         <text></text>
     </contact>
     <revision date="2016-02-01"></revision>
-    <oc-ext:openconfig-version semver="0.1.1"></oc-ext:openconfig-version>
+    <sv:semantic-version semantic-version="0.1.1"></sv:semantic-version>
     <container name="root">
         <presence value="false"></presence>
         <config value="true"></config>
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
new file mode 100644 (file)
index 0000000..fe7aeb9
--- /dev/null
@@ -0,0 +1,54 @@
+<?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