Sangho Shin | de834b5 | 2014-10-29 15:48:03 -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" : true, |
| 26 | "subnets": [ |
| 27 | { "portNo": 1, "subnetIp": "10.0.2.128/24" } |
| 28 | ] |
| 29 | } |
| 30 | |
| 31 | }, |
| 32 | |
| 33 | { "nodeDpid": "00:03", "name": "Dallas-R3", "type": "Router_SR", "allowed": true, |
| 34 | "latitude": 80.80, "longitude": 90.10, |
| 35 | "params": { "routerIp": "192.168.0.3/32", |
| 36 | "routerMac": "00:00:03:03:03:80", |
| 37 | "nodeSid": 103, |
| 38 | "isEdgeRouter" : true, |
| 39 | "subnets": [ |
| 40 | { "portNo": 1, "subnetIp": "10.0.3.128/24" } |
| 41 | ] |
| 42 | } |
| 43 | }, |
| 44 | |
| 45 | { "nodeDpid": "00:04", "name": "Dallas-R4", "type": "Router_SR", "allowed": true, |
| 46 | "latitude": 80.80, "longitude": 90.10, |
| 47 | "params": { "routerIp": "192.168.0.4/32", |
| 48 | "routerMac": "00:00:04:04:04:80", |
| 49 | "nodeSid": 104, |
| 50 | "isEdgeRouter" : true, |
| 51 | "subnets": [ |
| 52 | { "portNo": 1, "subnetIp": "10.0.4.128/24" } |
| 53 | ] |
| 54 | } |
| 55 | }, |
| 56 | |
| 57 | { "nodeDpid": "00:05", "name": "Dallas-R5", "type": "Router_SR", "allowed": true, |
| 58 | "latitude": 80.80, "longitude": 90.10, |
| 59 | "params": { "routerIp": "192.168.0.5/32", |
| 60 | "routerMac": "00:00:05:05:05:80", |
| 61 | "nodeSid": 105, |
| 62 | "isEdgeRouter" : true, |
| 63 | "subnets": [ |
| 64 | { "portNo": 1, "subnetIp": "10.0.5.128/24" } |
| 65 | ] |
| 66 | } |
| 67 | } |
| 68 | ], |
| 69 | |
| 70 | "linkConfig":[ |
| 71 | |
| 72 | { "type": "pktLink", "allowed": true, |
| 73 | "nodeDpid1": "01", "nodeDpid2": "02", |
| 74 | "params": { "port1": 2, "port2": 2 } |
| 75 | }, |
| 76 | |
| 77 | { "type": "pktLink", "allowed": true, |
| 78 | "nodeDpid1": "02", "nodeDpid2": "03", |
| 79 | "params": { "port1": 3, "port2": 2 } |
| 80 | }, |
| 81 | |
| 82 | { "type": "pktLink", "allowed": true, |
| 83 | "nodeDpid1": "03", "nodeDpid2": "04", |
| 84 | "params": { "port1": 3, "port2": 2 } |
| 85 | }, |
| 86 | |
| 87 | { "type": "pktLink", "allowed": true, |
| 88 | "nodeDpid1": "04", "nodeDpid2": "05", |
| 89 | "params": { "port1": 3, "port2": 2 } |
| 90 | }, |
| 91 | |
| 92 | { "type": "pktLink", "allowed": true, |
| 93 | "nodeDpid1": "05", "nodeDpid2": "01", |
| 94 | "params": { "port1": 3, "port2": 3 } |
| 95 | } |
| 96 | |
| 97 | ] |
| 98 | |
| 99 | } |