YANG Tools

Overview

YANG Tools provides a set of libraries to deal with YANG models and data modeled using them.

Behavior/Feature Changes

The mapping of YANG augmentations in yang-data-api has changed. Where previously these have been supported by AugmetationNode and addressable via AugmentationIdentifier, any augmented nodes are now direct children of their data tree parent nodes.

YangTextSchemaSource is now a CharSource rather than a ByteSource. This eliminates ambiguity and assumptions made on the text encoding character set, pushing the responsibility down to users introducing schema sources into the system.

New Features

No new features.

Removed Features

No removed features.

Deprecated Features

No deprecated features.

Resolved Issues

The following table lists the issues resolved in this release.

Issues resolved in versions 12.0.0 through 13.0.2 (JIRA)

Type

Key

Summary

Resolution

Fix Version(s)

Bug

YANGTOOLS-1563

Unstable NodeWithValue.toString()

Done

11.0.6, 13.0.1

Bug

YANGTOOLS-1562

NormalizedNode.toString() changed

Done

13.0.1

Bug

YANGTOOLS-1561

{Yin,Yang}TextSource references require yang-model-spi

Done

13.0.0

Bug

YANGTOOLS-1532

Fail to parse YANG module with a node with if-feature augmented within grouping

Done

10.0.11, 11.0.4, 12.0.0, 9.0.9

Improvement

YANGTOOLS-1566

Add Empty.{completed,immediate}Future()

Done

10.0.13, 11.0.6, 13.0.2

Improvement

YANGTOOLS-1551

Remove references to java.util.EventListener

Done

12.0.0

Improvement

YANGTOOLS-1550

Improve ImmutableOffsetMapTemplate error reporting

Done

10.0.13, 11.0.5, 12.0.0

Improvement

YANGTOOLS-1549

Add AbstractHierarchicalIdentifier

Done

12.0.0

Improvement

YANGTOOLS-1538

Do not use Optional in yang-data-tree-ri operations

Done

11.0.4, 12.0.0

Improvement

YANGTOOLS-1523

Do not trim XML element text

Done

12.0.0

Improvement

YANGTOOLS-1494

Do not allow empty YangInstanceIdentifier leaf/leaf-list values

Done

12.0.0

Improvement

YANGTOOLS-1482

Validate ietf-restconf:yang-data substatements are unique

Done

10.0.10, 11.0.4, 12.0.0

Improvement

YANGTOOLS-1272

Expose SchemaInferenceStack.effectiveStatus()

Done

11.0.4, 12.0.0

Improvement

YANGTOOLS-918

Reconsider design of yang.common.Revision

Done

12.0.0

New Feature

YANGTOOLS-1461

Add utilities for reading/writing yang-ir

Done

12.0.0

Sub-task

YANGTOOLS-1524

Do not use yang.model.api.Module in AbstractModuleStringInstanceIdentifierCodec

Done

12.0.0

Task

YANGTOOLS-1559

Remove NormalizedNode.getIdentifier()

Done

12.0.0

Task

YANGTOOLS-1548

Remove support for pre-Magnesium binfmt versions

Done

12.0.0

Task

YANGTOOLS-1521

Migrate to JUnit5

Done

12.0.0

Task

YANGTOOLS-1409

AugmentEffectiveStatementImpl should not be QNameModuleAware

Done

12.0.0

Task

YANGTOOLS-1259

Split out immutable NormalizedNode implementations

Done

12.0.0

Known Issues

The following table lists the known issues that exist in this release.

Issues affecting versions 12.0.0 through 13.0.2 (JIRA)

Type

Key

Summary

Status

Affected Version(s)

Fix Version(s)

Bug

YANGTOOLS-1572

Remove circular dependecy when parsing module with submodule

Resolved

13.0.0, 13.0.1, 13.0.2, 13.0.3

13.0.4

Bug

YANGTOOLS-1570

RPC output cannot be written out via JSON/XML codecs

Resolved

10.0.12, 11.0.6, 13.0.0, 9.0.10

11.0.7, 13.0.3

Resolved Issues in SR1

The following table lists the issues resolved in Service Release 1.

Issues resolved in versions 13.0.3 through 13.0.6 (JIRA)

Type

Key

Summary

Resolution

Fix Version(s)

Bug

YANGTOOLS-1575

JSONNormalizedNodeStreamWriter fails to process MapEntryNode

Done

11.0.7, 13.0.6

Bug

YANGTOOLS-1572

Remove circular dependecy when parsing module with submodule

Done

13.0.4

Bug

YANGTOOLS-1570

RPC output cannot be written out via JSON/XML codecs

Done

11.0.7, 13.0.3

Improvement

YANGTOOLS-1569

Allow JSONCodec to be used without JsonWriter

Done

11.0.7, 13.0.3

Improvement

YANGTOOLS-1567

Improve JSONCodec.parseValue()

Done

10.0.13, 11.0.7, 13.0.3

Known Issues in SR1

The following table lists the known issues that exist in Service Release 1.

Resolved Issues in SR2

The following table lists the issues resolved in Service Release 2.

Issues resolved in versions 13.0.7 through 13.0.7 (JIRA)

Type

Key

Summary

Resolution

Fix Version(s)

Bug

YANGTOOLS-1571

RegexUtils does not convert all XSD specifics to Java-compatible regex

Done

11.0.8, 13.0.7, 14.0.0

Known Issues in SR2

The following table lists the known issues that exist in Service Release 2.