[YANGTOOLS-406] Compilation error: duplicate name for grouping and enum in ietf-routing.yang Created: 30/Jan/15 Updated: 10/Apr/22 Resolved: 18/Jun/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Minna Hu | Assignee: | Unassigned |
| Resolution: | Duplicate | 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: | 2656 | ||||||||
| Description |
|
Hi, I tried to generate JAVA class from ietf-routing.yang (see http://www.netconfcentral.org/modules/ietf-routing), but the generated classes cannot compile, because grouping special-next-hop and enum special-next-hop have the same name, yang definition as follows. Could you solve the problem? Thanks! grouping special-next-hop { enum "unreachable" { value 1; description "Discard the packet and notify the sender with an error message indicating that the destination host is unreachable."; }enum "prohibit" { value 2; description "Discard the packet and notify the sender with an error message indicating that the communication is administratively prohibited."; }enum "receive" { value 3; description "The packet will be received by the local network device."; } } |