pingping-lin | 500727a | 2015-09-02 19:53:11 -0700 | [diff] [blame] | 1 | In this test case, we use 2 VMs. One is running Mininet testbed together with |
| 2 | Quagga, the other one is running ONOS. |
| 3 | |
| 4 | Step 1: Install and configure Quagga. |
| 5 | SDN-IP application uses Quagga as the BGP speaker. You need to install Quagga |
| 6 | on the mininet VM. |
| 7 | After installation, check whether the Quagga directory is /usr/lib/quagga, |
| 8 | otherwise you need to change the directory in SDNIPfuntionMininet.py. |
| 9 | Then, generate Quagga configuration files. |
| 10 | $cd ~/OnosSystemTest/TestON/tests/SDNIPfunction/Dependency/as4quaggas/ |
| 11 | $./quagga-config-gen.sh |
| 12 | |
| 13 | Step 2: SDN-IP/ONOS configuration. |
| 14 | Copy the SDN-IP/ONOS file to your ONOS directory and set the cell. |
| 15 | $cp ~/OnosSystemTest/TestON/tests/SDNIPfunction/network-cfg.json ~/onos/tools/package/config/network-cfg.json |
| 16 | $cp ~/OnosSystemTest/TestON/tests/SDNIPfunction/sdnip_single_instance ~/onos/tools/test/cells/sdnip_single_instance |
| 17 | Then enable the cell file: |
| 18 | $cell sdnip_single_instance |
| 19 | |
| 20 | Step 3: copy .bash_killcmd file to ~/.bash_killcmd on Mininet VM. |
| 21 | Add "source .bash_killcmd " into the ~/.bashrc file, then run: |
| 22 | $source ~/.baschrc |
| 23 | |
| 24 | Note: you only need to do Step 1, 2, and 3 once. |
| 25 | |
| 26 | Step 4: each time, before starting the test, run the following command to clean |
| 27 | the environment. |
| 28 | $ killTestONall |
| 29 | |
| 30 | Step 5: run Mininet testbed to setup the test environment. |
| 31 | $sudo ~/OnosSystemTest/TestON/tests/SDNIPfunction/Dependency/SDNIPfuntionMininet.py |
| 32 | |
| 33 | Step 6: set up tunnel on Mninet VM to ONOS VM. |
| 34 | $ssh -nNT -o "PasswordAuthentication no" -o "StrictHostKeyChecking no" -l sdn -L 1.1.1.2:2000:10.128.4.52:2000 10.128.4.52 & |
| 35 | |
| 36 | Step 7: finally you can run testOn script. |
| 37 | $cd ~/OnosSystemTest/TestON/bin |
| 38 | $./cli.py run SDNIPfunction |