Sangho Shin | 14f024f | 2014-10-27 17:06:10 -0700 | [diff] [blame] | 1 | { |
| 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 | "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": [ |
| 27 | { "adjSid": 12453 , "ports": [ 2 ,3 ] } |
| 28 | ] |
| 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, |
| 37 | "isEdgeRouter" : false |
| 38 | } |
| 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, |
| 46 | "isEdgeRouter" : false |
| 47 | } |
| 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, |
| 55 | "isEdgeRouter" : false |
| 56 | } |
| 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, |
| 65 | "subnets": [ |
| 66 | { "portNo": 1, "subnetIp": "7.7.7.128/24" } |
| 67 | ] |
| 68 | } |
| 69 | }, |
| 70 | |
| 71 | { "nodeDpid": "00:07", "name": "NewYork-R7", "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-R8", "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 | } |
| 93 | }, |
| 94 | |
| 95 | { "nodeDpid": "00:09", "name": "NewYork-R9", "type": "Router_SR", "allowed": true, |
| 96 | "latitude": 80.80, "longitude": 90.10, |
| 97 | "params": { "routerIp": "192.168.0.9/32", |
| 98 | "routerMac": "00:00:00:00:09:80", |
| 99 | "nodeSid": 109, |
| 100 | "isEdgeRouter" : false |
| 101 | } |
| 102 | }, |
| 103 | |
| 104 | { "nodeDpid": "00:0a", "name": "NewYork-R10", "type": "Router_SR", "allowed": true, |
| 105 | "latitude": 80.80, "longitude": 90.10, |
| 106 | "params": { "routerIp": "192.168.0.10/32", |
| 107 | "routerMac": "00:00:00:00:0a:80", |
| 108 | "nodeSid": 110, |
| 109 | "isEdgeRouter" : true, |
| 110 | "subnets": [ |
| 111 | { "portNo": 1, "subnetIp": "10.1.2.128/24" } |
| 112 | ] |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | ], |
| 117 | |
| 118 | "linkConfig":[ |
| 119 | |
| 120 | { "type": "pktLink", "allowed": true, |
| 121 | "nodeDpid1": "01", "nodeDpid2": "02", |
| 122 | "params": { "port1": 2, "port2": 1 } |
| 123 | }, |
| 124 | |
| 125 | { "type": "pktLink", "allowed": true, |
| 126 | "nodeDpid1": "01", "nodeDpid2": "03", |
| 127 | "params": { "port1": 3, "port2": 1 } |
| 128 | }, |
| 129 | |
| 130 | { "type": "pktLink", "allowed": true, |
| 131 | "nodeDpid1": "02", "nodeDpid2": "03", |
| 132 | "params": { "port1": 2, "port2": 2 } |
| 133 | }, |
| 134 | |
| 135 | { "type": "pktLink", "allowed": true, |
| 136 | "nodeDpid1": "02", "nodeDpid2": "05", |
| 137 | "params": { "port1": 3, "port2": 1 } |
| 138 | }, |
| 139 | |
| 140 | { "type": "pktLink", "allowed": true, |
| 141 | "nodeDpid1": "03", "nodeDpid2": "04", |
| 142 | "params": { "port1": 3, "port2": 1 } |
| 143 | }, |
| 144 | |
| 145 | { "type": "pktLink", "allowed": true, |
| 146 | "nodeDpid1": "04", "nodeDpid2": "05", |
| 147 | "params": { "port1": 2, "port2": 2 } |
| 148 | }, |
| 149 | |
| 150 | { "type": "pktLink", "allowed": true, |
| 151 | "nodeDpid1": "04", "nodeDpid2": "06", |
| 152 | "params": { "port1": 3, "port2": 2 } |
| 153 | }, |
| 154 | |
| 155 | { "type": "pktLink", "allowed": true, |
| 156 | "nodeDpid1": "05", "nodeDpid2": "06", |
| 157 | "params": { "port1": 3, "port2": 3 } |
| 158 | }, |
| 159 | |
| 160 | { "type": "pktLink", "allowed": true, |
| 161 | "nodeDpid1": "07", "nodeDpid2": "08", |
| 162 | "params": { "port1": 2, "port2": 1 } |
| 163 | }, |
| 164 | |
| 165 | { "type": "pktLink", "allowed": true, |
| 166 | "nodeDpid1": "09", "nodeDpid2": "0a", |
| 167 | "params": { "port1": 1, "port2": 2} |
| 168 | }, |
| 169 | |
| 170 | { "type": "pktLink", "allowed": true, |
| 171 | "nodeDpid1": "02", "nodeDpid2": "09", |
| 172 | "params": { "port1": 4, "port2": 2 } |
| 173 | }, |
| 174 | |
| 175 | { "type": "pktLink", "allowed": true, |
| 176 | "nodeDpid1": "02", "nodeDpid2": "08", |
| 177 | "params": { "port1": 5, "port2": 2 } |
| 178 | }, |
| 179 | |
| 180 | { "type": "pktLink", "allowed": true, |
| 181 | "nodeDpid1": "05", "nodeDpid2": "08", |
| 182 | "params": { "port1": 4, "port2": 3 } |
| 183 | }, |
| 184 | |
| 185 | { "type": "pktLink", "allowed": true, |
| 186 | "nodeDpid1": "08", "nodeDpid2": "0a", |
| 187 | "params": { "port1": 4, "port2": 3} |
| 188 | }, |
| 189 | |
| 190 | { "type": "pktLink", "allowed": true, |
| 191 | "nodeDpid1": "09", "nodeDpid2": "07", |
| 192 | "params": { "port1": 3, "port2": 3} |
| 193 | }, |
| 194 | |
| 195 | { "type": "pktLink", "allowed": true, |
| 196 | "nodeDpid1": "09", "nodeDpid2": "05", |
| 197 | "params": { "port1": 4, "port2": 5} |
| 198 | }, |
| 199 | |
| 200 | { "type": "pktLink", "allowed": true, |
| 201 | "nodeDpid1": "02", "nodeDpid2": "05", |
| 202 | "params": { "port1": 6, "port2": 6} |
| 203 | } |
| 204 | ] |
| 205 | |
| 206 | } |