Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[acl test]: Generate switch info file. #346

Merged
merged 1 commit into from
Nov 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions ansible/roles/test/tasks/acltb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
- "acltb_test_rules_part_1.json"
- "acltb_test_rules_part_2.json"

# Generate file with switch information
- template: src=acltb.j2 dest=/tmp/acltb_switch_info.txt
connection: local

- name: Copy switch info file to the PTF host
copy: src=/tmp/acltb_switch_info.txt dest=/tmp/acltb_switch_info.txt
delegate_to: "{{ ptf_host }}"

- block:
- name: Apply allow all rule
vars:
Expand All @@ -41,7 +49,7 @@
include: ptf_runner.yml
vars:
ptf_test_name: ACL Test
ptf_test_dir: test
ptf_test_dir: acstests
ptf_test_path: acltb_test.AclTest
ptf_platform: remote
ptf_test_params:
Expand Down Expand Up @@ -71,7 +79,7 @@
include: ptf_runner.yml
vars:
ptf_test_name: ACL Test
ptf_test_dir: test
ptf_test_dir: acstests
ptf_test_path: acltb_test.AclTest
ptf_platform: remote
ptf_test_params:
Expand Down