[YANGTOOLS-355] Milestone: Introduce support for YANG v 1.1 (RFC7950) Created: 04/Nov/14  Updated: 10/Apr/22  Resolved: 01/Mar/17

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Tony Tkacik Assignee: Peter Kajsa
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
is blocked by YANGTOOLS-664 Extend yang statement parser to suppo... Resolved
is blocked by YANGTOOLS-665 [Yang 1.1] Argument of "If-feature" s... Resolved
is blocked by YANGTOOLS-666 [Yang 1.1] Allow "if-feature" in "bit... Resolved
is blocked by YANGTOOLS-667 [Yang 1.1] Support for new substateme... Resolved
is blocked by YANGTOOLS-668 [Yang 1.1] Allow "must" in "input", "... Resolved
is blocked by YANGTOOLS-669 [Yang 1.1] Support for "require-insta... Resolved
is blocked by YANGTOOLS-670 [Yang 1.1] Allow "description" and "r... Resolved
is blocked by YANGTOOLS-671 [Yang 1.1] Allow imports of multiple ... Resolved
is blocked by YANGTOOLS-672 [Yang 1.1] Allow "augment" to add con... Resolved
is blocked by YANGTOOLS-673 [Yang 1.1] Allow identities to be der... Resolved
is blocked by YANGTOOLS-676 [Yang 1.1] Allow leaf-lists to have d... Resolved
is blocked by YANGTOOLS-679 [Yang 1.1] Add support for a new data... Resolved
is blocked by YANGTOOLS-680 [Yang 1.1] Allow submodule to referen... Resolved
is blocked by YANGTOOLS-681 [Yang 1.1] Disallow "when" and "if-fe... Resolved
is blocked by YANGTOOLS-682 [Yang 1.1] Update rules for handling ... Resolved
is blocked by YANGTOOLS-683 [Yang 1.1] Allow enumerations and bit... Resolved
is blocked by YANGTOOLS-684 [Yang 1.1] Add support for new statem... Resolved
is blocked by YANGTOOLS-685 [Yang 1.1] Allow notifications to be ... Resolved
is blocked by YANGTOOLS-687 [Yang 1.1] Definition of the default ... Resolved
is blocked by YANGTOOLS-698 [Yang 1.1] yang-version statement sho... Resolved
is blocked by YANGTOOLS-699 Milestone: [Yang 1.1] Yang model API ... Resolved
is blocked by YANGTOOLS-730 [Yang 1.1] Allow identityref type to ... Resolved

 Description   

YANGTools parser should be able to parse and express information defined in YANG models from https://tools.ietf.org/html/draft-ietf-netmod-rfc6020bis-01

Compatibility with parsing of YANG version 1 needs to be preserved.



 Comments   
Comment by Martin Ciglan [ 20/Jan/15 ]

in very first draft phase

Comment by Robert Varga [ 18/Mar/15 ]

Beryllium feature.

Comment by Tony Tkacik [ 30/Mar/16 ]

Further analysis of changes showed that full support will be probably slanted for Carbon, since it does not only affect YANG Tools, but also MD-SAL, NETCONF and RESTCONF.

Comment by Ryan Goulding [ 30/Mar/16 ]

Thanks for the synopsis on the scope of this change. Do we have any ideas on how yangtools will handle YANG models with version 1.1 in Boron? Will the parser reject such models?

Comment by Peter Verthez [ 03/Oct/16 ]

May I ask what the plan now is for support of YANG 1.1? It is now officially planned to be included in Carbon?

Note that YANG 1.1 is now a Proposed Standard (https://tools.ietf.org/html/rfc7950), so probably the title of this ticket should be updated.

We are feeling the heat of this, as more and more IETF YANG modules are YANG 1.1, so I would really like to know the plan. I understand the date for Carbon is May next year, which we can live with, although we would probably try to use intermediate milestones of the yang tools when available. But we would have a big problem if this would not be in Carbon: in that case, we will probably have to look for alternatives.

Comment by Chris Lott [ 13/Feb/20 ]

I'm using version 0.7.4-Lithium-SR4 of yang-maven-plugin which complains as follows when asked to process a YANG input with "yang-version 1.1;"

Unable to parse yang files from /Users/me/my-project/yang: Yang validation failed for fileorg.opendaylight.yangtools.yang.parser.util.YangValidationException: (In (sub)module:my-module-config-v1) Unsupported yang version:1.1, supported version:1 -> [Help 1]

I see that many issues tagged [Yang 1.1] are resolved. Do I need to set a special command option, use a generator class other than
org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl or ? Please advise, thanks.

Comment by Robert Varga [ 14/Feb/20 ]

Lithium SR4 predates RFC7950 by ~6 months, so there is just no way that release could have supported it. Upgrade to a supported version (Neon+) and you'll be fine.

Generated at Wed Feb 07 20:52:59 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.