blob: a6c2d79e09ba83fcd1307bfc7d60ca2ff70ff537 [file] [log] [blame]
Saurav Das2d6be062014-10-16 10:24:27 -07001{
2 "comment": " Multilayer 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,
14 "adjacencySids": [
15 { "portNo": 6, "adjSid": 10234 },
16 { "portNo": 7, "adjSid": 29019 }
17 ],
18 "subnets": [
19 { "portNo": 1, "subnetIp": "10.0.1.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,
29 "isEdgeRouter" : false,
30 "adjacencySids": [
31 { "portNo": 1, "adjSid": 12453 },
32 { "portNo": 2, "adjSid": 23333 },
33 { "portNo": 3, "adjSid": 22233 }
34 ]
35 }
36 },
37
38 { "nodeDpid": "00:03", "name": "Dallas-R3", "type": "Router_SR", "allowed": true,
39 "latitude": 80.80, "longitude": 90.10,
40 "params": { "routerIp": "192.168.0.3/32",
41 "routerMac": "00:00:03:03:03:80",
42 "nodeSid": 103,
43 "isEdgeRouter" : false,
44 "adjacencySids": [
45 { "portNo": 2, "adjSid": 92033 }
46 ]
47 }
48 },
49
50 { "nodeDpid": "00:04", "name": "Dallas-R4", "type": "Router_SR", "allowed": true,
51 "latitude": 80.80, "longitude": 90.10,
52 "params": { "routerIp": "192.168.0.4/32",
53 "routerMac": "00:00:04:04:04:80",
54 "nodeSid": 104,
55 "isEdgeRouter" : false,
56 "adjacencySids": [
57 { "portNo": 2, "adjSid": 92033 }
58 ]
59 }
60 },
61
62 { "nodeDpid": "00:05", "name": "Dallas-R5", "type": "Router_SR", "allowed": true,
63 "latitude": 80.80, "longitude": 90.10,
64 "params": { "routerIp": "192.168.0.5/32",
65 "routerMac": "00:00:05:05:05:80",
66 "nodeSid": 105,
67 "isEdgeRouter" : false,
68 "adjacencySids": [
69 { "portNo": 2, "adjSid": 92033 }
70 ]
71 }
72 },
73
74 { "nodeDpid": "00:06", "name": "Dallas-R6", "type": "Router_SR", "allowed": true,
75 "latitude": 80.80, "longitude": 90.10,
76 "params": { "routerIp": "192.168.0.6/32",
77 "routerMac": "00:00:07:07:07:80",
78 "nodeSid": 106,
79 "isEdgeRouter" : true,
80 "adjacencySids": [
81 { "portNo": 2, "adjSid": 92033 }
82 ],
83 "subnets": [
84 { "portNo": 1, "subnetIp": "7.7.7.128/24" }
85 ]
86 }
87 }
88
89 ],
90
91 "linkConfig":[
92
93 { "type": "pktLink", "allowed": true,
94 "nodeDpid1": "01", "nodeDpid2": "02",
95 "params": { "port1": 2, "port2": 1 }
96 },
97
98 { "type": "pktLink", "allowed": true,
99 "nodeDpid1": "01", "nodeDpid2": "03",
100 "params": { "port1": 3, "port2": 1 }
101 },
102
103 { "type": "pktLink", "allowed": true,
104 "nodeDpid1": "02", "nodeDpid2": "03",
105 "params": { "port1": 2, "port2": 2 }
106 },
107
108 { "type": "pktLink", "allowed": true,
109 "nodeDpid1": "02", "nodeDpid2": "05",
110 "params": { "port1": 3, "port2": 1 }
111 },
112
113 { "type": "pktLink", "allowed": true,
114 "nodeDpid1": "03", "nodeDpid2": "04",
115 "params": { "port1": 3, "port2": 1 }
116 },
117
118 { "type": "pktLink", "allowed": true,
119 "nodeDpid1": "04", "nodeDpid2": "05",
120 "params": { "port1": 2, "port2": 2 }
121 },
122
123 { "type": "pktLink", "allowed": true,
124 "nodeDpid1": "04", "nodeDpid2": "06",
125 "params": { "port1": 3, "port2": 2 }
126 },
127
128 { "type": "pktLink", "allowed": true,
129 "nodeDpid1": "05", "nodeDpid2": "06",
130 "params": { "port1": 3, "port2": 3 }
131 }
132
133 ]
134
135}