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

Parser incorrectly allows usage of union in list

    XMLWordPrintable

Details

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

    • 2561

    Description

      Symptomps:
      The following yang syntax is accepted and generates a non-usable Java file.

      list foo {
      union {
      type int32;
      type enumeration

      { enum "test"; }

      }
      }

      Supplied model is invalid and should be rejected by parser (union is not substatement of list).

      Attachments

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

        Activity

          People

            martin.ciglan Martin Ciglan
            tony.tkacik@gmail.com Tony Tkacik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: