YANG Tools

Overview

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

Behavior/Feature Changes

XML and JSON parsers now ensure type decimal64 values are validated to be within the range implied by their fraction-digits statements.

New Features

No new features.

Removed Features

Code generation plugin APIs for yang-maven-plugin contained in the yang-maven-plugin-spi artifact were removed.

The SchemaPath class has been removed.

Deprecated Features

No deprecated features.

Resolved Issues

The following table lists the issues resolved in this release.

Issues resolved in versions 10.0.0 through 10.0.4 (JIRA)

Type

Key

Summary

Resolution

Fix Version(s)

Bug

YANGTOOLS-1436

Unexpected error while processing submodule references

Done

10.0.0, 8.0.7, 9.0.1

Bug

YANGTOOLS-1443

Fix YangDataEffectiveStatement definition

Done

10.0.0, 8.0.8, 9.0.2

Bug

YANGTOOLS-1455

Data change event notification fails

Done

10.0.0, 7.0.18, 8.0.8, 9.0.2

Bug

YANGTOOLS-1302

xml to json translation creates duplicates.

Done

10.0.0

Bug

YANGTOOLS-1448

Failed to parse deviation statement present in submodule

Done

10.0.1, 8.0.9, 9.0.3

Bug

YANGTOOLS-1445

Node name collision for unique argument

Done

10.0.1, 8.0.9, 9.0.3

Bug

YANGTOOLS-1467

yang-xpath-impl depends on javax.inject

Done

10.0.1, 8.0.9, 9.0.3

Bug

YANGTOOLS-1465

Unexpected error processing source SourceIdentifier [ietf-network@2018-02-26]

Done

10.0.1, 8.0.9, 9.0.4

Bug

YANGTOOLS-1469

NormalizedNodeStreamWriter.create() ignores path

Done

10.0.2, 9.0.5

Bug

YANGTOOLS-1470

Fail to find unique argument node in augmented list

Done

10.0.3, 8.0.10, 9.0.6

Bug

YANGTOOLS-1471

Fail to process unsupported augment statement

Done

10.0.3, 8.0.10, 9.0.6

Bug

YANGTOOLS-1458

Instance identifier parser : handle inner quotes within quoted strings

Done

10.0.3, 8.0.10, 9.0.7

Bug

YANGTOOLS-1361

YangXPathExpression.interpretAsInstanceIdentifier() does not handle unqualified names

Done

10.0.3, 8.0.10, 9.0.7

Bug

YANGTOOLS-1474

Fail to process augmentation with empty grouping

Done

10.0.3, 8.0.10, 9.0.7

Bug

YANGTOOLS-1481

Fail to parse a list with unique statement when unsupported

Done

10.0.4, 8.0.10, 9.0.7

Epic

YANGTOOLS-1236

Remove yang.model.api.SchemaPath

Done

10.0.0

Improvement

YANGTOOLS-1452

PrefixToModule has cognitive issues

Done

10.0.0

Improvement

YANGTOOLS-1441

Normalize Decimal64 scale in range constraints

Done

10.0.0

Improvement

YANGTOOLS-1453

Do not use Class for ParserNamespace identification

Done

10.0.0

Improvement

YANGTOOLS-1442

Enforce range constraints in DecimalStringCodec

Done

10.0.0

Improvement

YANGTOOLS-1153

Audit users of NamespaceBehaviour.global()

Done

10.0.0

Improvement

YANGTOOLS-1459

Do not use Class for IdentifierNamespace identification

Done

10.0.0

Improvement

YANGTOOLS-1466

Improve EffectiveStatement definitions

Done

10.0.1

Improvement

YANGTOOLS-1462

Expose pre-sized builders from Builders

Done

10.0.2

Improvement

YANGTOOLS-1486

Reduce AbstractPrerequisite footprint

Done

10.0.4, 8.0.10, 9.0.7

New Feature

YANGTOOLS-1477

Define a YangDataName in yang.common

Done

10.0.3

Sub-task

YANGTOOLS-1249

Remove SchemaAware NormalizedNode builders

Done

10.0.0

Task

YANGTOOLS-747

Remove yang-maven-plugin-spi APIs

Done

10.0.0

Task

YANGTOOLS-1460

Split out yang-ir and IRSchemaSource

Done

10.0.0

Known Issues

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

Issues affecting versions 10.0.0 through 10.0.4 (JIRA)

Type

Key

Summary

Status

Affected Version(s)

Fix Version(s)

Bug

YANGTOOLS-1480

Fail to process deviation/augmentation from multiple modules

Resolved

10.0.3, 7.0.18, 8.0.9, 9.0.6

10.0.5, 11.0.0, 8.0.10, 9.0.7

Bug

YANGTOOLS-1473

XML/JSON YangInstanceIdentifier codecs mis-handle key values

Resolved

10.0.4, 7.0.18, 8.0.0, 9.0.0

10.0.5, 11.0.0, 8.0.10, 9.0.7

Bug

YANGTOOLS-1485

Fail to process deviation of augmented node without feature support

Resolved

10.0.3, 8.0.9, 9.0.6

10.0.5, 11.0.0, 8.0.10, 9.0.7

Bug

YANGTOOLS-1514

Failed to process YANGs containing refine of a if-feature’d target

Resolved

10.0.0, 10.0.7, 7.0.18, 8.0.10, 9.0.0, 9.0.8

10.0.8, 11.0.0, 9.0.9

Bug

