[MDSAL-67] Enumeration value defined in yang model is translated without underscore Created: 26/Jan/15  Updated: 09/Mar/18  Resolved: 10/Mar/17

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

Type: Bug
Reporter: Martin Bobak Assignee: Jakub Toth
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
is blocked by MDSAL-40 Milestone: Implement Binding Specific... Resolved
External issue ID: 2641

 Description   

In my yang model I have enum defined as follows :

typedef deployment-mode {
type enumeration {
enum REACTIVE_MODE

{ description "Default deployment mode. "; }

enum PROACTIVE_MODE

{ description "Hybrid deployment mode."; }

enum INTEGRATED_MODE

{ description "Integrated mode."; }

}
}

generated sources, generated using org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl contains values for this enumeration without underscore - REACTIVEMODE,PROACTIVEMODE,INTEGRATEDMODE. It would be nice to have way, how to preserve underscore in enum values.



 Comments   
Comment by Tony Tkacik [ 09/Feb/15 ]

Moved to Binding v2 spec, since solution to this will change behaviour of generated Java Bidning in not backwards compatible way and may potentially
break already existing code.

Comment by Carol Sanders [ 02/Jun/15 ]

Involves a change of the binding specification.
Depends on yang java binding2.

Comment by Robert Varga [ 13/Nov/15 ]

Move to MDSAL

Comment by Martin Ciglan [ 31/Jan/17 ]

solved by:
https://git.opendaylight.org/gerrit/#/c/51132

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