diff options
Diffstat (limited to 'resources/ansible_roles/nDPI')
-rw-r--r-- | resources/ansible_roles/nDPI/meta/main.yml | 14 | ||||
-rw-r--r-- | resources/ansible_roles/nDPI/tasks/main.yml | 8 |
2 files changed, 16 insertions, 6 deletions
diff --git a/resources/ansible_roles/nDPI/meta/main.yml b/resources/ansible_roles/nDPI/meta/main.yml new file mode 100644 index 00000000..b035a9a9 --- /dev/null +++ b/resources/ansible_roles/nDPI/meta/main.yml @@ -0,0 +1,14 @@ +############################################################################## +# Copyright (c) 2017 ZTE Corporation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +--- + +allow_duplicates: yes +dependencies: +- { role: qtip-common, basename: nDPI } diff --git a/resources/ansible_roles/nDPI/tasks/main.yml b/resources/ansible_roles/nDPI/tasks/main.yml index c007a613..6dc7bf9d 100644 --- a/resources/ansible_roles/nDPI/tasks/main.yml +++ b/resources/ansible_roles/nDPI/tasks/main.yml @@ -49,10 +49,6 @@ chdir: "{{ workdir }}/nDPI-1.6/example/" register: ndpi_out -- name: generating log filename - set_fact: - logfile: "{{ qtip_results }}/nDPI.log" - - name: saving output to log copy: content: "{{ ndpi_out.stdout }}" @@ -66,12 +62,12 @@ # nDPI throughput: 1.46 M pps / 13.69 Gb/sec # TODO(yujunz) convert "M pps" and "K pps" to number - 'nDPI throughput:\s+?(?P<dpi_pps>\d+.\d+.*) \/ (?P<dpi_bps>\d+.\d+.*)$' - export_to: "{{ qtip_results }}/dpi_metrics.json" + dest: "{{ output }}/metrics.json" register: dpi_metrics delegate_to: localhost - name: create dpi report template: src: dpi-metrics.j2 - dest: "{{ qtip_results }}/dpi-metrics" + dest: "{{ output }}/dpi-metrics" delegate_to: localhost |