Added clicon_data_init API, and yang_mount_get API
Moved dynamic options from options to data API
This commit is contained in:
parent
5822c1a72a
commit
1e136bc9df
11 changed files with 174 additions and 43 deletions
|
|
@ -1631,10 +1631,10 @@ netconf_module_load(clicon_handle h)
|
|||
* But start with default: RFC 4741 EOM ]]>]]>
|
||||
* For now this only applies to external protocol
|
||||
*/
|
||||
clicon_option_int_set(h, "netconf-framing", NETCONF_SSH_EOM);
|
||||
clicon_data_int_set(h, "netconf-framing", NETCONF_SSH_EOM);
|
||||
if (clicon_option_bool(h, "CLICON_NETCONF_HELLO_OPTIONAL")){
|
||||
if (clicon_option_int(h, "CLICON_NETCONF_BASE_CAPABILITY") > 0) /* RFC 6241 */
|
||||
clicon_option_int_set(h, "netconf-framing", NETCONF_SSH_CHUNKED);
|
||||
clicon_data_int_set(h, "netconf-framing", NETCONF_SSH_CHUNKED);
|
||||
}
|
||||
retval = 0;
|
||||
done:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue