Merge "Fix vPacketGen IP address in change_ports script"
authorMarco Platania <platania@research.att.com>
Mon, 28 Aug 2017 20:51:25 +0000 (20:51 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 28 Aug 2017 20:51:25 +0000 (20:51 +0000)
vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh

index adfc1f1..e472388 100644 (file)
@@ -16,7 +16,7 @@ vppctl pac del dns10
 
 #Update destination (vLB) IP
 VLB_IPADDR=$(cat /opt/config/vlb_ipaddr.txt)
-IPADDR1=$(ifconfig br0 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 | cut -d':' -f2)
+IPADDR1=$(cat /opt/config/local_private_ipaddr.txt)
 sed -i -e "0,/UDP/ s/UDP:.*/UDP: "$IPADDR1" -> "$VLB_IPADDR"/" /opt/dns_streams/stream_dns1
 sed -i -e "0,/UDP/ s/UDP:.*/UDP: "$IPADDR1" -> "$VLB_IPADDR"/" /opt/dns_streams/stream_dns2
 sed -i -e "0,/UDP/ s/UDP:.*/UDP: "$IPADDR1" -> "$VLB_IPADDR"/" /opt/dns_streams/stream_dns3