aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vFW/scripts/run_traffic_fw_demo.sh
blob: e8f1bcf2dedeaa244589d8f0c48ea6ce3037c0ca (plain)
1
2
3
4
5
6
7
8
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