-
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
Error string from leafref assignment can be unhelpful #174
Comments
The same error occurs when i serialise data into obj like bellow:
}`
|
This was discovered while converting xpath tests to use unittest. Specifically in
tests.xpath.01-list_leaflist.XPathListLeaflistTests.test_standalone_ref
.Given this section of the YANG model:
This test would fail:
With this error message:
This is due to the absence of a line calling
self.instance.standalone.l.add(1)
.While this is a valid error, the message could be a little more helpful. I don't have a solid suggestion on how to change it, but mentioning that the value assigned must be in the list of values added to the referred leaf would be much more helpful.
The text was updated successfully, but these errors were encountered: