-
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
NETCONF-based RPC/action replies cannot be parsed #140
Comments
Hmm, so do you suggest to remove the |
That is one option but, as you say, the XML would have an issue, unless we use a fake container like this one in list-pagination-rc. My preferred option is to think about how to fix the problem in NETCONF (i.e., NETCONF-next). My recommendation would be to make the NETCONF-response be the same as the RESTCONF response. That is, have an Looking at RFC 7950 for examples, I find that the CURRENT:
I proposal changing this to: NEW:
Note that the If we can agree that this is a good/proper update for NETCONF-next, then we can discuss options for Yangson. Some options:
Thoughts? |
RFC 7950 says in both Section 7.14.4 and Section 7.15.2:
However, consistent with RFC 8040, Section 3.6.2, the various tests in
test_model.py
forrpc
andaction
responses all expect anoutput
container to be returned:yangson/tests/test_model.py
Line 233 in 83ad93f
yangson/tests/test_model.py
Line 827 in 83ad93f
yangson/tests/test_model.py
Line 833 in 83ad93f
yangson/tests/test_model.py
Line 923 in 83ad93f
yangson/tests/test_model.py
Line 929 in 83ad93f
For NETCONF, it seems that the string "output" needs to be replaced with the name of the
rpc
oraction
.Bonus issue/effort: the tests for
rpc
andaction
requests should be doublechecked as well.The text was updated successfully, but these errors were encountered: