[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 |
||
| Issue Links: |
|
||||||||
| External issue ID: | 2641 | ||||||||
| Description |
|
In my yang model I have enum defined as follows : typedef 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 |
| Comment by Carol Sanders [ 02/Jun/15 ] |
|
Involves a change of the binding specification. |
| Comment by Robert Varga [ 13/Nov/15 ] |
|
Move to MDSAL |
| Comment by Martin Ciglan [ 31/Jan/17 ] |