Closed
Description
Hello,
In src\Renci.SshNet\Netconf\NetConfSession.cs, lines 41 - 42 is missing the client request for the 1.1 protocol. The code should read:
ClientCapabilities.LoadXml("<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"<hello xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">" +
"<capabilities>" +
"<capability>" +
"urn:ietf:params:netconf:base:1.0" +
"</capability>" +
"<capability>" +
"urn:ietf:params:netconf:base:1.1" +
"</capability>" +
"</capabilities>" +
"</hello>");
Without adding the second capability, line 134 is invalid:
_usingFramingProtocol = (ServerCapabilities.SelectSingleNode("/nc:hello/nc:capabilities/nc:capability[text()='urn:ietf:params:netconf:base:1.1']", nsMgr) != null);
The reason is that the server will not be using framing if the client does not state that it is supported. Line 138 uses this flag to handle chunking with the framing protocol, though the server correctly responds without framing.
Thanks,
-- Joe
Metadata
Metadata
Assignees
Labels
No labels