-
Notifications
You must be signed in to change notification settings - Fork 121
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
config: false Lists may not have a "key" sub-stmt / ordered-by #7
Comments
We use a similar construct in the RIB model, where there may be a multitude of routes in the table with the same prefix/next-hop/etc. so creating a keyless list is useful since it's read-only. would it make sense in this case to create a map with a system-generated key (e.g., uuid) that is just never accessed by the user? btw, do you use an ordered collection for ordered-by: user lists? |
ordered-by is not yet supported, but I was planning to use a There are a couple of options here - I would prefer to use a |
* (M) tests/run.sh lets a single test be run by specifying it as an argument. * (M) when ordered-by user is specified for a list then rather than the list being represented by a dict() a collections.OrderedDict container is used for the list members so that the order that items are added is maintained (as per issue #7).
Resolved in 4fa7f47. |
Note: Two changes to resolve under this ticket:
According to RFC6020, a list that is config: false may not have a key statement - this is currently not supported in pyangbind.
Example module - yang/vendor/cisco/xr/530/Cisco-IOS-XR-cdp-oper.yang
The text was updated successfully, but these errors were encountered: