blob: 5eaef58b42545e3ea72fb6ea1a7ac3613a8bcc42 [file] [log] [blame]
pingping-lin7d4e9072015-11-18 13:16:35 -08001This is a tutorial for you to manually run this test.
2Normally, we run it from Jenkins, most of steps below are configured on Jenkins,
3and will be automatically run by Jenkins.
4But here, we need to manually run all the steps.
5
6In this test environment, we use 3 nodes:
7 1) One is for running Mininet, Quagga, TestON, compiling ONOS.
8 2) The second one is running ONOS.
9 3) The third one is running FlowSpace Firewall (FSFW).
10
11
12Step 1: Install and configure Quagga.
13
14SDN-IP application uses Quagga as the BGP speaker. You need to install Quagga
15on the Mininet node, and I assume you already have Mininet in the first node.
16$ sudo apt-get install quagga
17
18After installation, check whether the Quagga directory is /usr/lib/quagga,
19otherwise you need to change the Quagga directory in USECASE_SdnipI2MN.py.
20
21Then create a running directory for Quagga:
22$cd /usr/local/var/run/
23$sudo mkdir quagga
24$sudo chmod 777 quagga
25
26
27Step 2: SDN-IP/ONOS configuration.
28
29Copy the SDN-IP/ONOS file to your ONOS directory:
30$cp ~/OnosSystemTest/TestON/tests/USECASE_SdnipFunction_fsfw/network-cfg.json ~/onos/tools/package/config/network-cfg.json
31$cp ~/OnosSystemTest/TestON/tests/USECASE_SdnipFunction_fsfw/sdnip_single_instance ~/onos/tools/test/cells/sdnip_single_instance
32
33Then enable the cell file:
34$cell sdnip_single_instance
35
36You also need to compile ONOS:
37$cd ~/onos
38$mcis
39
40Step 3: Copy public RSA keys from first node to second node.
41
42Copy public RSA key of the "root" user (not other users) from the first node to
43second node which is running ONOS.
44This is because we need to set up a tunnel from Mninet node to ONOS node for
45communication between Quagga and SDN-IP.
46
47The location of the root key is:
48$ sudo su root
49# cat ~/.ssh/id_rsa.pub
50
51Copy the key above to this file on the second node:
52$vim ~/.ssh/authorized_keys
53
54To correctly run ONOS, also make sure that the public key of the user which
55compiles ONOS is also in "authorized_keys" file on the second node.
56
57
58Step 4: Install, configure, and run FSFW.
59
60Install FSFW, and copy the FSFW configuration file from TestON directory in the first node to the FSFW node.
Jon Hall53c5e662016-04-13 16:06:56 -070061$scp ~/OnosSystemTest/TestON/tests/USECASE_SdnipFunction_fsfw/dependencies/fsfw.xml root@10.128.10.12:/etc/fsfw/
pingping-lin7d4e9072015-11-18 13:16:35 -080062
63Change the controller IP address in fsfw.xml to your IP address of the node
64running ONOS.
65$service fsfw start
66
67Note: you only need to do Step 1, 2, 3, and 4 once.
68
69
70Step 5: Each time, before starting the test, run the following command to clean
71the whole environment.
72$ ~/OnosSystemTest/TestON/bin/cleanup.sh
73
74
75Step 6: Finally you can run TestON script.
76$cd ~/OnosSystemTest/TestON/bin
77$./cli.py run USECASE_SdnipFunction_fsfw