diff options
Diffstat (limited to 'tools/vnf_build.sh')
-rwxr-xr-x | tools/vnf_build.sh | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/tools/vnf_build.sh b/tools/vnf_build.sh index f7ffe76e..f6afb879 100755 --- a/tools/vnf_build.sh +++ b/tools/vnf_build.sh @@ -233,7 +233,7 @@ step_3() { TITLE="Build VNFs" CONFIG_NUM=1 - TEXT[1]="Build all VNFs (vACL, vCGNAPT, vFW)" + TEXT[1]="Build all VNFs (vACL, vCGNAPT, vFW, UDP_Replay)" FUNC[1]="build_vnfs" } @@ -258,6 +258,42 @@ build_vnfs() popd } +#--- Add non intractive option to build vnfs +if [[ "$1" = "--silient" ]];then + pushd $VNF_CORE + + echo "Setup proxy if needed..." + http_proxy=$2 + https_proxy=$3 + if [[ "$http_proxy" != "" ]]; then + export http_proxy=$http_proxy + export https_proxy=$http_proxy + fi + + if [[ "$https_proxy" != "" ]]; then + export https_proxy=$https_proxy + fi + + echo "Install required libraries..." + touch .agree + install_libs + + echo "Download dpdk for VNF build..." + download_dpdk_zip + + echo "Build dpdk..." + install_dpdk + + echo "Setup hugepages..." + setup_hugepages + + echo "build VNFS..." + build_vnfs + + popd + exit +fi + SETUP_PROXY="setup_http_proxy" STEPS[1]="step_1" STEPS[2]="step_2" |