Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
6679
Description
If there are two or more Containers (Lists and others as well) with same name in one yang module, example is not rendered properly. It always takes the last one and render example based on that.
e.g.:
module -->
container jukebox {
container library {
list artist {
key name;
leaf name {
type string
}
list song {
key name;
leaf name {
type string
}
leaf location
leaf format
{ type string; }leaf length
{ type uint32; } } // end list 'song'
} // end list 'artist'
} // end library
list playlist {
key name;
leaf name
{ type string; } list song {
key index;
leaf index
{ type uint32; } leaf id {
type leafref
mandatory true;
}
} // end song
} //end playlist
}// end jukebox
example generated -->
{
"jukebox": {
"library": {
"artist": [
{
"song": [ <---- wrongly generated song. should contain name,location,format,length
],
"name": "string"
}
]
},
"playlist": [
{
"song": [
],
"name": "string",
}
]
}
}
Attachments
Issue Links
- blocks
-
NETCONF-278 API Explorer Model Schema Data Type 'Click to set as parameter value' valid example values
- Resolved