diff --git a/ansible/roles/test/tasks/acltb.yml b/ansible/roles/test/tasks/acltb.yml index f544c3aaf82..ae3ebd92fd8 100644 --- a/ansible/roles/test/tasks/acltb.yml +++ b/ansible/roles/test/tasks/acltb.yml @@ -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: @@ -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: @@ -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: diff --git a/ansible/roles/test/templates/acltb.j2 b/ansible/roles/test/templates/acltb.j2 index 8a4b65660bc..813d0636a44 100644 --- a/ansible/roles/test/templates/acltb.j2 +++ b/ansible/roles/test/templates/acltb.j2 @@ -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 -172.16.1.0 +{# DST IP address (tor port) #} +172.16.3.0 +{# Blocked DST IP address (tor port) #} 172.16.2.0