Skip to content
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
22 changes: 22 additions & 0 deletions ansible/roles/test/tasks/acltb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,31 @@
- switch_info=\"/tmp/acltb_switch_info.txt\"
- testbed_type=\"{{ testbed_type }}\"

- name: Save the applied ACL in ConfigDB
command: config save -y

- name: Reboot the switch
include: common_tasks/reboot_sonic.yml

- name: Run the test
include: ptf_runner.yml
vars:
ptf_test_name: ACL Test
ptf_test_dir: acstests
ptf_test_path: acltb_test.AclTest
ptf_platform: remote
ptf_test_params:
- verbose=True
- router_mac=\"{{ ansible_Ethernet0['macaddress'] }}\"
- switch_info=\"/tmp/acltb_switch_info.txt\"
- testbed_type=\"{{ testbed_type }}\"

always:
- name: Clean up ACL rules.
vars:
command_to_run: "acl-loader update full /tmp/acltb_test_rules-del.json"
errors_expected: false
include: roles/test/tasks/run_command_with_log_analyzer.yml

- name: Ensure ConfigDB is cleaned up
command: config save -y