| { |
| "devices": { |
| "of:0000000000000001": { "basic": { "name": "s1", "latitude": 39.736623, "longitude": -104.984887 }}, |
| "of:0000000000000002": { "basic": { "name": "s2", "latitude": 41.498928, "longitude": -81.695217 }}, |
| "of:0000000000000003": { "basic": { "name": "s3", "latitude": 33.749017, "longitude": -84.394168 }}, |
| "of:0000000000000004": { "basic": { "name": "s4", "latitude": 33.448289, "longitude": -112.076299 }}, |
| "of:0000000000000005": { "basic": { "name": "s5", "latitude": 34.056346, "longitude": -118.235951 }}, |
| "of:0000000000000006": { "basic": { "name": "s6", "latitude": 40.728270, "longitude": -73.994483 }} |
| }, |
| "hosts": { |
| "00:00:00:00:00:01/100": { "basic": { "location": "of:0000000000000001/1", "ips": [ "10.0.0.1" ], "name": "h1", "latitude": 40.888148, "longitude": -103.459878 }}, |
| "00:00:00:00:00:02/200": { "basic": { "location": "of:0000000000000002/1", "ips": [ "10.0.0.2" ], "name": "h2", "latitude": 42.756945, "longitude": -79.831317 }}, |
| "00:00:00:00:00:03/300": { "basic": { "location": "of:0000000000000003/1", "ips": [ "10.0.0.3" ], "name": "h3", "latitude": 35.427493, "longitude": -83.885831 }}, |
| "00:00:00:00:00:04/400": { "basic": { "location": "of:0000000000000004/1", "ips": [ "10.0.0.4" ], "name": "h4", "latitude": 34.662290, "longitude": -110.946662 }}, |
| "00:00:00:00:00:05/-1": { "basic": { "location": "of:0000000000000005/1", "ips": [ "10.0.0.5" ], "name": "h5", "latitude": 33.224634, "longitude": -121.532943 }}, |
| "00:00:00:00:00:06/-1": { "basic": { "location": "of:0000000000000006/1", "ips": [ "10.0.0.6" ], "name": "h6", "latitude": 42.395459, "longitude": -75.293563 }} |
| }, |
| "ports": { |
| "of:0000000000000001/1": { |
| "interfaces": [ |
| { |
| "name": "h1", |
| "vlan": "100" |
| } |
| ] |
| }, |
| "of:0000000000000002/1": { |
| "interfaces": [ |
| { |
| "name": "h2", |
| "vlan": "200" |
| } |
| ] |
| }, |
| "of:0000000000000003/1": { |
| "interfaces": [ |
| { |
| "name": "h3", |
| "vlan": "300" |
| } |
| ] |
| }, |
| "of:0000000000000004/1": { |
| "interfaces": [ |
| { |
| "name": "h4", |
| "vlan": "400" |
| } |
| ] |
| }, |
| "of:0000000000000005/1": { |
| "interfaces": [ |
| { |
| "name": "h5" |
| } |
| ] |
| }, |
| "of:0000000000000006/1": { |
| "interfaces": [ |
| { |
| "name": "h6" |
| } |
| ] |
| } |
| }, |
| "apps" : { |
| "org.onosproject.vpls" : { |
| "vpls" : { |
| "vplsList" : [ |
| { |
| "name" : "VPLS1", |
| "interfaces" : ["h1", "h2", "h5", "h6"] |
| }, |
| { |
| "name" : "VPLS2", |
| "interfaces" : ["h3", "h4"], |
| "encapsulation" : "vlan" |
| } |
| ] |
| } |
| } |
| } |
| } |