Saurav Das | 2d6be06 | 2014-10-16 10:24:27 -0700 | [diff] [blame] | 1 | { |
| 2 | "comment": " Segment routing 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 | "adjacencySids": [ |
| 15 | { "portNo": 6, "adjSid": 10234 }, |
| 16 | { "portNo": 7, "adjSid": 29019 } |
| 17 | ], |
| 18 | "subnets": [ |
| 19 | { "portNo": 1, "subnetIp": "10.0.1.128/24" }, |
| 20 | { "portNo": 2, "subnetIp": "10.0.1.128/24" }, |
| 21 | { "portNo": 3, "subnetIp": "10.0.1.128/24" }, |
| 22 | { "portNo": 4, "subnetIp": "10.0.2.128/24" }, |
| 23 | { "portNo": 5, "subnetIp": "10.0.3.128/24" } |
| 24 | ] |
| 25 | } |
| 26 | }, |
| 27 | |
| 28 | { "nodeDpid": "00:02", "name": "Dallas-R2", "type": "Router_SR", "allowed": true, |
| 29 | "latitude": 80.80, "longitude": 90.10, |
| 30 | "params": { "routerIp": "192.168.0.2/32", |
| 31 | "routerMac": "00:00:02:02:02:80", |
| 32 | "nodeSid": 102, |
| 33 | "isEdgeRouter" : false, |
| 34 | "adjacencySids": [ |
| 35 | { "portNo": 1, "adjSid": 12453 }, |
| 36 | { "portNo": 2, "adjSid": 23333 }, |
| 37 | { "portNo": 3, "adjSid": 22233 } |
| 38 | ] |
| 39 | } |
| 40 | }, |
| 41 | |
| 42 | { "nodeDpid": "00:03", "name": "Dallas-R3", "type": "Router_SR", "allowed": true, |
| 43 | "latitude": 80.80, "longitude": 90.10, |
| 44 | "params": { "routerIp": "192.168.0.3/32", |
| 45 | "routerMac": "00:00:07:07:07:80", |
| 46 | "nodeSid": 103, |
| 47 | "isEdgeRouter" : true, |
| 48 | "adjacencySids": [ |
| 49 | { "portNo": 2, "adjSid": 92033 } |
| 50 | ], |
| 51 | "subnets": [ |
| 52 | { "portNo": 1, "subnetIp": "7.7.7.128/24" } |
| 53 | ] |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | ], |
| 58 | |
| 59 | "linkConfig":[ |
| 60 | |
| 61 | { "type": "pktLink", "allowed": true, |
| 62 | "nodeDpid1": "01", "nodeDpid2": "02", |
| 63 | "params": { "port1": 6, "port2": 1 } |
| 64 | }, |
| 65 | |
| 66 | { "type": "pktLink", "allowed": true, |
| 67 | "nodeDpid1": "01", "nodeDpid2": "02", |
| 68 | "params": { "port1": 7, "port2": 3 } |
| 69 | }, |
| 70 | |
| 71 | { "type": "pktLink", "allowed": true, |
| 72 | "nodeDpid1": "02", "nodeDpid2": "03", |
| 73 | "params": { "port1": 2, "port2": 2 } |
| 74 | } |
| 75 | |
| 76 | ] |
| 77 | |
| 78 | |
| 79 | } |