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

Yang-Parser-Impl: Add default values to min-elements and max-elements constraint statements

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 2685

    Description

      When max-elements or min-elements are not specified in the yang file, schema.getConstraints().getMinElements() and shema.getConstraints().getMaxElements() returns null. According to YANG specification when these statements are not found, they should hold default values of "0" for min-elements and "unbounded" for max elements. (which could be Integer.MAX_VALUE)

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jhajnar@cisco.com Jan Hajnar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: