A R Karthick | 35495c3 | 2017-05-11 14:58:32 -0700 | [diff] [blame] | 1 | import os |
| 2 | import sys |
| 3 | import unittest |
A.R Karthick | 8a507cf | 2017-06-02 18:44:49 -0700 | [diff] [blame] | 4 | import time |
A R Karthick | 35495c3 | 2017-05-11 14:58:32 -0700 | [diff] [blame] | 5 | from nose.tools import * |
| 6 | from CordTestConfig import setup_module |
| 7 | from CordTestUtils import log_test |
| 8 | from VolthaCtrl import VolthaCtrl |
| 9 | |
| 10 | class voltha_exchange(unittest.TestCase): |
| 11 | |
| 12 | OLT_TYPE = 'tibit_olt' |
| 13 | OLT_MAC = '00:0c:e2:31:12:00' |
| 14 | VOLTHA_HOST = 'localhost' |
| 15 | VOLTHA_REST_PORT = 8881 |
| 16 | voltha = None |
| 17 | |
| 18 | @classmethod |
| 19 | def setUpClass(cls): |
| 20 | cls.voltha = VolthaCtrl(cls.VOLTHA_HOST, rest_port = cls.VOLTHA_REST_PORT) |
| 21 | |
A.R Karthick | 8a507cf | 2017-06-02 18:44:49 -0700 | [diff] [blame] | 22 | def test_olt_enable_disable(self): |
A R Karthick | 35495c3 | 2017-05-11 14:58:32 -0700 | [diff] [blame] | 23 | log_test.info('Enabling OLT type %s, MAC %s' %(self.OLT_TYPE, self.OLT_MAC)) |
A.R Karthick | 8a507cf | 2017-06-02 18:44:49 -0700 | [diff] [blame] | 24 | device_id, status = self.voltha.enable_device(self.OLT_TYPE, self.OLT_MAC) |
| 25 | assert_not_equal(device_id, None) |
| 26 | try: |
| 27 | assert_equal(status, True) |
| 28 | time.sleep(10) |
| 29 | finally: |
| 30 | self.voltha.disable_device(device_id, delete = True) |
Thangavelu K S | 008f38e | 2017-05-15 19:36:55 +0000 | [diff] [blame] | 31 | |
A.R Karthick | 8a507cf | 2017-06-02 18:44:49 -0700 | [diff] [blame] | 32 | def test_ponsim_enable_disable(self): |
A.R Karthick | 8b9c5f1 | 2017-05-30 17:47:08 -0700 | [diff] [blame] | 33 | log_test.info('Enabling ponsim_olt') |
| 34 | ponsim_address = '{}:50060'.format(self.VOLTHA_HOST) |
A.R Karthick | 8a507cf | 2017-06-02 18:44:49 -0700 | [diff] [blame] | 35 | device_id, status = self.voltha.enable_device('ponsim_olt', address = ponsim_address) |
| 36 | assert_not_equal(device_id, None) |
| 37 | try: |
| 38 | assert_equal(status, True) |
| 39 | time.sleep(10) |
| 40 | finally: |
| 41 | self.voltha.disable_device(device_id, delete = True) |
A.R Karthick | 8b9c5f1 | 2017-05-30 17:47:08 -0700 | [diff] [blame] | 42 | |
Thangavelu K S | 008f38e | 2017-05-15 19:36:55 +0000 | [diff] [blame] | 43 | def test_subscriber_with_voltha_for_eap_tls_authentication(self): |
| 44 | """ |
| 45 | Test Method: |
| 46 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 47 | 1. OLT and ONU is detected and validated. |
| 48 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 49 | 3. Issue auth request packets from CORD TESTER voltha test module acting as a subscriber.. |
| 50 | 4. Validate that eap tls valid auth packets are being exchanged between subscriber, onos and freeradius. |
| 51 | 5. Verify that subscriber is authenticated successfully. |
| 52 | """ |
| 53 | |
| 54 | def test_subscriber_with_voltha_for_eap_tls_authentication_failure(self): |
| 55 | """ |
| 56 | Test Method: |
| 57 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 58 | 1. OLT and ONU is detected and validated. |
| 59 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 60 | 3. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 61 | 4. Validate that eap tls without cert auth packet is being exchanged between subscriber, onos and freeradius. |
| 62 | 5. Verify that subscriber authentication is unsuccessful.. |
| 63 | """ |
| 64 | |
| 65 | def test_subscriber_with_voltha_for_eap_tls_authentication_using_invalid_cert(self): |
| 66 | """ |
| 67 | Test Method: |
| 68 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 69 | 1. OLT and ONU is detected and validated. |
| 70 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 71 | 3. Issue tls auth packets and exchange invalid cert from CORD TESTER voltha test module acting as a subscriber.. |
| 72 | 4. Validate that eap tls with invalid cert auth packet is being exchanged between subscriber, onos and freeradius. |
| 73 | 5. Verify that subscriber authentication is unsuccessful.. |
| 74 | """ |
| 75 | |
| 76 | def test_subscriber_with_voltha_for_eap_tls_authentication_with_aaa_app_deactivation(self): |
| 77 | """ |
| 78 | Test Method: |
| 79 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 80 | 1. OLT and ONU is detected and validated. |
| 81 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 82 | 3. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 83 | 4. Validate that eap tls without sending client hello, it's not being exchanged between client, onos and freeradius. |
| 84 | 5. Verify that subscriber authentication is unsuccessful.. |
| 85 | """ |
| 86 | |
| 87 | def test_subscriber_with_voltha_for_eap_tls_authentication_restarting_radius_server(self): |
| 88 | """ |
| 89 | Test Method: |
| 90 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 91 | 1. OLT and ONU is detected and validated. |
| 92 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 93 | 3. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 94 | 4. Validate that eap tls with restart of radius server and packets are being exchanged between subscriber, onos and freeradius. |
| 95 | 5. Verify that subscriber authentication is unsuccessful.. |
| 96 | """ |
| 97 | |
| 98 | def test_subscriber_with_voltha_for_eap_tls_authentication_with_disabled_olt(self): |
| 99 | """ |
| 100 | Test Method: |
| 101 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 102 | 1. OLT and ONU is detected and validated. |
| 103 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 104 | 3. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 105 | 5. Validate that eap tls packets are being exchanged between subscriber, onos and freeradius. |
| 106 | 6. Verify that subscriber authenticated successfully. |
| 107 | 7. Disable olt which is seen in voltha and issue tls auth packets from subscriber. |
| 108 | 8. Validate that eap tls packets are not being exchanged between subscriber, onos and freeradius. |
| 109 | 9. Verify that subscriber authentication is unsuccessful.. |
| 110 | """ |
| 111 | |
| 112 | def test_subscriber_with_voltha_for_eap_tls_authentication_disabling_uni_port_in_voltha(self): |
| 113 | """ |
| 114 | Test Method: |
| 115 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 116 | 1. OLT and ONU is detected and validated. |
| 117 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 118 | 3. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 119 | 5. Validate that eap tls packets are being exchanged between subscriber, onos and freeradius. |
| 120 | 6. Verify that subscriber authenticated successfully. |
| 121 | 7. Disable uni port which is seen in voltha and issue tls auth packets from subscriber. |
| 122 | 8. Validate that eap tls packets are not being exchanged between subscriber, onos and freeradius. |
| 123 | 9. Verify that subscriber authentication is unsuccessful.. |
| 124 | """ |
| 125 | |
| 126 | def test_subscriber_with_voltha_for_eap_tls_authentication_restarting_olt(self): |
| 127 | """ |
| 128 | Test Method: |
| 129 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 130 | 1. OLT and ONU is detected and validated. |
| 131 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 132 | 3. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 133 | 5. Validate that eap tls packets are being exchanged between subscriber, onos and freeradius. |
| 134 | 6. Verify that subscriber authenticated successfully. |
| 135 | 7. Restart olt which is seen in voltha and issue tls auth packets from subscriber. |
| 136 | 8. Validate that eap tls packets are not being exchanged between subscriber, onos and freeradius. |
| 137 | 9. Verify that subscriber authentication is unsuccessful.. |
| 138 | """ |
| 139 | |
| 140 | def test_subscriber_with_voltha_for_eap_tls_authentication_restarting_onu(self): |
| 141 | """ |
| 142 | Test Method: |
| 143 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 144 | 1. OLT and ONU is detected and validated. |
| 145 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 146 | 3. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 147 | 5. Validate that eap tls packets are being exchanged between subscriber, onos and freeradius. |
| 148 | 6. Verify that subscriber authenticated successfully. |
| 149 | 7. Restart onu which is seen in voltha and issue tls auth packets from subscriber. |
| 150 | 8. Validate that eap tls packets are not being exchanged between subscriber, onos and freeradius. |
| 151 | 9. Verify that subscriber authentication is unsuccessful.. |
| 152 | """ |
| 153 | |
| 154 | def test_two_subscribers_with_voltha_for_eap_tls_authentication(self): |
| 155 | """ |
| 156 | Test Method: |
| 157 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 158 | 1. OLT is detected and ONU ports(nni and 2 uni's) are being seen. |
| 159 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 160 | 3. Bring up two Residential subscribers from cord-tester and issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 161 | 4. Validate that eap tls valid auth packets are being exchanged between two subscriber, onos and freeradius. |
| 162 | 5. Verify that two subscribers are authenticated successfully. |
| 163 | """ |
| 164 | |
| 165 | def test_two_subscribers_with_voltha_for_eap_tls_authentication_using_same_certificates(self): |
| 166 | """ |
| 167 | Test Method: |
| 168 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 169 | 1. OLT is detected and ONU ports(nni and 2 uni's) are being seen. |
| 170 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 171 | 3. Bring up two Residential subscribers from cord-tester and issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 172 | 4. Validate that two valid certificates are being exchanged between two subscriber, onos and freeradius. |
| 173 | 5. Verify that two subscribers are not authenticated. |
| 174 | """ |
| 175 | |
| 176 | def test_two_subscribers_with_voltha_for_eap_tls_authentication_initiating_invalid_tls_packets_for_one_subscriber(self): |
| 177 | """ |
| 178 | Test Method: |
| 179 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 180 | 1. OLT is detected and ONU ports(nni and 2 uni's) are being seen. |
| 181 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 182 | 3. Bring up two Residential subscribers from cord-tester and issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 183 | 4. Validate that eap tls valid auth packets are being exchanged between valid subscriber, onos and freeradius. |
| 184 | 5. Validate that eap tls valid auth packets are being exchanged between invalid client, onos and freeradius. |
| 185 | 6. Verify that valid subscriber authenticated successfully. |
| 186 | 7. Verify that invalid subscriber are not authenticated successfully. |
| 187 | """ |
| 188 | |
| 189 | def test_two_subscribers_with_voltha_for_eap_tls_authentication_initiating_invalid_cert_for_one_subscriber(self): |
| 190 | """ |
| 191 | Test Method: |
| 192 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 193 | 1. OLT is detected and ONU ports(nni and 2 uni's) are being seen. |
| 194 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 195 | 3. Bring up two Residential subscribers from cord-tester and issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 196 | 4. Validate that eap tls valid auth packets are being exchanged between valid subscriber, onos and freeradius. |
| 197 | 5. Validate that eap tls invalid cert auth packets are being exchanged between invalid subscriber, onos and freeradius. |
| 198 | 6. Verify that valid subscriber authenticated successfully. |
| 199 | 7. Verify that invalid subscriber are not authenticated successfully. |
| 200 | """ |
| 201 | |
| 202 | def test_two_subscribers_with_voltha_for_eap_tls_authentication_with_one_uni_port_disabled(self): |
| 203 | """ |
| 204 | Test Method: |
| 205 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 206 | 1. OLT and ONU is detected and validated. |
| 207 | 2. Bring up freeradius server container using CORD TESTER and make sure that ONOS have connectivity to freeradius server. |
| 208 | 3. Bring up two Residential subscribers from cord-tester and issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 209 | 5. Validate that eap tls packets are being exchanged between two subscriber, onos and freeradius. |
| 210 | 6. Verify that subscriber authenticated successfully. |
| 211 | 7. Disable one of the uni port which is seen in voltha and issue tls auth packets from subscriber. |
| 212 | 8. Validate that eap tls packets are not being exchanged between one subscriber, onos and freeradius. |
| 213 | 9. Verify that subscriber authentication is unsuccessful.. |
| 214 | 10. Verify that other subscriber authenticated successfully. |
| 215 | """ |
| 216 | |
| 217 | def test_subscriber_with_voltha_for_dhcp_request(self): |
| 218 | """ |
| 219 | Test Method: |
| 220 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 221 | 1. OLT and ONU is detected and validated. |
| 222 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 223 | 3. Send dhcp request from residential subscrber to dhcp server which is running as onos app. |
| 224 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 225 | """ |
| 226 | |
| 227 | def test_subscriber_with_voltha_for_dhcp_request_with_invalid_broadcast_source_mac(self): |
| 228 | """ |
| 229 | Test Method: |
| 230 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 231 | 1. OLT and ONU is detected and validated. |
| 232 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 233 | 3. Send dhcp request with invalid source mac broadcast from residential subscrber to dhcp server which is running as onos app. |
| 234 | 4. Verify that subscriber should not get ip from dhcp server. |
| 235 | """ |
| 236 | |
| 237 | def test_subscriber_with_voltha_for_dhcp_request_with_invalid_multicast_source_mac(self): |
| 238 | """ |
| 239 | Test Method: |
| 240 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 241 | 1. OLT and ONU is detected and validated. |
| 242 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 243 | 3. Send dhcp request with invalid source mac multicast from residential subscrber to dhcp server which is running as onos app. |
| 244 | 4. Verify that subscriber should not get ip from dhcp server. |
| 245 | """ |
| 246 | |
| 247 | def test_subscriber_with_voltha_for_dhcp_request_with_invalid_source_mac(self): |
| 248 | """ |
| 249 | Test Method: |
| 250 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 251 | 1. OLT and ONU is detected and validated. |
| 252 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 253 | 3. Send dhcp request with invalid source mac zero from residential subscrber to dhcp server which is running as onos app. |
| 254 | 4. Verify that subscriber should not get ip from dhcp server. |
| 255 | """ |
| 256 | |
| 257 | def test_subscriber_with_voltha_for_dhcp_request_and_release(self): |
| 258 | """ |
| 259 | Test Method: |
| 260 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 261 | 1. OLT and ONU is detected and validated. |
| 262 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 263 | 3. Send dhcp request from residential subscrber to dhcp server which is running as onos app. |
| 264 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 265 | 5. Send dhcp release from residential subscrber to dhcp server which is running as onos app. |
| 266 | 6 Verify that subscriber should not get ip from dhcp server, ping to gateway. |
| 267 | """ |
| 268 | |
A.R Karthick | 57fa937 | 2017-05-24 12:47:03 -0700 | [diff] [blame] | 269 | def test_subscriber_with_voltha_for_dhcp_starvation_positive_scenario(self): |
Thangavelu K S | 057b7d2 | 2017-05-16 22:03:22 +0000 | [diff] [blame] | 270 | """ |
| 271 | Test Method: |
| 272 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 273 | 1. OLT and ONU is detected and validated. |
| 274 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 275 | 3. Send dhcp request from residential subscriber to dhcp server which is running as onos app. |
| 276 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 277 | 5. Repeat step 3 and 4 for 10 times. |
| 278 | 6 Verify that subscriber should get ip from dhcp server. |
| 279 | """ |
| 280 | |
| 281 | def test_subscriber_with_voltha_for_dhcp_starvation_negative_scenario(self): |
| 282 | """ |
| 283 | Test Method: |
| 284 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 285 | 1. OLT and ONU is detected and validated. |
| 286 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 287 | 3. Send dhcp request from residential subscriber without of pool ip to dhcp server which is running as onos app. |
| 288 | 4. Verify that subscriber should not get ip from dhcp server. |
| 289 | 5. Repeat steps 3 and 4 for 10 times. |
| 290 | 6 Verify that subscriber should not get ip from dhcp server. |
| 291 | """ |
| 292 | def test_subscriber_with_voltha_for_dhcp_sending_multiple_discover(self): |
| 293 | """ |
| 294 | Test Method: |
| 295 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 296 | 1. OLT and ONU is detected and validated. |
| 297 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 298 | 3. Send dhcp request from residential subscriber to dhcp server which is running as onos app. |
| 299 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 300 | 5. Repeat step 3 for 50 times. |
| 301 | 6 Verify that subscriber should get same ip which was received from 1st discover from dhcp server. |
| 302 | """ |
| 303 | def test_subscriber_with_voltha_for_dhcp_sending_multiple_request(self): |
| 304 | """ |
| 305 | Test Method: |
| 306 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 307 | 1. OLT and ONU is detected and validated. |
| 308 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 309 | 3. Send dhcp request from residential subscriber to dhcp server which is running as onos app. |
| 310 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 311 | 5. Send DHCP request to dhcp server which is running as onos app. |
| 312 | 6. Repeat step 5 for 50 times. |
| 313 | 7. Verify that subscriber should get same ip which was received from 1st discover from dhcp server. |
| 314 | """ |
| 315 | |
| 316 | def test_subscriber_with_voltha_for_dhcp_requesting_desired_ip_address(self): |
| 317 | """ |
| 318 | Test Method: |
| 319 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 320 | 1. OLT and ONU is detected and validated. |
| 321 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 322 | 3. Send dhcp request with desired ip address from residential subscriber to dhcp server which is running as onos app. |
| 323 | 4. Verify that subscriber get ip which was requested in step 3 from dhcp server successfully. |
| 324 | """ |
| 325 | |
| 326 | def test_subscriber_with_voltha_for_dhcp_requesting_desired_out_pool_ip_address(self): |
| 327 | """ |
| 328 | Test Method: |
| 329 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 330 | 1. OLT and ONU is detected and validated. |
| 331 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 332 | 3. Send dhcp request with desired out of pool ip address from residential subscriber to dhcp server which is running as onos app. |
| 333 | 4. Verify that subscriber should not get ip which was requested in step 3 from dhcp server, and its offered only within dhcp pool of ip. |
| 334 | """ |
| 335 | def test_subscriber_with_voltha_for_dhcp_deactivate_dhcp_app_in_onos(self): |
| 336 | """ |
| 337 | Test Method: |
| 338 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 339 | 1. OLT and ONU is detected and validated. |
| 340 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 341 | 3. Send dhcp request from residential subscriber to dhcp server which is running as onos app. |
| 342 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 343 | 5. Deactivate dhcp server app in onos. |
| 344 | 6. Repeat step 3. |
| 345 | 7. Verify that subscriber should not get ip from dhcp server, and ping to gateway. |
| 346 | """ |
| 347 | def test_subscriber_with_voltha_for_dhcp_renew_time(self): |
| 348 | """ |
| 349 | Test Method: |
| 350 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 351 | 1. OLT and ONU is detected and validated. |
| 352 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 353 | 3. Send dhcp request from residential subscriber to dhcp server which is running as onos app. |
| 354 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 355 | 5. Send dhcp renew packet to dhcp server which is running as onos app. |
| 356 | 6. Repeat step 4. |
| 357 | """ |
| 358 | def test_subscriber_with_voltha_for_dhcp_rebind_time(self): |
| 359 | """ |
| 360 | Test Method: |
| 361 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 362 | 1. OLT and ONU is detected and validated. |
| 363 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 364 | 3. Send dhcp request from residential subscriber to dhcp server which is running as onos app. |
| 365 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 366 | 5. Send dhcp rebind packet to dhcp server which is running as onos app. |
| 367 | 6. Repeat step 4. |
| 368 | """ |
| 369 | def test_subscriber_with_voltha_for_dhcp_disable_olt_in_voltha(self): |
| 370 | """ |
| 371 | Test Method: |
| 372 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 373 | 1. OLT and ONU is detected and validated. |
| 374 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 375 | 3. Send dhcp request from residential subscriber to dhcp server which is running as onos app. |
| 376 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 377 | 5. Disable olt devices which is being detected in voltha CLI. |
| 378 | 6. Repeat step 3. |
| 379 | 7. Verify that subscriber should not get ip from dhcp server, and ping to gateway. |
| 380 | """ |
| 381 | def test_subscriber_with_voltha_for_dhcp_disable_enable_olt_in_voltha(self): |
| 382 | """ |
| 383 | Test Method: |
| 384 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 385 | 1. OLT and ONU is detected and validated. |
| 386 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 387 | 3. Send dhcp request from residential subscriber to dhcp server which is running as onos app. |
| 388 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 389 | 5. Disable olt devices which is being detected in voltha CLI. |
| 390 | 6. Repeat step 3. |
| 391 | 7. Verify that subscriber should not get ip from dhcp server, and ping to gateway. |
| 392 | 8. Enable olt devices which is being detected in voltha CLI. |
| 393 | 9. Repeat steps 3 and 4. |
| 394 | """ |
| 395 | def test_subscriber_with_voltha_for_dhcp_disable_onu_port_in_voltha(self): |
| 396 | """ |
| 397 | Test Method: |
| 398 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 399 | 1. OLT and ONU is detected and validated. |
| 400 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 401 | 3. Send dhcp request from residential subscriber to dhcp server which is running as onos app. |
| 402 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 403 | 5. Disable onu port which is being detected in voltha CLI. |
| 404 | 6. Repeat step 3. |
| 405 | 7. Verify that subscriber should not get ip from dhcp server, and ping to gateway. |
| 406 | """ |
| 407 | def test_subscriber_with_voltha_for_dhcp_disable_enable_onu_port_in_voltha(self): |
| 408 | """ |
| 409 | Test Method: |
| 410 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 411 | 1. OLT and ONU is detected and validated. |
| 412 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 413 | 3. Send dhcp request from residential subscriber to dhcp server which is running as onos app. |
| 414 | 4. Verify that subscriber get ip from dhcp server successfully. |
| 415 | 5. Disable onu port which is being detected in voltha CLI. |
| 416 | 6. Repeat step 3. |
| 417 | 7. Verify that subscriber should not get ip from dhcp server, and ping to gateway. |
| 418 | 8. Enable onu port which is being detected in voltha CLI. |
| 419 | 9. Repeat steps 3 and 4. |
| 420 | """ |
| 421 | |
| 422 | def test_two_subscriber_with_voltha_for_dhcp_discover(self): |
| 423 | """ |
| 424 | Test Method: |
| 425 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 426 | 1. OLT and ONU is detected and validated. |
| 427 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 428 | 3. Send dhcp request from two residential subscribers to dhcp server which is running as onos app. |
| 429 | 4. Verify that subscribers had got different ips from dhcp server successfully. |
| 430 | """ |
| 431 | |
| 432 | def test_two_subscriber_with_voltha_for_dhcp_multiple_discover(self): |
| 433 | """ |
| 434 | Test Method: |
| 435 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 436 | 1. OLT and ONU is detected and validated. |
| 437 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 438 | 3. Send dhcp request from two residential subscribers to dhcp server which is running as onos app. |
| 439 | 4. Verify that subscribers had got ip from dhcp server successfully. |
| 440 | 5. Repeat step 3 and 4 for 10 times for both subscribers. |
| 441 | 6 Verify that subscribers should get same ips which are offered the first time from dhcp server. |
| 442 | """ |
| 443 | def test_two_subscriber_with_voltha_for_dhcp_multiple_discover_for_one_subscriber(self): |
| 444 | """ |
| 445 | Test Method: |
| 446 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 447 | 1. OLT and ONU is detected and validated. |
| 448 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 449 | 3. Send dhcp request from two residential subscribers to dhcp server which is running as onos app. |
| 450 | 4. Verify that subscribers had got ip from dhcp server successfully. |
| 451 | 5. Repeat step 3 and 4 for 10 times for only one subscriber and ping to gateway from other subscriber. |
| 452 | 6 Verify that subscriber should get same ip which is offered the first time from dhcp server and other subscriber ping to gateway should not failed |
| 453 | """ |
| 454 | def test_two_subscriber_with_voltha_for_dhcp_discover_desired_ip_address_for_one_subscriber(self): |
| 455 | """ |
| 456 | Test Method: |
| 457 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 458 | 1. OLT and ONU is detected and validated. |
| 459 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 460 | 3. Send dhcp request from one residential subscriber to dhcp server which is running as onos app. |
| 461 | 3. Send dhcp request with desired ip from other residential subscriber to dhcp server which is running as onos app. |
| 462 | 4. Verify that subscribers had got different ips (one subscriber desired ip and other subscriber random ip) from dhcp server successfully. |
| 463 | """ |
| 464 | def test_two_subscriber_with_voltha_for_dhcp_discover_within_and_wothout_dhcp_pool_ip_addresses(self): |
| 465 | """ |
| 466 | Test Method: |
| 467 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 468 | 1. OLT and ONU is detected and validated. |
| 469 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 470 | 3. Send dhcp request with desired wihtin dhcp pool ip from one residential subscriber to dhcp server which is running as onos app. |
| 471 | 3. Send dhcp request with desired without in dhcp pool ip from other residential subscriber to dhcp server which is running as onos app. |
| 472 | 4. Verify that subscribers had got different ips (both subscriber got random ips within dhcp pool) from dhcp server successfully. |
| 473 | """ |
| 474 | def test_two_subscriber_with_voltha_for_dhcp_disable_onu_port_for_one_subscriber(self): |
| 475 | """ |
| 476 | Test Method: |
| 477 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 478 | 1. OLT and ONU is detected and validated. |
| 479 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 480 | 3. Send dhcp request from two residential subscribers to dhcp server which is running as onos app. |
| 481 | 4. Verify that subscribers had got ip from dhcp server successfully. |
| 482 | 5. Disable onu port on which access one subscriber and ping to gateway from other subscriber. |
| 483 | 6. Repeat step 3 and 4 for one subscriber where uni port is down. |
| 484 | 7. Verify that subscriber should not get ip from dhcp server and other subscriber ping to gateway should not failed. |
| 485 | """ |
| 486 | def test_two_subscriber_with_voltha_for_dhcp_disable_enable_onu_port_for_one_subscriber(self): |
| 487 | """ |
| 488 | Test Method: |
| 489 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 490 | 1. OLT and ONU is detected and validated. |
| 491 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 492 | 3. Send dhcp request from two residential subscribers to dhcp server which is running as onos app. |
| 493 | 4. Verify that subscribers had got ip from dhcp server successfully. |
| 494 | 5. Disable onu port on which access one subscriber and ping to gateway from other subscriber. |
| 495 | 6. Repeat step 3 and 4 for one subscriber where uni port is down. |
| 496 | 7. Verify that subscriber should not get ip from dhcp server and other subscriber ping to gateway should not failed. |
| 497 | 8. Enable onu port on which was disable at step 5 and ping to gateway from other subscriber. |
| 498 | 9. Repeat step 3 and 4 for one subscriber where uni port is up now. |
| 499 | 10. Verify that subscriber should get ip from dhcp server and other subscriber ping to gateway should not failed. |
| 500 | """ |
| 501 | def test_two_subscriber_with_voltha_for_dhcp_disable_olt_detected_in_voltha(self): |
| 502 | """ |
| 503 | Test Method: |
| 504 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 505 | 1. OLT and ONU is detected and validated. |
| 506 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 507 | 3. Send dhcp request from two residential subscribers to dhcp server which is running as onos app. |
| 508 | 4. Verify that subscribers had got ip from dhcp server successfully. |
| 509 | 5. Start pinging continuously from one subscriber and repeat steps 3 and 4 for other subscriber. |
| 510 | 6. Disable the olt device which is detected in voltha. |
| 511 | 7. Verify that subscriber should not get ip from dhcp server and other subscriber ping to gateway should failed. |
| 512 | """ |
| 513 | def test_two_subscriber_with_voltha_for_dhcp_disable_enable_olt_detected_in_voltha(self): |
| 514 | """ |
| 515 | Test Method: |
| 516 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 517 | 1. OLT and ONU is detected and validated. |
| 518 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 519 | 3. Send dhcp request from two residential subscribers to dhcp server which is running as onos app. |
| 520 | 4. Verify that subscribers had got ip from dhcp server successfully. |
| 521 | 5. Start pinging continuously from one subscriber and repeat steps 3 and 4 for other subscriber. |
| 522 | 6. Disable the olt device which is detected in voltha. |
| 523 | 7. Verify that subscriber should not get ip from dhcp server and other subscriber ping to gateway should failed. |
| 524 | 8. Enable the olt device which is detected in voltha. |
| 525 | 9. Verify that subscriber should get ip from dhcp server and other subscriber ping to gateway should not failed. |
| 526 | """ |
| 527 | def test_two_subscriber_with_voltha_for_dhcp_pause_olt_detected_in_voltha(self): |
| 528 | """ |
| 529 | Test Method: |
| 530 | 0. Make sure that voltha is up and running on CORD-POD setup. |
| 531 | 1. OLT and ONU is detected and validated. |
| 532 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 533 | 3. Send dhcp request from two residential subscribers to dhcp server which is running as onos app. |
| 534 | 4. Verify that subscribers had got ip from dhcp server successfully. |
| 535 | 5. Start pinging continuously from one subscriber and repeat steps 3 and 4 for other subscriber. |
| 536 | 6. Pause the olt device which is detected in voltha. |
| 537 | 7. Verify that subscriber should not get ip from dhcp server and other subscriber ping to gateway should failed. |
| 538 | """ |
| 539 | def test_subscriber_with_voltha_for_dhcpRelay_dhcp_request(self): |
| 540 | """ |
| 541 | Test Method: |
| 542 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 543 | 1. OLT and ONU is detected and validated. |
| 544 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 545 | 3. Send dhcp request from residential subscrber to external dhcp server. |
| 546 | 4. Verify that subscriber get ip from external dhcp server successfully. |
| 547 | """ |
| 548 | |
| 549 | def test_subscriber_with_voltha_for_dhcpRelay_dhcp_request_with_invalid_broadcast_source_mac(self): |
| 550 | """ |
| 551 | Test Method: |
| 552 | 0. Make sure that voltha and external dhcp server are is up and running on CORD-POD setup. |
| 553 | 1. OLT and ONU is detected and validated. |
| 554 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 555 | 3. Send dhcp request with invalid source mac broadcast from residential subscrber to external dhcp server. |
| 556 | 4. Verify that subscriber should not get ip from external dhcp server. |
| 557 | """ |
| 558 | |
| 559 | def test_subscriber_with_voltha_for_dhcpRelay_dhcp_request_with_invalid_multicast_source_mac(self): |
| 560 | """ |
| 561 | Test Method: |
| 562 | 0. Make sure that voltha and external dhcp server are is up and running on CORD-POD setup. |
| 563 | 1. OLT and ONU is detected and validated. |
| 564 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 565 | 3. Send dhcp request with invalid source mac multicast from residential subscrber to external dhcp server. |
| 566 | 4. Verify that subscriber should not get ip from external dhcp server. |
| 567 | """ |
| 568 | |
| 569 | def test_subscriber_with_voltha_for_dhcpRelay_dhcp_request_with_invalid_source_mac(self): |
| 570 | """ |
| 571 | Test Method: |
| 572 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 573 | 1. OLT and ONU is detected and validated. |
| 574 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 575 | 3. Send dhcp request with invalid source mac zero from residential subscrber to external dhcp server. |
| 576 | 4. Verify that subscriber should not get ip from external dhcp server. |
| 577 | """ |
| 578 | |
| 579 | def test_subscriber_with_voltha_for_dhcpRelay_dhcp_request_and_release(self): |
| 580 | """ |
| 581 | Test Method: |
| 582 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 583 | 1. OLT and ONU is detected and validated. |
| 584 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 585 | 3. Send dhcp request from residential subscrber to external dhcp server. |
| 586 | 4. Verify that subscriber get ip from external dhcp server successfully. |
| 587 | 5. Send dhcp release from residential subscrber to external dhcp server. |
| 588 | 6 Verify that subscriber should not get ip from external dhcp server, ping to gateway. |
| 589 | """ |
| 590 | |
| 591 | def test_subscriber_with_voltha_for_dhcpRelay_starvation(self): |
| 592 | """ |
| 593 | Test Method: |
| 594 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 595 | 1. OLT and ONU is detected and validated. |
| 596 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 597 | 3. Send dhcp request from residential subscriber to external dhcp server. |
| 598 | 4. Verify that subscriber get ip from external dhcp server. successfully. |
| 599 | 5. Repeat step 3 and 4 for 10 times. |
| 600 | 6 Verify that subscriber should get ip from external dhcp server.. |
| 601 | """ |
| 602 | |
| 603 | def test_subscriber_with_voltha_for_dhcpRelay_starvation_negative_scenario(self): |
| 604 | """ |
| 605 | Test Method: |
| 606 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 607 | 1. OLT and ONU is detected and validated. |
| 608 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 609 | 3. Send dhcp request from residential subscriber without of pool ip to external dhcp server. |
| 610 | 4. Verify that subscriber should not get ip from external dhcp server.. |
| 611 | 5. Repeat steps 3 and 4 for 10 times. |
| 612 | 6 Verify that subscriber should not get ip from external dhcp server.. |
| 613 | """ |
| 614 | def test_subscriber_with_voltha_for_dhcpRelay_sending_multiple_discover(self): |
| 615 | """ |
| 616 | Test Method: |
| 617 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 618 | 1. OLT and ONU is detected and validated. |
| 619 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 620 | 3. Send dhcp request from residential subscriber to external dhcp server. |
| 621 | 4. Verify that subscriber get ip from external dhcp server. successfully. |
| 622 | 5. Repeat step 3 for 50 times. |
| 623 | 6 Verify that subscriber should get same ip which was received from 1st discover from external dhcp server.. |
| 624 | """ |
| 625 | def test_subscriber_with_voltha_for_dhcpRelay_sending_multiple_request(self): |
| 626 | """ |
| 627 | Test Method: |
| 628 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 629 | 1. OLT and ONU is detected and validated. |
| 630 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 631 | 3. Send dhcp request from residential subscriber to external dhcp server. |
| 632 | 4. Verify that subscriber get ip from external dhcp server. successfully. |
| 633 | 5. Send DHCP request to external dhcp server. |
| 634 | 6. Repeat step 5 for 50 times. |
| 635 | 7. Verify that subscriber should get same ip which was received from 1st discover from external dhcp server.. |
| 636 | """ |
| 637 | |
| 638 | def test_subscriber_with_voltha_for_dhcpRelay_requesting_desired_ip_address(self): |
| 639 | """ |
| 640 | Test Method: |
| 641 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 642 | 1. OLT and ONU is detected and validated. |
| 643 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 644 | 3. Send dhcp request with desired ip address from residential subscriber to external dhcp server. |
| 645 | 4. Verify that subscriber get ip which was requested in step 3 from external dhcp server. successfully. |
| 646 | """ |
| 647 | |
| 648 | def test_subscriber_with_voltha_for_dhcpRelay_requesting_desired_out_of_pool_ip_address(self): |
| 649 | """ |
| 650 | Test Method: |
| 651 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 652 | 1. OLT and ONU is detected and validated. |
| 653 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 654 | 3. Send dhcp request with desired out of pool ip address from residential subscriber to external dhcp server. |
| 655 | 4. Verify that subscriber should not get ip which was requested in step 3 from external dhcp server., and its offered only within dhcp pool of ip. |
| 656 | """ |
| 657 | |
| 658 | def test_subscriber_with_voltha_for_dhcpRelay_deactivating_dhcpRelay_app_in_onos(self): |
| 659 | """ |
| 660 | Test Method: |
| 661 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 662 | 1. OLT and ONU is detected and validated. |
| 663 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 664 | 3. Send dhcp request from residential subscriber to external dhcp server. |
| 665 | 4. Verify that subscriber get ip from external dhcp server. successfully. |
| 666 | 5. Deactivate dhcp server app in onos. |
| 667 | 6. Repeat step 3. |
| 668 | 7. Verify that subscriber should not get ip from external dhcp server., and ping to gateway. |
| 669 | """ |
| 670 | |
| 671 | def test_subscriber_with_voltha_for_dhcpRelay_renew_time(self): |
| 672 | """ |
| 673 | Test Method: |
| 674 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 675 | 1. OLT and ONU is detected and validated. |
| 676 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 677 | 3. Send dhcp request from residential subscriber to external dhcp server. |
| 678 | 4. Verify that subscriber get ip from external dhcp server. successfully. |
| 679 | 5. Send dhcp renew packet to external dhcp server. |
| 680 | 6. Repeat step 4. |
| 681 | """ |
| 682 | |
| 683 | def test_subscriber_with_voltha_for_dhcpRelay_rebind_time(self): |
| 684 | """ |
| 685 | Test Method: |
| 686 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 687 | 1. OLT and ONU is detected and validated. |
| 688 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 689 | 3. Send dhcp request from residential subscriber to external dhcp server. |
| 690 | 4. Verify that subscriber get ip from external dhcp server. successfully. |
| 691 | 5. Send dhcp rebind packet to external dhcp server. |
| 692 | 6. Repeat step 4. |
| 693 | """ |
| 694 | |
| 695 | def test_subscriber_with_voltha_for_dhcpRelay_disable_olt_in_voltha(self): |
| 696 | """ |
| 697 | Test Method: |
| 698 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 699 | 1. OLT and ONU is detected and validated. |
| 700 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 701 | 3. Send dhcp request from residential subscriber to external dhcp server. |
| 702 | 4. Verify that subscriber get ip from external dhcp server. successfully. |
| 703 | 5. Disable olt devices which is being detected in voltha CLI. |
| 704 | 6. Repeat step 3. |
| 705 | 7. Verify that subscriber should not get ip from external dhcp server., and ping to gateway. |
| 706 | """ |
| 707 | |
| 708 | def test_subscriber_with_voltha_for_dhcpRelay_toggling_olt_in_voltha(self): |
| 709 | """ |
| 710 | Test Method: |
| 711 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 712 | 1. OLT and ONU is detected and validated. |
| 713 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 714 | 3. Send dhcp request from residential subscriber to external dhcp server. |
| 715 | 4. Verify that subscriber get ip from external dhcp server. successfully. |
| 716 | 5. Disable olt devices which is being detected in voltha CLI. |
| 717 | 6. Repeat step 3. |
| 718 | 7. Verify that subscriber should not get ip from external dhcp server., and ping to gateway. |
| 719 | 8. Enable olt devices which is being detected in voltha CLI. |
| 720 | 9. Repeat steps 3 and 4. |
| 721 | """ |
| 722 | |
| 723 | def test_subscriber_with_voltha_for_dhcpRelay_disable_onu_port_in_voltha(self): |
| 724 | """ |
| 725 | Test Method: |
| 726 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 727 | 1. OLT and ONU is detected and validated. |
| 728 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 729 | 3. Send dhcp request from residential subscriber to external dhcp server. |
| 730 | 4. Verify that subscriber get ip from external dhcp server. successfully. |
| 731 | 5. Disable onu port which is being detected in voltha CLI. |
| 732 | 6. Repeat step 3. |
| 733 | 7. Verify that subscriber should not get ip from external dhcp server., and ping to gateway. |
| 734 | """ |
| 735 | |
| 736 | def test_subscriber_with_voltha_for_dhcpRelay_disable_enable_onu_port_in_voltha(self): |
| 737 | """ |
| 738 | Test Method: |
| 739 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 740 | 1. OLT and ONU is detected and validated. |
| 741 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 742 | 3. Send dhcp request from residential subscriber to external dhcp server. |
| 743 | 4. Verify that subscriber get ip from external dhcp server. successfully. |
| 744 | 5. Disable onu port which is being detected in voltha CLI. |
| 745 | 6. Repeat step 3. |
| 746 | 7. Verify that subscriber should not get ip from external dhcp server., and ping to gateway. |
| 747 | 8. Enable onu port which is being detected in voltha CLI. |
| 748 | 9. Repeat steps 3 and 4. |
| 749 | """ |
| 750 | |
| 751 | def test_two_subscriber_with_voltha_for_dhcpRelay_discover(self): |
| 752 | """ |
| 753 | Test Method: |
| 754 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 755 | 1. OLT and ONU is detected and validated. |
| 756 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 757 | 3. Send dhcp request from two residential subscribers to external dhcp server. |
| 758 | 4. Verify that subscribers had got different ips from external dhcp server. successfully. |
| 759 | """ |
| 760 | |
| 761 | def test_two_subscriber_with_voltha_for_dhcpRelay_multiple_discover(self): |
| 762 | """ |
| 763 | Test Method: |
| 764 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 765 | 1. OLT and ONU is detected and validated. |
| 766 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 767 | 3. Send dhcp request from two residential subscribers to external dhcp server. |
| 768 | 4. Verify that subscribers had got ip from external dhcp server. successfully. |
| 769 | 5. Repeat step 3 and 4 for 10 times for both subscribers. |
| 770 | 6 Verify that subscribers should get same ips which are offered the first time from external dhcp server.. |
| 771 | """ |
| 772 | |
| 773 | def test_two_subscriber_with_voltha_for_dhcpRelay_multiple_discover_for_one_subscriber(self): |
| 774 | """ |
| 775 | Test Method: |
| 776 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 777 | 1. OLT and ONU is detected and validated. |
| 778 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 779 | 3. Send dhcp request from two residential subscribers to external dhcp server. |
| 780 | 4. Verify that subscribers had got ip from external dhcp server. successfully. |
| 781 | 5. Repeat step 3 and 4 for 10 times for only one subscriber and ping to gateway from other subscriber. |
| 782 | 6 Verify that subscriber should get same ip which is offered the first time from external dhcp server. and other subscriber ping to gateway should not failed |
| 783 | """ |
| 784 | |
| 785 | def test_two_subscriber_with_voltha_for_dhcpRelay_discover_desired_ip_address_for_one_subscriber(self): |
| 786 | """ |
| 787 | Test Method: |
| 788 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 789 | 1. OLT and ONU is detected and validated. |
| 790 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 791 | 3. Send dhcp request from one residential subscriber to external dhcp server. |
| 792 | 3. Send dhcp request with desired ip from other residential subscriber to external dhcp server. |
| 793 | 4. Verify that subscribers had got different ips (one subscriber desired ip and other subscriber random ip) from external dhcp server. successfully. |
| 794 | """ |
| 795 | |
| 796 | def test_two_subscriber_with_voltha_for_dhcpRelay_discover_in_range_and_out_of_range_from_dhcp_pool_ip_addresses(self): |
| 797 | """ |
| 798 | Test Method: |
| 799 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 800 | 1. OLT and ONU is detected and validated. |
| 801 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 802 | 3. Send dhcp request with desired wihtin dhcp pool ip from one residential subscriber to external dhcp server. |
| 803 | 3. Send dhcp request with desired without in dhcp pool ip from other residential subscriber to external dhcp server. |
| 804 | 4. Verify that subscribers had got different ips (both subscriber got random ips within dhcp pool) from external dhcp server. successfully. |
| 805 | """ |
| 806 | |
| 807 | def test_two_subscriber_with_voltha_for_dhcpRelay_disable_onu_port_for_one_subscriber(self): |
| 808 | """ |
| 809 | Test Method: |
| 810 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 811 | 1. OLT and ONU is detected and validated. |
| 812 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 813 | 3. Send dhcp request from two residential subscribers to external dhcp server. |
| 814 | 4. Verify that subscribers had got ip from external dhcp server. successfully. |
| 815 | 5. Disable onu port on which access one subscriber and ping to gateway from other subscriber. |
| 816 | 6. Repeat step 3 and 4 for one subscriber where uni port is down. |
| 817 | 7. Verify that subscriber should not get ip from external dhcp server. and other subscriber ping to gateway should not failed. |
| 818 | """ |
| 819 | |
| 820 | def test_two_subscriber_with_voltha_for_dhcpRelay_toggle_onu_port_for_one_subscriber(self): |
| 821 | """ |
| 822 | Test Method: |
| 823 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 824 | 1. OLT and ONU is detected and validated. |
| 825 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 826 | 3. Send dhcp request from two residential subscribers to external dhcp server. |
| 827 | 4. Verify that subscribers had got ip from external dhcp server. successfully. |
| 828 | 5. Disable onu port on which access one subscriber and ping to gateway from other subscriber. |
| 829 | 6. Repeat step 3 and 4 for one subscriber where uni port is down. |
| 830 | 7. Verify that subscriber should not get ip from external dhcp server. and other subscriber ping to gateway should not failed. |
| 831 | 8. Enable onu port on which was disable at step 5 and ping to gateway from other subscriber. |
| 832 | 9. Repeat step 3 and 4 for one subscriber where uni port is up now. |
| 833 | 10. Verify that subscriber should get ip from external dhcp server. and other subscriber ping to gateway should not failed. |
| 834 | """ |
| 835 | |
| 836 | def test_two_subscriber_with_voltha_for_dhcpRelay_disable_olt_detected_in_voltha(self): |
| 837 | """ |
| 838 | Test Method: |
| 839 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 840 | 1. OLT and ONU is detected and validated. |
| 841 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 842 | 3. Send dhcp request from two residential subscribers to external dhcp server. |
| 843 | 4. Verify that subscribers had got ip from external dhcp server. successfully. |
| 844 | 5. Start pinging continuously from one subscriber and repeat steps 3 and 4 for other subscriber. |
| 845 | 6. Disable the olt device which is detected in voltha. |
| 846 | 7. Verify that subscriber should not get ip from external dhcp server. and other subscriber ping to gateway should failed. |
| 847 | """ |
| 848 | |
| 849 | def test_two_subscriber_with_voltha_for_dhcpRelay_toggle_olt_detected_in_voltha(self): |
| 850 | """ |
| 851 | Test Method: |
| 852 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 853 | 1. OLT and ONU is detected and validated. |
| 854 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 855 | 3. Send dhcp request from two residential subscribers to external dhcp server. |
| 856 | 4. Verify that subscribers had got ip from external dhcp server. successfully. |
| 857 | 5. Start pinging continuously from one subscriber and repeat steps 3 and 4 for other subscriber. |
| 858 | 6. Disable the olt device which is detected in voltha. |
| 859 | 7. Verify that subscriber should not get ip from external dhcp server. and other subscriber ping to gateway should failed. |
| 860 | 8. Enable the olt device which is detected in voltha. |
| 861 | 9. Verify that subscriber should get ip from external dhcp server. and other subscriber ping to gateway should not failed. |
| 862 | """ |
| 863 | |
| 864 | def test_two_subscriber_with_voltha_for_dhcpRelay_pause_olt_detected_in_voltha(self): |
| 865 | """ |
| 866 | Test Method: |
| 867 | 0. Make sure that voltha and external dhcp server are up and running on CORD-POD setup. |
| 868 | 1. OLT and ONU is detected and validated. |
| 869 | 2. Issue tls auth packets from CORD TESTER voltha test module acting as a subscriber.. |
| 870 | 3. Send dhcp request from two residential subscribers to external dhcp server. |
| 871 | 4. Verify that subscribers had got ip from external dhcp server. successfully. |
| 872 | 5. Start pinging continuously from one subscriber and repeat steps 3 and 4 for other subscriber. |
| 873 | 6. Pause the olt device which is detected in voltha. |
| 874 | 7. Verify that subscriber should not get ip from external dhcp server. and other subscriber ping to gateway should failed. |
| 875 | """ |