Open anukulverma opened 8 years ago
1) With base 1.0 everything works. <?xml version="1.0" encoding="UTF-8"?>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?> <rpc message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
]]>]]>
So , not issue with connection or port.
Yes, netconf server (OpenYuma) is currently support base:1.0 and cause conflict with your client base:1.1. So, you should get capabilities from server and switch to use appropriate version as same as ncclient.
Netconf server is sending both 1.1 & 1.0 to client in hello message,
<?xml version="1.0" encoding="UTF-8"?> <hello xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
Please turn on debug log (i.e debug4) at netconf server to see a root cause
Server debug log:
ses_accept_input on session 5 ses read OK (173) on session 5 ses: accept base:1.1 buffer (173):
<?xml version="1.0" encoding="UTF-8"?>
ses: invalid base:1;1 framing (inbetween: expect newline) agt_ncxserver: input failed for session 5 (invalid protocol framing characters received) ses_msg send 1.1 buff:591 lity
<?xml version="1.0" encoding="UTF-8"?> <rpc-reply xmlns:ncx="http://netconfcentral.org/ns/yuma-ncx" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
agt_sys: generating
ses: invalid base:1;1 framing (inbetween: expect newline) agt_ncxserver: input failed for session 5 (invalid protocol framing characters received) ses_msg send 1.1 buff:591 Does LF encode as '\n' (wiki: https://tools.ietf.org/html/rfc6242#section-4.2)
I saw this and copied payload from RFC only. Can u please send me the payload, if i m doing something wrong, i will compare and correct.
I think you have to follow an payload format:
\n#
I have tried this also.
agt_hello: set protocol to base:1.1
Session 11 for root@10.12.23.28 now active (base:1.1)
ses_accept_input on session 11
ses read OK (132) on session 11
ses: accept base:1.1 buffer (132):
\n#4\n
<rpc
\n#18\n
message-id="102"\n
\n#79\n
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n
ses: invalid base:1;1 framing (inbetween: expect newline) agt_ncxserver: input failed for session 11 (invalid protocol framing characters received) ses_msg send 1.1 buff:591 lity
<?xml version="1.0" encoding="UTF-8"?> <rpc-reply xmlns:ncx="http://netconfcentral.org/ns/yuma-ncx" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
agt_sys: generating
Is it possible for you to help me, to get it working?
Sorry, what am I suggest is to read carefully at https://tools.ietf.org/html/rfc6242#section-4.2 since I never try this before. Try your best!
Try this:
\n#4\n <rpc \n#18\n message-id="102"\n \n#79\n xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n <close-session/>\n </rpc> \n##\n
same error
Hello @anukulverma, I understand that issue happened while ago, but would much appreciate if can you share the root cause and how to overcome.
Hi,
I m trying to use openssh commands to get device configuration.
hello message sent : <?xml version="1.0" encoding="UTF-8"?>
]]>]]>
get-config payload:
239
<?xml version="1.0" encoding="UTF-8"?> <rpc message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
Netconfd server (Openyuma) returns following error:
581
<?xml version="1.0" encoding="UTF-8"?> <rpc-reply xmlns:ncx="http://netconfcentral.org/ns/yuma-ncx" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">