* Netconf: Disabled default announcing of Netconf 1.1, instead only announce 1.0
* See [Clixon does not switch to chunked framing after NETCONF 1.1 is negotiated](https://github.com/clicon/clixon/issues/314) * To enable Netconf 1.1, set `NETCONF_1_1_ANNOUNCE`
This commit is contained in:
parent
23b466a854
commit
85c6c11970
3 changed files with 12 additions and 0 deletions
|
|
@ -1691,10 +1691,12 @@ netconf_hello_server(clicon_handle h,
|
|||
|
||||
cprintf(cb, "<hello xmlns=\"%s\" message-id=\"%u\">", NETCONF_BASE_NAMESPACE, 42);
|
||||
cprintf(cb, "<capabilities>");
|
||||
#ifdef NETCONF_1_1_ANNOUNCE
|
||||
/* Each peer MUST send at least the base NETCONF capability, "urn:ietf:params:netconf:base:1.1"
|
||||
* RFC 6241 Sec 8.1
|
||||
*/
|
||||
cprintf(cb, "<capability>%s</capability>", NETCONF_BASE_CAPABILITY_1_1);
|
||||
#endif
|
||||
/* A peer MAY include capabilities for previous NETCONF versions, to indicate
|
||||
that it supports multiple protocol versions. */
|
||||
cprintf(cb, "<capability>%s</capability>", NETCONF_BASE_CAPABILITY_1_0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue