[MDSAL-279] Binding v2 generator generates uncompilable code Created: 31/Jul/17  Updated: 09/Mar/18  Resolved: 19/Sep/17

Status: Resolved
Project: mdsal
Component/s: Binding V2 codegen
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Andrej Záň Assignee: Jie Han
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: 8909

 Description   

Generated code from this yang:

module test {

yang-version 1;
namespace "urn:opendaylight:params:xml:ns:yang:test";
prefix "test";

revision "2017-02-24"

{ description "Initial revision of test model."; }

container test-container {
list test-list {
leaf test-leaf {
type enumeration {
enum enum1

{ value 1; }

enum enum2

{ value 2; }

}
}
}
}

container test-leafref-container {
leaf test-leafref {
type leafref

{ path "/test:test-container/test:test-list/test:test-leaf"; }

}
}

}

is not compilable.



 Comments   
Comment by Jie Han [ 03/Aug/17 ]

Fixed by these patches:
https://git.opendaylight.org/gerrit/60481
https://git.opendaylight.org/gerrit/60482

Comment by Jie Han [ 14/Aug/17 ]

carbon:
https://git.opendaylight.org/gerrit/61476
https://git.opendaylight.org/gerrit/61586

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