aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/playbooks/pktgen.yaml
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-11-03 08:10:41 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-03 08:10:41 +0000
commit403e8ead12863163573f45c1be07a48c05061f45 (patch)
tree9f0398c9a8e3ebc397e3f30e88a083f09a04d0b5 /benchmarks/playbooks/pktgen.yaml
parent10fa387f3ad554a4c42c580b424f79c2171c64d3 (diff)
parenta9d5c798ad0da8494056181cc1b68f85f9b203c9 (diff)
Merge "Remove playbooks directory"
Diffstat (limited to 'benchmarks/playbooks/pktgen.yaml')
-rw-r--r--benchmarks/playbooks/pktgen.yaml47
1 files changed, 0 insertions, 47 deletions
diff --git a/benchmarks/playbooks/pktgen.yaml b/benchmarks/playbooks/pktgen.yaml
deleted file mode 100644
index f466129b..00000000
--- a/benchmarks/playbooks/pktgen.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
- - hosts: localhost
- connection: local
- gather_facts: no
-
- tasks:
- - name: getting directory
- shell: echo $PWD
- register: qtip_dir
-
- - name: making pktgen directory
- file: path={{workingdir}}/{{Dest_dir}}/pktgen state=directory
-
- - name: making temporary pktgen directory
- file: path={{workingdir}}/{{Dest_dir}}/pktgen/pktgen_temp state=directory
-
-
- - hosts: "{{role}}"
-
- tasks:
- - name: Rolename
- set_fact:
- rolename: "{{role}}"
- when: role is defined
-
- - name: IPTABLE Setup
- shell: iptables -F
- when: rolename == '1-server'
-
- - name: iptables
- shell: sudo iptables -A INPUT -p udp --dport 1000 -j DROP
- when: rolename == '1-server'
-
- - name: run pktgen
- shell: bash pktgen.sh {{privateip1}} 1 {{packetsize}} {{duration}} >> .json
- when: rolename == '2-host'
-
- - hosts: "{{role}}"
-
- tasks:
- - name: Rolename
- set_fact:
- rolename: "{{role}}"
- when: role is defined
-
- - name: Get server packetsize
- shell: iptables -L -vnx >> pktgenServer{{privateip1}}.txt
- when: rolename == '1-server'