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