You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Start netopeer (we have tested this against the netconf server in netopeer).
2. Connect from cmd: ssh root@localhost -p 1831 -s netconf
3. Send hello:
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
</capabilities>
</hello>
]]>]]>
4. Send get-schema RPC:
<rpc message-id="m-3" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-schema xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
<identifier>toaster</identifier>
<version>2009-11-20</version>
<format
xmlns:x="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">x:yang</format>
</get-schema>
</rpc>
]]>]]>
What is the expected output? What do you see instead?
Netopeer responds to this with:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-3">
<rpc-error xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<error-type>protocol</error-type>
<error-tag>invalid-value</error-tag>
<error-severity>error</error-severity>
<error-message>The requested schema does not exist.</error-message>
</rpc-error>
</rpc-reply>
But if we try get-schema in slightly different format (notice the leaf
"format"):
<rpc message-id="m-3" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-schema xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
<identifier>toaster</identifier>
<version>2009-11-20</version>
<format>yang</format>
</get-schema>
</rpc>]]>]]>
Netopeer responds with correct rpc-reply. But it should be able to handle both
formats, since they are correct. Not sure if this affects only get-schema or
every other prefixed XML value.
What version of the product are you using? On what operating system?
We used Ubuntu 14 VM with netopeer running inside a docker container with the
latest available image
(https://registry.hub.docker.com/u/dockeruser/netopeer/dockerfile/)
Please provide any additional information below.
The workaround with non-prefixed value was pointed out by netopeer developers.
Original issue reported on code.google.com by maros.m...@gmail.com on 10 Jun 2015 at 2:37
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
maros.m...@gmail.comon 10 Jun 2015 at 2:37The text was updated successfully, but these errors were encountered: