Added namespace when with-defaults=report-all-tagged
This commit is contained in:
parent
2f0f1ef5a7
commit
c8f98f7c3c
2 changed files with 3 additions and 1 deletions
|
|
@ -933,6 +933,8 @@ get_common(clicon_handle h,
|
||||||
/* TODO. Remove empty containers */
|
/* TODO. Remove empty containers */
|
||||||
}
|
}
|
||||||
else if (strcmp(with_defaults, "report-all-tagged") == 0) {
|
else if (strcmp(with_defaults, "report-all-tagged") == 0) {
|
||||||
|
if (xmlns_set(xret, "wd", "urn:ietf:params:xml:ns:netconf:default:1.0") < 0)
|
||||||
|
goto done;
|
||||||
/* Mark nodes having default schema values */
|
/* Mark nodes having default schema values */
|
||||||
if (xml_apply(xret, CX_ELMNT, (xml_applyfn_t*)xml_flag_default_value, (void*)XML_FLAG_MARK) < 0)
|
if (xml_apply(xret, CX_ELMNT, (xml_applyfn_t*)xml_flag_default_value, (void*)XML_FLAG_MARK) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
|
||||||
|
|
@ -215,7 +215,7 @@ expecteof_netconf "$clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO" \
|
||||||
"<rpc $DEFAULTNS><get><filter type=\"subtree\"><interfaces $EXAMPLENS/></filter>\
|
"<rpc $DEFAULTNS><get><filter type=\"subtree\"><interfaces $EXAMPLENS/></filter>\
|
||||||
<with-defaults xmlns=\"urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults\">report-all-tagged</with-defaults></get></rpc>" \
|
<with-defaults xmlns=\"urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults\">report-all-tagged</with-defaults></get></rpc>" \
|
||||||
"" \
|
"" \
|
||||||
"<rpc-reply $DEFAULTNS><data><interfaces $EXAMPLENS>\
|
"<rpc-reply $DEFAULTNS><data xmlns:wd=\"urn:ietf:params:xml:ns:netconf:default:1.0\"><interfaces $EXAMPLENS>\
|
||||||
<interface><name>eth0</name><mtu>8192</mtu><status wd:default=\"true\">ok</status></interface>\
|
<interface><name>eth0</name><mtu>8192</mtu><status wd:default=\"true\">ok</status></interface>\
|
||||||
<interface><name>eth1</name><mtu wd:default=\"true\">1500</mtu><status wd:default=\"true\">ok</status></interface>\
|
<interface><name>eth1</name><mtu wd:default=\"true\">1500</mtu><status wd:default=\"true\">ok</status></interface>\
|
||||||
<interface><name>eth2</name><mtu>9000</mtu><status>not feeling so good</status></interface>\
|
<interface><name>eth2</name><mtu>9000</mtu><status>not feeling so good</status></interface>\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue