blob: 092875e4b997829a0b2b8e11cc1750f328a633cc [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
Zack Williams821c5022020-01-15 15:11:46 -070026Library CORDRobot
27Library ImportResource resources=CORDRobot
Andy Bavierde62ba72020-02-27 14:12:30 -070028Variables ../../Properties/RestApiProperties.py
Suchitra Vemuriff825322018-09-07 14:00:04 -070029
30*** Variables ***
You Wang59ded6c2018-10-05 17:43:44 -070031${POD_NAME} flex-pod1-olt
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
Suchitra Vemuriff825322018-09-07 14:00:04 -070040
Kailash Khalasia0810ce2018-09-10 13:03:27 -070041*** Test Cases ***
You Wang9f7eb392018-10-09 17:49:34 -070042ONU in Correct Location
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -070043 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
You Wang9f7eb392018-10-09 17:49:34 -070044 ... Configure whitelist with correct ONU location
45 ... Validate successful authentication/DHCP/E2E ping
Kailash6d9f66d2019-07-30 18:38:49 -070046 [Setup] Clean Up Linux
Kailash Khalasi92061c12018-10-29 11:52:39 -070047 [Tags] test1
Kailashf49efeb2019-05-23 12:12:41 -070048 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
49 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
50 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
51 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
52 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
53 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
54 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 -070055
You Wang9f7eb392018-10-09 17:49:34 -070056ONU in Correct Location -> Remove ONU from Whitelist -> Add ONU to Whitelist
You Wang0c2b3662018-10-01 16:56:17 -070057 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
You Wang9f7eb392018-10-09 17:49:34 -070058 ... Configure whitelist with correct ONU location
59 ... Validate successful authentication/DHCP/E2E ping
60 ... Remove ONU from whitelist
61 ... Validate failed authentication/DHCP/E2E ping
62 ... Add ONU to whitelist
63 ... Validate successful authentication/DHCP/E2E ping
Kailash Khalasi92061c12018-10-29 11:52:39 -070064 [Tags] test2
Kailashf49efeb2019-05-23 12:12:41 -070065 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
66 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
67 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
68 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
69 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
70 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
71 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 -070072 Clean Up Linux
73 Remove Whitelist
Kailashf49efeb2019-05-23 12:12:41 -070074 Wait Until Keyword Succeeds 60s 2s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
75 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
76 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
77 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
78 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 -070079 Clean Up Linux
80 Create Whitelist
Kailashf49efeb2019-05-23 12:12:41 -070081 Wait Until Keyword Succeeds 120s 5s Validate ONU States ACTIVE ENABLED ${src0['onu']}
82 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
83 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
84 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
85 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
86 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
87 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 -070088
89ONU in Correct Location -> ONU in Wrong Location -> ONU in Correct Location
90 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
91 ... Configure whitelist with correct ONU location
92 ... Validate successful authentication/DHCP/E2E ping
93 ... Update whitelist with wrong ONU location
94 ... Validate failed authentication/DHCP/E2E ping
95 ... Update whitelist with correct ONU location
96 ... Validate successful authentication/DHCP/E2E ping
Kailash Khalasi92061c12018-10-29 11:52:39 -070097 [Tags] test3
Kailashf49efeb2019-05-23 12:12:41 -070098 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
99 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
100 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
101 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
102 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
103 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
104 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 -0700105 Clean Up Linux
106 Update Whitelist with Wrong Location
Kailashf49efeb2019-05-23 12:12:41 -0700107 Wait Until Keyword Succeeds 60s 2s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
108 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
109 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
110 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
111 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 -0700112 Clean Up Linux
113 Update Whitelist with Correct Location
Kailashf49efeb2019-05-23 12:12:41 -0700114 Wait Until Keyword Succeeds 120s 5s Validate ONU States ACTIVE ENABLED ${src0['onu']}
115 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
116 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
117 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
118 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
119 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
120 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 -0700121
122ONU in Correct Location -> Remove Subscriber -> Create Subscriber
123 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
124 ... Configure whitelist with correct ONU location
125 ... Validate successful authentication/DHCP/E2E ping
126 ... Remove subscriber model
You Wang070302c2018-10-17 15:42:24 -0700127 ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping
You Wang9f7eb392018-10-09 17:49:34 -0700128 ... Recreate subscriber model
129 ... Validate successful authentication/DHCP/E2E ping
Kailash Khalasi92061c12018-10-29 11:52:39 -0700130 [Tags] test4
Kailashf49efeb2019-05-23 12:12:41 -0700131 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
132 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
133 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
134 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
135 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
136 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
137 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 -0700138 Clean Up Linux
139 Remove Subscriber
You Wang070302c2018-10-17 15:42:24 -0700140 Sleep 10s
Kailashf49efeb2019-05-23 12:12:41 -0700141 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
142 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 -0700143 Clean Up Linux
144 Create Subscriber
Kailashf49efeb2019-05-23 12:12:41 -0700145 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']}
146 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
147 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
148 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
149 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 -0700150
151ONU in Correct Location (Skip Subscriber Provisioning) -> Provision Subscriber
152 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
153 ... Configure whitelist with correct ONU location and skip provisioning subscriber
You Wang5be816a2018-10-11 16:45:31 -0700154 ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping
You Wang9f7eb392018-10-09 17:49:34 -0700155 ... Provision subscriber
156 ... Validate successful authentication/DHCP/E2E ping
157 [Setup] None
Kailash Khalasi92061c12018-10-29 11:52:39 -0700158 [Tags] test5
You Wang9f7eb392018-10-09 17:49:34 -0700159 Create Whitelist
160 Create VOLT
Kailashf49efeb2019-05-23 12:12:41 -0700161 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
162 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
163 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
164 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
165 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 -0700166 Clean Up Linux
167 Create Subscriber
Kailashf49efeb2019-05-23 12:12:41 -0700168 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']}
169 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
170 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
171 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
172 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 -0700173
174ONU in Correct Location (Skip Authentication)
175 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
176 ... Configure whitelist with correct ONU location and skip RG authentication
177 ... Validate failed authentication/DHCP/E2E ping
Kailash Khalasi92061c12018-10-29 11:52:39 -0700178 [Tags] test6
Kailashf49efeb2019-05-23 12:12:41 -0700179 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
180 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
181 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
182 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 -0700183
You Wang9f7eb392018-10-09 17:49:34 -0700184ONU not in Whitelist
You Wang0c2b3662018-10-01 16:56:17 -0700185 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
You Wang9f7eb392018-10-09 17:49:34 -0700186 ... Skip whitelist configuration for ONU
187 ... Validate failed authentication/DHCP/E2E ping
You Wang0c2b3662018-10-01 16:56:17 -0700188 [Setup] None
Kailash Khalasi92061c12018-10-29 11:52:39 -0700189 [Tags] test7
You Wang9f7eb392018-10-09 17:49:34 -0700190 Create Subscriber
191 Create VOLT
Kailashf49efeb2019-05-23 12:12:41 -0700192 Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
193 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
194 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
195 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
196 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
197 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
198 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 -0700199
You Wang9f7eb392018-10-09 17:49:34 -0700200ONU not in Whitelist (Skip Subscriber Provisioning) -> Add ONU to Whitelist -> Provision Subscriber
201 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
202 ... Skip whitelist configuration for ONU and subscriber provisioning
You Wang5be816a2018-10-11 16:45:31 -0700203 ... Validate successful authentication but failed DHCP/E2E ping
You Wang9f7eb392018-10-09 17:49:34 -0700204 ... Configure whitelist with correct ONU location
You Wang5be816a2018-10-11 16:45:31 -0700205 ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping
You Wang9f7eb392018-10-09 17:49:34 -0700206 ... Provision subscriber
207 ... Validate successful authentication/DHCP/E2E ping
208 [Setup] None
Kailash Khalasi92061c12018-10-29 11:52:39 -0700209 [Tags] test8
You Wang9f7eb392018-10-09 17:49:34 -0700210 Create VOLT
Kailashf49efeb2019-05-23 12:12:41 -0700211 Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
212 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
213 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
214 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
215 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 -0700216 Clean Up Linux
217 Create Whitelist
Kailashf49efeb2019-05-23 12:12:41 -0700218 Wait Until Keyword Succeeds 60s 2s Validate ONU States ACTIVE ENABLED ${src0['onu']}
219 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
220 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
221 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
222 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 -0700223 Clean Up Linux
224 Create Subscriber
Kailashf49efeb2019-05-23 12:12:41 -0700225 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']}
226 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
227 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
228 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
229 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 -0700230
231ONU in Wrong Location
232 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
233 ... Configure whitelist with wrong ONU location
234 ... Validate failed authentication/DHCP/E2E ping
Kailash Khalasi92061c12018-10-29 11:52:39 -0700235 [Tags] test9
You Wang9f7eb392018-10-09 17:49:34 -0700236 Update Whitelist with Wrong Location
Kailashf49efeb2019-05-23 12:12:41 -0700237 Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
238 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
239 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
240 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
241 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
242 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
243 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 -0700244
You Wang5be816a2018-10-11 16:45:31 -0700245ONU in Wrong Location (Skip Subscriber Provisioning) -> ONU in Correct Location -> Provision Subscriber
You Wang9f7eb392018-10-09 17:49:34 -0700246 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
247 ... Configure whitelist with wrong ONU location and skip subscriber provisioning
248 ... Validate failed authentication/DHCP/E2E ping
249 ... Configure whitelist with correct ONU location
You Wang5be816a2018-10-11 16:45:31 -0700250 ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping
You Wang9f7eb392018-10-09 17:49:34 -0700251 ... Provision subscriber
252 ... Validate successful authentication/DHCP/E2E ping
253 [Setup] None
Kailash Khalasi92061c12018-10-29 11:52:39 -0700254 [Tags] test10
You Wang9f7eb392018-10-09 17:49:34 -0700255 Create VOLT
256 Create Whitelist
257 Update Whitelist with Wrong Location
Kailashf49efeb2019-05-23 12:12:41 -0700258 Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${src0['onu']}
259 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
260 Validate Authentication False ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
261 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${src0['onu']}
262 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 -0700263 Clean Up Linux
264 Update Whitelist with Correct Location
Kailashf49efeb2019-05-23 12:12:41 -0700265 Wait Until Keyword Succeeds 60s 2s Validate ONU States ACTIVE ENABLED ${src0['onu']}
266 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
267 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
268 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
269 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 -0700270 Clean Up Linux
271 Create Subscriber
Kailashf49efeb2019-05-23 12:12:41 -0700272 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${src0['onu']}
273 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
274 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
275 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
276 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 -0700277
Suchitra Vemurif79ba092019-04-29 19:27:42 -0700278ONU in whitelist -> Admin disable ONU
279 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
280 ... Configure whitelist with correct ONU location
281 ... Validate successful authentication/DHCP/E2E ping
282 ... Perform admin disable on the ONU
283 ... Verify that pings are not successful
284 ... Perform admin enable on the ONU
285 ... Validate authentication/DHCP/E2E ping
286 [Tags] test11
Kailashf49efeb2019-05-23 12:12:41 -0700287 Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${src0['onu']}
288 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${src0['onu']}
289 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${src0['onu']}
290 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
291 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
292 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
293 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 -0700294 Update ONU AdminState DISABLED
Kailashf49efeb2019-05-23 12:12:41 -0700295 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 -0700296 Update ONU AdminState ENABLED
Kailashf49efeb2019-05-23 12:12:41 -0700297 Validate Authentication True ${src0['dp_iface_name']} wpa_supplicant.conf ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
298 Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${src0['onu']}
299 Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${src0['onu']}
300 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 -0700301
Suchitra Vemuriff825322018-09-07 14:00:04 -0700302*** Keywords ***
You Wang9f7eb392018-10-09 17:49:34 -0700303Setup Suite
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -0700304 ${auth} = Create List ${XOS_USER} ${XOS_PASSWD}
305 ${HEADERS} Create Dictionary Content-Type=application/json
306 Create Session ${server_ip} http://${server_ip}:${server_port} auth=${AUTH} headers=${HEADERS}
307 ${att_workflow_service_id}= Get Service Owner Id ${ATT_SERVICE}
308 ${volt_service_id}= Get Service Owner Id ${VOLT_SERVICE}
Zack Williams821c5022020-01-15 15:11:46 -0700309 ${AttWhiteListList}= CORDRobot.jsonToList ${WHITELIST_PATHFILE} AttWhiteListInfo
You Wang9f7eb392018-10-09 17:49:34 -0700310 Set Suite Variable ${AttWhiteListList}
Zack Williams821c5022020-01-15 15:11:46 -0700311 ${AttWhiteListDict}= CORDRobot.listToDict ${AttWhiteListList} 0
312 ${AttWhiteListDict}= CORDRobot.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id}
You Wang9f7eb392018-10-09 17:49:34 -0700313 ${onu_location}= Get From Dictionary ${AttWhiteListDict} pon_port_id
314 Set Global Variable ${onu_location}
Zack Williams821c5022020-01-15 15:11:46 -0700315 ${SubscriberList}= CORDRobot.jsonToList ${SUBSCRIBER_PATHFILE} SubscriberInfo
You Wang9f7eb392018-10-09 17:49:34 -0700316 Set Global Variable ${SubscriberList}
Zack Williams821c5022020-01-15 15:11:46 -0700317 ${SubscriberDict}= CORDRobot.listToDict ${SubscriberList} 0
318 ${s_tag}= CORDRobot.getFieldValueFromDict ${SubscriberDict} s_tag
319 ${c_tag}= CORDRobot.getFieldValueFromDict ${SubscriberDict} c_tag
320 ${VoltDeviceList}= CORDRobot.jsonToList ${VOLT_DEVICE_PATHFILE} VOLTDeviceInfo
321 ${VoltDeviceDict}= CORDRobot.setFieldValueInDict ${VoltDeviceList[0]} volt_service_id ${volt_service_id}
You Wang9f7eb392018-10-09 17:49:34 -0700322 Set Global Variable ${VoltDeviceList}
Kailash Khalasi4e1ce762018-12-18 20:29:29 -0800323 Set Global Variable ${VoltDeviceDict}
Kailash Khalasi6dab16e2018-09-17 20:24:08 -0700324 Set Suite Variable ${s_tag}
325 Set Suite Variable ${c_tag}
You Wang59ded6c2018-10-05 17:43:44 -0700326 Set Global Variable ${export_kubeconfig} export KUBECONFIG=${KUBERNETES_CONF}
Suchitra Vemurie91852a2019-05-28 17:29:53 -0700327 ${olt_ip}= Evaluate ${olts}[0].get("ip")
328 ${olt_user}= Evaluate ${olts}[0].get("user")
329 ${olt_pass}= Evaluate ${olts}[0].get("pass")
330 ${k8s_node_ip}= Evaluate ${nodes}[0].get("ip")
331 ${k8s_node_user}= Evaluate ${nodes}[0].get("user")
332 ${k8s_node_pass}= Evaluate ${nodes}[0].get("pass")
Suchitra Vemuri9d5b30d2019-06-10 16:37:15 -0700333 Set Suite Variable ${olt_ip}
334 Set Suite Variable ${olt_user}
335 Set Suite Variable ${olt_pass}
336 Set Suite Variable ${k8s_node_ip}
337 Set Suite Variable ${k8s_node_user}
338 Set Suite Variable ${k8s_node_pass}
You Wang8fff6a02018-10-15 16:26:54 -0700339 @{container_list}= Create List
Kailash Khalasidd9136a2018-10-18 11:16:18 -0700340 Append To List ${container_list} att-workflow-att-workflow-driver
Kailash Khalasie59ba702018-12-18 19:36:03 -0800341 Append To List ${container_list} seba-services-volt
342 Append To List ${container_list} seba-services-rcord
Suchitra Vemuri52b4ef32019-03-13 15:01:40 -0700343 Append To List ${container_list} onos
Kailash Khalasie59ba702018-12-18 19:36:03 -0800344 Append To List ${container_list} seba-services-fabric-crossconnect
You Wangf573e402018-10-17 14:01:59 -0700345 Append To List ${container_list} xos-core
346 Append To List ${container_list} vcore
You Wang8fff6a02018-10-15 16:26:54 -0700347 Set Suite Variable ${container_list}
Kailashf49efeb2019-05-23 12:12:41 -0700348 Set Deployment Config Variables
You Wang8fff6a02018-10-15 16:26:54 -0700349 ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass}
350 Set Suite Variable ${datetime}
Suchitra Vemuriff825322018-09-07 14:00:04 -0700351
You Wang9f7eb392018-10-09 17:49:34 -0700352Teardown Suite
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -0700353 [Documentation] Performs any additional cleanup required
354 Log Suite Teardown cleanup
355 Delete All Sessions
356
You Wang9f7eb392018-10-09 17:49:34 -0700357Setup Test
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -0700358 [Documentation] Re-create Subscriber, whitelist, and olt-device models to test
359 Log Re-creating objects
You Wang8fff6a02018-10-15 16:26:54 -0700360 ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass}
Kailashf88e2082019-03-14 11:22:29 -0700361 Set Suite Variable ${datetime}
You Wang9f7eb392018-10-09 17:49:34 -0700362 Create Whitelist
363 Create Subscriber
364 Create VOLT
Suchitra Vemurif7b5d442019-02-27 15:17:03 -0800365 Wait Until Keyword Succeeds 200s 15s Validate OLT States ACTIVE ENABLED ${olt_ip}
You Wang9f7eb392018-10-09 17:49:34 -0700366
You Wang9f7eb392018-10-09 17:49:34 -0700367Teardown Test
Kailash Khalasif3e0a9f2018-09-18 13:43:42 -0700368 [Documentation] Delete xos objects, kills processes and cleans up interfaces on src+dst servers
Kailash266cc172019-03-05 14:32:10 -0800369 Get VOLTHA Status
370 Get ONOS Status
You Wang9f7eb392018-10-09 17:49:34 -0700371 Clean Up Linux
372 Clean Up XOS
You Wang8fff6a02018-10-15 16:26:54 -0700373 Log Kubernetes Containers Logs Since Time ${datetime} ${container_list}
You Wang9f7eb392018-10-09 17:49:34 -0700374
375Clean Up Linux
376 [Documentation] Kill processes and clean up interfaces on src+dst servers
Kailashf49efeb2019-05-23 12:12:41 -0700377 Run Keyword And Ignore Error Kill Linux Process [w]pa_supplicant ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
378 Run Keyword And Ignore Error Kill Linux Process [d]hclient ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
379 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']}
380 Delete IP Addresses from Interface on Remote Host ${src0['dp_iface_name']} ${src0['ip']} ${src0['user']} ${src0['pass']} ${src0['container_type']} ${src0['container_name']}
381 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 -0700382
383Clean Up XOS
384 [Documentation] Clean up all XOS objects and reinstall voltha after OLT reboots
You Wang88e1d852018-10-05 11:44:19 -0700385 Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER}
You Wang88e1d852018-10-05 11:44:19 -0700386 Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST}
Suchitra Vemuri4d81bf12018-11-28 12:32:58 -0800387 Sleep 20s
Kailashefc1e0d2018-11-20 13:49:06 -0800388 Wait Until Keyword Succeeds 30s 2s Validate Subscriber Count 0
Kailashd1587112018-11-20 11:55:16 -0800389 Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_DEVICE}
Kailashefc1e0d2018-11-20 13:49:06 -0800390 Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_SERVICEINSTANCES}
You Wang0c2b3662018-10-01 16:56:17 -0700391 Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability False ${olt_ip}
392 Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability True ${olt_ip}
393 Wait Until Keyword Succeeds 120s 10s Openolt is Up ${olt_ip} ${olt_user} ${olt_pass}
Kailash Khalasia0810ce2018-09-10 13:03:27 -0700394
You Wang5be816a2018-10-11 16:45:31 -0700395Create Whitelist
Zack Williams821c5022020-01-15 15:11:46 -0700396 ${AttWhiteListDict}= CORDRobot.listToDict ${AttWhiteListList} 0
You Wang5be816a2018-10-11 16:45:31 -0700397 CORD Post ${ATT_WHITELIST} ${AttWhiteListDict}
398
You Wang9f7eb392018-10-09 17:49:34 -0700399Remove Whitelist
Kailashf49efeb2019-05-23 12:12:41 -0700400 ${whitelist_id}= Retrieve Whitelist Entry ${src0['onu']}
You Wang9f7eb392018-10-09 17:49:34 -0700401 CORD Delete ${ATT_WHITELIST} ${whitelist_id}
402
403Update Whitelist with Wrong Location
Kailashf49efeb2019-05-23 12:12:41 -0700404 ${whitelist_id}= Retrieve Whitelist Entry ${src0['onu']}
You Wang9f7eb392018-10-09 17:49:34 -0700405 CORD Put ${ATT_WHITELIST} {"pon_port_id": 55 } ${whitelist_id}
406
407Update Whitelist with Correct Location
Kailashf49efeb2019-05-23 12:12:41 -0700408 ${whitelist_id}= Retrieve Whitelist Entry ${src0['onu']}
You Wang9f7eb392018-10-09 17:49:34 -0700409 CORD Put ${ATT_WHITELIST} {"pon_port_id": ${onu_location} } ${whitelist_id}
410
You Wang5be816a2018-10-11 16:45:31 -0700411Create Subscriber
Zack Williams821c5022020-01-15 15:11:46 -0700412 ${SubscriberDict}= CORDRobot.listToDict ${SubscriberList} 0
You Wang5be816a2018-10-11 16:45:31 -0700413 Wait Until Keyword Succeeds 120s 15s CORD Post ${VOLT_SUBSCRIBER} ${SubscriberDict}
Kailash Khalasia0810ce2018-09-10 13:03:27 -0700414
You Wangf573e402018-10-17 14:01:59 -0700415Remove Subscriber
416 ${subscriber_id}= Retrieve Subscriber ${c_tag}
417 CORD Delete ${VOLT_SUBSCRIBER} ${subscriber_id}
418
You Wang5be816a2018-10-11 16:45:31 -0700419Create VOLT
Suchitra Vemuria63b6de2019-02-04 18:55:33 -0800420 CORD Post ${VOLT_DEVICE} ${VoltDeviceDict}
Suchitra Vemurif79ba092019-04-29 19:27:42 -0700421
422Update ONU AdminState
423 [Arguments] ${new_admin_state}
Kailashf49efeb2019-05-23 12:12:41 -0700424 ${onudevice_id}= Retrieve ONU Device ${src0['onu']}
Suchitra Vemuric7c46bd2019-06-10 22:40:03 -0700425 CORD Put ${VOLT_DEVICE} {"admin_state": ${new_admin_state} } ${onudevice_id}
Kailashf49efeb2019-05-23 12:12:41 -0700426