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

[dir_bcast] enable dir_bcast test on t0-116 topology #550

Merged
merged 1 commit into from
Mar 29, 2018
Merged
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
4 changes: 3 additions & 1 deletion ansible/roles/test/files/ptftests/dir_bcast_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def setUp(self):
self.src_ports = range(1, 25) + range(28, 32)
if self.test_params['testbed_type'] == 't0-64':
self.src_ports = range(0, 2) + range(4, 18) + range(20, 33) + range(36, 43) + range(48, 49) + range(52, 59)
if self.test_params['testbed_type'] == 't0-116':
self.src_ports = range(24, 32)

#---------------------------------------------------------------------

Expand Down Expand Up @@ -120,8 +122,8 @@ def check_ip_dir_bcast(self, dst_bcast_ip, dst_port_list):
'''
Check if broadcast packet is received on all member ports of vlan
'''
logging.info("Received " + str(pkt_count) + " broadcast packets, expecting " + str(len(dst_port_list)))
assert (pkt_count == len(dst_port_list))
logging.info("Received " + str(pkt_count) + " broadcast packets ")

return

Expand Down
3 changes: 2 additions & 1 deletion ansible/roles/test/tasks/dir_bcast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
when: testbed_type is not defined

- fail: msg="testbed_type {{testbed_type}} is invalid."
when: testbed_type not in ['t0', 't0-64']
when: testbed_type not in ['t0', 't0-64', 't0-116']

- include_vars: "vars/topo_{{testbed_type}}.yml"

Expand All @@ -34,6 +34,7 @@
ptf_test_dir: ptftests
ptf_test_path: dir_bcast_test.BcastTest
ptf_platform: remote
ptf_platform_dir: ptftests
ptf_test_params:
- testbed_type='{{testbed_type}}'
- router_mac='{{ansible_Ethernet0['macaddress']}}'
Expand Down