|
47 | 47 | - relay_iface_mac=\"{{ relay_iface_mac }}\"
|
48 | 48 | - relay_iface_netmask=\"{{ minigraph_vlan_interfaces[0]['mask'] }}\"
|
49 | 49 |
|
| 50 | +# Service restart and service stop -> start exhibited different behaviors. |
| 51 | +# Therefore testing them separately. |
| 52 | +- name: Restart teamd on DUT |
| 53 | + shell: systemctl restart teamd |
| 54 | + become: yes |
| 55 | + |
| 56 | +- name: sleep 60 seconds for lag and bgp to come up |
| 57 | + pause: seconds=60 |
| 58 | + |
| 59 | +- include: ptf_runner.yml |
| 60 | + vars: |
| 61 | + ptf_test_name: DHCP Relay Test |
| 62 | + ptf_test_dir: ptftests |
| 63 | + ptf_test_path: dhcp_relay_test.DHCPTest |
| 64 | + ptf_platform: remote |
| 65 | + ptf_platform_dir: ptftests |
| 66 | + ptf_test_params: |
| 67 | + - hostname=\"{{ inventory_hostname }}\" |
| 68 | + - client_port_index=\"{{ client_port_index }}\" |
| 69 | + - client_iface_alias=\"{{ client_iface_alias }}\" |
| 70 | + - leaf_port_indices=\"{{ leaf_port_indices }}\" |
| 71 | + - num_dhcp_servers=\"{{ dhcp_servers | length }}\" |
| 72 | + - server_ip=\"{{ dhcp_servers[0] }}\" |
| 73 | + - relay_iface_ip=\"{{ minigraph_vlan_interfaces[0]['addr'] }}\" |
| 74 | + - relay_iface_mac=\"{{ relay_iface_mac }}\" |
| 75 | + - relay_iface_netmask=\"{{ minigraph_vlan_interfaces[0]['mask'] }}\" |
| 76 | + |
| 77 | +- name: Stop teamd on DUT |
| 78 | + shell: systemctl stop teamd |
| 79 | + become: yes |
| 80 | + |
| 81 | +- name: Start teamd on DUT |
| 82 | + shell: systemctl start teamd |
| 83 | + become: yes |
| 84 | + |
| 85 | +- name: sleep 60 seconds for lag and bgp to come up |
| 86 | + pause: seconds=60 |
| 87 | + |
| 88 | +- include: ptf_runner.yml |
| 89 | + vars: |
| 90 | + ptf_test_name: DHCP Relay Test |
| 91 | + ptf_test_dir: ptftests |
| 92 | + ptf_test_path: dhcp_relay_test.DHCPTest |
| 93 | + ptf_platform: remote |
| 94 | + ptf_platform_dir: ptftests |
| 95 | + ptf_test_params: |
| 96 | + - hostname=\"{{ inventory_hostname }}\" |
| 97 | + - client_port_index=\"{{ client_port_index }}\" |
| 98 | + - client_iface_alias=\"{{ client_iface_alias }}\" |
| 99 | + - leaf_port_indices=\"{{ leaf_port_indices }}\" |
| 100 | + - num_dhcp_servers=\"{{ dhcp_servers | length }}\" |
| 101 | + - server_ip=\"{{ dhcp_servers[0] }}\" |
| 102 | + - relay_iface_ip=\"{{ minigraph_vlan_interfaces[0]['addr'] }}\" |
| 103 | + - relay_iface_mac=\"{{ relay_iface_mac }}\" |
| 104 | + - relay_iface_netmask=\"{{ minigraph_vlan_interfaces[0]['mask'] }}\" |
| 105 | + |
0 commit comments