Skip to content
Closed
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions ansible/roles/test/tasks/acltb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
copy: src=/tmp/acltb_switch_info.txt dest=/tmp/acltb_switch_info.txt
delegate_to: "{{ ptf_host }}"

- name: Copy the ACL test to PTF container
copy: src=roles/test/files/acstests/acltb_test.py dest=/tmp/acstests/
delegate_to: "{{ ptf_host }}"


- block:
- name: Apply allow all rule
vars:
Expand All @@ -49,7 +54,7 @@
include: ptf_runner.yml
vars:
ptf_test_name: ACL Test
ptf_test_dir: acstests
ptf_test_dir: /tmp/acstests
ptf_test_path: acltb_test.AclTest
ptf_platform: remote
ptf_test_params:
Expand Down Expand Up @@ -79,7 +84,7 @@
include: ptf_runner.yml
vars:
ptf_test_name: ACL Test
ptf_test_dir: acstests
ptf_test_dir: /tmp/acstests
ptf_test_path: acltb_test.AclTest
ptf_platform: remote
ptf_test_params:
Expand Down
6 changes: 5 additions & 1 deletion ansible/roles/test/templates/acltb.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
{# spine ports #}
{% for ifname, v in minigraph_neighbors.iteritems() %}{% if "T2" in v.name %}{{ '%d' % minigraph_port_indices[ifname] }},{% endif %}{% endfor %}

{# DST IP address (spine port) #}
192.168.0.0
{# DST IP address (spine port) #}
192.168.0.16
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the fix for? Not related to the PR title?

172.16.1.0
{# DST IP address (tor port) #}
172.16.3.0
{# Blocked DST IP address (tor port) #}
172.16.2.0