blob: 8d0a25b4ed1a247570d87c826dbc214a8e2d44de [file] [log] [blame]
Saurav Das2d6be062014-10-16 10:24:27 -07001{
2 "comment": " Segment routing topology description and configuration",
3 "restrictSwitches": true,
4 "restrictLinks": true,
5
6 "switchConfig":
7 [
8 { "nodeDpid": "00:01", "name": "Dallas-R1", "type": "Router_SR", "allowed": true,
9 "latitude": 80.80, "longitude": 90.10,
10 "params": { "routerIp": "192.168.0.1/32",
11 "routerMac": "00:00:01:01:01:80",
12 "nodeSid": 101,
13 "isEdgeRouter" : true,
Saurav Das2d6be062014-10-16 10:24:27 -070014 "subnets": [
15 { "portNo": 1, "subnetIp": "10.0.1.128/24" },
16 { "portNo": 2, "subnetIp": "10.0.1.128/24" },
17 { "portNo": 3, "subnetIp": "10.0.1.128/24" },
18 { "portNo": 4, "subnetIp": "10.0.2.128/24" },
19 { "portNo": 5, "subnetIp": "10.0.3.128/24" }
20 ]
21 }
22 },
23
24 { "nodeDpid": "00:02", "name": "Dallas-R2", "type": "Router_SR", "allowed": true,
25 "latitude": 80.80, "longitude": 90.10,
26 "params": { "routerIp": "192.168.0.2/32",
27 "routerMac": "00:00:02:02:02:80",
28 "nodeSid": 102,
Saurav Das2d41a432014-10-21 20:40:10 -070029 "isEdgeRouter" : false
Saurav Das2d6be062014-10-16 10:24:27 -070030 }
31 },
32
33 { "nodeDpid": "00:03", "name": "Dallas-R3", "type": "Router_SR", "allowed": true,
34 "latitude": 80.80, "longitude": 90.10,
35 "params": { "routerIp": "192.168.0.3/32",
36 "routerMac": "00:00:07:07:07:80",
37 "nodeSid": 103,
38 "isEdgeRouter" : true,
Saurav Das2d6be062014-10-16 10:24:27 -070039 "subnets": [
40 { "portNo": 1, "subnetIp": "7.7.7.128/24" }
41 ]
42 }
43 }
44
45 ],
46
47 "linkConfig":[
48
49 { "type": "pktLink", "allowed": true,
50 "nodeDpid1": "01", "nodeDpid2": "02",
51 "params": { "port1": 6, "port2": 1 }
52 },
53
54 { "type": "pktLink", "allowed": true,
55 "nodeDpid1": "01", "nodeDpid2": "02",
56 "params": { "port1": 7, "port2": 3 }
57 },
58
59 { "type": "pktLink", "allowed": true,
60 "nodeDpid1": "02", "nodeDpid2": "03",
61 "params": { "port1": 2, "port2": 2 }
62 }
63
64 ]
65
66
67}