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

Yangtools parser allows 2 cases with same child elements

    XMLWordPrintable

Details

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

    • 1423

    Description

      Lets say we have yang model containing:

      choice ch {
      case a {
      leaf a

      { type string; }
      }

      case b {
      leaf a { type string; }

      }
      }

      This is invalid as both cases add the same child. Yangtools parser should detect this problem and fail.

      Attachments

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

        Activity

          People

            lborak@cisco.com Ladislav Borak
            mmarsale@cisco.com Maros Marsalek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: