Luca Prete | 084caaf | 2016-10-18 15:55:10 +0200 | [diff] [blame] | 1 | { |
| 2 | "devices": { |
Luca Prete | 9829bf1 | 2016-11-10 21:49:53 -0800 | [diff] [blame] | 3 | "of:0000000000000001": { "basic": { "name": "s1", "latitude": 39.736623, "longitude": -104.984887 }}, |
| 4 | "of:0000000000000002": { "basic": { "name": "s2", "latitude": 41.498928, "longitude": -81.695217 }}, |
| 5 | "of:0000000000000003": { "basic": { "name": "s3", "latitude": 33.749017, "longitude": -84.394168 }}, |
| 6 | "of:0000000000000004": { "basic": { "name": "s4", "latitude": 33.448289, "longitude": -112.076299 }}, |
| 7 | "of:0000000000000005": { "basic": { "name": "s5", "latitude": 34.056346, "longitude": -118.235951 }}, |
| 8 | "of:0000000000000006": { "basic": { "name": "s6", "latitude": 40.728270, "longitude": -73.994483 }} |
Luca Prete | 084caaf | 2016-10-18 15:55:10 +0200 | [diff] [blame] | 9 | }, |
| 10 | "hosts": { |
Luca Prete | 9829bf1 | 2016-11-10 21:49:53 -0800 | [diff] [blame] | 11 | "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 }}, |
| 12 | "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 }}, |
| 13 | "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 }}, |
| 14 | "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 }}, |
| 15 | "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 }}, |
| 16 | "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 }} |
Luca Prete | 084caaf | 2016-10-18 15:55:10 +0200 | [diff] [blame] | 17 | }, |
| 18 | "ports": { |
| 19 | "of:0000000000000001/1": { |
| 20 | "interfaces": [ |
| 21 | { |
Luca Prete | 9829bf1 | 2016-11-10 21:49:53 -0800 | [diff] [blame] | 22 | "name": "h1", |
| 23 | "vlan": "100" |
Luca Prete | 084caaf | 2016-10-18 15:55:10 +0200 | [diff] [blame] | 24 | } |
| 25 | ] |
| 26 | }, |
| 27 | "of:0000000000000002/1": { |
| 28 | "interfaces": [ |
| 29 | { |
Luca Prete | 9829bf1 | 2016-11-10 21:49:53 -0800 | [diff] [blame] | 30 | "name": "h2", |
| 31 | "vlan": "200" |
Luca Prete | 084caaf | 2016-10-18 15:55:10 +0200 | [diff] [blame] | 32 | } |
| 33 | ] |
| 34 | }, |
| 35 | "of:0000000000000003/1": { |
| 36 | "interfaces": [ |
| 37 | { |
Luca Prete | 9829bf1 | 2016-11-10 21:49:53 -0800 | [diff] [blame] | 38 | "name": "h3", |
| 39 | "vlan": "300" |
Luca Prete | 084caaf | 2016-10-18 15:55:10 +0200 | [diff] [blame] | 40 | } |
| 41 | ] |
| 42 | }, |
| 43 | "of:0000000000000004/1": { |
| 44 | "interfaces": [ |
| 45 | { |
Luca Prete | 9829bf1 | 2016-11-10 21:49:53 -0800 | [diff] [blame] | 46 | "name": "h4", |
| 47 | "vlan": "400" |
Carolina Fernandez | b1cef5c | 2016-11-22 19:18:40 +0100 | [diff] [blame] | 48 | } |
| 49 | ] |
| 50 | }, |
| 51 | "of:0000000000000005/1": { |
| 52 | "interfaces": [ |
| 53 | { |
Luca Prete | 9829bf1 | 2016-11-10 21:49:53 -0800 | [diff] [blame] | 54 | "name": "h5" |
| 55 | } |
| 56 | ] |
| 57 | }, |
| 58 | "of:0000000000000006/1": { |
| 59 | "interfaces": [ |
| 60 | { |
| 61 | "name": "h6" |
Luca Prete | 084caaf | 2016-10-18 15:55:10 +0200 | [diff] [blame] | 62 | } |
| 63 | ] |
| 64 | } |
| 65 | }, |
| 66 | "apps" : { |
| 67 | "org.onosproject.vpls" : { |
Luca Prete | 9829bf1 | 2016-11-10 21:49:53 -0800 | [diff] [blame] | 68 | "vpls" : { |
Luca Prete | 092e895 | 2016-10-26 16:25:56 +0200 | [diff] [blame] | 69 | "vplsList" : [ |
Luca Prete | 084caaf | 2016-10-18 15:55:10 +0200 | [diff] [blame] | 70 | { |
Carolina Fernandez | b1cef5c | 2016-11-22 19:18:40 +0100 | [diff] [blame] | 71 | "name" : "VPLS1", |
Luca Prete | 9829bf1 | 2016-11-10 21:49:53 -0800 | [diff] [blame] | 72 | "interfaces" : ["h1", "h2", "h5", "h6"] |
Luca Prete | 084caaf | 2016-10-18 15:55:10 +0200 | [diff] [blame] | 73 | }, |
| 74 | { |
Carolina Fernandez | b1cef5c | 2016-11-22 19:18:40 +0100 | [diff] [blame] | 75 | "name" : "VPLS2", |
Luca Prete | 9829bf1 | 2016-11-10 21:49:53 -0800 | [diff] [blame] | 76 | "interfaces" : ["h3", "h4"], |
| 77 | "encapsulation" : "vlan" |
Luca Prete | 084caaf | 2016-10-18 15:55:10 +0200 | [diff] [blame] | 78 | } |
| 79 | ] |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | } |