diff options
author | Nauman Ahad <nauman.ahad@xflowresearch.com> | 2016-06-01 18:47:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-06-01 18:47:25 +0000 |
commit | 8ed482c026f47b5998cb4ed4638d7e76025feb74 (patch) | |
tree | a32910e807021333d19c3aecd11ff97e27981245 /benchmarks/playbooks/iperf.yaml | |
parent | 6a75ef2591b93d05c96a9aace7266dcf952fa495 (diff) | |
parent | 4932ec39672bbb3fded52c61d473bf9a47027ea5 (diff) |
Merge "This change fix the iperf server port 5201 dropped by iptables problem."
Diffstat (limited to 'benchmarks/playbooks/iperf.yaml')
-rw-r--r-- | benchmarks/playbooks/iperf.yaml | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/benchmarks/playbooks/iperf.yaml b/benchmarks/playbooks/iperf.yaml index 4199b621..a6e3775b 100644 --- a/benchmarks/playbooks/iperf.yaml +++ b/benchmarks/playbooks/iperf.yaml @@ -55,16 +55,12 @@ shell: sudo yum install epel-release -y when: ansible_os_family == "RedHat" - - name: Getting Firewall entry number - shell: sudo iptables -L INPUT --line-number | grep DROP | awk '{print $1}' - register: iptable_entry - ignore_errors: yes - when: installertype == 'fuel' - - - name: Removing entry number - shell: sudo iptables -D INPUT {{iptable_entry.stdout}} + - name: Allow iperf server port in iptables input rules + shell: iptables -A INPUT -p tcp --dport {{iperf_port}} -j ACCEPT + vars: + iperf_port: 5201 ignore_errors: yes - when: iptable_entry != '' and installertype == 'fuel' + when: rolename == "1-server" and installertype == 'fuel' - name: Installing IPERF when Ubuntu shell: sudo apt-get install iperf3 -y |