-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YDK5.5 can not create a top entity as a list #888
Comments
Reproduced the issue in ydk-0.8.1 with ydktest model bundle, which defines top-level list node oc_pattern/oc-a.
The test produced the following results:
Note, that YDK allowed create the top-level list with multiple entries and Netconf worked perfectly well. But at the end the YDK failed decode multiple list elements and returned single entry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.
In YDK 5.5, if a module has a top entity as a list. Currently there is no way for YDK to generate a list entity. If it is not a top entity, I used to gnerate the entity and then by refer to its parent, which is the list entity. However, since the entity is at top, it dose not have a parent. Therefore the usual way to refer it parent as list does not work.
Expected Behavior
Take BGP neighbor as an example. after a neighbor instance is created as nbr. then its parent will be the neighbor list. nbr.parent.append(nbr)
Current Behavior
For Cisco-ios-xr-vrf-cfg, the top entity is Vrf, after it was created, i.e. vrf. vrf has not parent as it is on the top level. therefore, there is no way to refer its parent as the vrf_list.
Steps to Reproduce
find a module, which has a top entity as a list. simply generate the top entity, then dir the entity, you will find parent is not in the list.
Your Script
Logs
Enable logging and post the logs below
System Information
The text was updated successfully, but these errors were encountered: