blob: 2bd8b22b307cb588872ce010a8dee8f3feb79080 [file] [log] [blame]
Naoki Shiota2322a2f2014-05-21 19:47:40 -07001"""
2This is sample config file for start_topo.py.
3Please rename to topo.`hostname`.py before use.
4"""
5def createTopo():
6 return {
7 "controllers": {
8 "onosdev1" : "192.168.56.11:6633",
9 "onosdev2" : "192.168.56.12:6633"
10 },
11 "switches": {
12 "sw01": { "dpid": "0000000000000101", "controllers": [ "onosdev1" ] },
13 "sw02": { "dpid": "0000000000000102", "controllers": [ "onosdev1" ] },
14 "sw03": { "dpid": "0000000000000103", "controllers": [ "onosdev1" ] },
15 "sw04": { "dpid": "0000000000000104", "controllers": [ "onosdev2" ] },
16 "sw05": { "dpid": "0000000000000105", "controllers": [ "onosdev2", "onosdev1" ] }
17 },
18 "hosts": {
19 "h01": {},
20 "h02": {},
21 "h03": {},
22 "h04": {},
23 "h05": {}
24 },
25 "links": [
26 {
27 "node1": "sw01",
28 "node2": "sw02"
29 },{
30 "node1": "sw02",
31 "node2": "sw03"
32 },{
33 "node1": "sw03",
34 "node2": "sw04"
35 },{
36 "node1": "sw04",
37 "node2": "sw05"
38 },{
39 "node1": "sw05",
40 "node2": "sw01"
41 },{
42 "node1": "h01",
43 "node2": "sw01"
44 },{
45 "node1": "h02",
46 "node2": "sw02"
47 },{
48 "node1": "h03",
49 "node2": "sw03"
50 },{
51 "node1": "h04",
52 "node2": "sw04"
53 },{
54 "node1": "h05",
55 "node2": "sw05"
56 }
57 ]
58}