* Made a separate Clixon datastore XML/JSON top-level symbol

* Replaces the hardcoded "config" keyword.
  * Implemented by a compile-time option called `DATASTORE_TOP_SYMBOL` option in clixon_custom.h
* Tests: added endtest to all tests. Removed all premature exits if BE=0
This commit is contained in:
Olof hagsand 2021-03-05 14:15:15 +01:00
parent 2ab90d847b
commit b7991d9b39
132 changed files with 939 additions and 628 deletions

View file

@ -74,9 +74,9 @@ NACM0="<nacm xmlns=\"urn:ietf:params:xml:ns:yang:ietf-netconf-acm\">
"
cat<<EOF > $startupdb
<config>
<${DATASTORE_TOP}>
$NACM0
</config>
</${DATASTORE_TOP}>
EOF
# An extra testmodule that includes nacm
@ -158,9 +158,9 @@ fi
# Restart
cat<<EOF > $startupdb
<config>
<${DATASTORE_TOP}>
$NACM0
</config>
</${DATASTORE_TOP}>
EOF
if [ $BE -ne 0 ]; then
new "kill old backend"
@ -270,3 +270,6 @@ fi
unset RESTCONFIG
rm -rf $dir
new "endtest"
endtest