X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=vnfs%2FvFW%2Fscripts%2Fv_packetgen_install.sh;h=b872771148ba54c54781c8c651b41571549d6978;hb=0e9bf965dd84e82625fd7e4c7d523200e2784ae9;hp=48d7c291bd2119664725a658c3523b7dffed020b;hpb=51ec05ef1cc3f06c7808fa6b38793c989d5c1f81;p=demo.git diff --git a/vnfs/vFW/scripts/v_packetgen_install.sh b/vnfs/vFW/scripts/v_packetgen_install.sh index 48d7c291..b8727711 100755 --- a/vnfs/vFW/scripts/v_packetgen_install.sh +++ b/vnfs/vFW/scripts/v_packetgen_install.sh @@ -54,6 +54,12 @@ apt-get update apt-get install --allow-unauthenticated -y make wget openjdk-8-jdk gcc libcurl4-openssl-dev python-pip bridge-utils apt-transport-https ca-certificates pip install jsonschema +# Install fd.io certificate +HOST=nexus.fd.io +PORT=443 +TRUST_CERT_FILE="/etc/ssl/certs/ca-certificates.crt" +bash -c "echo -n | openssl s_client -showcerts -connect $HOST:$PORT 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' >> $TRUST_CERT_FILE" + # Download code for packet generator mkdir /opt/honeycomb cd /opt @@ -85,17 +91,17 @@ apt-get update apt-get install -y vpp vpp-dpdk-dkms vpp-lib vpp-dbg vpp-plugins vpp-dev sleep 1 -# Install honeycomb restart script (workaround due to honeycomb file handle leak - check every 5 minutes if honeycomb is up) +# Install honeycomb restart script (workaround due to honeycomb shutdown: check every 5 minutes if it's still up) cat > /opt/start_honeycomb.sh </dev/null &disown fi EOF chmod +x /opt/start_honeycomb.sh -(crontab -l 2>/dev/null; echo "*/5 * * * * /opt/start_honeycomb.sh") | crontab - +(crontab -l 2>/dev/null; echo "*/5 * * * * bash /opt/start_honeycomb.sh") | crontab - # Run instantiation script cd /opt