blob: f29134cc002204c43266b542a7127be9c3339955 [file] [log] [blame]
David K. Bainbridge317e7d72016-05-11 08:31:44 -07001// This is a commented JSON data file. The comments must stripped from the
2// file before passing it to a JSON parser. This can be done various way
3// including the JavaScript JSON.minify() function or a simple sed script
4// such as "catting" this file through sed -e '|s//.*$||g'.
5
6
7// This file represents the network configuration for the cord demo pod number
8// two (2).
9{
10 "ports" : {
11
12 // Leaf-1/port-1 connected to cord-r2-s1/eth0
13 "of:0000000000000021/1" : {
14 "interfaces" : [
15 {
16 "ips" : [ "10.3.1.254/24" ] // Represents a fake gateway
17 // for this subnet. ONOS will
18 // ARP this and respond.
19 }
20 ]
21 },
22
23 // Leaf-1/port-2 connected to cord-r2-s2/eth0
24 "of:0000000000000021/2" : {
25 "interfaces" : [
26 {
27 "ips" : [ "10.3.1.254/24" ] // Represents a fake gateway
28 // for this subnet. ONOS will
29 // ARP this and respond.
30 },
31 {
32 "vlan" : "1000" // cross-connect s-tag 1000 to Tibit OLT
33 },
34 // Need to specify the public IP for the vSG
35 {
36 "ips" : [ "10.3.1.130/32" ] // vSG public IP address /32
37 }
38 ]
39 },
40
41 // Leaf-1/port-129 connected to Tibit OLT
42 // The physical port is port 25, but we are using a break out cable and thus the switch
43 // create virtual ports
44 "of:0000000000000021/129" : {
45 "interfaces" : [
46 {
47 "name" : "tibit-olt", // unused
48 "vlan" : "1000" // cross-connect s-tag 42 to vSG
49 }
50 ]
51 },
52
53 // Leaf-2/port-3 connected to cord-r2-s3/eth0
54 "of:0000000000000022/3" : {
55 "interfaces" : [
56 {
57 "ips" : [ "10.3.2.254/24" ] // Represents a fake gateway
58 // for this subnet. ONOS will
59 // ARP this and respond.
60 }
61 ]
62 },
63
64 // Leaf-2/port-4 connected to cord-r2-s4/eth0
65 "of:0000000000000022/4" : {
66 "interfaces" : [
67 {
68 "ips" : [ "10.3.2.254/24" ] // Represents a fake gateway
69 // for this subnet. ONOS will
70 // ARP this and respond.
71 }
72 ]
73 }
74 },
75
76 "devices" : {
77 "of:0000000000000021" : {
78 "segmentrouting" : {
79 "name" : "leaf-1",
80 "nodeSid" : 101,
81 "routerIp" : "10.3.1.254",
82 "routerMac" : "cc:37:ab:7c:b9:d6",
83 "isEdgeRouter" : true,
84 "adjacencySids" : []
85 }
86 },
87 "of:0000000000000022" : {
88 "segmentrouting" : {
89 "name" : "leaf-2",
90 "nodeSid" : 102,
91 "routerIp" : "10.3.2.254",
92 "routerMac" : "cc:37:ab:7c:ba:da",
93 "isEdgeRouter" : true,
94 "adjacencySids" : []
95 }
96 },
97 "of:0000000000000011" : {
98 "segmentrouting" : {
99 "name" : "spine-1",
100 "nodeSid" : 103,
101 "routerIp" : "10.2.30.1",
102 "routerMac" : "cc:37:ab:7c:be:68",
103 "isEdgeRouter" : false,
104 "adjacencySids" : []
105 }
106 },
107 "of:0000000000000012" : {
108 "segmentrouting" : {
109 "name" : "spine-2",
110 "nodeSid" : 104,
111 "routerIp" : "10.2.30.2",
112 "routerMac" : "cc:37:ab:7c:bf:ee",
113 "isEdgeRouter" : false,
114 "adjacencySids" : []
115 }
116 }
117 },
118 "links": {
119 // spine 1/1 connected to leaf 1/31
120 "of:0000000000000011/1-of:0000000000000021/31": {
121 "basic": {}
122 },
123
124 // spine 1/2 connected to leaf 2/31
125 "of:0000000000000011/2-of:0000000000000022/31": {
126 "basic": {}
127 },
128
129 // spine 2/1 connected to leaf 1/32
130 "of:0000000000000012/1-of:0000000000000021/32": {
131 "basic": {}
132 },
133
134 // spine 2/2 connected to leaf 2/32
135 "of:0000000000000012/2-of:0000000000000022/32": {
136 "basic": {}
137 },
138
139 // leaf 1/31 connected to spine 1/1
140 "of:0000000000000021/31-of:0000000000000011/1": {
141 "basic": {}
142 },
143
144 // leaf 1/32 connected to spine 2/1
145 "of:0000000000000021/32-of:0000000000000012/1": {
146 "basic": {}
147 },
148
149 // leaf 2/31 connected to spine 1/2
150 "of:0000000000000022/31-of:0000000000000011/2": {
151 "basic": {}
152 },
153
154 // leaf 2/23 connected to spine 2/2
155 "of:0000000000000022/32-of:0000000000000012/2": {
156 "basic": {}
157 }
158 },
159 "hosts" : {
160 // cord-r2-s1 iface eth0
161 "3c:fd:fe:9e:93:10/-1" : {
162 "basic": {
163 "ips": ["10.3.1.1"], // host IP on fabric
164 "location": "of:0000000000000021/1" // link back to fabric leaf-1/port-1
165 }
166 },
167
168 // cord-r2-s2 iface eth0
169 "3c:fd:fe:9e:8a:88/-1" : {
170 "basic": {
171 "ips": ["10.3.1.2"], // host IP on fabric
172 "location": "of:0000000000000021/2" // link back to fabric leaf-1/port-2
173 }
174 },
175
176 // fa:16:3e:94:7e:c5
177 // fa:16:3e:94:7e:c5
178 // OLD: 02:42:0a:03:01:82
179
180 "fa:16:3e:94:7e:c5/-1" : { // vSG1
181 "basic": {
182 "ips": ["10.3.1.130"], // vSG1 public IP address
183 "location": "of:0000000000000001/5"
184 }
185 },
186
187 // OLD: 02:42:0a:03:01:83
188 "fa:16:3e:91:82:6a/-1" : { // vSG1 VM
189 "basic" : {
190 "ips": ["10.3.1.131"],
191 "location": "of:0000000000000001/5"
192 }
193 },
194
195 // cord-r2-s3 iface eth0
196 "3c:fd:fe:9e:94:98/-1" : {
197 "basic": {
198 "ips": ["10.3.2.1"], // host IP on fabric
199 "location": "of:0000000000000022/3" // link back to fabric leaf-2/port-3
200 }
201 },
202
203 // cord-r2-s4 iface eth0
204 "3c:fd:fe:9e:97:98/-1" : {
205 "basic": {
206 "ips": ["10.3.2.2"], // host IP on fabric
207 "location": "of:0000000000000022/4" // link back to fabric leaf-2/port-4
208 }
209 }
210 },
211 "apps" : {
212 "org.onosproject.core" : {
213 "core" : {
214 "linkDiscoveryMode" : "STRICT" // enable strict link validation
David K. Bainbridge6e23ac82016-12-07 12:55:41 -0800215 }
David K. Bainbridge317e7d72016-05-11 08:31:44 -0700216 }
217 }
218}