Simon Hunt
Committed by Gerrit Code Review

UK Topology

Change-Id: I64ae0ad2b3875f06db3f4650e1899698b20bf058
...@@ -9,12 +9,8 @@ ...@@ -9,12 +9,8 @@
9 ### sudo route -n add 10.0.3.0/24 192.168.56.102 9 ### sudo route -n add 10.0.3.0/24 192.168.56.102
10 ### 10 ###
11 11
12 -## Use this command on VM to see IP addresses of instances: 12 +## ONOS Cluster VM (has LXC containers for cluster nodes)
13 -## sudo lxc-ls --fancy 13 +export OCVM=192.168.56.102
14 -
15 -export ONOS_USE_SSH=true
16 -export ONOS_NIC="10.0.3.*"
17 -
18 14
19 #============================================ 15 #============================================
20 # sdn@ubuntuvm:~$ sudo lxc-ls --fancy 16 # sdn@ubuntuvm:~$ sudo lxc-ls --fancy
...@@ -24,12 +20,13 @@ export ONOS_NIC="10.0.3.*" ...@@ -24,12 +20,13 @@ export ONOS_NIC="10.0.3.*"
24 #============================================ 20 #============================================
25 21
26 22
23 +export ONOS_USE_SSH=true
24 +export ONOS_NIC="10.0.3.*"
25 +
27 ## ONOS instances (LXC containers) 26 ## ONOS instances (LXC containers)
28 export OC1=10.0.3.174 27 export OC1=10.0.3.174
29 -# TODO: clone OC1 28 +export OC2=10.0.3.242
30 -#export OC2=10.0.3.78 29 +export OC3=10.0.3.49
31 -#export OC3=10.0.3.195
32 -#export OC4=10.0.3.126
33 30
34 ## default ONOS instance 31 ## default ONOS instance
35 export OCI=$OC1 32 export OCI=$OC1
......
1 +<!--
2 + ~ Copyright 2016 Open Networking Laboratory
3 + ~
4 + ~ Licensed under the Apache License, Version 2.0 (the "License");
5 + ~ you may not use this file except in compliance with the License.
6 + ~ You may obtain a copy of the License at
7 + ~
8 + ~ http://www.apache.org/licenses/LICENSE-2.0
9 + ~
10 + ~ Unless required by applicable law or agreed to in writing, software
11 + ~ distributed under the License is distributed on an "AS IS" BASIS,
12 + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 + ~ See the License for the specific language governing permissions and
14 + ~ limitations under the License.
15 + -->
16 +<scenario name="net-setup-uk" description="Network setup steps">
17 + <!-- TODO: parametrize this via recipes -->
18 + <!-- Customized for the UK topology -->
19 + <group name="Net-Setup-UK">
20 +
21 + <step name="Push-Topos" exec="onos-push-topos ${OCN}"/>
22 +
23 + <step name="Stop-Mininet-If-Needed" env="~" exec="onos-mininet stop"/>
24 + <step name="Wipe-Out-Data-Before" exec="onos-wipe-out" requires="^"/>
25 +
26 + <step name="Initial-Summary-Check" requires="~Wipe-Out-Data-Before"
27 + exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/>
28 +
29 + <step name="Config-Topo" requires="~Initial-Summary-Check"
30 + exec="onos-netcfg ${OC1} ${ONOS_ROOT}/tools/test/topos/uk-cfg.json"/>
31 +
32 + <step name="Start-Mininet"
33 + requires="Install-Apps,Config-Topo,Push-Topos,Stop-Mininet-If-Needed"
34 + exec="onos-mininet start topos/topo uk-onos.py ${ONOS_INSTANCES}"/>
35 +
36 + <step name="Wait-For-Mininet" requires="Start-Mininet"
37 + exec="onos-mininet wait 10"/>
38 +
39 + <step name="Check-Summary" requires="~Wait-For-Mininet"
40 + exec="onos-check-summary ${OC1} [0-9]* 12 46 12"/>
41 +
42 + <step name="Balance-Masters" requires="~Check-Summary" if="${OC2}"
43 + exec="onos ${OC1} balance-masters"/>
44 +
45 + <step name="Check-Flows" requires="~Balance-Masters,~Check-Summary" delay="5"
46 + exec="onos-check-flows ${OC1}"/>
47 + </group>
48 +</scenario>
1 +#!/usr/bin/python
2 +
3 +from onosnet import run
4 +from uk import UkTopo
5 +
6 +run( UkTopo() )