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
|
|
@ -161,11 +161,11 @@ if [ $r -ne 0 ]; then
|
|||
fi
|
||||
|
||||
# Only compare relevant data line
|
||||
echo -n "<data>">> $ftest
|
||||
echo -n "<data $DEFAULTONLY>">> $ftest
|
||||
cat $fdataxml >> $ftest
|
||||
#echo "</data>
" >> $ftest
|
||||
echo -n "</data>" >> $ftest
|
||||
sed '/<data>/!d' $foutput > $foutput2
|
||||
sed "/<data $DEFAULTONLY>/!d" $foutput > $foutput2
|
||||
mv $foutput2 $foutput
|
||||
|
||||
ret=$(diff -i $ftest $foutput)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue