Merge branch 'master' of https://github.com/clicon/clixon
This commit is contained in:
commit
f4076497f1
1 changed files with 4 additions and 1 deletions
|
|
@ -928,12 +928,15 @@ example_reset(clicon_handle h,
|
||||||
cxobj *xt = NULL;
|
cxobj *xt = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
cbuf *cbret = NULL;
|
cbuf *cbret = NULL;
|
||||||
|
yang_stmt *yspec;
|
||||||
|
|
||||||
if (!_reset)
|
if (!_reset)
|
||||||
goto ok; /* Note not enabled by default */
|
goto ok; /* Note not enabled by default */
|
||||||
|
|
||||||
|
yspec = clicon_dbspec_yang(h);
|
||||||
if (clixon_xml_parse_string("<config><interfaces xmlns=\"urn:ietf:params:xml:ns:yang:ietf-interfaces\">"
|
if (clixon_xml_parse_string("<config><interfaces xmlns=\"urn:ietf:params:xml:ns:yang:ietf-interfaces\">"
|
||||||
"<interface><name>lo</name><type>ex:loopback</type>"
|
"<interface><name>lo</name><type>ex:loopback</type>"
|
||||||
"</interface></interfaces></config>", YB_NONE, NULL, &xt, NULL) < 0)
|
"</interface></interfaces></config>", YB_MODULE, yspec, &xt, NULL) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
/* Replace parent w first child */
|
/* Replace parent w first child */
|
||||||
if (xml_rootchild(xt, 0, &xt) < 0)
|
if (xml_rootchild(xt, 0, &xt) < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue