[CONTROLLER-660] ODL unable to parse "max-elements" statement in a leaf-list Created: 04/Aug/14  Updated: 25/Jul/23  Resolved: 05/Aug/14

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Giles Heron Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: Zip Archive opendaylight.zip    
External issue ID: 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?



 Comments   
Comment by Giles Heron [ 04/Aug/14 ]

Attachment opendaylight.zip has been added with description: zipped Opendaylight log file

Comment by Martin Vitez [ 05/Aug/14 ]

This bug was fixed by https://git.opendaylight.org/gerrit/#/c/9521/ already and should not appears anymore.
If you are working with newest yangtools and issue still happens, feel free to reopen.
Closing as resolved.

Generated at Wed Feb 07 19:53:34 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.