Srikanth Vavilapalli | 4db76e3 | 2015-04-07 15:12:32 -0700 | [diff] [blame] | 1 | { |
| 2 | "comment": " Multilayer topology description and configuration", |
| 3 | "restrictSwitches": true, |
| 4 | "restrictLinks": true, |
| 5 | |
| 6 | "switchConfig": |
| 7 | [ |
| 8 | { "nodeDpid" : "of:0000000000000001", "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 | "adjacencySids": [ |
| 15 | { "ports": [ 4, 5 ], "adjSid": 10234 }, |
| 16 | { "ports": [ 6, 7 ], "adjSid": 29019 } |
| 17 | ], |
| 18 | "subnets": [ |
| 19 | { "portNo": 1, "subnetIp": "10.0.1.128/24" } |
| 20 | ] |
| 21 | } |
| 22 | }, |
| 23 | |
| 24 | { "nodeDpid": "of:0000000000000002", "name": "Dallas-R2", "type": "Router_SR", "allowed": true, |
| 25 | "latitude": 80.80, "longitude": 90.10, |
| 26 | "params": { "routerIp": "192.168.0.2/32", |
| 27 | "routerMac": "00:00:02:02:02:80", |
| 28 | "nodeSid": 102, |
| 29 | "isEdgeRouter" : false, |
| 30 | "adjacencySids": [ |
| 31 | { "ports": [ 1, 2 ], "adjSid": 12453 }, |
| 32 | { "ports": [ 2, 3 ], "adjSid": 23333 }, |
| 33 | { "ports": [ 3, 1 ], "adjSid": 22233 } |
| 34 | ] |
| 35 | } |
| 36 | }, |
| 37 | |
| 38 | { "nodeDpid": "of:0000000000000003", "name": "Dallas-R3", "type": "Router_SR", "allowed": true, |
| 39 | "latitude": 80.80, "longitude": 90.10, |
| 40 | "params": { "routerIp": "192.168.0.3/32", |
| 41 | "routerMac": "00:00:03:03:03:80", |
| 42 | "nodeSid": 103, |
| 43 | "isEdgeRouter" : false |
| 44 | } |
| 45 | }, |
| 46 | |
| 47 | { "nodeDpid": "of:0000000000000004", "name": "Dallas-R4", "type": "Router_SR", "allowed": true, |
| 48 | "latitude": 80.80, "longitude": 90.10, |
| 49 | "params": { "routerIp": "192.168.0.4/32", |
| 50 | "routerMac": "00:00:04:04:04:80", |
| 51 | "nodeSid": 104, |
| 52 | "isEdgeRouter" : false |
| 53 | } |
| 54 | }, |
| 55 | |
| 56 | { "nodeDpid": "of:0000000000000005", "name": "Dallas-R5", "type": "Router_SR", "allowed": true, |
| 57 | "latitude": 80.80, "longitude": 90.10, |
| 58 | "params": { "routerIp": "192.168.0.5/32", |
| 59 | "routerMac": "00:00:05:05:05:80", |
| 60 | "nodeSid": 105, |
| 61 | "isEdgeRouter" : false |
| 62 | } |
| 63 | }, |
| 64 | |
| 65 | { "nodeDpid": "of:0000000000000006", "name": "Dallas-R6", "type": "Router_SR", "allowed": true, |
| 66 | "latitude": 80.80, "longitude": 90.10, |
| 67 | "params": { "routerIp": "192.168.0.6/32", |
| 68 | "routerMac": "00:00:07:07:07:80", |
| 69 | "nodeSid": 106, |
| 70 | "isEdgeRouter" : true, |
| 71 | "subnets": [ |
| 72 | { "portNo": 1, "subnetIp": "7.7.7.128/24" } |
| 73 | ] |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | ] |
| 78 | } |