blob: 7c2c8120b5de597713f92938e8080c572a7d173b [file] [log] [blame]
Saurav Das2d6be062014-10-16 10:24:27 -07001{
Saurav Das2d41a432014-10-21 20:40:10 -07002 "comment": " Fist topology 1 - [2,3] - [5,4] - 6",
Saurav Das2d6be062014-10-16 10:24:27 -07003 "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 ]
17 }
18 },
19
20 { "nodeDpid": "00:02", "name": "Dallas-R2", "type": "Router_SR", "allowed": true,
21 "latitude": 80.80, "longitude": 90.10,
22 "params": { "routerIp": "192.168.0.2/32",
23 "routerMac": "00:00:02:02:02:80",
24 "nodeSid": 102,
25 "isEdgeRouter" : false,
26 "adjacencySids": [
Saurav Das2d41a432014-10-21 20:40:10 -070027 { "adjSid": 12453 , "ports": [ 2 ,3 ] }
Saurav Das2d6be062014-10-16 10:24:27 -070028 ]
29 }
30 },
31
32 { "nodeDpid": "00:03", "name": "Dallas-R3", "type": "Router_SR", "allowed": true,
33 "latitude": 80.80, "longitude": 90.10,
34 "params": { "routerIp": "192.168.0.3/32",
35 "routerMac": "00:00:03:03:03:80",
36 "nodeSid": 103,
Saurav Das2d41a432014-10-21 20:40:10 -070037 "isEdgeRouter" : false
Saurav Das2d6be062014-10-16 10:24:27 -070038 }
39 },
40
41 { "nodeDpid": "00:04", "name": "Dallas-R4", "type": "Router_SR", "allowed": true,
42 "latitude": 80.80, "longitude": 90.10,
43 "params": { "routerIp": "192.168.0.4/32",
44 "routerMac": "00:00:04:04:04:80",
45 "nodeSid": 104,
Saurav Das2d41a432014-10-21 20:40:10 -070046 "isEdgeRouter" : false
Saurav Das2d6be062014-10-16 10:24:27 -070047 }
48 },
49
50 { "nodeDpid": "00:05", "name": "Dallas-R5", "type": "Router_SR", "allowed": true,
51 "latitude": 80.80, "longitude": 90.10,
52 "params": { "routerIp": "192.168.0.5/32",
53 "routerMac": "00:00:05:05:05:80",
54 "nodeSid": 105,
Saurav Das2d41a432014-10-21 20:40:10 -070055 "isEdgeRouter" : false
Saurav Das2d6be062014-10-16 10:24:27 -070056 }
57 },
58
59 { "nodeDpid": "00:06", "name": "Dallas-R6", "type": "Router_SR", "allowed": true,
60 "latitude": 80.80, "longitude": 90.10,
61 "params": { "routerIp": "192.168.0.6/32",
62 "routerMac": "00:00:07:07:07:80",
63 "nodeSid": 106,
64 "isEdgeRouter" : true,
Saurav Das2d6be062014-10-16 10:24:27 -070065 "subnets": [
66 { "portNo": 1, "subnetIp": "7.7.7.128/24" }
67 ]
68 }
69 }
70
71 ],
72
73 "linkConfig":[
74
75 { "type": "pktLink", "allowed": true,
76 "nodeDpid1": "01", "nodeDpid2": "02",
77 "params": { "port1": 2, "port2": 1 }
78 },
79
80 { "type": "pktLink", "allowed": true,
81 "nodeDpid1": "01", "nodeDpid2": "03",
82 "params": { "port1": 3, "port2": 1 }
83 },
84
85 { "type": "pktLink", "allowed": true,
86 "nodeDpid1": "02", "nodeDpid2": "03",
87 "params": { "port1": 2, "port2": 2 }
88 },
89
90 { "type": "pktLink", "allowed": true,
91 "nodeDpid1": "02", "nodeDpid2": "05",
92 "params": { "port1": 3, "port2": 1 }
93 },
94
95 { "type": "pktLink", "allowed": true,
96 "nodeDpid1": "03", "nodeDpid2": "04",
97 "params": { "port1": 3, "port2": 1 }
98 },
99
100 { "type": "pktLink", "allowed": true,
101 "nodeDpid1": "04", "nodeDpid2": "05",
102 "params": { "port1": 2, "port2": 2 }
103 },
104
105 { "type": "pktLink", "allowed": true,
106 "nodeDpid1": "04", "nodeDpid2": "06",
107 "params": { "port1": 3, "port2": 2 }
108 },
109
110 { "type": "pktLink", "allowed": true,
111 "nodeDpid1": "05", "nodeDpid2": "06",
112 "params": { "port1": 3, "port2": 3 }
113 }
114
115 ]
116
117}