YANGTOOLS-1457

yang-maven-plugin execution is not reliably following the configuration

Confirmed

10.0.0

11.0.6, 13.0.2, 14.0.0

Resolved Issues in SR1

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

Issues resolved in versions 10.0.5 through 10.0.6 (JIRA)

Type

Key

Summary

Resolution

Fix Version(s)

Bug

YANGTOOLS-1011

Empty XML anydata nodes cannot be normalized

Done

10.0.5, 11.0.0, 8.0.10, 9.0.7

Bug

YANGTOOLS-1480

Fail to process deviation/augmentation from multiple modules

Done

10.0.5, 11.0.0, 8.0.10, 9.0.7

Bug

YANGTOOLS-1473

XML/JSON YangInstanceIdentifier codecs mis-handle key values

Done

10.0.5, 11.0.0, 8.0.10, 9.0.7

Bug

YANGTOOLS-1485

Fail to process deviation of augmented node without feature support

Done

10.0.5, 11.0.0, 8.0.10, 9.0.7

Improvement

YANGTOOLS-1463

YangTextSchemaContextResolver needs to we aware of supported features

Done

10.0.5, 11.0.0

Known Issues in SR1

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

Issues affecting versions 10.0.5 through 10.0.6 (JIRA)

Type

Key

Summary

Status

Affected Version(s)

Fix Version(s)

Bug

YANGTOOLS-1505

yang-maven-plugin elicits deprecation warning with maven-3.9.1

Resolved

10.0.5, 8.0.10, 9.0.7

10.0.7, 11.0.0, 9.0.8

Resolved Issues in SR2

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

Issues resolved in versions 10.0.7 through 10.0.9 (JIRA)

Type

Key

Summary

Resolution

Fix Version(s)

Bug

YANGTOOLS-1522

XML parser omits leading/trailing whitespace in string values

Done

10.0.9, 11.0.1, 9.0.9

Bug

YANGTOOLS-1505

yang-maven-plugin elicits deprecation warning with maven-3.9.1

Done

10.0.7, 11.0.0, 9.0.8

Bug

YANGTOOLS-1514

Failed to process YANGs containing refine of a if-feature’d target

Done

10.0.8, 11.0.0, 9.0.9

New Feature

YANGTOOLS-1483

Enrich YangParserTestUtils with String literal YANG methods

Done

10.0.9, 11.0.0, 9.0.9

Known Issues in SR2

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

Issues affecting versions 10.0.7 through 10.0.9 (JIRA)

Type

Key

Summary

Status

Affected Version(s)

Fix Version(s)

Bug

YANGTOOLS-1533

XmlParserStream reports “Unhandled mount-aware schema”

Resolved

10.0.9, 11.0.0, 3.0.17, 4.0.15, 5.0.10, 6.0.12, 7.0.18, 8.0.10, 9.0.8

10.0.10, 11.0.1, 9.0.9

Bug

YANGTOOLS-1537

CME in AbstractNodeContainerModificationStrategy.checkChildPreconditions()

Resolved

10.0.9, 11.0.1, 4.0.15, 5.0.10, 6.0.12, 7.0.18, 8.0.10, 9.0.8

10.0.10, 11.0.2, 9.0.9

Bug

YANGTOOLS-1543

XmlStringInstanceIdentifierCodec is using JSON encoding for writeValue()

Resolved

10.0.9, 11.0.2, 8.0.10, 9.0.8

10.0.10, 11.0.3, 9.0.9

Bug

YANGTOOLS-1532

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

Resolved

10.0.9, 11.0.0, 9.0.8

10.0.11, 11.0.4, 12.0.0, 9.0.9

Resolved Issues in SR3

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

Issues resolved in versions 10.0.10 through 10.0.12 (JIRA)

Type

Key

Summary

Resolution

Fix Version(s)

Bug

YANGTOOLS-1533

XmlParserStream reports “Unhandled mount-aware schema”

Done

10.0.10, 11.0.1, 9.0.9

Bug

YANGTOOLS-1537

CME in AbstractNodeContainerModificationStrategy.checkChildPreconditions()

Done

10.0.10, 11.0.2, 9.0.9

Bug

YANGTOOLS-1543

XmlStringInstanceIdentifierCodec is using JSON encoding for writeValue()

Done

10.0.10, 11.0.3, 9.0.9

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-1542

Improve YangInstanceIdentifier serialization error reporting

Done

10.0.10, 11.0.3, 9.0.9

Improvement

YANGTOOLS-1544

Enhance XML prefix assignment

Done

10.0.10, 11.0.3, 9.0.9

Improvement

YANGTOOLS-1482

Validate ietf-restconf:yang-data substatements are unique

Done

10.0.10, 11.0.4, 12.0.0

Improvement

YANGTOOLS-1534

Seal XmlCodec interface to deal with XmlCodecFactory warnings

Done

10.0.10, 11.0.1, 9.0.9

New Feature

YANGTOOLS-1541

Expose YangInstanceIdentifier codec from codec factories

Done

10.0.10, 11.0.2, 9.0.9

Known Issues in SR3

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

Issues affecting versions 10.0.10 through 10.0.12 (JIRA)

Type

Key

Summary

Status

Affected Version(s)

Fix Version(s)

Bug

YANGTOOLS-1563

Unstable NodeWithValue.toString()

Resolved

10.0.12, 11.0.5, 12.0.0, 13.0.0, 9.0.10

11.0.6, 13.0.1