TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 1 | *** Settings *** |
TorstenThieme | 109683b | 2020-09-24 12:35:41 +0000 | [diff] [blame] | 2 | Documentation Test states of ONU Go adapter with ATT workflows only (not for DT/TT workflow!) |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 3 | Suite Setup Setup Suite |
| 4 | Suite Teardown Teardown Suite |
| 5 | Test Setup Setup |
| 6 | Test Teardown Teardown |
| 7 | Library Collections |
| 8 | Library String |
| 9 | Library OperatingSystem |
| 10 | Library XML |
| 11 | Library RequestsLibrary |
| 12 | Library ../../libraries/DependencyLibrary.py |
| 13 | Resource ../../libraries/onos.robot |
| 14 | Resource ../../libraries/voltctl.robot |
| 15 | Resource ../../libraries/voltha.robot |
| 16 | Resource ../../libraries/utils.robot |
| 17 | Resource ../../libraries/k8s.robot |
| 18 | Resource ../../variables/variables.robot |
| 19 | |
| 20 | *** Variables *** |
TorstenThieme | 94e4ae4 | 2020-05-18 13:01:42 +0000 | [diff] [blame] | 21 | ${timeout} 180s |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 22 | ${of_id} 0 |
| 23 | ${logical_id} 0 |
| 24 | ${has_dataplane} True |
| 25 | ${external_libs} True |
| 26 | ${teardown_device} True |
| 27 | ${scripts} ../../scripts |
| 28 | # Per-test logging on failure is turned off by default; set this variable to enable |
| 29 | ${container_log_dir} ${None} |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 30 | # state to test variable, can be passed via the command line too, valid values: 1-6 |
| 31 | # 1 -> activating-onu |
| 32 | # 2 -> starting-openomci |
| 33 | # 3 -> discovery-mibsync-complete |
| 34 | # 4 -> initial-mib-downloaded |
| 35 | # 5 -> tech-profile-config-download-success |
| 36 | # 6 -> omci-flows-pushed |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 37 | # example: -v state2test:5 |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 38 | # example: -v state2test:omci-flows-pushed |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 39 | ${state2test} 6 |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 40 | # test mode variable, can be passed via the command line too, valid values: SingleState, Up2State, SingleStateTime |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 41 | # example: -v testmode:SingleStateTime |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 42 | ${testmode} SingleState |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 43 | # used tech profile, can be passed via the command line too, valid values: default (=1T1GEM), 1T4GEM, 1T8GEM |
| 44 | # example: -v techprofile:1T4GEM |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 45 | ${techprofile} default |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 46 | # flag debugmode is used, if true timeout calculation various, can be passed via the command line too |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 47 | # example: -v debugmode:True |
TorstenThieme | 401af43 | 2020-06-11 15:53:53 +0000 | [diff] [blame] | 48 | ${debugmode} False |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 49 | # logging flag to enable Collect Logs, can be passed via the command line too |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 50 | # example: -v logging:True |
TorstenThieme | 5e324e4 | 2020-07-27 09:36:16 +0000 | [diff] [blame] | 51 | ${logging} False |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 52 | # if True execution will be paused before clean up, only use in case of manual testing, do not use in ci pipeline! |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 53 | # example: -v pausebeforecleanup:True |
TorstenThieme | b41007d | 2020-06-22 12:14:12 +0000 | [diff] [blame] | 54 | ${pausebeforecleanup} False |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 55 | ${data_dir} ../data |
| 56 | |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 57 | |
| 58 | *** Test Cases *** |
| 59 | ONU State Test |
| 60 | [Documentation] Validates the ONU Go adapter states |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 61 | [Tags] sanityOnuGo StateTestOnuGo |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 62 | [Setup] Run Keywords Start Logging ONUStateTest |
| 63 | ... AND Setup Test |
| 64 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 65 | Enable Device ${olt_device_id} |
TorstenThieme | 94e4ae4 | 2020-05-18 13:01:42 +0000 | [diff] [blame] | 66 | ${timeStart} = Get Current Date |
| 67 | Set Global Variable ${timeStart} |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 68 | Run Keyword If "${testmode}"=="SingleState" Do ONU Single State Test |
| 69 | ... ELSE IF "${testmode}"=="Up2State" Do ONU Up To State Test |
TorstenThieme | 94e4ae4 | 2020-05-18 13:01:42 +0000 | [diff] [blame] | 70 | ... ELSE IF "${testmode}"=="SingleStateTime" Do ONU Single State Test Time |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 71 | ... ELSE Fail The testmode (${testmode}) is not valid! |
TorstenThieme | 5e324e4 | 2020-07-27 09:36:16 +0000 | [diff] [blame] | 72 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 73 | ... AND Stop Logging ONUStateTest |
| 74 | |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 75 | Check Loaded Tech Profile |
| 76 | [Documentation] Validates the loaded Tech Profile |
| 77 | ... Assuming that ONU State Test was executed where all the ONUs are reached the expected state! |
| 78 | ... Check will be executed only the reached ONU state is 5 (tech-profile-config-download-success) or higher |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 79 | [Tags] functionalOnuGo CheckTechProfileOnuGo |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 80 | [Setup] Start Logging ONUCheckTechProfile |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 81 | Run Keyword If '${onu_state}'=='tech-profile-config-download-success' or '${onu_state}'=='omci-flows-pushed' |
| 82 | ... Do Check Tech Profile |
TorstenThieme | 5a205ba | 2020-09-29 08:08:29 +0000 | [diff] [blame] | 83 | ... ELSE Pass Execution ${skip_message} skipped |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 84 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
| 85 | ... AND Stop Logging ONUCheckTechProfile |
| 86 | |
TorstenThieme | 401af43 | 2020-06-11 15:53:53 +0000 | [diff] [blame] | 87 | Onu Port Check |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 88 | [Documentation] Validates that all the UNI ports show up in ONOS |
TorstenThieme | 0095868 | 2020-06-19 11:29:31 +0000 | [diff] [blame] | 89 | ... Assuming that ONU State Test was executed where all the ONUs are reached the expected state! |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 90 | [Tags] functionalOnuGo PortTestOnuGo |
TorstenThieme | 401af43 | 2020-06-11 15:53:53 +0000 | [diff] [blame] | 91 | [Setup] Start Logging ONUPortTest |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 92 | Run Keyword If '${onu_state}'=='tech-profile-config-download-success' or '${onu_state}'=='omci-flows-pushed' |
| 93 | ... Do Onu Port Check |
TorstenThieme | 5a205ba | 2020-09-29 08:08:29 +0000 | [diff] [blame] | 94 | ... ELSE Pass Execution ${skip_message} skipped |
TorstenThieme | 5e324e4 | 2020-07-27 09:36:16 +0000 | [diff] [blame] | 95 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
TorstenThieme | 401af43 | 2020-06-11 15:53:53 +0000 | [diff] [blame] | 96 | ... AND Stop Logging ONUPortTest |
| 97 | |
TorstenThieme | 109683b | 2020-09-24 12:35:41 +0000 | [diff] [blame] | 98 | Onu Flow Check |
| 99 | [Documentation] Validates the onu flows in ONOS and Voltha |
| 100 | ... Assuming that ONU State Test was executed where all the ONUs are reached the expected state! |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 101 | [Tags] functionalOnuGo FlowTestOnuGo notreadyOnuGo |
TorstenThieme | 109683b | 2020-09-24 12:35:41 +0000 | [diff] [blame] | 102 | [Setup] Start Logging ONUFlowTest |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 103 | Run Keyword If '${onu_state}'=='omci-flows-pushed' Do Onu Flow Check |
TorstenThieme | 5a205ba | 2020-09-29 08:08:29 +0000 | [diff] [blame] | 104 | ... ELSE Pass Execution ${skip_message} skipped |
TorstenThieme | 109683b | 2020-09-24 12:35:41 +0000 | [diff] [blame] | 105 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
| 106 | ... AND Stop Logging ONUFlowTest |
| 107 | |
TorstenThieme | e3841a0 | 2020-09-23 08:20:43 +0000 | [diff] [blame] | 108 | Disable Enable Onu Device |
| 109 | [Documentation] Disables/enables ONU Device and check states |
| 110 | ... Assuming that ONU State Test was executed where all the ONUs are reached the expected state! |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 111 | [Tags] functionalOnuGo DisableEnableOnuGo |
TorstenThieme | e3841a0 | 2020-09-23 08:20:43 +0000 | [diff] [blame] | 112 | [Setup] Start Logging DisableEnableONUDevice |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 113 | Run Keyword If '${onu_state}'=='tech-profile-config-download-success' or '${onu_state}'=='omci-flows-pushed' |
| 114 | ... Do Disable Enable Onu Test |
TorstenThieme | 5a205ba | 2020-09-29 08:08:29 +0000 | [diff] [blame] | 115 | ... ELSE Pass Execution ${skip_message} skipped |
TorstenThieme | e3841a0 | 2020-09-23 08:20:43 +0000 | [diff] [blame] | 116 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
| 117 | ... AND Stop Logging DisableEnableONUDevice |
| 118 | |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 119 | Reconcile Onu Device |
| 120 | [Documentation] Reconciles ONU Device and check state |
| 121 | ... Assuming that ONU State Test was executed where all the ONUs are reached the expected state! |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 122 | [Tags] functionalOnuGo ReconcileOnuGo |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 123 | [Setup] Start Logging ReconcileONUDevice |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 124 | Run Keyword If '${onu_state}'=='tech-profile-config-download-success' or '${onu_state}'=='omci-flows-pushed' |
| 125 | ... Do Reconcile Onu Device |
TorstenThieme | 5a205ba | 2020-09-29 08:08:29 +0000 | [diff] [blame] | 126 | ... ELSE Pass Execution ${skip_message} skipped |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 127 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
| 128 | ... AND Stop Logging ReconcileONUDevice |
| 129 | |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 130 | Power Off Power On Onu Device |
| 131 | [Documentation] Power off and Power on of all ONU Devices and check state |
| 132 | ... Assuming that ONU State Test was executed where all the ONUs are reached the expected state! |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 133 | [Tags] functionalOnuGo PowerOffPowerOnOnuGo |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 134 | [Setup] Start Logging PowerOffPowerOnONUDevice |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 135 | Run Keyword If '${onu_state}'=='tech-profile-config-download-success' or '${onu_state}'=='omci-flows-pushed' |
| 136 | ... Do Power Off Power On Onu Device |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 137 | ... ELSE Pass Execution ${skip_message} skipped |
| 138 | [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs |
| 139 | ... AND Stop Logging PowerOffPowerOnONUDevice |
| 140 | |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 141 | *** Keywords *** |
| 142 | Setup Suite |
| 143 | [Documentation] Set up the test suite |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 144 | ${LogInfo}= Catenate |
| 145 | ... \r\nPassed arguments: |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 146 | ... state2test:${state2test}, testmode:${testmode}, techprofile:${techprofile}, |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 147 | ... debugmode:${debugmode}, logging:${logging}, pausebeforecleanup:${pausebeforecleanup}, |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 148 | Log ${LogInfo} console=yes |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 149 | Common Test Suite Setup |
TorstenThieme | 5a205ba | 2020-09-29 08:08:29 +0000 | [diff] [blame] | 150 | # prepare skip message in yellow for console log |
| 151 | ${skip}= Evaluate "\\033[33mSKIP\\033[0m" |
| 152 | ${skipped}= Evaluate "\\033[33m${SPACE*14} ===> Test case above was skipped! <=== ${SPACE*15}\\033[0m" |
| 153 | ${skip_message} Catenate ${skipped} | ${skip} | |
| 154 | Set Suite Variable ${skip_message} |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 155 | Run Keyword If ${num_onus}>4 Calculate Timeout |
TorstenThieme | 1488d77 | 2020-09-28 10:52:43 +0000 | [diff] [blame] | 156 | ${techprofile}= Set Variable If "${techprofile}"=="1T1GEM" default ${techprofile} |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 157 | Run Keyword If "${techprofile}"=="default" Log To Console \nTechProfile:default (1T1GEM) |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 158 | ... ELSE IF "${techprofile}"=="1T4GEM" Set Tech Profile 1T4GEM |
| 159 | ... ELSE IF "${techprofile}"=="1T8GEM" Set Tech Profile 1T8GEM |
| 160 | ... ELSE Fail The TechProfile (${techprofile}) is not valid! |
| 161 | ${onos_ssh_connection} Open ONOS SSH Connection ${ONOS_SSH_IP} ${ONOS_SSH_PORT} |
| 162 | Set Suite Variable ${onos_ssh_connection} |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 163 | # map the passed onu state to reached and make it visible for test suite |
| 164 | ${admin_state} ${oper_status} ${connect_status} ${onu_state_nb} ${onu_state}= |
| 165 | ... Map State ${state2test} |
| 166 | Set Suite Variable ${admin_state} |
| 167 | Set Suite Variable ${oper_status} |
| 168 | Set Suite Variable ${connect_status} |
| 169 | Set Suite Variable ${onu_state_nb} |
| 170 | Set Suite Variable ${onu_state} |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 171 | # delete etcd MIB Template Data |
| 172 | Delete MIB Template Data |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 173 | |
TorstenThieme | b41007d | 2020-06-22 12:14:12 +0000 | [diff] [blame] | 174 | Teardown Suite |
| 175 | [Documentation] Replaces the Suite Teardown in utils.robot. |
| 176 | ... Cleans up and checks all ONU ports disabled in ONOS. |
| 177 | ... Furthermore gives the possibility to pause the execution. |
| 178 | Run Keyword If ${pausebeforecleanup} Import Library Dialogs |
| 179 | Run Keyword If ${pausebeforecleanup} Pause Execution Press OK to continue with clean up! |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 180 | Run Keyword If ${pausebeforecleanup} Log Teardown will be continued... console=yes |
TorstenThieme | b41007d | 2020-06-22 12:14:12 +0000 | [diff] [blame] | 181 | Run Keyword If ${teardown_device} Delete All Devices and Verify |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 182 | # Wait for Ports in ONOS ${ONOS_SSH_IP} ${ONOS_SSH_PORT} 0 BBSM |
| 183 | Wait for Ports in ONOS ${onos_ssh_connection} 0 BBSM |
| 184 | Close ONOS SSH Connection ${onos_ssh_connection} |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 185 | Remove Tech Profile |
TorstenThieme | b41007d | 2020-06-22 12:14:12 +0000 | [diff] [blame] | 186 | |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 187 | Setup Test |
| 188 | [Documentation] Pre-test Setup |
| 189 | #test for empty device list |
| 190 | Test Empty Device List |
| 191 | Run Keyword If ${has_dataplane} Wait Until Keyword Succeeds 120s 10s Openolt is Up |
Suchitra Vemuri | b7253a5 | 2020-07-14 22:35:17 -0700 | [diff] [blame] | 192 | ... ${olt_ssh_ip} ${olt_user} ${olt_pass} |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 193 | Run Keyword If ${has_dataplane} Sleep 60s |
| 194 | #create/preprovision device |
| 195 | ${olt_device_id}= Create Device ${olt_ip} ${OLT_PORT} |
| 196 | Set Suite Variable ${olt_device_id} |
| 197 | #validate olt states |
| 198 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device PREPROVISIONED UNKNOWN UNKNOWN |
| 199 | ... ${olt_device_id} |
| 200 | Sleep 5s |
| 201 | |
| 202 | Calculate Timeout |
| 203 | [Documentation] Calculates the timeout regarding num-onus in case of more than 4 onus |
| 204 | ${timeout} Fetch From Left ${timeout} s |
| 205 | ${timeout}= evaluate ${timeout}+((${num_onus}-4)*30) |
TorstenThieme | 401af43 | 2020-06-11 15:53:53 +0000 | [diff] [blame] | 206 | ${timeout}= Set Variable If (not ${debugmode}) and (${timeout}>600) 600 ${timeout} |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 207 | ${timeout}= Catenate SEPARATOR= ${timeout} s |
| 208 | Set Suite Variable ${timeout} |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 209 | |
| 210 | Do ONU Up To State Test |
| 211 | [Documentation] This keyword performs Up2State Test |
| 212 | ... All states up to the passed have to be checked |
| 213 | FOR ${I} IN RANGE 0 ${num_onus} |
| 214 | ${src}= Set Variable ${hosts.src[${I}]} |
| 215 | ${dst}= Set Variable ${hosts.dst[${I}]} |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 216 | Run Keyword If ${onu_state_nb}>=1 |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 217 | ... Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 50ms |
| 218 | ... Validate Device ENABLED ACTIVATING REACHABLE |
| 219 | ... ${src['onu']} onu=True onu_reason=activating-onu |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 220 | Run Keyword If ${onu_state_nb}>=2 |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 221 | ... Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 50ms |
| 222 | ... Validate Device ENABLED ACTIVATING REACHABLE |
| 223 | ... ${src['onu']} onu=True onu_reason=starting-openomci |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 224 | Run Keyword If ${onu_state_nb}>=3 |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 225 | ... Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 50ms |
| 226 | ... Validate Device ENABLED ACTIVATING REACHABLE |
| 227 | ... ${src['onu']} onu=True onu_reason=discovery-mibsync-complete |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 228 | Run Keyword If ${onu_state_nb}>=4 |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 229 | ... Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 50ms |
| 230 | ... Validate Device ENABLED ACTIVE REACHABLE |
| 231 | ... ${src['onu']} onu=True onu_reason=initial-mib-downloaded |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 232 | Run Keyword If ${onu_state_nb}>=5 |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 233 | ... Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 50ms |
| 234 | ... Validate Device ENABLED ACTIVE REACHABLE |
| 235 | ... ${src['onu']} onu=True onu_reason=tech-profile-config-download-success |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 236 | Run Keyword If ${onu_state_nb}>=6 |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 237 | ... Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 50ms |
| 238 | ... Validate Device ENABLED ACTIVE REACHABLE |
| 239 | ... ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 240 | END |
| 241 | |
| 242 | Do ONU Single State Test |
| 243 | [Documentation] This keyword performs SingleState Test |
| 244 | ... Only the passed state has to be checked |
| 245 | FOR ${I} IN RANGE 0 ${num_onus} |
| 246 | ${src}= Set Variable ${hosts.src[${I}]} |
| 247 | ${dst}= Set Variable ${hosts.dst[${I}]} |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 248 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 50ms |
| 249 | ... Validate Device ${admin_state} ${oper_status} ${connect_status} |
| 250 | ... ${src['onu']} onu=True onu_reason=${onu_state} |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 251 | END |
| 252 | |
TorstenThieme | 94e4ae4 | 2020-05-18 13:01:42 +0000 | [diff] [blame] | 253 | Do ONU Single State Test Time |
| 254 | [Documentation] This keyword performs SingleState Test with calculate running time |
| 255 | ... Only the passed state has to be checked and the duration each single onu adapter needed |
| 256 | ... will be calculated and printed out |
TorstenThieme | 17becfc | 2020-10-08 09:46:27 +0000 | [diff] [blame] | 257 | #${ListfinishedONUs} Create List |
| 258 | #Set Global Variable ${ListfinishedONUs} |
TorstenThieme | 94e4ae4 | 2020-05-18 13:01:42 +0000 | [diff] [blame] | 259 | Create File ONU_Startup_Time.txt This file contains the startup times of all ONUs. |
| 260 | ${list_onus} Create List |
TorstenThieme | 401af43 | 2020-06-11 15:53:53 +0000 | [diff] [blame] | 261 | Build ONU SN List ${list_onus} |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 262 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 50ms |
TorstenThieme | 9949b17 | 2020-06-16 10:00:15 +0000 | [diff] [blame] | 263 | ... Validate ONU Devices MIB State With Duration |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 264 | ... ${onu_state} ${list_onus} ${timeStart} print2console=True |
TorstenThieme | 401af43 | 2020-06-11 15:53:53 +0000 | [diff] [blame] | 265 | ... output_file=ONU_Startup_Time.txt |
TorstenThieme | 94e4ae4 | 2020-05-18 13:01:42 +0000 | [diff] [blame] | 266 | |
TorstenThieme | 1619db2 | 2020-04-03 12:01:15 +0000 | [diff] [blame] | 267 | Do Onu Port Check |
TorstenThieme | 0095868 | 2020-06-19 11:29:31 +0000 | [diff] [blame] | 268 | [Documentation] Check that all the UNI ports show up in ONOS |
TorstenThieme | 17becfc | 2020-10-08 09:46:27 +0000 | [diff] [blame] | 269 | Wait for Ports in ONOS ${onos_ssh_connection} ${num_onus} BBSM |
TorstenThieme | 9949b17 | 2020-06-16 10:00:15 +0000 | [diff] [blame] | 270 | |
TorstenThieme | 109683b | 2020-09-24 12:35:41 +0000 | [diff] [blame] | 271 | Do Onu Flow Check |
| 272 | [Documentation] Check that all ONU flows show up in ONOS and Voltha |
| 273 | ${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS ${olt_serial_number} |
| 274 | ${nni_port}= Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 275 | ... Get NNI Port in ONOS ${of_id} |
| 276 | FOR ${I} IN RANGE 0 ${num_onus} |
| 277 | ${src}= Set Variable ${hosts.src[${I}]} |
| 278 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 279 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 280 | ${onu_port}= Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 281 | ... Get ONU Port in ONOS ${src['onu']} ${of_id} |
| 282 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2 |
| 283 | ... Execute ONOS CLI Command ${ONOS_SSH_IP} ${ONOS_SSH_PORT} |
| 284 | ... volt-add-subscriber-access ${of_id} ${onu_port} |
| 285 | # Verify subscriber access flows are added for the ONU port |
| 286 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 287 | ... Verify Subscriber Access Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 288 | ... ${onu_port} ${nni_port} ${src['c_tag']} ${src['s_tag']} |
TorstenThieme | 109683b | 2020-09-24 12:35:41 +0000 | [diff] [blame] | 289 | END |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 290 | #check for previous state is kept (normally omci-flows-pushed) |
| 291 | Do Current State Test All Onus ${state2test} |
TorstenThieme | 109683b | 2020-09-24 12:35:41 +0000 | [diff] [blame] | 292 | |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 293 | Set Tech Profile |
| 294 | [Documentation] This keyword set the passed TechProfile for the test |
| 295 | [Arguments] ${TechProfile} |
TorstenThieme | 87cd620 | 2020-09-09 10:01:28 +0000 | [diff] [blame] | 296 | Log To Console \nTechProfile:${TechProfile} |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 297 | ${namespace}= Set Variable default |
Andrea Campanella | 60dde30 | 2020-09-09 18:42:56 +0200 | [diff] [blame] | 298 | ${podname}= Set Variable etcd |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 299 | ${src}= Set Variable ${data_dir}/TechProfile-${TechProfile}.json |
| 300 | ${dest}= Set Variable /tmp/flexpod.json |
| 301 | ${command} Catenate |
| 302 | ... /bin/sh -c 'cat ${dest} | ETCDCTL_API=3 etcdctl put service/voltha/technology_profiles/XGS-PON/64' |
| 303 | Copy File To Pod ${namespace} ${podname} ${src} ${dest} |
| 304 | Exec Pod ${namespace} ${podname} ${command} |
| 305 | ${commandget} Catenate |
| 306 | ... /bin/sh -c 'ETCDCTL_API=3 etcdctl get --prefix service/voltha/technology_profiles/XGS-PON/64' |
| 307 | Exec Pod ${namespace} ${podname} ${commandget} |
| 308 | |
| 309 | Remove Tech Profile |
| 310 | [Documentation] This keyword removes TechProfile |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 311 | Log To Console \nTechProfile:${TechProfile} |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 312 | ${namespace}= Set Variable default |
Andrea Campanella | 60dde30 | 2020-09-09 18:42:56 +0200 | [diff] [blame] | 313 | ${podname}= Set Variable etcd |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 314 | ${command} Catenate |
| 315 | ... /bin/sh -c 'ETCDCTL_API=3 etcdctl del --prefix service/voltha/technology_profiles/XGS-PON/64' |
| 316 | Exec Pod ${namespace} ${podname} ${command} |
| 317 | ${commandget} Catenate |
| 318 | ... /bin/sh -c 'ETCDCTL_API=3 etcdctl get --prefix service/voltha/technology_profiles/XGS-PON/64' |
| 319 | Exec Pod ${namespace} ${podname} ${commandget} |
| 320 | |
| 321 | Do Check Tech Profile |
| 322 | [Documentation] This keyword checks the loaded TechProfile |
| 323 | ${namespace}= Set Variable default |
Andrea Campanella | 60dde30 | 2020-09-09 18:42:56 +0200 | [diff] [blame] | 324 | ${podname}= Set Variable etcd |
TorstenThieme | e0e5bba | 2020-08-05 11:20:13 +0000 | [diff] [blame] | 325 | ${commandget} Catenate |
| 326 | ... /bin/sh -c 'ETCDCTL_API=3 etcdctl get --prefix service/voltha/technology_profiles/XGS-PON/64' |
| 327 | ${result}= Exec Pod ${namespace} ${podname} ${commandget} |
| 328 | ${num_gem_ports}= Set Variable 1 |
| 329 | ${num_gem_ports}= Set Variable If |
| 330 | ... "${techprofile}"=="default" 1 |
| 331 | ... "${techprofile}"=="1T4GEM" 4 |
| 332 | ... "${techprofile}"=="1T8GEM" 8 |
| 333 | @{resultList} Split String ${result} separator=, |
| 334 | ${num_of_count_matches}= Get Match Count ${resultList} "num_gem_ports": ${num_gem_ports} |
| 335 | ... whitespace_insensitive=True |
| 336 | ${num_of_expected_matches}= Run Keyword If "${techprofile}"=="default" Evaluate ${num_onus} |
| 337 | ... ELSE Evaluate ${num_onus}+1 |
| 338 | Run Keyword If ${num_of_expected_matches}!=${num_of_count_matches} Log To Console |
| 339 | ... \nTechProfile (${TechProfile}) not loaded correctly:${num_of_count_matches} of ${num_of_expected_matches} |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 340 | |
| 341 | Do Disable Enable Onu Test |
| 342 | [Documentation] This keyword disables/enables all onus and checks the states. |
TorstenThieme | 17becfc | 2020-10-08 09:46:27 +0000 | [diff] [blame] | 343 | [Arguments] ${state2check}=${state2test} |
| 344 | Do Current State Test All Onus ${state2check} |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 345 | Do Disable Onu Device |
TorstenThieme | 17becfc | 2020-10-08 09:46:27 +0000 | [diff] [blame] | 346 | Do Current State Test All Onus omci-admin-lock |
| 347 | Log Ports |
| 348 | #check no port is enabled in ONOS |
| 349 | Wait for Ports in ONOS ${onos_ssh_connection} 0 BBSM |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 350 | Do Enable Onu Device |
TorstenThieme | 17becfc | 2020-10-08 09:46:27 +0000 | [diff] [blame] | 351 | Do Current State Test All Onus ${state2check} |
| 352 | Log Ports onlyenabled=True |
| 353 | #check that all the UNI ports show up in ONOS again |
| 354 | Wait for Ports in ONOS ${onos_ssh_connection} ${num_onus} BBSM |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 355 | |
| 356 | Do Reconcile Onu Device |
| 357 | [Documentation] This keyword reconciles ONU device and check the state afterwards. |
| 358 | ... Following steps will be executed: |
| 359 | ... - restart openonu adaptor |
| 360 | ... - check openonu adaptor is ready again |
| 361 | ... - check previous state is kept |
| 362 | ... - ONU-Disable |
| 363 | ... - wait some seconds |
| 364 | ... - check for state omci-admin-lock |
| 365 | ... - ONU-Enable |
| 366 | ... - wait some seconds |
| 367 | ... - check for state onu-reenabled |
| 368 | ... - port check |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 369 | ${list_openonu_apps} Create List adapter-open-onu |
| 370 | ${namespace}= Set Variable voltha |
| 371 | ${adaptorname}= Set Variable open-onu |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 372 | Kill Adaptor ${namespace} ${adaptorname} |
| 373 | Sleep 5s |
| 374 | Wait For Pods Ready ${namespace} ${list_openonu_apps} |
| 375 | Do Disable Enable Onu Test |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 376 | Do Onu Port Check |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 377 | |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 378 | Do Power Off Power On Onu Device |
| 379 | [Documentation] This keyword power off/on all onus and checks the states. |
| 380 | Do Power Off ONU Device |
| 381 | Sleep 5s |
| 382 | Do Current State Test All Onus stopping-openomci |
| 383 | Do Power On ONU Device |
| 384 | Do Current State Test All Onus ${state2test} |
| 385 | |
| 386 | Do Disable Onu Device |
| 387 | [Documentation] This keyword disables all onus. |
TorstenThieme | 17becfc | 2020-10-08 09:46:27 +0000 | [diff] [blame] | 388 | FOR ${I} IN RANGE 0 ${num_onus} |
| 389 | ${src}= Set Variable ${hosts.src[${I}]} |
| 390 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 391 | Disable Device ${onu_device_id} |
| 392 | Wait Until Keyword Succeeds 20s 2s Test Devices Disabled in VOLTHA Id=${onu_device_id} |
| 393 | END |
| 394 | |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 395 | Do Enable Onu Device |
| 396 | [Documentation] This keyword enables all onus. |
TorstenThieme | 17becfc | 2020-10-08 09:46:27 +0000 | [diff] [blame] | 397 | FOR ${I} IN RANGE 0 ${num_onus} |
| 398 | ${src}= Set Variable ${hosts.src[${I}]} |
| 399 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 400 | Enable Device ${onu_device_id} |
| 401 | END |
| 402 | |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 403 | Do Power Off ONU Device |
| 404 | [Documentation] This keyword power off all onus. |
| 405 | ${namespace}= Set Variable voltha |
| 406 | FOR ${I} IN RANGE 0 ${num_onus} |
| 407 | ${src}= Set Variable ${hosts.src[${I}]} |
| 408 | ${result}= Exec Pod ${namespace} bbsim bbsimctl onu shutdown ${src['onu']} |
| 409 | Should Contain ${result} successfully msg=Can not shutdown ${src['onu']} values=False |
| 410 | END |
| 411 | |
| 412 | Do Power On ONU Device |
| 413 | [Documentation] This keyword power on all onus. |
| 414 | ${namespace}= Set Variable voltha |
| 415 | FOR ${I} IN RANGE 0 ${num_onus} |
| 416 | ${src}= Set Variable ${hosts.src[${I}]} |
| 417 | ${result}= Exec Pod ${namespace} bbsim bbsimctl onu poweron ${src['onu']} |
| 418 | Should Contain ${result} successfully msg=Can not poweron ${src['onu']} values=False |
| 419 | END |
| 420 | |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 421 | Do Current State Test |
| 422 | [Documentation] This keyword checks the passed state of the given onu. |
| 423 | [Arguments] ${state} ${onu} |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 424 | ${admin_state} ${oper_status} ${connect_status} ${onu_state_nb} ${onu_state}= Map State ${state} |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 425 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 50ms |
| 426 | ... Validate Device ${admin_state} ${oper_status} ${connect_status} |
| 427 | ... ${onu} onu=True onu_reason=${onu_state} |
| 428 | |
TorstenThieme | 17becfc | 2020-10-08 09:46:27 +0000 | [diff] [blame] | 429 | Do Current State Test All Onus |
| 430 | [Documentation] This keyword checks the passed state of all onus. |
| 431 | ... Hint: ${timeStart} will be not evaluated here! |
| 432 | [Arguments] ${state} |
| 433 | ${list_onus} Create List |
| 434 | Build ONU SN List ${list_onus} |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 435 | ${admin_state} ${oper_status} ${connect_status} ${onu_state_nb} ${onu_state}= Map State ${state} |
TorstenThieme | 17becfc | 2020-10-08 09:46:27 +0000 | [diff] [blame] | 436 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 50ms |
| 437 | ... Validate ONU Devices With Duration |
| 438 | ... ${admin_state} ${oper_status} ${connect_status} |
| 439 | ... ${onu_state} ${list_onus} ${timeStart} |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 440 | |
TorstenThieme | 17becfc | 2020-10-08 09:46:27 +0000 | [diff] [blame] | 441 | Log Ports |
| 442 | [Documentation] This keyword logs all port data available in ONOS of first port per ONU |
| 443 | [Arguments] ${onlyenabled}=False |
| 444 | ${cmd} Set Variable If ${onlyenabled} ports -e ports |
| 445 | ${onu_ports}= Execute ONOS CLI Command on open connection ${onos_ssh_connection} ${cmd} |
| 446 | ${lines} = Get Lines Matching Regexp ${onu_ports} .*portName=BBSM[0-9]{8}-1 |
| 447 | Log ${lines} |
| 448 | |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 449 | Kill Adaptor |
| 450 | [Documentation] This keyword kills the passed adaptor. |
| 451 | [Arguments] ${namespace} ${name} |
| 452 | ${cmd} Catenate |
| 453 | ... kubectl exec -it -n voltha $(kubectl get pods -n ${namespace} | grep ${name} | awk 'NR==1{print $1}') |
| 454 | ... -- /bin/sh -c "kill 1" |
| 455 | ${rc} ${output}= Run and Return Rc and Output ${cmd} |
| 456 | Log ${output} |
| 457 | |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 458 | Delete MIB Template Data |
| 459 | [Documentation] This keyword deletes MIB Template Data stored in etcd |
| 460 | ${namespace}= Set Variable default |
| 461 | ${podname}= Set Variable etcd |
| 462 | ${commanddel} Catenate |
| 463 | ... /bin/sh -c 'ETCDCTL_API=3 etcdctl del --prefix service/voltha/omci_mibs/go_templates/' |
| 464 | ${result}= Exec Pod ${namespace} ${podname} ${commanddel} |
| 465 | Sleep 3s |
| 466 | ${commandget} Catenate |
| 467 | ... /bin/sh -c 'ETCDCTL_API=3 etcdctl get --prefix service/voltha/omci_mibs/go_templates/' |
| 468 | ${result}= Exec Pod ${namespace} ${podname} ${commandget} |
| 469 | Should Be Empty ${result} Could not delete MIB Template Data stored in etcd! |
| 470 | |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 471 | Map State |
| 472 | [Documentation] This keyword converts the passed numeric value or name of a onu state to its state values. |
| 473 | [Arguments] ${state} |
| 474 | # create state lists with corresponding return values |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 475 | # ADMIN-STATE OPER-STATUS CONNECT-STATUS ONU-STATE (number/name) |
| 476 | ${state1} Create List ENABLED ACTIVATING REACHABLE 1 activating-onu |
| 477 | ${state2} Create List ENABLED ACTIVATING REACHABLE 2 starting-openomci |
| 478 | ${state3} Create List ENABLED ACTIVATING REACHABLE 3 discovery-mibsync-complete |
| 479 | ${state4} Create List ENABLED ACTIVE REACHABLE 4 initial-mib-downloaded |
| 480 | ${state5} Create List ENABLED ACTIVE REACHABLE 5 tech-profile-config-download-success |
| 481 | ${state6} Create List ENABLED ACTIVE REACHABLE 6 omci-flows-pushed |
| 482 | ${state7} Create List DISABLED UNKNOWN REACHABLE 7 omci-admin-lock |
| 483 | ${state8} Create List ENABLED ACTIVE REACHABLE 8 onu-reenabled |
| 484 | ${state9} Create List ENABLED DISCOVERED UNREACHABLE 9 stopping-openomci |
| 485 | ${admin_state} ${oper_status} ${connect_status} ${onu_state_nb} ${onu_state}= Set Variable If |
TorstenThieme | 015d5c0 | 2020-09-11 09:53:34 +0000 | [diff] [blame] | 486 | ... '${state}'=='1' or '${state}'=='activating-onu' ${state1} |
| 487 | ... '${state}'=='2' or '${state}'=='starting-openomci' ${state2} |
| 488 | ... '${state}'=='3' or '${state}'=='discovery-mibsync-complete' ${state3} |
| 489 | ... '${state}'=='4' or '${state}'=='initial-mib-downloaded' ${state4} |
| 490 | ... '${state}'=='5' or '${state}'=='tech-profile-config-download-success' ${state5} |
| 491 | ... '${state}'=='6' or '${state}'=='omci-flows-pushed' ${state6} |
| 492 | ... '${state}'=='7' or '${state}'=='omci-admin-lock' ${state7} |
| 493 | ... '${state}'=='8' or '${state}'=='onu-reenabled' ${state8} |
TorstenThieme | 5ca1dd1 | 2020-10-16 08:42:16 +0000 | [diff] [blame] | 494 | ... '${state}'=='9' or '${state}'=='stopping-openomci' ${state9} |
TorstenThieme | 66c91a8 | 2020-10-19 13:37:53 +0000 | [diff] [blame] | 495 | [Return] ${admin_state} ${oper_status} ${connect_status} ${onu_state_nb} ${onu_state} |