OpenConfig semantic version imports are unused, remove them.
JIRA: YANGTOOLS-1432
Change-Id: I9b0370ce663f2bc27668b19766efa84960f77746
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*/
package org.opendaylight.yangtools.yang.parser.api;
-import com.google.common.annotations.Beta;
-
/**
* Enumeration of various ways of resolving {@code import} statements.
*/
* based on exact match of {@code revision-date} statement. In case it is not specified, latest available revision
* is used.
*/
- DEFAULT,
- /**
- * Semantic version-based method. This method disregards {@code revision-date} statements and relies on
- * <a href="https://github.com/openconfig/public/blob/master/release/models/openconfig-extensions.yang">
- * openconfig-version extension</a>.
- *
- * <p>
- * This mode is considered experimental and may be subject to change.
- */
- @Beta
- @Deprecated(since = "7.0.11", forRemoval = true)
- OPENCONFIG_SEMVER;
+ DEFAULT;
}
@Singleton
@Component(immediate = true)
public final class DefaultYangParserFactory implements YangParserFactory {
- private static final List<ImportResolutionMode> SUPPORTED_MODES = List.of(
- ImportResolutionMode.DEFAULT, ImportResolutionMode.OPENCONFIG_SEMVER);
+ private static final List<ImportResolutionMode> SUPPORTED_MODES = List.of(ImportResolutionMode.DEFAULT);
private final ConcurrentMap<YangParserConfiguration, CrossSourceStatementReactor> reactors =
new ConcurrentHashMap<>(2);
import org.opendaylight.yangtools.yang.parser.spi.SubmoduleNamespace;
import org.opendaylight.yangtools.yang.parser.spi.TypeNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.ModelProcessingPhase;
-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.BelongsToPrefixToModuleName;
import org.opendaylight.yangtools.yang.parser.spi.source.ImpPrefixToNamespace;
import org.opendaylight.yangtools.yang.parser.spi.source.ImportPrefixToModuleCtx;
-import org.opendaylight.yangtools.yang.parser.spi.source.ImportPrefixToSemVerSourceIdentifier;
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.IncludedSubmoduleNameToModuleCtx;
return builder
// Semantic version support
.addStatementSupport(ModelProcessingPhase.SOURCE_LINKAGE, new OpenConfigVersionSupport(config))
- .addNamespaceSupport(ModelProcessingPhase.SOURCE_LINKAGE, SemanticVersionNamespace.BEHAVIOUR)
- .addNamespaceSupport(ModelProcessingPhase.SOURCE_LINKAGE, SemanticVersionModuleNamespace.BEHAVIOUR)
- .addNamespaceSupport(ModelProcessingPhase.SOURCE_LINKAGE,
- ImportPrefixToSemVerSourceIdentifier.BEHAVIOUR);
+ .addNamespaceSupport(ModelProcessingPhase.SOURCE_LINKAGE, SemanticVersionNamespace.BEHAVIOUR);
}
/**
import org.opendaylight.yangtools.yang.model.ri.stmt.DeclaredStatementDecorators;
import org.opendaylight.yangtools.yang.model.ri.stmt.DeclaredStatements;
import org.opendaylight.yangtools.yang.model.ri.stmt.EffectiveStatements;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
import org.opendaylight.yangtools.yang.parser.spi.PreLinkageModuleNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStringStatementSupport;
.addOptional(YangStmtMapping.REFERENCE)
.build();
- private final boolean semanticVersioning;
-
private ImportStatementSupport(final YangParserConfiguration config, final SubstatementValidator validator) {
super(YangStmtMapping.IMPORT, StatementPolicy.reject(), config, validator);
- semanticVersioning = config.importResolutionMode() == ImportResolutionMode.OPENCONFIG_SEMVER;
}
public static @NonNull ImportStatementSupport rfc6020Instance(final YangParserConfiguration config) {
@Override
public void onLinkageDeclared(final Mutable<String, ImportStatement, ImportEffectiveStatement> stmt) {
- if (semanticVersioning) {
- SemanticVersionImport.onLinkageDeclared(stmt);
- } else {
- RevisionImport.onLinkageDeclared(stmt);
- }
+ RevisionImport.onLinkageDeclared(stmt);
}
@Override
+++ /dev/null
-/*
- * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.parser.rfc7950.stmt.import_;
-
-import static java.util.Objects.requireNonNull;
-import static org.opendaylight.yangtools.yang.parser.spi.meta.ModelProcessingPhase.SOURCE_LINKAGE;
-import static org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils.firstAttributeOf;
-
-import com.google.common.base.MoreObjects.ToStringHelper;
-import java.util.Collection;
-import java.util.Optional;
-import org.opendaylight.yangtools.concepts.SemVer;
-import org.opendaylight.yangtools.yang.common.Empty;
-import org.opendaylight.yangtools.yang.common.QNameModule;
-import org.opendaylight.yangtools.yang.model.api.stmt.ImportEffectiveStatement;
-import org.opendaylight.yangtools.yang.model.api.stmt.ImportStatement;
-import org.opendaylight.yangtools.yang.model.api.stmt.PrefixStatement;
-import org.opendaylight.yangtools.yang.model.repo.api.SemVerSourceIdentifier;
-import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
-import org.opendaylight.yangtools.yang.parser.rfc7950.namespace.ModuleQNameToPrefix;
-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.InferenceContext;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ModelActionBuilder.Prerequisite;
-import org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceKeyCriterion;
-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.ImportPrefixToModuleCtx;
-import org.opendaylight.yangtools.yang.parser.spi.source.ImportPrefixToSemVerSourceIdentifier;
-import org.opendaylight.yangtools.yang.parser.spi.source.ImportedModuleContext;
-import org.opendaylight.yangtools.yang.parser.spi.source.ModuleCtxToModuleQName;
-import org.opendaylight.yangtools.yang.parser.spi.source.ModuleCtxToSourceIdentifier;
-
-final class SemanticVersionImport {
-
- private abstract static class CompatibleCriterion extends NamespaceKeyCriterion<SemVerSourceIdentifier> {
- private final String moduleName;
-
- CompatibleCriterion(final String moduleName) {
- this.moduleName = requireNonNull(moduleName);
- }
-
- @Override
- public boolean match(final SemVerSourceIdentifier key) {
- return moduleName.equals(key.getName());
- }
-
- @Override
- protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) {
- return toStringHelper.add("moduleName", moduleName);
- }
- }
-
- private static final class NoVerCompatibleCriterion extends SemanticVersionImport.CompatibleCriterion {
- NoVerCompatibleCriterion(final String moduleName) {
- super(moduleName);
- }
-
- @Override
- public SemVerSourceIdentifier select(final SemVerSourceIdentifier first,
- final SemVerSourceIdentifier second) {
- // TODO Auto-generated method stub
- return null;
- }
- }
-
- private static final class SemVerCompatibleCriterion extends SemanticVersionImport.CompatibleCriterion {
- private final SemVer semVer;
-
- SemVerCompatibleCriterion(final String moduleName, final SemVer semVer) {
- super(moduleName);
- this.semVer = requireNonNull(semVer);
- }
-
- @Override
- public boolean match(final SemVerSourceIdentifier key) {
- if (!super.match(key)) {
- return false;
- }
- final Optional<SemVer> optKeyVer = key.getSemanticVersion();
- if (!optKeyVer.isPresent()) {
- return false;
- }
-
- final SemVer keyVer = optKeyVer.get();
- if (semVer.getMajor() != keyVer.getMajor()) {
- return false;
- }
- if (semVer.getMinor() > keyVer.getMinor()) {
- return false;
- }
- return semVer.getMinor() < keyVer.getMinor() || semVer.getPatch() <= keyVer.getPatch();
- }
-
- @Override
- public SemVerSourceIdentifier select(final SemVerSourceIdentifier first,
- final SemVerSourceIdentifier second) {
- return first.getSemanticVersion().get().compareTo(second.getSemanticVersion().get()) >= 0 ? first
- : second;
- }
-
- @Override
- protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) {
- return super.addToStringAttributes(toStringHelper).add("version", semVer);
- }
- }
-
- private SemanticVersionImport() {
- // Hidden on purpose
- }
-
- static void onLinkageDeclared(final Mutable<String, ImportStatement, ImportEffectiveStatement> stmt) {
- final ModelActionBuilder importAction = stmt.newInferenceAction(SOURCE_LINKAGE);
- final String moduleName = stmt.getArgument();
- final SemVer semanticVersion = stmt.getFromNamespace(SemanticVersionNamespace.class, stmt);
- final SemanticVersionImport.CompatibleCriterion criterion = semanticVersion == null
- ? new NoVerCompatibleCriterion(moduleName)
- : new SemVerCompatibleCriterion(moduleName, semanticVersion);
-
- final Prerequisite<StmtContext<?, ?, ?>> imported = importAction.requiresCtx(stmt,
- SemanticVersionModuleNamespace.class, criterion, SOURCE_LINKAGE);
- final Prerequisite<Mutable<?, ?, ?>> linkageTarget = importAction.mutatesCtx(stmt.getRoot(), SOURCE_LINKAGE);
-
- importAction.apply(new InferenceAction() {
- @Override
- public void apply(final InferenceContext ctx) {
- final StmtContext<?, ?, ?> importedModule = imported.resolve(ctx);
- final SemVer importedVersion = stmt.getFromNamespace(SemanticVersionNamespace.class, stmt);
- final SourceIdentifier importedModuleIdentifier = importedModule.getFromNamespace(
- ModuleCtxToSourceIdentifier.class, importedModule);
- final SemVerSourceIdentifier semVerModuleIdentifier = createSemVerModuleIdentifier(
- importedModuleIdentifier, importedVersion);
- stmt.addToNs(ImportedVersionNamespace.class, Empty.value(), semVerModuleIdentifier);
-
- linkageTarget.resolve(ctx).addToNs(ImportedModuleContext.class, importedModuleIdentifier,
- importedModule);
- final String impPrefix = firstAttributeOf(stmt.declaredSubstatements(), PrefixStatement.class);
- stmt.addToNs(ImportPrefixToModuleCtx.class, impPrefix, importedModule);
- stmt.addToNs(ImportPrefixToSemVerSourceIdentifier.class, impPrefix, semVerModuleIdentifier);
-
- final QNameModule mod = InferenceException.throwIfNull(stmt.getFromNamespace(
- ModuleCtxToModuleQName.class, importedModule), stmt, "Failed to find module of %s", importedModule);
- stmt.addToNs(ModuleQNameToPrefix.class, mod, impPrefix);
- }
-
- @Override
- public void prerequisiteFailed(final Collection<? extends Prerequisite<?>> failed) {
- if (failed.contains(imported)) {
- throw new InferenceException(stmt,
- "Unable to find module compatible with requested import [%s(%s)].", moduleName,
- getRequestedImportVersionString(stmt));
- }
- }
- });
- }
-
- private static Optional<SemVer> getRequestedImportVersion(final StmtContext<?, ?, ?> stmt) {
- return Optional.ofNullable(stmt.getFromNamespace(SemanticVersionNamespace.class, stmt));
- }
-
- private static String getRequestedImportVersionString(final StmtContext<?, ?, ?> stmt) {
- return getRequestedImportVersion(stmt).map(SemVer::toString).orElse("<any>");
- }
-
- private static SemVerSourceIdentifier createSemVerModuleIdentifier(
- final SourceIdentifier importedModuleIdentifier, final SemVer semVer) {
- return SemVerSourceIdentifier.create(importedModuleIdentifier.getName(),
- importedModuleIdentifier.getRevision(), semVer);
- }
-}
import org.opendaylight.yangtools.yang.model.api.stmt.NamespaceStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.PrefixStatement;
import org.opendaylight.yangtools.yang.model.repo.api.RevisionSourceIdentifier;
-import org.opendaylight.yangtools.yang.model.repo.api.SemVerSourceIdentifier;
import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
import org.opendaylight.yangtools.yang.model.ri.stmt.DeclaredStatementDecorators;
import org.opendaylight.yangtools.yang.model.ri.stmt.DeclaredStatements;
import org.opendaylight.yangtools.yang.model.spi.meta.SubstatementIndexingException;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
import org.opendaylight.yangtools.yang.parser.spi.ModuleNamespace;
import org.opendaylight.yangtools.yang.parser.spi.NamespaceToModule;
import org.opendaylight.yangtools.yang.parser.spi.meta.BoundStmtCtx;
import org.opendaylight.yangtools.yang.parser.spi.meta.CommonStmtCtx;
import org.opendaylight.yangtools.yang.parser.spi.meta.EffectiveStmtCtx.Current;
-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.meta.StmtContextUtils;
.addOptional(OpenConfigStatements.OPENCONFIG_VERSION)
.build();
- private final boolean semanticVersioning;
-
private ModuleStatementSupport(final YangParserConfiguration config, final SubstatementValidator validator) {
super(YangStmtMapping.MODULE, StatementPolicy.reject(), config, validator);
- semanticVersioning = config.importResolutionMode() == ImportResolutionMode.OPENCONFIG_SEMVER;
}
public static @NonNull ModuleStatementSupport rfc6020Instance(final YangParserConfiguration config) {
stmt.addToNs(ModuleCtxToSourceIdentifier.class, stmt, moduleIdentifier);
stmt.addToNs(ModuleQNameToModuleName.class, qNameModule, moduleName);
stmt.addToNs(ImportPrefixToModuleCtx.class, modulePrefix, stmt);
-
- if (semanticVersioning) {
- addToSemVerModuleNamespace(stmt, moduleIdentifier);
- }
}
@Override
private static SourceException noNamespace(final @NonNull CommonStmtCtx stmt) {
return new SourceException("No namespace declared in module", stmt);
}
-
- private static void addToSemVerModuleNamespace(
- final Mutable<Unqualified, ModuleStatement, ModuleEffectiveStatement> stmt,
- final SourceIdentifier moduleIdentifier) {
- final SemVerSourceIdentifier id = SemVerSourceIdentifier.create(stmt.getRawArgument(),
- stmt.getFromNamespace(SemanticVersionNamespace.class, stmt));
- stmt.addToNs(SemanticVersionModuleNamespace.class, id, stmt);
- }
}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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;
-
-import static org.hamcrest.CoreMatchers.startsWith;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertThrows;
-
-import org.junit.Test;
-import org.opendaylight.yangtools.concepts.SemVer;
-import org.opendaylight.yangtools.yang.common.XMLNamespace;
-import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
-import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
-
-@Deprecated(since = "8.0.4", forRemoval = true)
-public class OpenconfigVersionBorderCaseTest {
- private static final YangParserConfiguration SEMVER = YangParserConfiguration.builder()
- .importResolutionMode(ImportResolutionMode.OPENCONFIG_SEMVER)
- .build();
-
- @Test
- public void borderCaseValidMajorTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources(
- "/openconfig-version/border-case/border-case-valid-major", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("5.5.5"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void borderCaseValidMinorTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources(
- "/openconfig-version/border-case/border-case-valid-minor", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("5.6.5"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void borderCaseValidPatchTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources(
- "/openconfig-version/border-case/border-case-valid-patch", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("5.5.6"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void borderCaseInvalidMajorTest() throws Exception {
- final ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-invalid-major", SEMVER));
- assertThat(ex.getCause().getMessage(),
- startsWith("Unable to find module compatible with requested import [bar(5.5.5)]."));
- }
-
- @Test
- public void borderCaseInvalidMinorTest() {
- final ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-invalid-minor", SEMVER));
- assertThat(ex.getCause().getMessage(),
- startsWith("Unable to find module compatible with requested import [bar(5.5.5)]."));
- }
-
- @Test
- public void borderCaseInvalidPatchTest() throws Exception {
- final ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/border-case/border-case-invalid-patch", SEMVER));
- assertThat(ex.getCause().getMessage(),
- startsWith("Unable to find module compatible with requested import [bar(5.5.5)]."));
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-
-import java.util.Optional;
-import org.junit.Test;
-import org.opendaylight.yangtools.concepts.SemVer;
-import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.common.XMLNamespace;
-import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
-import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
-import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
-
-@Deprecated(since = "8.0.4", forRemoval = true)
-public class OpenconfigVersionComplexTest {
- private static final YangParserConfiguration SEMVER = YangParserConfiguration.builder()
- .importResolutionMode(ImportResolutionMode.OPENCONFIG_SEMVER)
- .build();
-
- @Test
- public void complexTest1() throws Exception {
- final SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/complex/complex-1",
- SEMVER);
- verifySchemaContextTest1(context);
- }
-
- @Test
- public void complexTest1Yang1_1() throws Exception {
- final SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/complex/complex-1-rfc7950",
- SEMVER);
- verifySchemaContextTest1(context);
- }
-
- private static void verifySchemaContextTest1(final SchemaContext context) {
- assertNotNull(context);
-
- final Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- final Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- // check module versions
- assertEquals(SemVer.valueOf("1.3.95"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("1.50.2"), foo.getSemanticVersion().get());
-
- final Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("1.2.6"), bar.getSemanticVersion().get());
-
- final Module foobar = StmtTestUtils.findImportedModule(context, bar, "foobar");
- assertEquals(SemVer.valueOf("2.26.465"), foobar.getSemanticVersion().get());
-
- // check imported components
- assertNotNull("This component should be present", context.findDataTreeChild(
- QName.create(bar.getQNameModule(), "root"),
- QName.create(bar.getQNameModule(), "test-container"),
- QName.create(bar.getQNameModule(), "number")).orElse(null));
-
- assertNotNull("This component should be present", context.findDataTreeChild(
- QName.create(bar.getQNameModule(), "should-present")).orElse(null));
-
- // check not imported components
- assertEquals("This component should not be present", Optional.empty(), context.findDataTreeChild(
- QName.create(bar.getQNameModule(), "root"),
- QName.create(bar.getQNameModule(), "test-container"),
- QName.create(bar.getQNameModule(), "oldnumber")));
-
- assertEquals("This component should not be present", Optional.empty(), context.findDataTreeChild(
- QName.create(bar.getQNameModule(), "should-not-be-present")));
- }
-
- @Test
- public void complexTest2() throws Exception {
- final SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/complex/complex-2", SEMVER);
- verifySchemaContextTest2(context);
- }
-
- @Test
- public void complexTest2Yang1_1() throws Exception {
- final SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/complex/complex-2-rfc7950",
- SEMVER);
- verifySchemaContextTest2(context);
- }
-
- private static void verifySchemaContextTest2(final SchemaContext context) {
- assertNotNull(context);
-
- final Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- final Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- // check module versions
- assertEquals(SemVer.valueOf("2.5.50"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("2.32.2"), foo.getSemanticVersion().get());
-
- final Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("4.9.8"), bar.getSemanticVersion().get());
-
- final Module foobar = StmtTestUtils.findImportedModule(context, bar, "foobar");
- assertEquals(SemVer.valueOf("7.13.99"), foobar.getSemanticVersion().get());
-
- // check used augmentations
- assertNotNull("This component should be present", context.findDataTreeChild(
- QName.create(foobar.getQNameModule(), "root"),
- QName.create(foobar.getQNameModule(), "test-container"),
- QName.create(bar.getQNameModule(), "should-present-leaf-1")).orElse(null));
-
- assertNotNull("This component should be present", context.findDataTreeChild(
- QName.create(foobar.getQNameModule(), "root"),
- QName.create(foobar.getQNameModule(), "test-container"),
- QName.create(bar.getQNameModule(), "should-present-leaf-2")).orElse(null));
-
- // check not used augmentations
- assertEquals("This component should not be present", Optional.empty(), context.findDataTreeChild(
- QName.create(foobar.getQNameModule(), "root"),
- QName.create(foobar.getQNameModule(), "test-container"),
- QName.create(bar.getQNameModule(), "should-not-be-present-leaf-1")));
- assertEquals("This component should not be present", Optional.empty(), context.findDataTreeChild(
- QName.create(foobar.getQNameModule(), "root"),
- QName.create(foobar.getQNameModule(), "test-container"),
- QName.create(bar.getQNameModule(), "should-not-be-present-leaf-2")));
-
- // check if correct foobar module was included
- assertNotNull("This component should be present", context.findDataTreeChild(
- QName.create(foobar.getQNameModule(), "root"),
- QName.create(foobar.getQNameModule(), "included-correct-mark")).orElse(null));
-
- assertEquals("This component should not be present", Optional.empty(), context.findDataTreeChild(
- QName.create(foobar.getQNameModule(), "root"),
- QName.create(foobar.getQNameModule(), "included-not-correct-mark")));
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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;
-
-import static org.hamcrest.CoreMatchers.startsWith;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertThrows;
-
-import java.util.Optional;
-import org.junit.Test;
-import org.opendaylight.yangtools.concepts.SemVer;
-import org.opendaylight.yangtools.yang.common.XMLNamespace;
-import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
-import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
-
-@Deprecated(since = "8.0.4", forRemoval = true)
-public class OpenconfigVersionDefaultsTest {
- private static final YangParserConfiguration SEMVER = YangParserConfiguration.builder()
- .importResolutionMode(ImportResolutionMode.OPENCONFIG_SEMVER)
- .build();
-
- @Test
- public void defaultsTest() throws Exception {
- final var context = StmtTestUtils.parseYangSources("/openconfig-version/defaults/defaults", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module bar = context.findModules(XMLNamespace.of("bar")).iterator().next();
-
- assertEquals(Optional.empty(), foo.getSemanticVersion());
- assertEquals(Optional.empty(), bar.getSemanticVersion());
- }
-
- @Test
- public void defaultMajorValidTest() throws Exception {
- final var context = StmtTestUtils.parseYangSources("/openconfig-version/defaults/default-major-valid",
- SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module bar = context.findModules(XMLNamespace.of("bar")).iterator().next();
-
- assertEquals(Optional.empty(), foo.getSemanticVersion());
- assertEquals(SemVer.valueOf("0.99.99"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void defaultMajorInvalidTest() throws Exception {
- final var ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/defaults/default-major-invalid", SEMVER));
- assertThat(ex.getCause().getMessage(),
- startsWith("Unable to find module compatible with requested import [bar(0.0.1)]."));
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-
-import org.junit.Test;
-import org.opendaylight.yangtools.concepts.SemVer;
-import org.opendaylight.yangtools.yang.common.XMLNamespace;
-import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
-import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
-import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
-
-@Deprecated(since = "8.0.4", forRemoval = true)
-public class OpenconfigVersionIgnoringRevisionTest {
- private static final YangParserConfiguration SEMVER = YangParserConfiguration.builder()
- .importResolutionMode(ImportResolutionMode.OPENCONFIG_SEMVER)
- .build();
-
- @Test
- public void ignoringRevisionTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/ignoring-revision", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module bar = context.findModules(XMLNamespace.of("bar")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void ignoringRevision2Test() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/ignoring-revision-2", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
- Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion().get());
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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;
-
-import static org.hamcrest.CoreMatchers.startsWith;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertThrows;
-
-import org.junit.Test;
-import org.opendaylight.yangtools.concepts.SemVer;
-import org.opendaylight.yangtools.yang.common.XMLNamespace;
-import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
-import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
-
-@Deprecated(since = "8.0.4", forRemoval = true)
-public class OpenconfigVersionImportTest {
- private static final YangParserConfiguration SEMVER = YangParserConfiguration.builder()
- .importResolutionMode(ImportResolutionMode.OPENCONFIG_SEMVER)
- .build();
-
- @Test
- public void importValidTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/import/import-valid", SEMVER);
- assertNotNull(context);
-
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("1.0.0"), semVer.getSemanticVersion().get());
- }
-
- @Test
- public void importInvalidDeprecatedTest1() {
- ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-deprecated-1", SEMVER));
- assertThat(ex.getCause().getMessage(), startsWith(
- "Unable to find module compatible with requested import [openconfig-extensions(1.0.0)]."));
- }
-
- @Test
- public void importInvalidDeprecatedTest2() {
- ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-deprecated-2", SEMVER));
- assertThat(ex.getCause().getMessage(), startsWith(
- "Unable to find module compatible with requested import [openconfig-extensions(0.9.9)]."));
- }
-
- @Test
- public void importInvalidNotsufficientTest1() {
- ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-notsufficient-1", SEMVER));
- assertThat(ex.getCause().getMessage(), startsWith(
- "Unable to find module compatible with requested import [openconfig-extensions(2.0.0)]."));
- }
-
- @Test
- public void importInvalidNotsufficientTest2() {
- ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-notsufficient-2", SEMVER));
- assertThat(ex.getCause().getMessage(), startsWith(
- "Unable to find module compatible with requested import [openconfig-extensions(2.0.5)]."));
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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;
-
-import static org.hamcrest.CoreMatchers.startsWith;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertThrows;
-
-import org.junit.Test;
-import org.opendaylight.yangtools.concepts.SemVer;
-import org.opendaylight.yangtools.yang.common.XMLNamespace;
-import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.ModuleImport;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
-import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
-
-@Deprecated(since = "8.0.4", forRemoval = true)
-public class OpenconfigVersionMultipleImportTest {
- private static final YangParserConfiguration SEMVER = YangParserConfiguration.builder()
- .importResolutionMode(ImportResolutionMode.OPENCONFIG_SEMVER)
- .build();
-
- @Test
- public void multipleInvalidDeprecatedTest() {
- ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-invalid-deprecated", SEMVER));
- assertThat(ex.getCause().getMessage(),
- startsWith("Unable to find module compatible with requested import [bar(1.0.0)]."));
- }
-
- @Test
- public void multipleInvalidNosufficientTest() {
- ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-invalid-nosufficient", SEMVER));
- assertThat(ex.getCause().getMessage(),
- startsWith("Unable to find module compatible with requested import [bar(2.5.5)]."));
- }
-
- @Test
- public void multipleValidDefaultsTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-valid-defaults",
- SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- Module bar = findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("0.9.5"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void multipleValidSpecifiedTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/multiple/multiple-valid-specified",
- SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- Module bar = findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("5.5.6"), bar.getSemanticVersion().get());
- }
-
- private static Module findImportedModule(final SchemaContext context, final Module rootModule,
- final String importedModuleName) {
- ModuleImport requestedModuleImport = null;
- for (ModuleImport moduleImport : rootModule.getImports()) {
- if (moduleImport.getModuleName().equals(importedModuleName)) {
- requestedModuleImport = moduleImport;
- break;
- }
- }
-
- return context.findModule(requestedModuleImport.getModuleName(), requestedModuleImport.getRevision()).get();
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-
-import org.junit.Test;
-import org.opendaylight.yangtools.concepts.SemVer;
-import org.opendaylight.yangtools.yang.common.XMLNamespace;
-import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
-import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
-import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
-
-@Deprecated(since = "8.0.4", forRemoval = true)
-public class OpenconfigVersionPositionTest {
- private static final YangParserConfiguration SEMVER = YangParserConfiguration.builder()
- .importResolutionMode(ImportResolutionMode.OPENCONFIG_SEMVER)
- .build();
-
- @Test
- public void positionHeadTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/position/position-head", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module bar = context.findModules(XMLNamespace.of("bar")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void positionMiddleTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/position/position-middle", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module bar = context.findModules(XMLNamespace.of("bar")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void positiontailTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/position/position-tail", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module bar = context.findModules(XMLNamespace.of("bar")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion().get());
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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;
-
-import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.hamcrest.CoreMatchers.startsWith;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertThrows;
-
-import java.util.Optional;
-import org.junit.Test;
-import org.opendaylight.yangtools.concepts.SemVer;
-import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.common.XMLNamespace;
-import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
-import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
-import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.model.api.SchemaNode;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
-import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
-
-@Deprecated(since = "8.0.4", forRemoval = true)
-public class OpenconfigVersionTest {
- private static final YangParserConfiguration SEMVER = YangParserConfiguration.builder()
- .importResolutionMode(ImportResolutionMode.OPENCONFIG_SEMVER)
- .build();
-
- @Test
- public void basicTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module bar = context.findModules(XMLNamespace.of("bar")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void basicTest2() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic-2", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module bar = context.findModules(XMLNamespace.of("bar")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void basicTest3() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic-3", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- }
-
- @Test
- public void basicImportTest1() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/basic-import-1", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void multipleModulesTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/multiple-modules", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("0.10.4"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void basicImportErrTest1() {
- ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/basic-import-invalid-1", SEMVER));
- assertThat(ex.getCause().getMessage(),
- startsWith("Unable to find module compatible with requested import [bar(0.1.2)]."));
- }
-
- @Test
- public void basicImportErrTest2() {
- ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYangSources("/openconfig-version/basic-import-invalid-2", SEMVER));
- assertThat(ex.getCause().getMessage(),
- startsWith("Unable to find module compatible with requested import [bar(0.1.2)]."));
- }
-
- @Test
- public void nodeTest() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/openconfig-version/node-test", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("2016.1.1"), foo.getSemanticVersion().get());
- Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("2016.4.6"), bar.getSemanticVersion().get());
-
- QName root = QName.create("foo", "2016-01-01", "foo-root");
- QName container20160404 = QName.create("foo", "2016-01-01", "con20160404");
- SchemaNode findDataSchemaNode = context.findDataTreeChild(root, container20160404).orElseThrow();
- assertThat(findDataSchemaNode, instanceOf(ContainerSchemaNode.class));
-
- QName container20160405 = QName.create("foo", "2016-01-01", "con20160405");
- findDataSchemaNode = context.findDataTreeChild(root, container20160405).orElseThrow();
- assertThat(findDataSchemaNode, instanceOf(ContainerSchemaNode.class));
-
- QName container20160406 = QName.create("foo", "2016-01-01", "con20160406");
- findDataSchemaNode = context.findDataTreeChild(root, container20160406).orElseThrow();
- assertThat(findDataSchemaNode, instanceOf(ContainerSchemaNode.class));
-
- QName container20170406 = QName.create("foo", "2016-01-01", "con20170406");
- final Optional<DataSchemaNode> dataTreeChild = context.findDataTreeChild(root, container20170406);
- assertEquals(Optional.empty(), dataTreeChild);
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.yin;
-
-import static org.hamcrest.CoreMatchers.startsWith;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertThrows;
-
-import java.io.IOException;
-import java.net.URISyntaxException;
-import org.junit.Test;
-import org.opendaylight.yangtools.concepts.SemVer;
-import org.opendaylight.yangtools.yang.common.XMLNamespace;
-import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
-import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
-import org.xml.sax.SAXException;
-
-@Deprecated(since = "8.0.4", forRemoval = true)
-public class YinOpenconfigVersionTest {
- private static final YangParserConfiguration SEMVER = YangParserConfiguration.builder()
- .importResolutionMode(ImportResolutionMode.OPENCONFIG_SEMVER)
- .build();
-
- @Test
- public void basicTest() throws URISyntaxException, SAXException, IOException, ReactorException {
- SchemaContext context = StmtTestUtils.parseYinSources("/openconfig-version/yin-input/basic", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module bar = context.findModules(XMLNamespace.of("bar")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void basicImportTest1() throws URISyntaxException, SAXException, IOException, ReactorException {
- SchemaContext context = StmtTestUtils.parseYinSources("/openconfig-version/yin-input/basic-import", SEMVER);
- assertNotNull(context);
-
- Module foo = context.findModules(XMLNamespace.of("foo")).iterator().next();
- Module semVer = context.findModules(XMLNamespace.of("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
-
- assertEquals(SemVer.valueOf("0.0.1"), semVer.getSemanticVersion().get());
- assertEquals(SemVer.valueOf("0.1.1"), foo.getSemanticVersion().get());
- Module bar = StmtTestUtils.findImportedModule(context, foo, "bar");
- assertEquals(SemVer.valueOf("0.1.2"), bar.getSemanticVersion().get());
- }
-
- @Test
- public void basicImportErrTest1() {
- ReactorException ex = assertThrows(ReactorException.class,
- () -> StmtTestUtils.parseYinSources("/openconfig-version/yin-input/basic-import-invalid", SEMVER));
- assertThat(ex.getCause().getMessage(),
- startsWith("Unable to find module compatible with requested import [bar(0.1.2)]."));
- }
-}
+++ /dev/null
-module bar {
- namespace "bar";
- prefix bar;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29;}
-
- revision "2016-01-31" {
- description "Initial version";
- }
- oc-ext:openconfig-version "0.1.2";
-
- container root {
- }
-}
+++ /dev/null
-module foo {
- namespace "foo";
- prefix foo;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29;}
- import bar { prefix bar; revision-date 2016-01-31;}
-
- revision "2016-02-01" {
- description "Initial version";
- }
- oc-ext:openconfig-version "0.1.1";
-
- container root {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 "1.1.2";
-
- container root {
- }
-}
+++ /dev/null
-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.3";
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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.5.5";
-
- container root {
- }
-}
+++ /dev/null
-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 "3.5.5";
-
- container root {
- }
-}
+++ /dev/null
-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 "4.5.5";
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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.2.5";
-
- container root {
- }
-}
+++ /dev/null
-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.3.5";
-
- container root {
- }
-}
+++ /dev/null
-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.4.5";
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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.3";
-
- container root {
- }
-}
+++ /dev/null
-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.4";
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 "6.5.5";
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-module bar {
- namespace "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"; }
-
- revision "2016-01-03" {
- description "Imported version";
- }
- oc-ext:openconfig-version "1.2.6";
-
- container root {
- container test-container {
- uses foobar:test-grouping;
- }
- }
-
- leaf-list should-present {
- type string;
- description "List of strings";
- }
-}
+++ /dev/null
-module bar {
- namespace "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"; }
-
- revision "2016-01-04" {
- description "Not-imported version";
- }
- oc-ext:openconfig-version "2.200.200";
-
- container root {
- container test-container {
- uses foobar:test-grouping;
- }
- }
-
- leaf-list should-not-be-present {
- type uint32;
- description "List of integers";
- }
-}
+++ /dev/null
-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";
-}
+++ /dev/null
-module foobar {
- namespace "foobar";
- prefix foobar;
- yang-version 1.1;
-
- import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.95"; }
-
- revision "2016-01-31" {
- description "Not-imported version";
- }
- oc-ext:openconfig-version "2.25.2";
-
- grouping test-grouping {
- leaf name {
- type string;
- description "Name";
- }
- leaf oldnumber {
- type uint8;
- description "Old number";
- }
- }
-}
+++ /dev/null
-module foobar {
- namespace "foobar";
- prefix foobar;
- yang-version 1.1;
-
- import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.3.95"; }
-
- revision "2016-02-28" {
- description "Imported version";
- }
- oc-ext:openconfig-version "2.26.465";
-
- grouping test-grouping {
- leaf name {
- type string;
- description "Name";
- }
- leaf number {
- type uint32;
- description "Number";
- }
- }
-}
+++ /dev/null
-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
+++ /dev/null
-module bar {
- namespace "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"; }
-
- revision "2016-01-03" {
- description "Imported version";
- }
- oc-ext:openconfig-version "1.2.6";
-
- container root {
- container test-container {
- uses foobar:test-grouping;
- }
- }
-
- leaf-list should-present {
- type string;
- description "List of strings";
- }
-}
+++ /dev/null
-module bar {
- namespace "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"; }
-
- revision "2016-01-04" {
- description "Not-imported version";
- }
- oc-ext:openconfig-version "2.200.200";
-
- container root {
- container test-container {
- uses foobar:test-grouping;
- }
- }
-
- leaf-list should-not-be-present {
- type uint32;
- description "List of integers";
- }
-}
+++ /dev/null
-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";
-}
+++ /dev/null
-module foobar {
- namespace "foobar";
- prefix foobar;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.2.95"; }
-
- revision "2016-01-31" {
- description "Not-imported version";
- }
- oc-ext:openconfig-version "2.25.2";
-
- grouping test-grouping {
- leaf name {
- type string;
- description "Name";
- }
- leaf oldnumber {
- type uint8;
- description "Old number";
- }
- }
-}
+++ /dev/null
-module foobar {
- namespace "foobar";
- prefix foobar;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "1.3.95"; }
-
- revision "2016-02-28" {
- description "Imported version";
- }
- oc-ext:openconfig-version "2.26.465";
-
- grouping test-grouping {
- leaf name {
- type string;
- description "Name";
- }
- leaf number {
- type uint32;
- description "Number";
- }
- }
-}
+++ /dev/null
-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
+++ /dev/null
-module bar {
- namespace "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"; }
-
- revision "2016-01-03" {
- description "Imported version";
- }
- oc-ext:openconfig-version "4.9.8";
-
- augment "/foobar:root/foobar:test-container" {
- leaf should-present-leaf-1 {
- type string;
- }
- leaf should-present-leaf-2 {
- type uint8;
- default 0;
- }
- }
-}
+++ /dev/null
-module bar {
- namespace "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"; }
-
- revision "2016-01-04" {
- description "Not-imported version";
- }
- oc-ext:openconfig-version "3.0.5";
-
- augment "/foobar:root/foobar:test-container" {
- leaf should-not-be-present-leaf-1 {
- type string;
- }
- leaf should-not-be-present-leaf-2 {
- type uint8;
- default 0;
- }
- }
-}
+++ /dev/null
-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";
-}
+++ /dev/null
-module foobar {
- namespace "foobar";
- prefix foobar;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.1.950"; }
-
- revision "2016-01-31" {
- description "Not-imported version";
- }
- oc-ext:openconfig-version "8.0.0";
-
- container root {
- leaf included-not-correct-mark {
- type empty;
- }
- container test-container {
- }
- }
-}
+++ /dev/null
-module foobar {
- namespace "foobar";
- prefix foobar;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
-
- revision "2016-02-27" {
- description "Not-imported version";
- }
- oc-ext:openconfig-version "7.13.0";
-
- container root {
- leaf included-not-correct-mark {
- type empty;
- }
- container test-container {
- }
- }
-}
+++ /dev/null
-module foobar {
- namespace "foobar";
- prefix foobar;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
-
- revision "2016-02-28" {
- description "Imported version";
- }
- oc-ext:openconfig-version "7.13.99";
-
- container root {
- leaf included-correct-mark {
- type empty;
- }
- container test-container {
- }
- }
-}
+++ /dev/null
-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
+++ /dev/null
-module bar {
- namespace "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"; }
-
- revision "2016-01-03" {
- description "Imported version";
- }
- oc-ext:openconfig-version "4.9.8";
-
- augment "/foobar:root/foobar:test-container" {
- leaf should-present-leaf-1 {
- type string;
- }
- leaf should-present-leaf-2 {
- type uint8;
- default 0;
- }
- }
-}
+++ /dev/null
-module bar {
- namespace "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"; }
-
- revision "2016-01-04" {
- description "Not-imported version";
- }
- oc-ext:openconfig-version "3.0.5";
-
- augment "/foobar:root/foobar:test-container" {
- leaf should-not-be-present-leaf-1 {
- type string;
- }
- leaf should-not-be-present-leaf-2 {
- type uint8;
- default 0;
- }
- }
-}
+++ /dev/null
-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";
-}
+++ /dev/null
-module foobar {
- namespace "foobar";
- prefix foobar;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.1.950"; }
-
- revision "2016-01-31" {
- description "Not-imported version";
- }
- oc-ext:openconfig-version "8.0.0";
-
- container root {
- leaf included-not-correct-mark {
- type empty;
- }
- container test-container {
- }
- }
-}
+++ /dev/null
-module foobar {
- namespace "foobar";
- prefix foobar;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
-
- revision "2016-02-27" {
- description "Not-imported version";
- }
- oc-ext:openconfig-version "7.13.0";
-
- container root {
- leaf included-not-correct-mark {
- type empty;
- }
- container test-container {
- }
- }
-}
+++ /dev/null
-module foobar {
- namespace "foobar";
- prefix foobar;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; oc-ext:openconfig-version "2.5.50"; }
-
- revision "2016-02-28" {
- description "Imported version";
- }
- oc-ext:openconfig-version "7.13.99";
-
- container root {
- leaf included-correct-mark {
- type empty;
- }
- container test-container {
- }
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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.0.0";
-
- container root {
- }
-}
+++ /dev/null
-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.0.1"; }
-
- revision "2016-02-01" {
- description "Initial version";
- }
-
- container root {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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; }
-
- revision "2016-02-01" {
- description "Initial version";
- }
-
- container root {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-module bar {
- namespace "bar";
- prefix bar;
- yang-version 1;
-
- revision "2016-01-31" {
- description "Initial version";
- }
-
- container root {
- }
-}
+++ /dev/null
-module foo {
- namespace "foo";
- prefix foo;
- yang-version 1;
-
- import bar { prefix bar; revision-date 2016-01-31; }
-
- revision "2016-02-01" {
- description "Initial version";
- }
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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.9.9"; }
-
- revision "2016-02-01" {
- description "Initial version";
- }
-
- container root {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-module foo {
- namespace "foo";
- prefix foo;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "2.0.0"; }
-
- revision "2016-02-01" {
- description "Initial version";
- }
-
- container root {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-module foo {
- namespace "foo";
- prefix foo;
- yang-version 1;
-
- import openconfig-extensions { prefix oc-ext; revision-date 2017-01-29; oc-ext:openconfig-version "2.0.5"; }
-
- revision "2016-02-01" {
- description "Initial version";
- }
-
- container root {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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-04" {
- description "Initial version";
- }
- oc-ext:openconfig-version "0.10.4";
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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-02-28" {
- description "Initial version";
- }
- oc-ext:openconfig-version "1.2.28";
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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-02-01" {
- description "Initial version";
- }
- oc-ext:openconfig-version "4.1.1";
-
- container root {
- }
-}
+++ /dev/null
-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-02-02" {
- description "Initial version";
- }
- oc-ext:openconfig-version "5.0.0";
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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-02-01" {
- description "Initial version";
- }
- oc-ext:openconfig-version "2.5.0";
-
- container root {
- }
-}
+++ /dev/null
-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-02-02" {
- description "Initial version";
- }
- oc-ext:openconfig-version "2.5.4";
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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-02-01" {
- description "Initial version";
- }
- oc-ext:openconfig-version "0.9.5";
-
- container root {
- }
-}
+++ /dev/null
-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-02-02" {
- description "Initial version";
- }
- oc-ext:openconfig-version "1.0.0";
-
- container root {
- }
-}
+++ /dev/null
-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.0.1"; }
-
- revision "2016-02-01" {
- description "Initial version";
- }
- oc-ext:openconfig-version "0.1.1";
-
- container root {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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-02-01" {
- description "Initial version";
- }
- oc-ext:openconfig-version "5.5.5";
-
- container root {
- }
-}
+++ /dev/null
-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-02-02" {
- description "Initial version";
- }
- oc-ext:openconfig-version "5.5.6";
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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-04-04 {
- description "test";
- }
-
- oc-ext:openconfig-version "2016.4.4";
-
- grouping grp {
- container con20160404 {
- }
- }
-}
+++ /dev/null
-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-04-05 {
- description "test";
- }
-
- oc-ext:openconfig-version "2016.4.5";
-
- grouping grp {
- container con20160404 {
- }
- container con20160405 {
- }
- }
-}
+++ /dev/null
-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-04-06 {
- description "test";
- }
-
- oc-ext:openconfig-version "2016.4.6";
-
- grouping grp {
- container con20160404 {
- }
- container con20160405 {
- }
- container con20160406 {
- }
- }
-}
+++ /dev/null
-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 2017-04-06 {
- description "test";
- }
-
- oc-ext:openconfig-version "2017.4.6";
-
- grouping grp {
- container con20160404 {
- }
- container con20160405 {
- }
- container con20160406 {
- }
- container con20170406 {
- }
- }
-}
+++ /dev/null
-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;
- }
-}
+++ /dev/null
-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
+++ /dev/null
-module bar {
- oc-ext:openconfig-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"; }
-
- revision "2016-01-31" {
- description "Initial version";
- }
-
- container root {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-module openconfig-extensions {
- oc-ext:openconfig-version "0.0.1";
- 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.";
- }
-}
\ No newline at end of file
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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 {
- }
-}
+++ /dev/null
-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
+++ /dev/null
-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";
- }
-
- container root {
- }
-
- oc-ext:openconfig-version "0.1.2";
-}
+++ /dev/null
-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";}
-}
+++ /dev/null
-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
+++ /dev/null
-<?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="2016-02-02"></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-01"></revision>
- <oc-ext:openconfig-version semver="1.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
+++ /dev/null
-<?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="2016-02-02"></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="1.1.3"></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
+++ /dev/null
-<?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">
- <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>
- </import>
- <import module="openconfig-extensions">
- <prefix value="oc-ext"></prefix>
- <revision-date date="2016-02-02"></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-02-01"></revision>
- <oc-ext:openconfig-version semver="0.1.1"></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
+++ /dev/null
-<?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
+++ /dev/null
-<?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="2016-02-02"></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-01"></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
+++ /dev/null
-<?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="2016-02-02"></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="1.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
+++ /dev/null
-<?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">
- <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>
- </import>
- <import module="openconfig-extensions">
- <prefix value="oc-ext"></prefix>
- <revision-date date="2016-02-02"></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-02-01"></revision>
- <oc-ext:openconfig-version semver="0.1.1"></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
+++ /dev/null
-<?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
+++ /dev/null
-<?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
+++ /dev/null
-<?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">
- <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>
- </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>
- <organization>
- <text></text>
- </organization>
- <contact>
- <text></text>
- </contact>
- <revision date="2016-02-01"></revision>
- <oc-ext:openconfig-version semver="0.1.1"></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
+++ /dev/null
-<?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
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.parser.spi.meta;
-
-import com.google.common.annotations.Beta;
-import org.eclipse.jdt.annotation.NonNull;
-import org.opendaylight.yangtools.yang.model.api.stmt.ModuleEffectiveStatement;
-import org.opendaylight.yangtools.yang.model.api.stmt.ModuleStatement;
-import org.opendaylight.yangtools.yang.model.repo.api.SemVerSourceIdentifier;
-
-/**
- * Namespace class for storing Maps of all modules with the same name. This namespace is
- * used only in case the semantic versioning is enabled, otherwise it is empty.
- */
-@Beta
-@Deprecated(since = "7.0.11", forRemoval = true)
-public interface SemanticVersionModuleNamespace
- extends StatementNamespace<SemVerSourceIdentifier, ModuleStatement, ModuleEffectiveStatement> {
- NamespaceBehaviour<SemVerSourceIdentifier, StmtContext<?, ModuleStatement, ModuleEffectiveStatement>,
- @NonNull SemanticVersionModuleNamespace> BEHAVIOUR =
- NamespaceBehaviour.global(SemanticVersionModuleNamespace.class);
-
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.parser.spi.source;
-
-import com.google.common.annotations.Beta;
-import org.eclipse.jdt.annotation.NonNull;
-import org.opendaylight.yangtools.yang.model.repo.api.SemVerSourceIdentifier;
-import org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ParserNamespace;
-
-/**
- * Source-specific mapping of prefixes to source identifier with specified semantic version.
- */
-@Beta
-@Deprecated(since = "7.0.11", forRemoval = true)
-public interface ImportPrefixToSemVerSourceIdentifier extends ParserNamespace<String, SemVerSourceIdentifier> {
- NamespaceBehaviour<String, SemVerSourceIdentifier, @NonNull ImportPrefixToSemVerSourceIdentifier> BEHAVIOUR =
- NamespaceBehaviour.rootStatementLocal(ImportPrefixToSemVerSourceIdentifier.class);
-
-}
// Touch behaviors
// FIXME: add more checks/split this up when behaviours are testable
assertNotNull(SemanticVersionNamespace.BEHAVIOUR);
- assertNotNull(SemanticVersionModuleNamespace.BEHAVIOUR);
assertNotNull(StatementDefinitionNamespace.BEHAVIOUR);
}
}
assertNotNull(ImpPrefixToNamespace.BEHAVIOUR);
assertNotNull(ImportedModuleContext.BEHAVIOUR);
assertNotNull(ImportPrefixToModuleCtx.BEHAVIOUR);
- assertNotNull(ImportPrefixToSemVerSourceIdentifier.BEHAVIOUR);
assertNotNull(IncludedSubmoduleNameToModuleCtx.BEHAVIOUR);
assertNotNull(IncludedModuleContext.BEHAVIOUR);
assertNotNull(ModuleCtxToModuleQName.BEHAVIOUR);