summaryrefslogtreecommitdiffstats
path: root/vnfs/vFW/scripts/v_packetgen_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-04-21 16:52:06 -0400
committerMarco Platania <platania@research.att.com>2017-04-21 16:52:06 -0400
commit366b7e2ea0e15889e3de08916c4406d98d6b509d (patch)
treeea97e8a5b1d793463932cc1a891fd5839e943364 /vnfs/vFW/scripts/v_packetgen_install.sh
parent03fc4375a73bee29a44165e6db51c763ef0b8939 (diff)
vFW templates for OpenStack
Change-Id: I601d534e4c8c8273df780a7d932e288193ccb541 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vFW/scripts/v_packetgen_install.sh')
-rw-r--r--vnfs/vFW/scripts/v_packetgen_install.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/vnfs/vFW/scripts/v_packetgen_install.sh b/vnfs/vFW/scripts/v_packetgen_install.sh
index 840e7bf8..54a26a46 100644
--- a/vnfs/vFW/scripts/v_packetgen_install.sh
+++ b/vnfs/vFW/scripts/v_packetgen_install.sh
@@ -6,8 +6,7 @@ SINK_IPADDR=$(cat /opt/config/sink_ipaddr.txt)
REPO_URL_BLOB=$(cat /opt/config/repo_url_blob.txt)
REPO_URL_ARTIFACTS=$(cat /opt/config/repo_url_artifacts.txt)
DEMO_ARTIFACTS_VERSION=$(cat /opt/config/demo_artifacts_version.txt)
-VPG_PRIVATE_IP_O=$(cat /opt/config/vpg_private_ip_0.txt)
-VPG_PRIVATE_IP_1=$(cat /opt/config/vpg_private_ip_1.txt)
+INSTALL_SCRIPT_VERSION=$(cat /opt/config/install_script_version.txt)
CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
# Network configuration
@@ -15,6 +14,7 @@ if [[ $CLOUD_ENV == "openstack" ]]
then
echo 127.0.0.1 $(hostname) >> /etc/hosts
+ VPG_PRIVATE_IP_O=$(cat /opt/config/vpg_private_ip_0.txt)
echo "auto eth1" >> /etc/network/interfaces
echo "iface eth1 inet static" >> /etc/network/interfaces
echo " address $VPG_PRIVATE_IP_O" >> /etc/network/interfaces
@@ -34,9 +34,9 @@ pip install jsonschema
mkdir /opt/honeycomb
cd /opt
-wget $REPO_URL_BLOB/org.openecomp.demo/vnfs/vfw/$DEMO_ARTIFACTS_VERSION/v_packetgen_init.sh
-wget $REPO_URL_BLOB/org.openecomp.demo/vnfs/vfw/$DEMO_ARTIFACTS_VERSION/vpacketgen.sh
-wget $REPO_URL_BLOB/org.openecomp.demo/vnfs/vfw/$DEMO_ARTIFACTS_VERSION/run_traffic_fw_demo.sh
+wget $REPO_URL_BLOB/org.openecomp.demo/vnfs/vfw/$INSTALL_SCRIPT_VERSION/v_packetgen_init.sh
+wget $REPO_URL_BLOB/org.openecomp.demo/vnfs/vfw/$INSTALL_SCRIPT_VERSION/vpacketgen.sh
+wget $REPO_URL_BLOB/org.openecomp.demo/vnfs/vfw/$INSTALL_SCRIPT_VERSION/run_traffic_fw_demo.sh
wget $REPO_URL_ARTIFACTS/org/openecomp/demo/vnf/sample-distribution/$DEMO_ARTIFACTS_VERSION/sample-distribution-$DEMO_ARTIFACTS_VERSION-hc.tar.gz
wget $REPO_URL_ARTIFACTS/org/openecomp/demo/vnf/vfw/vfw_pg_streams/$DEMO_ARTIFACTS_VERSION/vfw_pg_streams-$DEMO_ARTIFACTS_VERSION-demo.tar.gz