Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-632

Yang 1.0: Shorthand case should create case node in schema tree

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 6183

    Description

      Yang 1.1 requires this explicitly. https://tools.ietf.org/html/draft-ietf-netmod-rfc6020bis-14#section-7.9.2

      Yang 1.0 mentions case nodes for omitted case statements, but does not explicitly require case nodes to be present in schema tree. https://tools.ietf.org/html/rfc6020#section-7.9.2

      Current parser implementation seems so omit case nodes also in schema tree, which may lead to users creating Yang 1.1 incompatible modules.
      This Change Request is opened so that this particular behavioral change is separated from real incompatibilities between 1.0 and 1.1 semantics.

      Example model to follow shortly.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              pkajsa Peter Kajsa
              vrpolak Vratko Polak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: