Charles Chan | 5270ed0 | 2016-01-30 23:22:37 -0800 | [diff] [blame] | 1 | { |
| 2 | "ports" : { |
| 3 | "of:0000000000000001/3" : { |
| 4 | "interfaces" : [ |
| 5 | { |
| 6 | "ips" : [ "10.0.1.254/24" ], |
| 7 | "vlan" : "-1" |
| 8 | } |
| 9 | ] |
| 10 | }, |
| 11 | "of:0000000000000001/4" : { |
| 12 | "interfaces" : [ |
| 13 | { |
| 14 | "ips" : [ "10.0.1.254/24", "200.0.0.200/32" ], |
| 15 | "vlan" : "-1" |
| 16 | } |
| 17 | ] |
| 18 | }, |
| 19 | "of:0000000000000002/3" : { |
| 20 | "interfaces" : [ |
| 21 | { |
| 22 | "ips" : [ "10.0.2.254/24" ], |
| 23 | "vlan" : "-1" |
| 24 | } |
| 25 | ] |
| 26 | }, |
| 27 | "of:0000000000000002/4" : { |
| 28 | "interfaces" : [ |
| 29 | { |
Charles Chan | f2565a9 | 2016-02-10 20:46:58 -0800 | [diff] [blame] | 30 | "ips" : [ "10.0.2.254/24" ], |
Charles Chan | 5270ed0 | 2016-01-30 23:22:37 -0800 | [diff] [blame] | 31 | "vlan" : "-1" |
| 32 | } |
| 33 | ] |
Charles Chan | f2565a9 | 2016-02-10 20:46:58 -0800 | [diff] [blame] | 34 | }, |
| 35 | "of:0000000000000002/5" : { |
| 36 | "interfaces" : [ |
| 37 | { |
| 38 | "name" : "2/5/1", |
| 39 | "ips" : [ "100.0.0.0/24" ], |
| 40 | "vlan" : "-1" |
| 41 | } |
| 42 | ] |
Charles Chan | 5270ed0 | 2016-01-30 23:22:37 -0800 | [diff] [blame] | 43 | } |
| 44 | }, |
| 45 | "devices" : { |
| 46 | "of:0000000000000001" : { |
| 47 | "segmentrouting" : { |
| 48 | "name" : "Leaf-R1", |
| 49 | "nodeSid" : 101, |
| 50 | "routerIp" : "10.0.1.254", |
| 51 | "routerMac" : "00:00:00:00:01:80", |
| 52 | "isEdgeRouter" : true, |
| 53 | "adjacencySids" : [] |
| 54 | } |
| 55 | }, |
| 56 | "of:0000000000000002" : { |
| 57 | "segmentrouting" : { |
| 58 | "name" : "Leaf-R2", |
| 59 | "nodeSid" : 102, |
| 60 | "routerIp" : "10.0.2.254", |
| 61 | "routerMac" : "00:00:00:00:02:80", |
| 62 | "isEdgeRouter" : true, |
| 63 | "adjacencySids" : [] |
| 64 | } |
| 65 | }, |
| 66 | "of:0000000000000191" : { |
| 67 | "segmentrouting" : { |
| 68 | "name" : "Spine-R1", |
| 69 | "nodeSid" : 103, |
| 70 | "routerIp" : "192.168.0.11", |
| 71 | "routerMac" : "00:00:01:00:11:80", |
| 72 | "isEdgeRouter" : false, |
| 73 | "adjacencySids" : [] |
| 74 | } |
| 75 | }, |
| 76 | "of:0000000000000192" : { |
| 77 | "segmentrouting" : { |
| 78 | "name" : "Spine-R2", |
| 79 | "nodeSid" : 104, |
| 80 | "routerIp" : "192.168.0.22", |
| 81 | "routerMac" : "00:00:01:00:22:80", |
| 82 | "isEdgeRouter" : false, |
| 83 | "adjacencySids" : [] |
| 84 | } |
| 85 | } |
| 86 | }, |
| 87 | "hosts" : { |
| 88 | "00:00:00:00:00:01/-1" : { |
| 89 | "basic": { |
| 90 | "ips": ["10.0.1.1"], |
| 91 | "location": "of:0000000000000001/3" |
| 92 | } |
| 93 | }, |
| 94 | "00:00:00:00:00:02/-1" : { |
| 95 | "basic": { |
| 96 | "ips": ["10.0.1.2"], |
| 97 | "location": "of:0000000000000001/4" |
| 98 | } |
| 99 | }, |
| 100 | "00:00:00:00:00:03/-1" : { |
| 101 | "basic": { |
| 102 | "ips": ["10.0.2.1"], |
| 103 | "location": "of:0000000000000002/3" |
| 104 | } |
| 105 | }, |
| 106 | "00:00:00:00:00:04/-1" : { |
| 107 | "basic": { |
| 108 | "ips": ["10.0.2.2"], |
| 109 | "location": "of:0000000000000002/4" |
| 110 | } |
| 111 | }, |
| 112 | "00:00:00:aa:00:01/-1" : { |
| 113 | "basic": { |
| 114 | "ips": ["200.0.0.200"], |
| 115 | "location": "of:0000000000000001/4" |
| 116 | } |
| 117 | } |
| 118 | }, |
| 119 | "apps" : { |
| 120 | "org.onosproject.segmentrouting" : { |
| 121 | "segmentrouting" : { |
| 122 | "vRouterMacs" : [ |
| 123 | "00:00:00:aa:00:02" |
Charles Chan | f2565a9 | 2016-02-10 20:46:58 -0800 | [diff] [blame] | 124 | ], |
| 125 | "vRouterId" : "of:0000000000000002", |
| 126 | "excludePorts" : [ |
| 127 | "2/5/1" |
Charles Chan | 5270ed0 | 2016-01-30 23:22:37 -0800 | [diff] [blame] | 128 | ] |
| 129 | } |
| 130 | } |
| 131 | } |
| 132 | } |