Test: check openssl 3.3.0 for x509 v1
This commit is contained in:
parent
e2140aed10
commit
8098fb031f
48 changed files with 144 additions and 6 deletions
|
|
@ -1268,9 +1268,12 @@ challengePassword = test
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Generate CA cert
|
# Generate CA cert
|
||||||
# XXX v3 requires usage
|
# XXX v3 requires x509 version 1
|
||||||
openssl req -batch -new -x509v1 -days 1 -config $tmpdir/ca.cnf -keyout $cakey -out $cacert || err "Generate CA cert"
|
if [ $(openssl version|awk '{print $2}') = "3.3.0" ]; then
|
||||||
|
openssl req -batch -new -x509v1 -days 1 -config $tmpdir/ca.cnf -keyout $cakey -out $cacert || err1 "Generate CA cert"
|
||||||
|
else
|
||||||
|
openssl req -batch -new -x509 -days 1 -config $tmpdir/ca.cnf -keyout $cakey -out $cacert || err1 "Generate CA cert"
|
||||||
|
fi
|
||||||
rm -rf $tmpdir
|
rm -rf $tmpdir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,9 @@ fi
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,9 @@ fyang2=$dir/ietf-interfaces@2019-03-04.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@ mkdir $clidir
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@ fi
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ USER=${BUSER}
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,9 @@ fyang=$dir/ietf-interfaces@2019-03-04.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none true)
|
RESTCONFIG=$(restconf_config none true)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,9 @@ fyang=$dir/restconf.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,9 @@ function testrun()
|
||||||
enable=$2 # true/false
|
enable=$2 # true/false
|
||||||
|
|
||||||
RESTCONFIG=$(restconf_config none false $proto $enable)
|
RESTCONFIG=$(restconf_config none false $proto $enable)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
if true; then
|
if true; then
|
||||||
# Proper test setup
|
# Proper test setup
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,9 @@ fyang=$dir/example-my-crypto.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,9 @@ fyang=$dir/nacm-example.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,9 @@ fyang2=$dir/itf.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,9 @@ fyang=$dir/nacm-example.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@ fyang2=$dir/nacm-example2.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,9 @@ fyang=$dir/nacm-example.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,9 @@ fyang=$dir/nacm-example.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,9 @@ nacmfile=$dir/nacmfile
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# Note filter out example_backend_nacm.so in CLICON_BACKEND_REGEXP below
|
# Note filter out example_backend_nacm.so in CLICON_BACKEND_REGEXP below
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,9 @@ fyang2=$dir/clixon-example.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,9 @@ fyang2=$dir/clixon-example.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,9 @@ CFD=$dir/conf.d
|
||||||
test -d $CFD || mkdir -p $CFD
|
test -d $CFD || mkdir -p $CFD
|
||||||
|
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,9 @@ fyang=$dir/nacm-example.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@ NACMUSER=$(whoami)
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $fyang
|
cat <<EOF > $fyang
|
||||||
module nacm-example{
|
module nacm-example{
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,9 @@ datapath=/data
|
||||||
wdir=$dir/www
|
wdir=$dir/www
|
||||||
|
|
||||||
RESTCONFIG=$(restconf_config none false $RCPROTO $enable)
|
RESTCONFIG=$(restconf_config none false $RCPROTO $enable)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,9 @@ fstate=$dir/mystate.xml
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# Validate internal state xml
|
# Validate internal state xml
|
||||||
: ${validatexml:=false}
|
: ${validatexml:=false}
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,9 @@ EOF
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,9 @@ fstate=$dir/state.xml
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,9 @@ fstate=$dir/state.xml
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,9 @@ if [ "${WITH_RESTCONF}" = "native" ]; then
|
||||||
else
|
else
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This is a fixed 'state' implemented in routing_backend. It is assumed to be always there
|
# This is a fixed 'state' implemented in routing_backend. It is assumed to be always there
|
||||||
|
|
|
||||||
|
|
@ -179,6 +179,9 @@ function testrun()
|
||||||
|
|
||||||
# Change restconf configuration before start restconf daemon
|
# Change restconf configuration before start restconf daemon
|
||||||
RESTCONFIG=$(restconf_config $auth false)
|
RESTCONFIG=$(restconf_config $auth false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# Start with common config, then append fcgi/native specific config
|
# Start with common config, then append fcgi/native specific config
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@ fjson=$dir/large.json
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,9 @@ fstate=$dir/state.xml
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,9 @@ cfg=$dir/conf.xml
|
||||||
|
|
||||||
RCPROTO=http
|
RCPROTO=http
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# Clixon config
|
# Clixon config
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,9 @@ EOF
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,9 @@ fyang=$dir/list.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,6 @@ APPNAME=example
|
||||||
cfg=$dir/conf.xml
|
cfg=$dir/conf.xml
|
||||||
fyang=$dir/restconf.yang
|
fyang=$dir/restconf.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
|
||||||
# RESTCONFIG=$(restconf_config none false)
|
|
||||||
|
|
||||||
# Local for test here
|
# Local for test here
|
||||||
certdir=$dir/certs
|
certdir=$dir/certs
|
||||||
test -d $certdir || mkdir $certdir
|
test -d $certdir || mkdir $certdir
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,9 @@ xml=$dir/xml.xml
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,9 @@ fyang=$dir/restconf.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@ fjukebox=$dir/example-jukebox.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,9 @@ EOF
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none true)
|
RESTCONFIG=$(restconf_config none true)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,9 @@ fjukebox=$dir/example-jukebox.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ fexample=$dir/clixon-example.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config user false)
|
RESTCONFIG=$(restconf_config user false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,9 @@ fyang=$dir/clixon-example.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,9 @@ fextra2=$dir/extra2.yang # Referenced from sub2
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ fstate=$dir/state.xml
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $fanydata
|
cat <<EOF > $fanydata
|
||||||
module any{
|
module any{
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,9 @@ fyang2=$dir/example2.yang
|
||||||
|
|
||||||
# Define default restconfig config: RESTCONFIG
|
# Define default restconfig config: RESTCONFIG
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,9 @@ test -d $CFD || mkdir -p $CFD
|
||||||
|
|
||||||
AUTOCLI=$(autocli_config clixon-\* kw-nokey false)
|
AUTOCLI=$(autocli_config clixon-\* kw-nokey false)
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,9 @@ fyang=$dir/example-default.yang
|
||||||
fstate=$dir/state.xml
|
fstate=$dir/state.xml
|
||||||
clispec=$dir/spec.cli
|
clispec=$dir/spec.cli
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,9 @@ fyang=$dir/example-default.yang
|
||||||
fstate=$dir/state.xml
|
fstate=$dir/state.xml
|
||||||
clispec=$dir/spec.cli
|
clispec=$dir/spec.cli
|
||||||
RESTCONFIG=$(restconf_config none false)
|
RESTCONFIG=$(restconf_config none false)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
err1 "Error when generating certs"
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<clixon-config xmlns="http://clicon.org/config">
|
<clixon-config xmlns="http://clicon.org/config">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue