leaf-list body

This commit is contained in:
Olof Hagsand 2016-04-15 19:26:41 +02:00
parent 32a4b83b28
commit 55201c9b4a

View file

@ -134,7 +134,11 @@ expand_dbvar(void *h,
}
for (i = 0; i < xlen; i++) {
x = xvec[i];
if ((bodystr = xml_body(x)) == NULL){
if (xml_type(x) == CX_BODY)
bodystr = xml_value(x);
else
bodystr = xml_body(x);
if (bodystr == NULL){
clicon_err(OE_CFG, 0, "No xml body");
goto done;
}