-
Notifications
You must be signed in to change notification settings - Fork 20
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
look_up for values with minus character #55
Comments
You can still pass invalid Python identifiers like this: value = instance_value.look_up(**{'user_name': 'admin'}) |
Thanks. This works. However, the interface feels complex.
|
YANG lists can have multiple fields in their primary key, e.g.
As such the |
Actually, as it is implemented, the keys argument needn't contain all keys, and they even needn't be keys as defined in YANG. The first entry found that matches the specified lookup keys is returned. I am not sure if it is good or bad, but at least a lookup is possible also for non-config lists that have no keys. |
Hi,
how can I lookup values with have a minus character in their key field?
E.g.
Something like
value = instance_value.look_up(username=admin)
does not work obviously.Thanks!
The text was updated successfully, but these errors were encountered: