Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-660

ODL unable to parse "max-elements" statement in a leaf-list

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • netconf
    • None
    • Operating System: Linux
      Platform: PC

    • 1482

    Description

      ODL is parsing a YANG module containing:

      leaf-list file

      { type string; max-elements unbounded; }

      ODL complains about the "unbounded":

      Caused by: java.lang.NumberFormatException: For input string: "unbounded".

      if I change the unbounded to e.g. 1000 then the issue is resolved.

      From reading RFC6020 the "max-elements unbounded" looks like valid YANG:

      http://tools.ietf.org/html/rfc6020#section-7.7.4

      can someone take a look?

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            giheron@cisco.com Giles Heron
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: