[YANGTOOLS-517] New parser can't handle "}}" sequence Created: 30/Sep/15  Updated: 10/Apr/22  Resolved: 30/Sep/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Michal Polkorab Assignee: Martin Ciglan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 4378

 Description   

Topoprocessing jenkins jobs started failing after ODL switched to use the new yang parser.

During debugging we found that this issue is related to syntax. After brief discussion with Martin Ciglan we found out, that the new parser can't handle "}}" sequence. Ending brackets must be separated to work corrrectly.

We updated our models, but I still think this might happen in other models / projects - therefore it is a bug in the parser and it would be nice if it was fixed.



 Comments   
Comment by Michal Polkorab [ 30/Sep/15 ]

Issue discovered on following input:

grouping opaque-attribute-value {
choice basic-attribute-types {
case boolean-value {leaf boolean-value {type boolean;}}
case empty-value {leaf empty-value {type empty; }}
case int32-value {leaf int64-value {type int32; }}
case string-value {leaf string-value {type string; }}
case string-list {leaf-list string-list {type string; }}
case uint32-value {leaf uint32-value {type uint32; }}
}
}

Comment by Martin Ciglan [ 30/Sep/15 ]

confirmed, for time being, please use "} }" sequence instead.

Comment by Martin Ciglan [ 30/Sep/15 ]

fix pushed:
https://git.opendaylight.org/gerrit/#/c/27641/

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