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

Parser: Refine without sub-statements should not be invalid

    XMLWordPrintable

Details

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

    • 6173

    Description

      Looking at specification of Yang 1.0 [0] or Yang 1.1 [1], it is NOT written that the refine statement has to perform at least one refinement. But the current parser deliberately throws an exception when an empty refine statement is encountered.

      It should be possible to allow such empty refine statements without any obvious downside.
      Issue Type set to Improvement, since the specification does NOT strictly imply that an empty refine statement is valid, either.

      Example model to follow shortly.

      [0] https://tools.ietf.org/html/rfc6020#section-7.12.2
      [1] https://tools.ietf.org/html/draft-ietf-netmod-rfc6020bis-10#section-7.13.2

      Attachments

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

        Activity

          People

            vrpolak Vratko Polak
            vrpolak Vratko Polak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: