Datastore cache introduced; Added yang to XML API
This commit is contained in:
parent
c1cb3a2b6c
commit
e169485985
34 changed files with 884 additions and 389 deletions
|
|
@ -169,7 +169,7 @@ plugin_statedata(clicon_handle h,
|
|||
"<name>eth0</name>"
|
||||
"<type>eth</type>"
|
||||
"<if-index>42</if-index>"
|
||||
"</interface></interfaces-state>", xstate) < 0)
|
||||
"</interface></interfaces-state>", NULL, xstate) < 0)
|
||||
goto done;
|
||||
retval = 0;
|
||||
done:
|
||||
|
|
@ -227,7 +227,7 @@ plugin_reset(clicon_handle h,
|
|||
|
||||
if (clicon_xml_parse_str("<config><interfaces><interface>"
|
||||
"<name>lo</name><type>local</type>"
|
||||
"</interface></interfaces></config>", &xt) < 0)
|
||||
"</interface></interfaces></config>", NULL, &xt) < 0)
|
||||
goto done;
|
||||
/* Replace parent w fiorst child */
|
||||
if (xml_rootchild(xt, 0, &xt) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue