aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-08-22 16:02:53 -0400
committerMarco Platania <platania@research.att.com>2017-08-22 16:02:53 -0400
commit07789de48e897aea3135de5972bcaa32131931a6 (patch)
tree1866dd38d90ea8a1d61cb333b622ad9bcbb7801c /vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh
parent152ded2be13ad08a74b6e45698dbc6e6c2fbf4f1 (diff)
Change GRE tunnel netmask
- Change GRE tunnel netmask from /24 to /32 in add_dns.sh - Remove Honeycomb from vPacketGen - Call run_dns_streams.sh after rehashing stream ports Change-Id: Ied1d7c228f97bdfd0d2f8dbf443626b1cbb7b1dc Issue-ID: UCA-34 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh')
-rw-r--r--vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh b/vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh
index 9bd77162..7abec98e 100644
--- a/vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh
+++ b/vnfs/vLB/scripts/vdnspacketgen_change_streams_ports.sh
@@ -1,7 +1,7 @@
#!/bin/bash
-#Disable all streams via Honeycomb (so that it will in consistent state)
-curl -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{"pg-streams":{"pg-stream": []}}' "http://localhost:8183/restconf/config/sample-plugin:sample-plugin/pg-streams"
+#Disable all streams
+killall -9 run_streams_dns.sh
vppctl pac del dns1
vppctl pac del dns2
@@ -14,7 +14,6 @@ vppctl pac del dns8
vppctl pac del dns9
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)
@@ -50,4 +49,8 @@ vppctl exec /opt/dns_streams/stream_dns6
vppctl exec /opt/dns_streams/stream_dns7
vppctl exec /opt/dns_streams/stream_dns8
vppctl exec /opt/dns_streams/stream_dns9
-vppctl exec /opt/dns_streams/stream_dns10 \ No newline at end of file
+vppctl exec /opt/dns_streams/stream_dns10
+
+#Resume stream execution
+cd /opt
+./run_streams_dns.sh &>/dev/null \ No newline at end of file