-
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
Add suppor for "when" statements #105
Comments
Hi Lluis,
Could you confirm what you're currently seeing (do you see either fieldA or fieldB being set, but not both?) - as I didn't quite get your output. Thanks, |
Hi Rob, The code was a kind of unit testing module to check if Best, |
I'm currently working on some code in a different language for YANG, so I'm a little pressed for time to add things to pyangbind currently. I do plan to add it at some point, but I just need to get cycles to do so. |
Hi, |
Hi @viandox, |
I think the Python3 work that @tarkatronic is working on takes precedence over this feature in terms of the number of folks that have asked. However, if someone would like to start working on this -- I can help advise how it might be implemented within the XPathHelper. The best place to discuss is probably the #pyangbind channel on the NetworkToCode Slack. |
Hi Rok! |
Thanks Rok, quite the same answer here. |
To be clear, the work I'm doing is getting merged back into this repository, which remains the primary authoritative fork. So for any work you do, I would definitely recommend forking from here. |
Yes, +1 to @tarkatronic -- we're working to merge this back into this code. What I meant was that I think keeping the code stable to ensure that we're able to finish this work to get to Py3 compatibility (and improved testing approach) is important. After that, we can start to evaluate the feature requests that can be added. |
Understand. Will wait until this work released. |
+1 @robshakir I am interested in implementing this feature request can you please provide some pointers. |
Hi Rob!
How are you doing?
I found a bug (or I'm doing something wrong) when using the "when" statement.
I'm using: pyang (1.7.1) and pyangbind (0.5.10)
Assume you have the next simple model, where a field/set-of-fields are enabled only when an object is of a specific kind:
I generate the model using the following command...
And then I run the next python code...
And the output is...
My expectation was:
Am I missing something or doing something wrong?
Thanks in advance!
Lluis
The text was updated successfully, but these errors were encountered: