diff --git a/ansible/roles/test/files/ptftests/dir_bcast_test.py b/ansible/roles/test/files/ptftests/dir_bcast_test.py index 2d019851656..daeb547af27 100644 --- a/ansible/roles/test/files/ptftests/dir_bcast_test.py +++ b/ansible/roles/test/files/ptftests/dir_bcast_test.py @@ -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) #--------------------------------------------------------------------- @@ -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 diff --git a/ansible/roles/test/tasks/dir_bcast.yml b/ansible/roles/test/tasks/dir_bcast.yml index 6751eac22cf..f7f33009065 100644 --- a/ansible/roles/test/tasks/dir_bcast.yml +++ b/ansible/roles/test/tasks/dir_bcast.yml @@ -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" @@ -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']}}'