[YANGTOOLS-728] Yangtools allows same name in top-level container name and RPC Created: 22/Dec/16  Updated: 10/Apr/22  Resolved: 16/Mar/17

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

Type: Bug
Reporter: Richard Kosegi Assignee: Peter Kajsa
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
blocks YANGTOOLS-720 Yangtools throw excetion if two node ... Resolved
is blocked by NETVIRT-511 Duplicate RPC definitions in vpn-rpc.... Resolved
External issue ID: 7424

 Description   

Following YANG file is compiled fine using yang-maven-plugin 1.1.0-SNAPSHOT:

module demo {
namespace "urn:opendaylight:demo";
prefix "demo";
revision "2016-12-22";

container some-name {
}

rpc some-name {
}
}

Note same name of container and RPC.
This should not be allowed per RFC-7950, 6.2.1



 Comments   
Comment by Peter Kajsa [ 06/Feb/17 ]

https://git.opendaylight.org/gerrit/#/c/51400/2

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