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

Yang parser not able to deal with short-case-stmt in augment/uses-augment

    XMLWordPrintable

Details

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

    • 4183

    Description

      Issue: module stated below causes NullPointerException in code generator.

      Solution: short-case-stmt should be expanded during parsing to full case-stmt to avoid it.

      module uses-augment-test {

      yang-version 1;
      prefix "uat";
      namespace "urn:uat";

      grouping grp1 {
      uses grp2 {
      augment mychoice {
      //here it comes...
      leaf myleaf1

      { type string; }

      }
      }
      }

      grouping grp2 {
      choice mychoice {
      leaf myleaf2

      { type string; }


      }
      }

      container cont {
      uses grp1;
      leaf myleaf3

      { type string; }

      }

      }

      Attachments

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

        Activity

          People

            martin.ciglan Martin Ciglan
            martin.ciglan Martin Ciglan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: