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

YANG parser does not complain about list without key

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Done
    • 2.0.10
    • 3.0.8, 4.0.5, 2.1.16
    • parser
    • None

    Description

      We're using version 2.0.11.

      The parser does not give an error if the YANG model contains a (config) list without key, although this is not allowed according to the RFC.

      pyang does give the following error on the attached model:

       example.yang:7: error: the list needs at least one key

      Attachments

        Issue Links

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

          Activity

            People

              rovarga Robert Varga
              verthezpw Peter Verthez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: