[YANGTOOLS-664] Extend yang statement parser to support different yang versions Created: 06/Oct/16  Updated: 10/Apr/22  Resolved: 04/Jan/17

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

Type: Bug
Reporter: Peter Kajsa 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
blocks YANGTOOLS-355 Milestone: Introduce support for YANG... Resolved
blocks YANGTOOLS-665 [Yang 1.1] Argument of "If-feature" s... Resolved
blocks YANGTOOLS-666 [Yang 1.1] Allow "if-feature" in "bit... Resolved
blocks YANGTOOLS-667 [Yang 1.1] Support for new substateme... Resolved
blocks YANGTOOLS-668 [Yang 1.1] Allow "must" in "input", "... Resolved
blocks YANGTOOLS-669 [Yang 1.1] Support for "require-insta... Resolved
blocks YANGTOOLS-670 [Yang 1.1] Allow "description" and "r... Resolved
blocks YANGTOOLS-671 [Yang 1.1] Allow imports of multiple ... Resolved
blocks YANGTOOLS-672 [Yang 1.1] Allow "augment" to add con... Resolved
blocks YANGTOOLS-673 [Yang 1.1] Allow identities to be der... Resolved
blocks YANGTOOLS-674 [Yang 1.1] Add support for a set of n... Resolved
blocks YANGTOOLS-676 [Yang 1.1] Allow leaf-lists to have d... Resolved
blocks YANGTOOLS-678 [Yang 1.1] Allow type "empty" in a key Resolved
blocks YANGTOOLS-679 [Yang 1.1] Add support for a new data... Resolved
blocks YANGTOOLS-680 [Yang 1.1] Allow submodule to referen... Resolved
blocks YANGTOOLS-681 [Yang 1.1] Disallow "when" and "if-fe... Resolved
blocks YANGTOOLS-682 [Yang 1.1] Update rules for handling ... Resolved
blocks YANGTOOLS-683 [Yang 1.1] Allow enumerations and bit... Resolved
blocks YANGTOOLS-684 [Yang 1.1] Add support for new statem... Resolved
blocks YANGTOOLS-685 [Yang 1.1] Allow notifications to be ... Resolved
blocks YANGTOOLS-687 [Yang 1.1] Definition of the default ... Resolved
blocks YANGTOOLS-698 [Yang 1.1] yang-version statement sho... Resolved
blocks YANGTOOLS-730 [Yang 1.1] Allow identityref type to ... Resolved
blocks YANGTOOLS-675 [Yang 1.1] Allow type "leafref" in un... Confirmed
External issue ID: 6867

 Description   

We need to extend yang statement parser to support different yang versions. Yang statement parser must be able to distinguish version of each yang source and perform parsing of this source in according to an identified version. We need also to support mixed-version schemacontext (imports across versions are allowed).

Initial proposal is that we need to create new namespace for Yang 1.1 statements and to define new RFC7950 mapping (like existing RFC6020 mapping).
According to yang version the parser gets appropriate statement support either from RFC7950 mapping or from RFC6020 mapping.



 Comments   
Comment by Peter Kajsa [ 07/Oct/16 ]

For moree info about mixed-version schemacontext see the section 12. Coexistence with YANG Version 1 in RFC7950

Comment by Peter Kajsa [ 24/Nov/16 ]

https://git.opendaylight.org/gerrit/#/c/48368/

Comment by Peter Kajsa [ 01/Dec/16 ]

follow-up patch: https://git.opendaylight.org/gerrit/#/c/48854/

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