Details
-
Bug
-
Status: Resolved
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
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 {
description
"This grouping provides the leaf for specifying special
next-hop options.";
leaf special-next-hop {
type enumeration {
enum "blackhole"
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."; } }
description
"Special next-hop options.";
}
} // grouping special-next-hop
Attachments
Issue Links
- duplicates
-
MDSAL-1 Binding Specification: Grouping, data, typedef and identity namespaces collide
- Resolved