From 15411868bad0ac9ca4831335442f0b4798e43a4b Mon Sep 17 00:00:00 2001 From: Ruoyu Ying Date: Tue, 16 Apr 2019 19:15:45 +0800 Subject: Add scripts for vIPSEC VNF - Add scripts for vPacketgen and vSink that would be used in vIPSEC VNF. - Fixed minor bugs inside the base_vipsec.yaml Change-Id: Ide06fa3f05babe99a9728653a6d2ac214696049e Issue-ID: INT-793 Signed-off-by: Ruoyu Ying --- vnfs/vIPSEC/scripts/run_traffic_ipsec_demo.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 vnfs/vIPSEC/scripts/run_traffic_ipsec_demo.sh (limited to 'vnfs/vIPSEC/scripts/run_traffic_ipsec_demo.sh') diff --git a/vnfs/vIPSEC/scripts/run_traffic_ipsec_demo.sh b/vnfs/vIPSEC/scripts/run_traffic_ipsec_demo.sh new file mode 100755 index 00000000..e8f1bcf2 --- /dev/null +++ b/vnfs/vIPSEC/scripts/run_traffic_ipsec_demo.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +while [ 1 ] +do +curl -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 9005870c-900b-2e2e-0902-ef2009bb0ff7" -d '{"streams": {"active-streams": 10}}' http://localhost:8183/restconf/config/stream-count:stream-count/streams +sleep 300 +curl -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 9005870c-900b-2e2e-0902-ef2009bb0ff7" -d '{"streams": {"active-streams": 1}}' http://localhost:8183/restconf/config/stream-count:stream-count/streams +sleep 300 +done \ No newline at end of file -- cgit 1.2.3-korg