Saurav Das | 2d6be06 | 2014-10-16 10:24:27 -0700 | [diff] [blame] | 1 | { |
Saurav Das | 2d41a43 | 2014-10-21 20:40:10 -0700 | [diff] [blame] | 2 | "comment": " Fist topology 1 - [2,3] - [5,4] - 6", |
Saurav Das | 2d6be06 | 2014-10-16 10:24:27 -0700 | [diff] [blame] | 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, |
Saurav Das | 2d6be06 | 2014-10-16 10:24:27 -0700 | [diff] [blame] | 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": [ |
Saurav Das | 2d41a43 | 2014-10-21 20:40:10 -0700 | [diff] [blame] | 27 | { "adjSid": 12453 , "ports": [ 2 ,3 ] } |
Saurav Das | 2d6be06 | 2014-10-16 10:24:27 -0700 | [diff] [blame] | 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, |
Saurav Das | 2d41a43 | 2014-10-21 20:40:10 -0700 | [diff] [blame] | 37 | "isEdgeRouter" : false |
Saurav Das | 2d6be06 | 2014-10-16 10:24:27 -0700 | [diff] [blame] | 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, |
Saurav Das | 2d41a43 | 2014-10-21 20:40:10 -0700 | [diff] [blame] | 46 | "isEdgeRouter" : false |
Saurav Das | 2d6be06 | 2014-10-16 10:24:27 -0700 | [diff] [blame] | 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, |
Saurav Das | 2d41a43 | 2014-10-21 20:40:10 -0700 | [diff] [blame] | 55 | "isEdgeRouter" : false |
Saurav Das | 2d6be06 | 2014-10-16 10:24:27 -0700 | [diff] [blame] | 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, |
Saurav Das | 2d6be06 | 2014-10-16 10:24:27 -0700 | [diff] [blame] | 65 | "subnets": [ |
| 66 | { "portNo": 1, "subnetIp": "7.7.7.128/24" } |
| 67 | ] |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | ], |
| 72 | |
| 73 | "linkConfig":[ |
| 74 | |
| 75 | { "type": "pktLink", "allowed": true, |
| 76 | "nodeDpid1": "01", "nodeDpid2": "02", |
| 77 | "params": { "port1": 2, "port2": 1 } |
| 78 | }, |
| 79 | |
| 80 | { "type": "pktLink", "allowed": true, |
| 81 | "nodeDpid1": "01", "nodeDpid2": "03", |
| 82 | "params": { "port1": 3, "port2": 1 } |
| 83 | }, |
| 84 | |
| 85 | { "type": "pktLink", "allowed": true, |
| 86 | "nodeDpid1": "02", "nodeDpid2": "03", |
| 87 | "params": { "port1": 2, "port2": 2 } |
| 88 | }, |
| 89 | |
| 90 | { "type": "pktLink", "allowed": true, |
| 91 | "nodeDpid1": "02", "nodeDpid2": "05", |
| 92 | "params": { "port1": 3, "port2": 1 } |
| 93 | }, |
| 94 | |
| 95 | { "type": "pktLink", "allowed": true, |
| 96 | "nodeDpid1": "03", "nodeDpid2": "04", |
| 97 | "params": { "port1": 3, "port2": 1 } |
| 98 | }, |
| 99 | |
| 100 | { "type": "pktLink", "allowed": true, |
| 101 | "nodeDpid1": "04", "nodeDpid2": "05", |
| 102 | "params": { "port1": 2, "port2": 2 } |
| 103 | }, |
| 104 | |
| 105 | { "type": "pktLink", "allowed": true, |
| 106 | "nodeDpid1": "04", "nodeDpid2": "06", |
| 107 | "params": { "port1": 3, "port2": 2 } |
| 108 | }, |
| 109 | |
| 110 | { "type": "pktLink", "allowed": true, |
| 111 | "nodeDpid1": "05", "nodeDpid2": "06", |
| 112 | "params": { "port1": 3, "port2": 3 } |
| 113 | } |
| 114 | |
| 115 | ] |
| 116 | |
| 117 | } |