From c3f539cf524d1f4613378b213178a4609c459de2 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Mon, 28 Aug 2017 16:49:36 -0400 Subject: Fix vPacketGen IP address in change_ports script - Retrieve the correct local IP to set up VPP streams Change-Id: I39e25e751e4f364a66f0f715b85809c5d7c6be48 Issue-ID: UCA-34 Signed-off-by: Marco Platania --- vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vnfs/vLB') diff --git a/vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh b/vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh index adfc1f1e..e4723880 100644 --- a/vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh +++ b/vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh @@ -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 -- cgit 1.2.3-korg