[YANGTOOLS-405] Compilation error: grouping address-family and identity address-family both exist in ietf-routing.yang Created: 29/Jan/15 Updated: 10/Apr/22 Resolved: 02/Feb/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: Linux |
||
| Issue Links: |
|
||||||||
| External issue ID: | 2655 | ||||||||
| 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, as follows. If you already developed maven artifacts for ietf-routing, please let me know. If not, could you solve the bug? Thanks! ietf-routing.yang: identity address-family { description "Base identity from which identities describing address families are derived."; }grouping address-family { mandatory true; identity ipv4 { Please notice there are 2 address-family definitions in ietf-routing.yang, one is identity, the other is grouping, this will cause the problem. The generated Ipv4 class extended an interface, so it cannot compile. public abstract class Ipv4 extends AddressFamily public Ipv4() { } public interface AddressFamily |
| Comments |
| Comment by Tony Tkacik [ 02/Feb/15 ] |
|
this is known problem of Binding Specification v1 ( Unfortunattely this is not fixable as is, without changes of how we generate files, which could potentially affect every code generated, and this will be addressed in version 2 of Binding Specification |