blob: 6f0216b4fd6eea6b093e0bd09d0ebf1117095559 [file] [log] [blame]
pingping-lin500727a2015-09-02 19:53:11 -07001In this test case, we use 2 VMs. One is running Mininet testbed together with
2Quagga, the other one is running ONOS.
3
4Step 1: Install and configure Quagga.
5SDN-IP application uses Quagga as the BGP speaker. You need to install Quagga
6on the mininet VM.
7After installation, check whether the Quagga directory is /usr/lib/quagga,
8otherwise you need to change the directory in SDNIPfuntionMininet.py.
9Then, generate Quagga configuration files.
Jon Hall53c5e662016-04-13 16:06:56 -070010$cd ~/OnosSystemTest/TestON/tests/SDNIPfunction/dependencies/as4quaggas/
pingping-lin500727a2015-09-02 19:53:11 -070011$./quagga-config-gen.sh
12
13Step 2: SDN-IP/ONOS configuration.
14Copy 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
17Then enable the cell file:
18$cell sdnip_single_instance
19
20Step 3: copy .bash_killcmd file to ~/.bash_killcmd on Mininet VM.
21Add "source .bash_killcmd " into the ~/.bashrc file, then run:
22$source ~/.baschrc
23
24Note: you only need to do Step 1, 2, and 3 once.
25
26Step 4: each time, before starting the test, run the following command to clean
27the environment.
28$ killTestONall
29
30Step 5: run Mininet testbed to setup the test environment.
Jon Hall53c5e662016-04-13 16:06:56 -070031$sudo ~/OnosSystemTest/TestON/tests/SDNIPfunction/dependencies/SDNIPfuntionMininet.py
pingping-lin500727a2015-09-02 19:53:11 -070032
33Step 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
36Step 7: finally you can run testOn script.
37$cd ~/OnosSystemTest/TestON/bin
38$./cli.py run SDNIPfunction