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

Yang parsing succeeds with missing '}' in leaf

    XMLWordPrintable

Details

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

    • 4539

    Description

      If you omit the ending '}' for a leaf statement, parsing succeeds and code is generated, or at least some of it as in some cases Java compilation may fail.

      Example: in the mdsal project, go to mdsal/model/ietf/ietf-restconf and do mvn clean. Open src/main/yang/ietf-restconf@2013-10-19.yang. On line 189, remove the ending '}':

      leaf edit-id

      { type string; description "Arbitrary string index for the edit. Error messages returned by the server pertaining to a specific edit will be identified by this value."; }

      --> line 189

      Run mvn and you should see yang parsing succeed and files generated but a Java compilation error.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              tpantelis Tom Pantelis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: