Added top-level namespaces when pruning XML tree for client rpc calls and restconf GET
Added new xmlns_set_all()
This commit is contained in:
parent
9be83d6c7e
commit
ad7232d1ad
13 changed files with 83 additions and 23 deletions
|
|
@ -146,11 +146,11 @@ fi
|
|||
|
||||
# XXX ftest har \n
|
||||
# Only compare relevant data line
|
||||
echo -n "<data>">> $ftest
|
||||
echo -n "<data $DEFAULTONLY>">> $ftest
|
||||
cat $fdataxml >> $ftest
|
||||
echo -n "</data>" >> $ftest
|
||||
# -i (ignore case) dont always work properly
|
||||
sed '/<data>/!d' $foutput > $foutput2
|
||||
sed "/<data $DEFAULTONLY>/!d" $foutput > $foutput2
|
||||
# Strip potential newlines, curl seems to leave trailing newlines on some platforms/versions
|
||||
tr -d "\n\r" < $foutput2 > $foutput
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue