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

New yang parser allows two choice cases with identical child elements

    XMLWordPrintable

Details

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

    • 5829

    Description

      Let's say we have a yang model which contains this:

      choice ch {
      case a {
      leaf a

      { type string; }
      }

      case b {
      leaf a { type string; }

      }
      }

      This is invalid as both cases contain the same child (with identical QName). New yang parser should detect this problem and throw an Exception.

      Attachments

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

        Activity

          People

            pkajsa Peter Kajsa
            ifoltin Igor Foltin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: