Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 1 | { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 2 | "meta": { |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 3 | "comments": [ |
| 4 | "This is sample data for developing the ONOS UI (network view)", |
| 5 | " in a standalone mode (no server required).", |
| 6 | " Eventually, we will wire this up to live data", |
| 7 | " from the server, via a websocket.", |
| 8 | "", |
| 9 | "Note that this is just a first-draft of the data --", |
| 10 | " additional fields will be added when they are needed." |
| 11 | ], |
| 12 | "otherMetaData": "can go here..." |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 13 | }, |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 14 | "devices": [ |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 15 | { |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 16 | "id": "of:0000000000000001", |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 17 | "labels": ["00:00:00:00:00:00:00:01", "SFO-W10", "opt-1"], |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 18 | "type": "roadm" |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 19 | }, |
| 20 | { |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 21 | "id": "of:0000000000000002", |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 22 | "labels": ["00:00:00:00:00:00:00:02", "SJC-W10", "opt-2"], |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 23 | "type": "roadm" |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 24 | }, |
| 25 | { |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 26 | "id": "of:0000000000000003", |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 27 | "labels": ["00:00:00:00:00:00:00:03", "LAX-W10", "opt-3"], |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 28 | "type": "roadm" |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 29 | }, |
| 30 | { |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 31 | "id": "of:0000000000000004", |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 32 | "labels": ["00:00:00:00:00:00:00:04", "SDG-W10", "opt-4"], |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 33 | "type": "roadm" |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 34 | }, |
| 35 | { |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 36 | "id": "of:0000000000000011", |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 37 | "labels": ["00:00:00:00:00:00:00:11", "SFO-pkt", "pkt-11"], |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 38 | "type": "switch" |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 39 | }, |
| 40 | { |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 41 | "id": "of:0000000000000012", |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 42 | "labels": ["00:00:00:00:00:00:00:12", "SJC-pkt", "pkt-12"], |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 43 | "type": "switch" |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 44 | }, |
| 45 | { |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 46 | "id": "of:0000000000000013", |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 47 | "labels": ["00:00:00:00:00:00:00:13", "LAX-pkt", "pkt-13"], |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 48 | "type": "switch" |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 49 | } |
| 50 | ], |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 51 | "linkNotes": [ |
| 52 | "even though we have 'directionality' (src/dst), each link is", |
| 53 | " considered to be bi-directional. Note that links between hosts", |
| 54 | " and edge switches are inferred from host information, and not", |
| 55 | " explicitly represented here." |
| 56 | ], |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 57 | "links": [ |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 58 | { |
| 59 | "src": "of:0000000000000001", |
| 60 | "dst": "of:0000000000000002", |
| 61 | "type": "optical", |
| 62 | "linkWidth": 1.5 |
| 63 | }, |
| 64 | { |
| 65 | "src": "of:0000000000000001", |
| 66 | "dst": "of:0000000000000003", |
| 67 | "type": "optical", |
| 68 | "linkWidth": 1.5 |
| 69 | }, |
| 70 | { |
| 71 | "src": "of:0000000000000001", |
| 72 | "dst": "of:0000000000000004", |
| 73 | "type": "optical", |
| 74 | "linkWidth": 1.5 |
| 75 | }, |
| 76 | { |
| 77 | "src": "of:0000000000000002", |
| 78 | "dst": "of:0000000000000003", |
| 79 | "type": "optical", |
| 80 | "linkWidth": 1.5 |
| 81 | }, |
| 82 | { |
| 83 | "src": "of:0000000000000002", |
| 84 | "dst": "of:0000000000000004", |
| 85 | "type": "optical", |
| 86 | "linkWidth": 1.5 |
| 87 | }, |
| 88 | { |
| 89 | "src": "of:0000000000000003", |
| 90 | "dst": "of:0000000000000004", |
| 91 | "type": "optical", |
| 92 | "linkWidth": 1.5 |
| 93 | }, |
| 94 | { |
| 95 | "src": "of:0000000000000013", |
| 96 | "dst": "of:0000000000000003", |
| 97 | "type": "direct", |
| 98 | "linkWidth": 1.0 |
| 99 | }, |
| 100 | { |
| 101 | "src": "of:0000000000000012", |
| 102 | "dst": "of:0000000000000002", |
| 103 | "type": "direct", |
| 104 | "linkWidth": 1.0 |
| 105 | }, |
| 106 | { |
| 107 | "src": "of:0000000000000011", |
| 108 | "dst": "of:0000000000000001", |
| 109 | "type": "direct", |
| 110 | "linkWidth": 1.0 |
| 111 | } |
| 112 | ], |
| 113 | "hosts": [ |
| 114 | { |
| 115 | "id": "00:60:d3:00:11:01/7", |
| 116 | "labels": ["00:60:d3:00:11:01/7", "Host-11-A"], |
| 117 | "cp" : { |
| 118 | "device": "of:0000000000000011", |
| 119 | "port": 6 |
| 120 | } |
| 121 | }, |
| 122 | { |
| 123 | "id": "00:60:d3:00:11:02/7", |
| 124 | "labels": ["00:60:d3:00:11:02/7", "Host-11-B"], |
| 125 | "cp" : { |
| 126 | "device": "of:0000000000000011", |
| 127 | "port": 8 |
| 128 | } |
| 129 | }, |
| 130 | { |
| 131 | "id": "00:60:d3:00:12:01/4", |
| 132 | "labels": ["00:60:d3:00:12:01/4", "Host-12-C"], |
| 133 | "cp" : { |
| 134 | "device": "of:0000000000000012", |
| 135 | "port": 12 |
| 136 | } |
| 137 | }, |
| 138 | { |
| 139 | "id": "00:60:d3:00:12:02/4", |
| 140 | "labels": ["00:60:d3:00:12:02/4", "Host-12-D"], |
| 141 | "cp" : { |
| 142 | "device": "of:0000000000000012", |
| 143 | "port": 13 |
| 144 | } |
| 145 | }, |
| 146 | { |
| 147 | "id": "00:60:d3:00:13:01/19", |
| 148 | "labels": ["00:60:d3:00:13:01/19", "Host-13-E"], |
| 149 | "cp" : { |
| 150 | "device": "of:0000000000000013", |
| 151 | "port": 7 |
| 152 | } |
| 153 | }, |
| 154 | { |
| 155 | "id": "00:60:d3:00:13:02/19", |
| 156 | "labels": ["00:60:d3:00:13:02/19", "Host-13-F"], |
| 157 | "cp" : { |
| 158 | "device": "of:0000000000000013", |
| 159 | "port": 8 |
| 160 | } |
| 161 | } |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 162 | ] |
| 163 | } |