VINEPERFENV_DIR="$HOME/vsperfenv"

if [ ! -d "$VINEPERFENV_DIR" ] ; then
    echo "Directory $VINEPERFENV_DIR should exists. Please complete normal installation process"
    exit
fi

(source "$VINEPERFENV_DIR"/bin/activate
git clone https://gerrit.opnfv.org/gerrit/samplevnf /tmp/samplevnf
cd /tmp/samplevnf/VNFs/DPPD-PROX/helper-scripts/rapid
python setup.py build
python setup.py install
cp rapid_rsa_key ~/.ssh/
rm -rf /tmp/samplevnf)