TEST SUITE: Voltha DT MultiOLT Tests
SETUP: Setup Suite
TEARDOWN: Teardown Suite
TEST CASE: Verify OLT after Rebooting Physically for DT - Multiple OLT
SETUP: Start Logging MultiOlt_Physical_Dt
KEYWORD: Pass Execution If ${olt_count} == 1, Skipping test: just one OLT
KEYWORD: Clear All Devices Then Perform Setup And Sanity
KEYWORD: ${olt_user} = Get From Dictionary ${list_olts}[0], user
KEYWORD: ${olt_pass} = Get From Dictionary ${list_olts}[0], pass
KEYWORD: ${olt_ssh_ip} = Get From Dictionary ${list_olts}[0], sship
KEYWORD: ${olt_serial_number} = Get From Dictionary ${list_olts}[0], sn
KEYWORD: ${olt_device_id} = Get OLTDeviceID From OLT List ${olt_serial_number}
KEYWORD: Run Keyword If ${has_dataplane}, Login And Run Command On Remote System, reboot, ${olt_ssh_ip}, ${olt_user}, ${olt_pass}, prompt=#
KEYWORD: Verify ping is successful for ONUs not on this OLT ${num_all_onus}, ${olt_device_id}
FOR: ${I} IN RANGE [ 0 | ${num_all_onus} ]
KEYWORD: ${olt_user} = Get From Dictionary ${list_olts}[0], user
KEYWORD: ${olt_pass} = Get From Dictionary ${list_olts}[0], pass
KEYWORD: ${olt_ssh_ip} = Get From Dictionary ${list_olts}[0], sship
KEYWORD: ${olt_serial_number} = Get From Dictionary ${list_olts}[0], sn
KEYWORD: ${olt_device_id} = Get OLTDeviceID From OLT List ${olt_serial_number}
KEYWORD: Run Keyword If ${has_dataplane}, Wait Until Keyword Succeeds, 120s, 10s, Check Remote System Reachability, True, ${olt_ssh_ip}
KEYWORD: Wait Until Keyword Succeeds 360s, 5s, Validate OLT Device, ENABLED, ACTIVE, REACHABLE, ${olt_serial_number}
KEYWORD: Sleep 60s
KEYWORD: Run Keyword If ${has_dataplane}, Clean Up Linux
KEYWORD: Perform Sanity Test DT
TEARDOWN: Run Keywords Collect Logs, AND, Stop Logging, MultiOlt_Physical_Dt
TEST CASE: Verify OLT Soft Reboot for DT - Multiple OLT
SETUP: Start Logging MultiOLTSoftRebootDt
KEYWORD: Pass Execution If ${olt_count} == 1, Skipping test: just one OLT
KEYWORD: Clear All Devices Then Perform Setup And Sanity
KEYWORD: ${olt_user} = Get From Dictionary ${list_olts}[0], user
KEYWORD: ${olt_pass} = Get From Dictionary ${list_olts}[0], pass
KEYWORD: ${olt_ssh_ip} = Get From Dictionary ${list_olts}[0], sship
KEYWORD: ${olt_serial_number} = Get From Dictionary ${list_olts}[0], sn
KEYWORD: ${olt_device_id} = Get OLTDeviceID From OLT List ${olt_serial_number}
KEYWORD: Run Keyword And Continue On Failure Wait Until Keyword Succeeds, 360s, 5s, Validate OLT Device, ENABLED, ACTIVE, REACHABLE, ${olt_serial_number}
KEYWORD: Reboot Device ${olt_device_id}
KEYWORD: Wait Until Keyword Succeeds 360s, 5s, Validate OLT Device, ENABLED, UNKNOWN, UNREACHABLE, ${olt_serial_number}
KEYWORD: Verify ping is successful for ONUs not on this OLT ${num_all_onus}, ${olt_device_id}
FOR: ${I} IN RANGE [ 0 | ${num_all_onus} ]
KEYWORD: ${olt_serial_number} = Get From Dictionary ${list_olts}[0], sn
KEYWORD: ${olt_ssh_ip} = Get From Dictionary ${list_olts}[0], sship
KEYWORD: ${olt_device_id} = Get OLTDeviceID From OLT List ${olt_serial_number}
KEYWORD: Run Keyword If ${has_dataplane}, Wait Until Keyword Succeeds, 120s, 10s, Check Remote System Reachability, True, ${olt_ssh_ip}
KEYWORD: Wait Until Keyword Succeeds 360s, 5s, Validate OLT Device, ENABLED, ACTIVE, REACHABLE, ${olt_serial_number}
KEYWORD: Sleep 60s
KEYWORD: Run Keyword If ${has_dataplane}, Clean Up Linux
KEYWORD: Perform Sanity Test DT
TEARDOWN: Run Keywords Collect Logs, AND, Delete All Devices and Verify, AND, Run Keyword If, ${logging}, Collect Logs, AND, Stop Logging, MultiOLTSoftRebootDt