Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | *** Settings *** |
| 16 | Documentation Test various with ATT workflow using multiple ONUs |
| 17 | Suite Setup Setup Suite |
| 18 | Suite Teardown Teardown Suite |
| 19 | Test Setup Setup Test |
| 20 | Test Teardown Teardown Test |
| 21 | Library Collections |
| 22 | Library String |
| 23 | Library OperatingSystem |
| 24 | Library XML |
| 25 | Library RequestsLibrary |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 26 | Library CORDRobot |
| 27 | Library ImportResource resources=CORDRobot |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 28 | Variables ../../Properties/RestApiProperties.py |
| 29 | |
| 30 | *** Variables *** |
Suchitra Vemuri | 94ea16b | 2019-06-04 17:16:12 -0700 | [diff] [blame] | 31 | ${POD_NAME} onlab-pod1-qa |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 32 | ${KUBERNETES_CONFIGS_DIR} ~/pod-configs/kubernetes-configs |
| 33 | ${HELM_CHARTS_DIR} ~/helm-charts |
| 34 | ${WHITELIST_PATHFILE} ${CURDIR}/data/${POD_NAME}/ATTWhiteList.json |
| 35 | ${SUBSCRIBER_PATHFILE} ${CURDIR}/data/${POD_NAME}/ATTSubscriber.json |
| 36 | ${VOLT_DEVICE_PATHFILE} ${CURDIR}/data/${POD_NAME}/RealOLTDevice.json |
| 37 | ${KUBERNETES_CONF} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.conf |
| 38 | ${KUBERNETES_YAML} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.yml |
| 39 | ${VOLTHA_POD_NUM} 8 |
| 40 | |
| 41 | *** Test Cases *** |
| 42 | ONU in Correct Location with two ONUs |
Suchitra Vemuri | 9ba61b8 | 2019-06-05 15:00:21 -0700 | [diff] [blame] | 43 | [Documentation] Test with two ONUs(same s-tag) - authenticate/dhcp/ping on both the ONUs |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 44 | ... Validates E2E Ping Connectivity and object states for the given scenario: |
| 45 | ... Configure whitelist with correct first ONU location |
| 46 | ... Validate successful authentication/DHCP/E2E ping |
| 47 | ... Configure whitelist with correct details for the second ONU location |
| 48 | ... Validate successful authentication/DHCP/E2E ping for the second ONU |
| 49 | ... Validates that the first ONU can still ping |
Suchitra Vemuri | 94ea16b | 2019-06-04 17:16:12 -0700 | [diff] [blame] | 50 | #[Setup] None |
Suchitra Vemuri | 9ba61b8 | 2019-06-05 15:00:21 -0700 | [diff] [blame] | 51 | [Teardown] None |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 52 | [Tags] multipleONU-test1 |
Suchitra Vemuri | a0cc787 | 2019-06-12 16:23:00 -0700 | [diff] [blame] | 53 | Log $[src0['onu']} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 54 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']} |
| 55 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']} |
| 56 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']} |
| 57 | Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 58 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']} |
| 59 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']} |
Suchitra Vemuri | 7dee24a | 2019-05-24 11:59:52 -0700 | [diff] [blame] | 60 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${src0['s_tag']} ${src0['c_tag']} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 61 | #Second ONU |
Suchitra Vemuri | a0cc787 | 2019-06-12 16:23:00 -0700 | [diff] [blame] | 62 | Log $[src1['onu']} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 63 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src1['onu']} |
Suchitra Vemuri | cb4d5a2 | 2019-05-24 11:39:38 -0700 | [diff] [blame] | 64 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src1['onu']} |
| 65 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src1['onu']} |
| 66 | Validate Authentication True ${src1['dp_iface_name']} wpa_supplicant.conf ${src1['ip']} ${src1['user']} ${src1['pass']} ${src1['container_type']} ${src1['container_name']} |
| 67 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src1['onu']} |
| 68 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src1['onu']} |
| 69 | Validate DHCP and Ping True True ${src1['dp_iface_name']} ${src1['s_tag']} ${src1['c_tag']} ${dst1['dp_iface_ip_qinq']} ${src1['ip']} ${src1['user']} ${src1['pass']} ${src1['container_type']} ${src1['container_name']} ${dst1['dp_iface_name']} ${dst1['ip']} ${dst1['user']} ${dst1['pass']} ${dst1['container_type']} ${dst1['container_name']} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 70 | # Validate that the first ONU can still ping |
Suchitra Vemuri | 7dee24a | 2019-05-24 11:59:52 -0700 | [diff] [blame] | 71 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${src0['s_tag']} ${src0['c_tag']} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 72 | |
Suchitra Vemuri | 9ba61b8 | 2019-06-05 15:00:21 -0700 | [diff] [blame] | 73 | Deletion of one ONU from the whitelist while other ONU exists |
| 74 | [Documentation] Test with two ONUs(same s-tag) - delete one ONU from the whitelist |
| 75 | ... Validates E2E Ping Connectivity and object states for the given scenario: |
| 76 | ... After validating authentication/dhcp/ping from the above tests |
| 77 | ... Delete the second ONU from the whitelist |
| 78 | ... Validate that pings fail on the second ONU |
| 79 | ... Validate that the first ONU can still ping |
Suchitra Vemuri | a0cc787 | 2019-06-12 16:23:00 -0700 | [diff] [blame] | 80 | [Setup] None |
| 81 | [Teardown] None |
Suchitra Vemuri | 9ba61b8 | 2019-06-05 15:00:21 -0700 | [diff] [blame] | 82 | [Tags] multipleONU-test2 |
| 83 | #Second ONU |
Suchitra Vemuri | a0cc787 | 2019-06-12 16:23:00 -0700 | [diff] [blame] | 84 | Remove Whitelist ${src1['onu']} |
Suchitra Vemuri | 9ba61b8 | 2019-06-05 15:00:21 -0700 | [diff] [blame] | 85 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src1['onu']} |
Suchitra Vemuri | a0cc787 | 2019-06-12 16:23:00 -0700 | [diff] [blame] | 86 | Wait Until Keyword Succeeds 60s 2s Check Ping False ${dst1['dp_iface_ip_qinq']} ${src1['dp_iface_name']} ${src1['ip']} ${src1['user']} ${src1['pass']} ${src1['container_type']} ${src1['container_name']} |
| 87 | # Validate that the first ONU can still ping |
| 88 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${src0['s_tag']} ${src0['c_tag']} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
| 89 | |
| 90 | Readd the deleted ONU to the whitelist while other ONU exists |
| 91 | [Documentation] Test with two ONUs(same s-tag) - readd deleted ONU to the whitelist |
| 92 | ... Validates E2E Ping Connectivity and object states for the given scenario: |
| 93 | ... After validating authentication/dhcp/ping from the above tests |
| 94 | ... Add the second ONU to the whitelist |
| 95 | ... Perform authentication/dhcp/ping on the second ONU |
| 96 | ... Validate that pings succeed on the second ONU |
| 97 | ... Validate that the first ONU can still ping |
| 98 | [Setup] None |
| 99 | [Teardown] None |
| 100 | [Tags] multipleONU-test3 |
| 101 | #Second ONU |
| 102 | Create Whitelist 1 |
| 103 | Log $[src1['onu']} |
| 104 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src1['onu']} |
| 105 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src1['onu']} |
| 106 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src1['onu']} |
| 107 | Validate Authentication True ${src1['dp_iface_name']} wpa_supplicant.conf ${src1['ip']} ${src1['user']} ${src1['pass']} ${src1['container_type']} ${src1['container_name']} |
| 108 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src1['onu']} |
| 109 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src1['onu']} |
| 110 | Validate DHCP and Ping True True ${src1['dp_iface_name']} ${src1['s_tag']} ${src1['c_tag']} ${dst1['dp_iface_ip_qinq']} ${src1['ip']} ${src1['user']} ${src1['pass']} ${src1['container_type']} ${src1['container_name']} ${dst1['dp_iface_name']} ${dst1['ip']} ${dst1['user']} ${dst1['pass']} ${dst1['container_type']} ${dst1['container_name']} |
Suchitra Vemuri | 9ba61b8 | 2019-06-05 15:00:21 -0700 | [diff] [blame] | 111 | # Validate that the first ONU can still ping |
| 112 | Validate DHCP and Ping True True ${src0['dp_iface_name']} ${src0['s_tag']} ${src0['c_tag']} ${dst0['dp_iface_ip_qinq']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} ${dst0['dp_iface_name']} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
| 113 | |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 114 | *** Keywords *** |
| 115 | Setup Suite |
| 116 | ${auth} = Create List ${XOS_USER} ${XOS_PASSWD} |
| 117 | ${HEADERS} Create Dictionary Content-Type=application/json |
| 118 | Create Session ${server_ip} http://${server_ip}:${server_port} auth=${AUTH} headers=${HEADERS} |
| 119 | ${att_workflow_service_id}= Get Service Owner Id ${ATT_SERVICE} |
| 120 | ${volt_service_id}= Get Service Owner Id ${VOLT_SERVICE} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 121 | ${AttWhiteListList}= CORDRobot.jsonToList ${WHITELIST_PATHFILE} AttWhiteListInfo |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 122 | Set Suite Variable ${AttWhiteListList} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 123 | ${AttWhiteListDict}= CORDRobot.listToDict ${AttWhiteListList} 0 |
| 124 | ${AttWhiteListDict}= CORDRobot.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id} |
Suchitra Vemuri | 94ea16b | 2019-06-04 17:16:12 -0700 | [diff] [blame] | 125 | Set Suite Variable ${att_workflow_service_id} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 126 | ${onu_location}= Get From Dictionary ${AttWhiteListDict} pon_port_id |
| 127 | Set Global Variable ${onu_location} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 128 | ${SubscriberList}= CORDRobot.jsonToList ${SUBSCRIBER_PATHFILE} SubscriberInfo |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 129 | Set Global Variable ${SubscriberList} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 130 | ${SubscriberDict}= CORDRobot.listToDict ${SubscriberList} 0 |
| 131 | ${s_tag}= CORDRobot.getFieldValueFromDict ${SubscriberDict} s_tag |
| 132 | ${c_tag}= CORDRobot.getFieldValueFromDict ${SubscriberDict} c_tag |
| 133 | ${VoltDeviceList}= CORDRobot.jsonToList ${VOLT_DEVICE_PATHFILE} VOLTDeviceInfo |
| 134 | ${VoltDeviceDict}= CORDRobot.setFieldValueInDict ${VoltDeviceList[0]} volt_service_id ${volt_service_id} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 135 | Set Global Variable ${VoltDeviceList} |
| 136 | Set Global Variable ${VoltDeviceDict} |
| 137 | Set Suite Variable ${s_tag} |
| 138 | Set Suite Variable ${c_tag} |
Suchitra Vemuri | d1488e5 | 2019-05-31 12:38:47 -0700 | [diff] [blame] | 139 | ${olt_ip}= Evaluate ${olts}[0].get("ip") |
| 140 | ${olt_user}= Evaluate ${olts}[0].get("user") |
| 141 | ${olt_pass}= Evaluate ${olts}[0].get("pass") |
| 142 | ${k8s_node_ip}= Evaluate ${nodes}[0].get("ip") |
| 143 | ${k8s_node_user}= Evaluate ${nodes}[0].get("user") |
| 144 | ${k8s_node_pass}= Evaluate ${nodes}[0].get("pass") |
Suchitra Vemuri | 94ea16b | 2019-06-04 17:16:12 -0700 | [diff] [blame] | 145 | Set Suite Variable ${olt_ip} |
Suchitra Vemuri | 94ea16b | 2019-06-04 17:16:12 -0700 | [diff] [blame] | 146 | Set Suite Variable ${olt_user} |
| 147 | Set Suite Variable ${olt_pass} |
| 148 | Set Suite Variable ${k8s_node_ip} |
| 149 | Set Suite Variable ${k8s_node_user} |
| 150 | Set Suite Variable ${k8s_node_pass} |
| 151 | Set Global Variable ${export_kubeconfig} export KUBECONFIG=${KUBERNETES_CONF} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 152 | @{container_list}= Create List |
| 153 | Append To List ${container_list} att-workflow-att-workflow-driver |
| 154 | Append To List ${container_list} seba-services-volt |
| 155 | Append To List ${container_list} seba-services-rcord |
| 156 | Append To List ${container_list} onos |
| 157 | Append To List ${container_list} seba-services-fabric-crossconnect |
| 158 | Append To List ${container_list} xos-core |
| 159 | Append To List ${container_list} vcore |
| 160 | Set Suite Variable ${container_list} |
| 161 | Set Deployment Config Variables |
| 162 | ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass} |
| 163 | Set Suite Variable ${datetime} |
| 164 | |
| 165 | Teardown Suite |
| 166 | [Documentation] Performs any additional cleanup required |
| 167 | Log Suite Teardown cleanup |
| 168 | Delete All Sessions |
| 169 | |
| 170 | Setup Test |
| 171 | [Documentation] Re-create Subscriber, whitelist, and olt-device models to test |
| 172 | Log Re-creating objects |
| 173 | ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass} |
| 174 | Set Suite Variable ${datetime} |
Suchitra Vemuri | 94ea16b | 2019-06-04 17:16:12 -0700 | [diff] [blame] | 175 | Create Whitelist 0 |
| 176 | Create Whitelist 1 |
| 177 | Create Subscriber 0 |
| 178 | Create Subscriber 1 |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 179 | Create VOLT |
| 180 | Wait Until Keyword Succeeds 200s 15s Validate OLT States ACTIVE ENABLED ${olt_ip} |
| 181 | |
| 182 | Teardown Test |
| 183 | [Documentation] Delete xos objects, kills processes and cleans up interfaces on src+dst servers |
| 184 | Get VOLTHA Status |
| 185 | Get ONOS Status |
| 186 | Clean Up Linux |
| 187 | Clean Up XOS |
| 188 | Log Kubernetes Containers Logs Since Time ${datetime} ${container_list} |
| 189 | |
| 190 | Clean Up Linux |
| 191 | [Documentation] Kill processes and clean up interfaces on src+dst servers |
| 192 | Run Keyword And Ignore Error Kill Linux Process [w]pa_supplicant ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 193 | Run Keyword And Ignore Error Kill Linux Process [d]hclient ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 194 | Run Keyword If '${dst0['ip']}' != '${None}' Run Keyword And Ignore Error Kill Linux Process [d]hcpd ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
| 195 | Delete IP Addresses from Interface on Remote Host ${src0['dp_iface_name']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']} |
| 196 | Run Keyword If '${dst0['ip']}' != '${None}' Delete Interface on Remote Host ${dst0['dp_iface_name']}.${s_tag} ${dst0['ip']} ${dst0['user']} ${dst0['pass']} ${dst0['container_type']} ${dst0['container_name']} |
| 197 | |
| 198 | Clean Up XOS |
| 199 | [Documentation] Clean up all XOS objects and reinstall voltha after OLT reboots |
| 200 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
| 201 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
| 202 | Sleep 20s |
| 203 | Wait Until Keyword Succeeds 30s 2s Validate Subscriber Count 0 |
| 204 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_DEVICE} |
| 205 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_SERVICEINSTANCES} |
| 206 | Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability False ${olt_ip} |
| 207 | Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability True ${olt_ip} |
| 208 | Wait Until Keyword Succeeds 120s 10s Openolt is Up ${olt_ip} ${olt_user} ${olt_pass} |
| 209 | |
| 210 | Create Whitelist |
| 211 | [Arguments] ${index_id} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 212 | ${AttWhiteListDict}= CORDRobot.listToDict ${AttWhiteListList} ${index_id} |
| 213 | ${AttWhiteListDict}= CORDRobot.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 214 | CORD Post ${ATT_WHITELIST} ${AttWhiteListDict} |
| 215 | |
| 216 | Remove Whitelist |
| 217 | [Arguments] ${onu_device} |
Suchitra Vemuri | a0cc787 | 2019-06-12 16:23:00 -0700 | [diff] [blame] | 218 | Log ${onu_device} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 219 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 220 | CORD Delete ${ATT_WHITELIST} ${whitelist_id} |
| 221 | |
| 222 | Update Whitelist with Wrong Location |
| 223 | [Arguments] ${onu_device} |
| 224 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 225 | CORD Put ${ATT_WHITELIST} {"pon_port_id": 5345 } ${whitelist_id} |
| 226 | |
| 227 | Update Whitelist with Correct Location |
| 228 | [Arguments] ${onu_device} |
| 229 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 230 | CORD Put ${ATT_WHITELIST} {"pon_port_id": ${onu_location} } ${whitelist_id} |
| 231 | |
| 232 | Create Subscriber |
| 233 | [Arguments] ${index_id} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 234 | ${SubscriberDict}= CORDRobot.listToDict ${SubscriberList} ${index_id} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 235 | Wait Until Keyword Succeeds 120s 15s CORD Post ${VOLT_SUBSCRIBER} ${SubscriberDict} |
| 236 | |
| 237 | Remove Subscriber |
Suchitra Vemuri | 94ea16b | 2019-06-04 17:16:12 -0700 | [diff] [blame] | 238 | [Arguments] ${c_tag} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 239 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 240 | CORD Delete ${VOLT_SUBSCRIBER} ${subscriber_id} |
| 241 | |
| 242 | Create VOLT |
| 243 | CORD Post ${VOLT_DEVICE} ${VoltDeviceDict} |
| 244 | |
| 245 | Update ONU AdminState |
Suchitra Vemuri | d1488e5 | 2019-05-31 12:38:47 -0700 | [diff] [blame] | 246 | [Arguments] ${onu_device} ${new_admin_state} |
| 247 | ${onudevice_id}= Retrieve ONU Device ${onu_device} |
Suchitra Vemuri | 58eeaa3 | 2019-05-23 22:55:30 -0700 | [diff] [blame] | 248 | CORD Put ${VOLT_DEVICE} ${"admin_state": ${new_admin_state} } ${onudevice_id} |
| 249 | |