Saurav Das | b89ed53 | 2014-11-08 17:26:57 -0800 | [diff] [blame] | 1 | { |
| 2 | "comment": " 10 router 3 city topology description and configuration", |
| 3 | "restrictSwitches": true, |
| 4 | "restrictLinks": true, |
| 5 | |
| 6 | "switchConfig": |
| 7 | [ |
| 8 | { "nodeDpid": "00:01", "name": "SFO-ER1", "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 | "subnets": [ |
| 15 | { "portNo": 1, "subnetIp": "10.0.1.128/24" } |
| 16 | ] |
| 17 | } |
| 18 | }, |
| 19 | |
| 20 | { "nodeDpid": "00:02", "name": "SFO-CR2", "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": [ |
| 27 | { "adjSid": 12453 , "ports": [ 2 ,3 ] } |
| 28 | ] |
| 29 | } |
| 30 | }, |
| 31 | |
| 32 | { "nodeDpid": "00:03", "name": "SFO-CR3", "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, |
| 37 | "isEdgeRouter" : false |
| 38 | } |
| 39 | }, |
| 40 | |
| 41 | { "nodeDpid": "00:04", "name": "Dallas-CR4", "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, |
| 46 | "isEdgeRouter" : false |
| 47 | } |
| 48 | }, |
| 49 | |
| 50 | { "nodeDpid": "00:05", "name": "Dallas-CR5", "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, |
| 55 | "isEdgeRouter" : false |
| 56 | } |
| 57 | }, |
| 58 | |
| 59 | { "nodeDpid": "00:06", "name": "Dallas-ER6", "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, |
| 65 | "subnets": [ |
| 66 | { "portNo": 1, "subnetIp": "7.7.7.128/24" } |
| 67 | ] |
| 68 | } |
| 69 | }, |
| 70 | |
| 71 | { "nodeDpid": "00:07", "name": "NewYork-ER7", "type": "Router_SR", "allowed": true, |
| 72 | "latitude": 80.80, "longitude": 90.10, |
| 73 | "params": { "routerIp": "192.168.0.7/32", |
| 74 | "routerMac": "00:00:00:00:07:80", |
| 75 | "nodeSid": 107, |
| 76 | "isEdgeRouter" : true, |
| 77 | "adjacencySids": [ |
| 78 | { "adjSid": 12345 , "ports": [ 2 ,3 ] } |
| 79 | ], |
| 80 | "subnets": [ |
| 81 | { "portNo": 1, "subnetIp": "10.1.1.128/24" } |
| 82 | ] |
| 83 | } |
| 84 | }, |
| 85 | |
| 86 | { "nodeDpid": "00:08", "name": "NewYork-CR8", "type": "Router_SR", "allowed": true, |
| 87 | "latitude": 80.80, "longitude": 90.10, |
| 88 | "params": { "routerIp": "192.168.0.8/32", |
| 89 | "routerMac": "00:00:00:00:08:80", |
| 90 | "nodeSid": 108, |
| 91 | "isEdgeRouter" : false, |
| 92 | "adjacencySids": [ |
| 93 | { "adjSid": 88888, "ports": [ 3, 6, 4 ] } |
| 94 | ] |
| 95 | |
| 96 | } |
| 97 | }, |
| 98 | |
| 99 | { "nodeDpid": "00:09", "name": "NewYork-CR9", "type": "Router_SR", "allowed": true, |
| 100 | "latitude": 80.80, "longitude": 90.10, |
| 101 | "params": { "routerIp": "192.168.0.9/32", |
| 102 | "routerMac": "00:00:00:00:09:80", |
| 103 | "nodeSid": 109, |
| 104 | "isEdgeRouter" : false |
| 105 | } |
| 106 | }, |
| 107 | |
| 108 | { "nodeDpid": "00:0a", "name": "NewYork-ER10", "type": "Router_SR", "allowed": true, |
| 109 | "latitude": 80.80, "longitude": 90.10, |
| 110 | "params": { "routerIp": "192.168.0.10/32", |
| 111 | "routerMac": "00:00:00:00:0a:80", |
| 112 | "nodeSid": 110, |
| 113 | "isEdgeRouter" : true, |
| 114 | "subnets": [ |
| 115 | { "portNo": 1, "subnetIp": "10.1.2.128/24" } |
| 116 | ] |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | ], |
| 121 | |
| 122 | "linkConfig":[ |
| 123 | |
| 124 | { "type": "pktLink", "allowed": true, |
| 125 | "nodeDpid1": "01", "nodeDpid2": "02", |
| 126 | "params": { "port1": 2, "port2": 1 } |
| 127 | }, |
| 128 | |
| 129 | { "type": "pktLink", "allowed": true, |
| 130 | "nodeDpid1": "01", "nodeDpid2": "03", |
| 131 | "params": { "port1": 3, "port2": 1 } |
| 132 | }, |
| 133 | |
| 134 | { "type": "pktLink", "allowed": true, |
| 135 | "nodeDpid1": "02", "nodeDpid2": "03", |
| 136 | "params": { "port1": 2, "port2": 2 } |
| 137 | }, |
| 138 | |
| 139 | { "type": "pktLink", "allowed": true, |
| 140 | "nodeDpid1": "02", "nodeDpid2": "05", |
| 141 | "params": { "port1": 3, "port2": 1 } |
| 142 | }, |
| 143 | |
| 144 | { "type": "pktLink", "allowed": true, |
| 145 | "nodeDpid1": "03", "nodeDpid2": "04", |
| 146 | "params": { "port1": 3, "port2": 1 } |
| 147 | }, |
| 148 | |
| 149 | { "type": "pktLink", "allowed": true, |
| 150 | "nodeDpid1": "04", "nodeDpid2": "05", |
| 151 | "params": { "port1": 2, "port2": 2 } |
| 152 | }, |
| 153 | |
| 154 | { "type": "pktLink", "allowed": true, |
| 155 | "nodeDpid1": "04", "nodeDpid2": "06", |
| 156 | "params": { "port1": 3, "port2": 2 } |
| 157 | }, |
| 158 | |
| 159 | { "type": "pktLink", "allowed": true, |
| 160 | "nodeDpid1": "05", "nodeDpid2": "06", |
| 161 | "params": { "port1": 3, "port2": 3 } |
| 162 | }, |
| 163 | |
| 164 | { "type": "pktLink", "allowed": true, |
| 165 | "nodeDpid1": "07", "nodeDpid2": "08", |
| 166 | "params": { "port1": 2, "port2": 1 } |
| 167 | }, |
| 168 | |
| 169 | |
| 170 | |
| 171 | { "type": "pktLink", "allowed": true, |
| 172 | "nodeDpid1": "09", "nodeDpid2": "0a", |
| 173 | "params": { "port1": 2, "port2": 2} |
| 174 | }, |
| 175 | |
| 176 | { "type": "pktLink", "allowed": true, |
| 177 | "nodeDpid1": "02", "nodeDpid2": "09", |
| 178 | "params": { "port1": 4, "port2": 3 } |
| 179 | }, |
| 180 | |
| 181 | { "type": "pktLink", "allowed": true, |
| 182 | "nodeDpid1": "02", "nodeDpid2": "08", |
| 183 | "params": { "port1": 5, "port2": 3 } |
| 184 | }, |
| 185 | |
| 186 | { "type": "pktLink", "allowed": true, |
| 187 | "nodeDpid1": "05", "nodeDpid2": "08", |
| 188 | "params": { "port1": 4, "port2": 4 } |
| 189 | }, |
| 190 | |
| 191 | { "type": "pktLink", "allowed": true, |
| 192 | "nodeDpid1": "08", "nodeDpid2": "0a", |
| 193 | "params": { "port1": 5, "port2": 3} |
| 194 | }, |
| 195 | |
| 196 | { "type": "pktLink", "allowed": true, |
| 197 | "nodeDpid1": "09", "nodeDpid2": "07", |
| 198 | "params": { "port1": 4, "port2": 3} |
| 199 | }, |
| 200 | |
| 201 | { "type": "pktLink", "allowed": true, |
| 202 | "nodeDpid1": "09", "nodeDpid2": "08", |
| 203 | "params": { "port1": 1, "port2": 2} |
| 204 | }, |
| 205 | |
| 206 | { "type": "pktLink", "allowed": true, |
| 207 | "nodeDpid1": "01", "nodeDpid2": "03", |
| 208 | "params": { "port1": 4, "port2": 4} |
| 209 | }, |
| 210 | |
| 211 | { "type": "pktLink", "allowed": true, |
| 212 | "nodeDpid1": "02", "nodeDpid2": "08", |
| 213 | "params": { "port1": 6, "port2": 6} |
| 214 | }, |
| 215 | |
| 216 | { "type": "pktLink", "allowed": true, |
| 217 | "nodeDpid1": "09", "nodeDpid2": "05", |
| 218 | "params": { "port1": 5, "port2": 5} |
| 219 | } |
| 220 | |
| 221 | |
| 222 | ] |
| 223 | |
| 224 | } |