blob: 12359d850d4b863646b11149f4edc255590226bc [file] [log] [blame]
Kailash Khalasi6dab16e2018-09-17 20:24:08 -07001# 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
Suchitra Vemuriff825322018-09-07 14:00:04 -070015*** Settings ***
You Wang59ded6c2018-10-05 17:43:44 -070016Documentation Test various end-to-end scenarios with ATT workflow
You Wang9f7eb392018-10-09 17:49:34 -070017Suite Setup Setup Suite
18Suite Teardown Teardown Suite
19Test Setup Setup Test
20Test Teardown Teardown Test
Suchitra Vemuriff825322018-09-07 14:00:04 -070021Library Collections
22Library String
23Library OperatingSystem
24Library XML
25Library RequestsLibrary
Kailash266cc172019-03-05 14:32:10 -080026Library /home/cord/voltha/tests/atests/common/testCaseUtils.py
Suchitra Vemuri32fc2f22018-09-10 12:06:01 -070027Library ../../Framework/utils/utils.py
Kailash Khalasi6dab16e2018-09-17 20:24:08 -070028Resource ../../Framework/utils/utils.robot
Suchitra Vemuri32fc2f22018-09-10 12:06:01 -070029Library ../../Framework/restApi.py
Kailash Khalasi6dab16e2018-09-17 20:24:08 -070030Resource ../../Framework/Subscriber.robot
31Resource ../../Framework/ATTWorkFlowDriver.robot
You Wang0c2b3662018-10-01 16:56:17 -070032Resource ../../Framework/Kubernetes.robot
Kailash Khalasi6dab16e2018-09-17 20:24:08 -070033Resource ../../Framework/ONU.robot
You Wang0c2b3662018-10-01 16:56:17 -070034Resource ../../Framework/OLT.robot
Kailash Khalasi6dab16e2018-09-17 20:24:08 -070035Resource ../../Framework/DHCP.robot
36Variables ../../Properties/RestApiProperties.py
Suchitra Vemuriff825322018-09-07 14:00:04 -070037
38*** Variables ***
You Wang59ded6c2018-10-05 17:43:44 -070039${POD_NAME} flex-pod1-olt
40${KUBERNETES_CONFIGS_DIR} ~/pod-configs/kubernetes-configs
41${HELM_CHARTS_DIR} ~/helm-charts
42${WHITELIST_PATHFILE} ${CURDIR}/data/${POD_NAME}/ATTWhiteList.json
43${SUBSCRIBER_PATHFILE} ${CURDIR}/data/${POD_NAME}/ATTSubscriber.json
44${VOLT_DEVICE_PATHFILE} ${CURDIR}/data/${POD_NAME}/RealOLTDevice.json
45${KUBERNETES_CONF} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.conf
46${KUBERNETES_YAML} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.yml
47${VOLTHA_POD_NUM} 8
Suchitra Vemuriff825322018-09-07 14:00:04 -070048
Kailash Khalasia0810ce2018-09-10 13:03:27 -070049*** Test Cases ***
You Wang9f7eb392018-10-09 17:49:34 -070050ONU in Correct Location
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -070051 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
You Wang9f7eb392018-10-09 17:49:34 -070052 ... Configure whitelist with correct ONU location
53 ... Validate successful authentication/DHCP/E2E ping
Kailash6d9f66d2019-07-30 18:38:49 -070054 [Setup] Clean Up Linux
Kailash Khalasi92061c12018-10-29 11:52:39 -070055 [Tags] test1
Kailashf49efeb2019-05-23 12:12:41 -070056 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
57 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
58 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
59 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
60 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
61 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
62 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang0c2b3662018-10-01 16:56:17 -070063
You Wang9f7eb392018-10-09 17:49:34 -070064ONU in Correct Location -> Remove ONU from Whitelist -> Add ONU to Whitelist
You Wang0c2b3662018-10-01 16:56:17 -070065 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
You Wang9f7eb392018-10-09 17:49:34 -070066 ... Configure whitelist with correct ONU location
67 ... Validate successful authentication/DHCP/E2E ping
68 ... Remove ONU from whitelist
69 ... Validate failed authentication/DHCP/E2E ping
70 ... Add ONU to whitelist
71 ... Validate successful authentication/DHCP/E2E ping
Kailash Khalasi92061c12018-10-29 11:52:39 -070072 [Tags] test2
Kailashf49efeb2019-05-23 12:12:41 -070073 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
74 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
75 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
76 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
77 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
78 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
79 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -070080 Clean Up Linux
81 Remove Whitelist
Kailashf49efeb2019-05-23 12:12:41 -070082 Wait Until Keyword Succeeds 60s 2s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
83 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
84 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
85 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
86 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -070087 Clean Up Linux
88 Create Whitelist
Kailashf49efeb2019-05-23 12:12:41 -070089 Wait Until Keyword Succeeds 120s 5s Validate ONU States ACTIVE ENABLED ${src0['onu']}
90 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
91 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
92 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
93 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
94 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
95 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -070096
97ONU in Correct Location -> ONU in Wrong Location -> ONU in Correct Location
98 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
99 ... Configure whitelist with correct ONU location
100 ... Validate successful authentication/DHCP/E2E ping
101 ... Update whitelist with wrong ONU location
102 ... Validate failed authentication/DHCP/E2E ping
103 ... Update whitelist with correct ONU location
104 ... Validate successful authentication/DHCP/E2E ping
Kailash Khalasi92061c12018-10-29 11:52:39 -0700105 [Tags] test3
Kailashf49efeb2019-05-23 12:12:41 -0700106 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
107 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
108 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
109 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
110 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
111 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
112 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700113 Clean Up Linux
114 Update Whitelist with Wrong Location
Kailashf49efeb2019-05-23 12:12:41 -0700115 Wait Until Keyword Succeeds 60s 2s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
116 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
117 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
118 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
119 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700120 Clean Up Linux
121 Update Whitelist with Correct Location
Kailashf49efeb2019-05-23 12:12:41 -0700122 Wait Until Keyword Succeeds 120s 5s Validate ONU States ACTIVE ENABLED ${src0['onu']}
123 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
124 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
125 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
126 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
127 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
128 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700129
130ONU in Correct Location -> Remove Subscriber -> Create Subscriber
131 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
132 ... Configure whitelist with correct ONU location
133 ... Validate successful authentication/DHCP/E2E ping
134 ... Remove subscriber model
You Wang070302c2018-10-17 15:42:24 -0700135 ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping
You Wang9f7eb392018-10-09 17:49:34 -0700136 ... Recreate subscriber model
137 ... Validate successful authentication/DHCP/E2E ping
Kailash Khalasi92061c12018-10-29 11:52:39 -0700138 [Tags] test4
Kailashf49efeb2019-05-23 12:12:41 -0700139 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
140 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
141 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
142 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
143 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
144 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
145 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700146 Clean Up Linux
147 Remove Subscriber
You Wang070302c2018-10-17 15:42:24 -0700148 Sleep 10s
Kailashf49efeb2019-05-23 12:12:41 -0700149 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
150 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700151 Clean Up Linux
152 Create Subscriber
Kailashf49efeb2019-05-23 12:12:41 -0700153 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']}
154 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
155 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
156 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
157 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700158
159ONU in Correct Location (Skip Subscriber Provisioning) -> Provision Subscriber
160 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
161 ... Configure whitelist with correct ONU location and skip provisioning subscriber
You Wang5be816a2018-10-11 16:45:31 -0700162 ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping
You Wang9f7eb392018-10-09 17:49:34 -0700163 ... Provision subscriber
164 ... Validate successful authentication/DHCP/E2E ping
165 [Setup] None
Kailash Khalasi92061c12018-10-29 11:52:39 -0700166 [Tags] test5
You Wang9f7eb392018-10-09 17:49:34 -0700167 Create Whitelist
168 Create VOLT
Kailashf49efeb2019-05-23 12:12:41 -0700169 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
170 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
171 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
172 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
173 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700174 Clean Up Linux
175 Create Subscriber
Kailashf49efeb2019-05-23 12:12:41 -0700176 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']}
177 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
178 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
179 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
180 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700181
182ONU in Correct Location (Skip Authentication)
183 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
184 ... Configure whitelist with correct ONU location and skip RG authentication
185 ... Validate failed authentication/DHCP/E2E ping
Kailash Khalasi92061c12018-10-29 11:52:39 -0700186 [Tags] test6
Kailashf49efeb2019-05-23 12:12:41 -0700187 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
188 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
189 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
190 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang0c2b3662018-10-01 16:56:17 -0700191
You Wang9f7eb392018-10-09 17:49:34 -0700192ONU not in Whitelist
You Wang0c2b3662018-10-01 16:56:17 -0700193 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
You Wang9f7eb392018-10-09 17:49:34 -0700194 ... Skip whitelist configuration for ONU
195 ... Validate failed authentication/DHCP/E2E ping
You Wang0c2b3662018-10-01 16:56:17 -0700196 [Setup] None
Kailash Khalasi92061c12018-10-29 11:52:39 -0700197 [Tags] test7
You Wang9f7eb392018-10-09 17:49:34 -0700198 Create Subscriber
199 Create VOLT
Kailashf49efeb2019-05-23 12:12:41 -0700200 Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
201 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
202 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
203 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
204 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
205 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
206 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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 Vemuriff825322018-09-07 14:00:04 -0700207
You Wang9f7eb392018-10-09 17:49:34 -0700208ONU not in Whitelist (Skip Subscriber Provisioning) -> Add ONU to Whitelist -> Provision Subscriber
209 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
210 ... Skip whitelist configuration for ONU and subscriber provisioning
You Wang5be816a2018-10-11 16:45:31 -0700211 ... Validate successful authentication but failed DHCP/E2E ping
You Wang9f7eb392018-10-09 17:49:34 -0700212 ... Configure whitelist with correct ONU location
You Wang5be816a2018-10-11 16:45:31 -0700213 ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping
You Wang9f7eb392018-10-09 17:49:34 -0700214 ... Provision subscriber
215 ... Validate successful authentication/DHCP/E2E ping
216 [Setup] None
Kailash Khalasi92061c12018-10-29 11:52:39 -0700217 [Tags] test8
You Wang9f7eb392018-10-09 17:49:34 -0700218 Create VOLT
Kailashf49efeb2019-05-23 12:12:41 -0700219 Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
220 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
221 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
222 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
223 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700224 Clean Up Linux
225 Create Whitelist
Kailashf49efeb2019-05-23 12:12:41 -0700226 Wait Until Keyword Succeeds 60s 2s Validate ONU States ACTIVE ENABLED ${src0['onu']}
227 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
228 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
229 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
230 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700231 Clean Up Linux
232 Create Subscriber
Kailashf49efeb2019-05-23 12:12:41 -0700233 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']}
234 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
235 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
236 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
237 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700238
239ONU in Wrong Location
240 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
241 ... Configure whitelist with wrong ONU location
242 ... Validate failed authentication/DHCP/E2E ping
Kailash Khalasi92061c12018-10-29 11:52:39 -0700243 [Tags] test9
You Wang9f7eb392018-10-09 17:49:34 -0700244 Update Whitelist with Wrong Location
Kailashf49efeb2019-05-23 12:12:41 -0700245 Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
246 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
247 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
248 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
249 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
250 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
251 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700252
You Wang5be816a2018-10-11 16:45:31 -0700253ONU in Wrong Location (Skip Subscriber Provisioning) -> ONU in Correct Location -> Provision Subscriber
You Wang9f7eb392018-10-09 17:49:34 -0700254 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
255 ... Configure whitelist with wrong ONU location and skip subscriber provisioning
256 ... Validate failed authentication/DHCP/E2E ping
257 ... Configure whitelist with correct ONU location
You Wang5be816a2018-10-11 16:45:31 -0700258 ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping
You Wang9f7eb392018-10-09 17:49:34 -0700259 ... Provision subscriber
260 ... Validate successful authentication/DHCP/E2E ping
261 [Setup] None
Kailash Khalasi92061c12018-10-29 11:52:39 -0700262 [Tags] test10
You Wang9f7eb392018-10-09 17:49:34 -0700263 Create VOLT
264 Create Whitelist
265 Update Whitelist with Wrong Location
Kailashf49efeb2019-05-23 12:12:41 -0700266 Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
267 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
268 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
269 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
270 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700271 Clean Up Linux
272 Update Whitelist with Correct Location
Kailashf49efeb2019-05-23 12:12:41 -0700273 Wait Until Keyword Succeeds 60s 2s Validate ONU States ACTIVE ENABLED ${src0['onu']}
274 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
275 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
276 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
277 Validate DHCP and Ping False False ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700278 Clean Up Linux
279 Create Subscriber
Kailashf49efeb2019-05-23 12:12:41 -0700280 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']}
281 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
282 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
283 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
284 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}
You Wang9f7eb392018-10-09 17:49:34 -0700285
Suchitra Vemurif79ba092019-04-29 19:27:42 -0700286ONU in whitelist -> Admin disable ONU
287 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
288 ... Configure whitelist with correct ONU location
289 ... Validate successful authentication/DHCP/E2E ping
290 ... Perform admin disable on the ONU
291 ... Verify that pings are not successful
292 ... Perform admin enable on the ONU
293 ... Validate authentication/DHCP/E2E ping
294 [Tags] test11
Kailashf49efeb2019-05-23 12:12:41 -0700295 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
296 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
297 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
298 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
299 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
300 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
301 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}a
Suchitra Vemurif79ba092019-04-29 19:27:42 -0700302 Update ONU AdminState DISABLED
Kailashf49efeb2019-05-23 12:12:41 -0700303 Wait Until Keyword Succeeds 60s 2s Check Ping False ${dst0['dp_iface_ip_qinq']} ${src0['dp_iface_name']} ${src0['ip']} ${src0['user']} ${src0['pass']}
Suchitra Vemurif79ba092019-04-29 19:27:42 -0700304 Update ONU AdminState ENABLED
Kailashf49efeb2019-05-23 12:12:41 -0700305 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
306 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
307 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
308 Validate DHCP and Ping True True ${src0['dp_iface_name']} ${s_tag} ${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']}a
Suchitra Vemurif79ba092019-04-29 19:27:42 -0700309
Suchitra Vemuriff825322018-09-07 14:00:04 -0700310*** Keywords ***
You Wang9f7eb392018-10-09 17:49:34 -0700311Setup Suite
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -0700312 ${auth} = Create List ${XOS_USER} ${XOS_PASSWD}
313 ${HEADERS} Create Dictionary Content-Type=application/json
314 Create Session ${server_ip} http://${server_ip}:${server_port} auth=${AUTH} headers=${HEADERS}
315 ${att_workflow_service_id}= Get Service Owner Id ${ATT_SERVICE}
316 ${volt_service_id}= Get Service Owner Id ${VOLT_SERVICE}
Kailash Khalasi30a6a392018-09-10 14:32:39 -0700317 ${AttWhiteListList}= utils.jsonToList ${WHITELIST_PATHFILE} AttWhiteListInfo
You Wang9f7eb392018-10-09 17:49:34 -0700318 Set Suite Variable ${AttWhiteListList}
Suchitra Vemuriff825322018-09-07 14:00:04 -0700319 ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -0700320 ${AttWhiteListDict}= utils.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id}
You Wang9f7eb392018-10-09 17:49:34 -0700321 ${onu_location}= Get From Dictionary ${AttWhiteListDict} pon_port_id
322 Set Global Variable ${onu_location}
Kailash Khalasi30a6a392018-09-10 14:32:39 -0700323 ${SubscriberList}= utils.jsonToList ${SUBSCRIBER_PATHFILE} SubscriberInfo
You Wang9f7eb392018-10-09 17:49:34 -0700324 Set Global Variable ${SubscriberList}
Kailash Khalasi6dab16e2018-09-17 20:24:08 -0700325 ${SubscriberDict}= utils.listToDict ${SubscriberList} 0
326 ${s_tag}= utils.getFieldValueFromDict ${SubscriberDict} s_tag
327 ${c_tag}= utils.getFieldValueFromDict ${SubscriberDict} c_tag
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -0700328 ${VoltDeviceList}= utils.jsonToList ${VOLT_DEVICE_PATHFILE} VOLTDeviceInfo
Kailash Khalasi4e1ce762018-12-18 20:29:29 -0800329 ${VoltDeviceDict}= utils.setFieldValueInDict ${VoltDeviceList[0]} volt_service_id ${volt_service_id}
You Wang9f7eb392018-10-09 17:49:34 -0700330 Set Global Variable ${VoltDeviceList}
Kailash Khalasi4e1ce762018-12-18 20:29:29 -0800331 Set Global Variable ${VoltDeviceDict}
Kailash Khalasi6dab16e2018-09-17 20:24:08 -0700332 Set Suite Variable ${s_tag}
333 Set Suite Variable ${c_tag}
You Wang59ded6c2018-10-05 17:43:44 -0700334 Set Global Variable ${export_kubeconfig} export KUBECONFIG=${KUBERNETES_CONF}
Suchitra Vemurie91852a2019-05-28 17:29:53 -0700335 ${olt_ip}= Evaluate ${olts}[0].get("ip")
336 ${olt_user}= Evaluate ${olts}[0].get("user")
337 ${olt_pass}= Evaluate ${olts}[0].get("pass")
338 ${k8s_node_ip}= Evaluate ${nodes}[0].get("ip")
339 ${k8s_node_user}= Evaluate ${nodes}[0].get("user")
340 ${k8s_node_pass}= Evaluate ${nodes}[0].get("pass")
Suchitra Vemuri9d5b30d2019-06-10 16:37:15 -0700341 Set Suite Variable ${olt_ip}
342 Set Suite Variable ${olt_user}
343 Set Suite Variable ${olt_pass}
344 Set Suite Variable ${k8s_node_ip}
345 Set Suite Variable ${k8s_node_user}
346 Set Suite Variable ${k8s_node_pass}
You Wang8fff6a02018-10-15 16:26:54 -0700347 @{container_list}= Create List
Kailash Khalasidd9136a2018-10-18 11:16:18 -0700348 Append To List ${container_list} att-workflow-att-workflow-driver
Kailash Khalasie59ba702018-12-18 19:36:03 -0800349 Append To List ${container_list} seba-services-volt
350 Append To List ${container_list} seba-services-rcord
Suchitra Vemuri52b4ef32019-03-13 15:01:40 -0700351 Append To List ${container_list} onos
Kailash Khalasie59ba702018-12-18 19:36:03 -0800352 Append To List ${container_list} seba-services-fabric-crossconnect
You Wangf573e402018-10-17 14:01:59 -0700353 Append To List ${container_list} xos-core
354 Append To List ${container_list} vcore
You Wang8fff6a02018-10-15 16:26:54 -0700355 Set Suite Variable ${container_list}
Kailashf49efeb2019-05-23 12:12:41 -0700356 Set Deployment Config Variables
You Wang8fff6a02018-10-15 16:26:54 -0700357 ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass}
358 Set Suite Variable ${datetime}
Suchitra Vemuriff825322018-09-07 14:00:04 -0700359
You Wang9f7eb392018-10-09 17:49:34 -0700360Teardown Suite
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -0700361 [Documentation] Performs any additional cleanup required
362 Log Suite Teardown cleanup
363 Delete All Sessions
364
You Wang9f7eb392018-10-09 17:49:34 -0700365Setup Test
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -0700366 [Documentation] Re-create Subscriber, whitelist, and olt-device models to test
367 Log Re-creating objects
You Wang8fff6a02018-10-15 16:26:54 -0700368 ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass}
Kailashf88e2082019-03-14 11:22:29 -0700369 Set Suite Variable ${datetime}
You Wang9f7eb392018-10-09 17:49:34 -0700370 Create Whitelist
371 Create Subscriber
372 Create VOLT
Suchitra Vemurif7b5d442019-02-27 15:17:03 -0800373 Wait Until Keyword Succeeds 200s 15s Validate OLT States ACTIVE ENABLED ${olt_ip}
You Wang9f7eb392018-10-09 17:49:34 -0700374
You Wang9f7eb392018-10-09 17:49:34 -0700375Teardown Test
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -0700376 [Documentation] Delete xos objects, kills processes and cleans up interfaces on src+dst servers
Kailash266cc172019-03-05 14:32:10 -0800377 Get VOLTHA Status
378 Get ONOS Status
You Wang9f7eb392018-10-09 17:49:34 -0700379 Clean Up Linux
380 Clean Up XOS
You Wang8fff6a02018-10-15 16:26:54 -0700381 Log Kubernetes Containers Logs Since Time ${datetime} ${container_list}
You Wang9f7eb392018-10-09 17:49:34 -0700382
383Clean Up Linux
384 [Documentation] Kill processes and clean up interfaces on src+dst servers
Kailashf49efeb2019-05-23 12:12:41 -0700385 Run Keyword And Ignore Error Kill Linux Process [w]pa_supplicant ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
386 Run Keyword And Ignore Error Kill Linux Process [d]hclient ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
387 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']}
388 Delete IP Addresses from Interface on Remote Host ${src0['dp_iface_name']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
389 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']}
You Wang9f7eb392018-10-09 17:49:34 -0700390
391Clean Up XOS
392 [Documentation] Clean up all XOS objects and reinstall voltha after OLT reboots
You Wang88e1d852018-10-05 11:44:19 -0700393 Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER}
You Wang88e1d852018-10-05 11:44:19 -0700394 Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST}
Suchitra Vemuri4d81bf12018-11-28 12:32:58 -0800395 Sleep 20s
Kailashefc1e0d2018-11-20 13:49:06 -0800396 Wait Until Keyword Succeeds 30s 2s Validate Subscriber Count 0
Kailashd1587112018-11-20 11:55:16 -0800397 Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_DEVICE}
Kailashefc1e0d2018-11-20 13:49:06 -0800398 Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_SERVICEINSTANCES}
You Wang0c2b3662018-10-01 16:56:17 -0700399 Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability False ${olt_ip}
400 Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability True ${olt_ip}
401 Wait Until Keyword Succeeds 120s 10s Openolt is Up ${olt_ip} ${olt_user} ${olt_pass}
Kailash Khalasia0810ce2018-09-10 13:03:27 -0700402
You Wang5be816a2018-10-11 16:45:31 -0700403Create Whitelist
404 ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0
405 CORD Post ${ATT_WHITELIST} ${AttWhiteListDict}
406
You Wang9f7eb392018-10-09 17:49:34 -0700407Remove Whitelist
Kailashf49efeb2019-05-23 12:12:41 -0700408 ${whitelist_id}= Retrieve Whitelist Entry ${src0['onu']}
You Wang9f7eb392018-10-09 17:49:34 -0700409 CORD Delete ${ATT_WHITELIST} ${whitelist_id}
410
411Update Whitelist with Wrong Location
Kailashf49efeb2019-05-23 12:12:41 -0700412 ${whitelist_id}= Retrieve Whitelist Entry ${src0['onu']}
You Wang9f7eb392018-10-09 17:49:34 -0700413 CORD Put ${ATT_WHITELIST} {"pon_port_id": 55 } ${whitelist_id}
414
415Update Whitelist with Correct Location
Kailashf49efeb2019-05-23 12:12:41 -0700416 ${whitelist_id}= Retrieve Whitelist Entry ${src0['onu']}
You Wang9f7eb392018-10-09 17:49:34 -0700417 CORD Put ${ATT_WHITELIST} {"pon_port_id": ${onu_location} } ${whitelist_id}
418
You Wang5be816a2018-10-11 16:45:31 -0700419Create Subscriber
420 ${SubscriberDict}= utils.listToDict ${SubscriberList} 0
421 Wait Until Keyword Succeeds 120s 15s CORD Post ${VOLT_SUBSCRIBER} ${SubscriberDict}
Kailash Khalasia0810ce2018-09-10 13:03:27 -0700422
You Wangf573e402018-10-17 14:01:59 -0700423Remove Subscriber
424 ${subscriber_id}= Retrieve Subscriber ${c_tag}
425 CORD Delete ${VOLT_SUBSCRIBER} ${subscriber_id}
426
You Wang5be816a2018-10-11 16:45:31 -0700427Create VOLT
Suchitra Vemuria63b6de2019-02-04 18:55:33 -0800428 CORD Post ${VOLT_DEVICE} ${VoltDeviceDict}
Suchitra Vemurif79ba092019-04-29 19:27:42 -0700429
430Update ONU AdminState
431 [Arguments] ${new_admin_state}
Kailashf49efeb2019-05-23 12:12:41 -0700432 ${onudevice_id}= Retrieve ONU Device ${src0['onu']}
Suchitra Vemuric7c46bd2019-06-10 22:40:03 -0700433 CORD Put ${VOLT_DEVICE} {"admin_state": ${new_admin_state} } ${onudevice_id}
Kailashf49efeb2019-05-23 12:12:41 -0700434