renamed xml_spec_populate*() to xml_bind_yang*()
This commit is contained in:
parent
c5e2039cac
commit
b726c5008e
17 changed files with 191 additions and 185 deletions
|
|
@ -152,7 +152,7 @@ main(int argc, char **argv)
|
|||
clicon_err(OE_XML, 0, "Parsing base xml: %s", x0str);
|
||||
goto done;
|
||||
}
|
||||
if (xml_spec_populate(x0, yspec, NULL) < 0)
|
||||
if (xml_bind_yang(x0, yspec, NULL) < 0)
|
||||
goto done;
|
||||
if ((xb = xpath_first(x0, NULL, "%s", xpath)) == NULL){
|
||||
clicon_err(OE_XML, 0, "xpath: %s not found in x0", xpath);
|
||||
|
|
@ -167,7 +167,7 @@ main(int argc, char **argv)
|
|||
clicon_err(OE_XML, 0, "Parsing insert xml: %s", xistr);
|
||||
goto done;
|
||||
}
|
||||
if (xml_spec_populate(xi, yspec, NULL) < 0)
|
||||
if (xml_bind_yang(xi, yspec, NULL) < 0)
|
||||
goto done;
|
||||
if ((xi = xpath_first(xi, NULL, "%s", xpath)) == NULL){
|
||||
clicon_err(OE_XML, 0, "xpath: %s not found in xi", xpath);
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ main(int argc,
|
|||
/* Validate XML as well */
|
||||
if (yang_file_dir){
|
||||
/* Populate */
|
||||
if (xml_spec_populate(x, yspec, NULL) < 0)
|
||||
if (xml_bind_yang(x, yspec, NULL) < 0)
|
||||
goto done;
|
||||
/* Add default values */
|
||||
if (xml_apply(x, CX_ELMNT, xml_default, h) < 0)
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ main(int argc,
|
|||
/* Validate XML as well */
|
||||
if (yang_file_dir){
|
||||
/* Populate */
|
||||
if (xml_spec_populate(x0, yspec, NULL) < 0)
|
||||
if (xml_bind_yang(x0, yspec, NULL) < 0)
|
||||
goto done;
|
||||
/* Sort */
|
||||
if (xml_apply(x0, CX_ELMNT, xml_sort, h) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue