Srikanth Vavilapalli | c7400f1 | 2015-03-10 10:44:30 -0700 | [diff] [blame^] | 1 | |
| 2 | |
| 3 | 1) Install TestON framework from https://github.com/srikanthvavila/ONLabTest (Follow README instructions. Until forked repo is mrged back, use URL https://github.com/srikanthvavila/ONLabTest for cloning this repo. You can ignore Linc-OE and STS installation steps as we may not need them for now) |
| 4 | |
| 5 | 2) Peering router testcases are under ~/TestON/tests/PeeringRouterTest folder: |
| 6 | a) CASE4 - Basic Route advertisement and connectivity in untagged network |
| 7 | b) CASE5 - Basic Route advertisement and connectivity in tagged network |
| 8 | c) CASE7 - Scale test with 25k routes |
| 9 | d) CASE21 - Route convergence due to bgp peering session flapping in untagged network |
| 10 | e) CASE22 - Basic Route advertisement and connectivity in untagged network with Route server |
| 11 | f) CASE31 - Route convergence due to bgp peering session flapping in tagged network |
| 12 | g) CASE32 - Basic Route advertisement and connectivity in tagged network with Route server |
| 13 | |
| 14 | 3) Before running the testcases, ensure quagga is installed on the machine: |
| 15 | a) "sudo apt-get install quagga" |
| 16 | b) "Create a folder for /usr/local/var/run/quagga" |
| 17 | c) "chmod 777" to quagga folder |
| 18 | |
| 19 | 4) Test environment assumes the TestON, ONOS and Mininet all are running in the same VM. These testcases are not verified with the components running in separate VMs. |
| 20 | |
| 21 | 5) Before running testcases, edit the following files and make necessary changes: |
| 22 | a) ~/TestON/tests/PeeringRouterTest/PeeringRouterTest.params --> Edit "cellname", "test home folder" and "controller IP" fields |
| 23 | b) ~/TestON/tests/PeeringRouterTest/PeeringRouterTest.topo --> Edit "host", "user", "password", "home" fields under "ONOSbench", "ONOSCli" and "ONOS1". Similalry edit "user" field under "QuaggaCliHost<>" (You can use the same user name as your mininet VM) |
| 24 | d) ~/TestON/drivers/common/cli/onosclidriver.py --> Change the line "self.handle.expect( "ONOS_CELL=" + str( cellname ) )" to "self.handle.expect( "ONOS_CELL" )" |
| 25 | |
| 26 | 6) Ensure the ONOS cell file has the following lines populated: |
| 27 | OCI=127.0.0.1 |
| 28 | OC1=127.0.0.1 |
| 29 | OC2=127.0.0.1 |
| 30 | OCN=127.0.0.1 |
| 31 | ONOS_FEATURES=webconsole,onos-api,onos-core-trivial,onos-cli,onos-openflow,onos-gui,onos-rest,onos-app-config,onos-app-proxyarp |
| 32 | ONOS_USER=<user> |
| 33 | ONOS_GROUP=<user> |
| 34 | ONOS_NIC=127.0.0.* |
| 35 | |
| 36 | 7) Ensure KARAF_ROOT is set to "/opt/onos/apache-karaf-3.0.2" |
| 37 | |
| 38 | 8) Ensure JAVA_HOME is unset before sourcing ~/onos/tools/dev/bash_profile |
| 39 | |
| 40 | 9) Ensure "onos-package" operation is done before executing the test cases |
| 41 | |
| 42 | 10) Update the testcases to be run in ~/TestON/tests/PeeringRouterTest/PeeringRouterTest.params and execute "./cly.py run PeeringRouterTest" from ~/TestON/bin folder. |