C-API: Changed type of veclen parameter to size_t in xpath_vec_flag()
Rewrite of sed -e to be portable to freebsd
This commit is contained in:
parent
5b9921933a
commit
6fedf65de7
8 changed files with 23 additions and 14 deletions
|
|
@ -171,9 +171,12 @@ EOF
|
|||
continue
|
||||
fi
|
||||
# Mask netconf header and footer
|
||||
sed -i -e "s/<rpc-reply $DEFAULTNS><data xmlns=\"urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring\">//" -e 's/<\/data><\/rpc-reply>]]>]]>//' /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
sed -i -e "s/<rpc-reply $DEFAULTNS><data xmlns=\"urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring\">//" /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
sed -i -e 's/<\/data><\/rpc-reply>]]>]]>//' /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
# Decode XML
|
||||
sed -i -e 's/>/>/g' -e 's/</</g' -e 's/\&/\&/g' /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
sed -i -e 's/>/>/g' /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
sed -i -e 's/</</g' /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
sed -i -e 's/\&/\&/g' /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
new "get-schema check yang $b"
|
||||
diff $dir/ex.yang $f
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue