netconf client was limited to 8K byte messages. Now limit is 2^32
This commit is contained in:
parent
4d82d4f6ea
commit
624b949b3f
11 changed files with 157 additions and 68 deletions
|
|
@ -312,9 +312,7 @@ netconf_edit_config(clicon_handle h,
|
|||
cxobj *x;
|
||||
cxobj *xfilter;
|
||||
char *ftype = NULL;
|
||||
cxobj *xcc; /* child of config */
|
||||
char *target; /* db */
|
||||
cbuf *cbxml = NULL;
|
||||
|
||||
/* must have target, and it should be candidate */
|
||||
if ((target = netconf_get_target(xn, "target")) == NULL ||
|
||||
|
|
@ -371,19 +369,12 @@ netconf_edit_config(clicon_handle h,
|
|||
goto ok;
|
||||
}
|
||||
#endif
|
||||
if ((cbxml = cbuf_new()) == NULL)
|
||||
goto done;
|
||||
if ((xcc = xml_child_i(xc, 0)) != NULL)
|
||||
if (clicon_xml2cbuf(cbxml, xcc, 0, 0) < 0)
|
||||
goto done;
|
||||
if (clicon_rpc_netconf_xml(h, xml_parent(xn), xret, NULL) < 0)
|
||||
goto done;
|
||||
}
|
||||
ok:
|
||||
retval = 0;
|
||||
done:
|
||||
if (cbxml)
|
||||
cbuf_free(cbxml);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue