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", |
Simon Hunt | 7c7aafb | 2014-10-30 08:15:58 -0700 | [diff] [blame] | 62 | "srcPort": 1, |
| 63 | "dstPort": 2, |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 64 | "linkWidth": 1.5 |
| 65 | }, |
| 66 | { |
| 67 | "src": "of:0000000000000001", |
| 68 | "dst": "of:0000000000000003", |
| 69 | "type": "optical", |
Simon Hunt | 7c7aafb | 2014-10-30 08:15:58 -0700 | [diff] [blame] | 70 | "srcPort": 2, |
| 71 | "dstPort": 5, |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 72 | "linkWidth": 1.5 |
| 73 | }, |
| 74 | { |
| 75 | "src": "of:0000000000000001", |
| 76 | "dst": "of:0000000000000004", |
| 77 | "type": "optical", |
Simon Hunt | 7c7aafb | 2014-10-30 08:15:58 -0700 | [diff] [blame] | 78 | "srcPort": 3, |
| 79 | "dstPort": 2, |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 80 | "linkWidth": 1.5 |
| 81 | }, |
| 82 | { |
| 83 | "src": "of:0000000000000002", |
| 84 | "dst": "of:0000000000000003", |
| 85 | "type": "optical", |
Simon Hunt | 7c7aafb | 2014-10-30 08:15:58 -0700 | [diff] [blame] | 86 | "srcPort": 3, |
| 87 | "dstPort": 4, |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 88 | "linkWidth": 1.5 |
| 89 | }, |
| 90 | { |
| 91 | "src": "of:0000000000000002", |
| 92 | "dst": "of:0000000000000004", |
| 93 | "type": "optical", |
Simon Hunt | 7c7aafb | 2014-10-30 08:15:58 -0700 | [diff] [blame] | 94 | "srcPort": 4, |
| 95 | "dstPort": 1, |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 96 | "linkWidth": 1.5 |
| 97 | }, |
| 98 | { |
| 99 | "src": "of:0000000000000003", |
| 100 | "dst": "of:0000000000000004", |
| 101 | "type": "optical", |
Simon Hunt | 7c7aafb | 2014-10-30 08:15:58 -0700 | [diff] [blame] | 102 | "srcPort": 3, |
| 103 | "dstPort": 3, |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 104 | "linkWidth": 1.5 |
| 105 | }, |
| 106 | { |
| 107 | "src": "of:0000000000000013", |
| 108 | "dst": "of:0000000000000003", |
| 109 | "type": "direct", |
Simon Hunt | 7c7aafb | 2014-10-30 08:15:58 -0700 | [diff] [blame] | 110 | "srcPort": 1, |
| 111 | "dstPort": 7, |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 112 | "linkWidth": 1.0 |
| 113 | }, |
| 114 | { |
| 115 | "src": "of:0000000000000012", |
| 116 | "dst": "of:0000000000000002", |
| 117 | "type": "direct", |
Simon Hunt | 7c7aafb | 2014-10-30 08:15:58 -0700 | [diff] [blame] | 118 | "srcPort": 1, |
| 119 | "dstPort": 9, |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 120 | "linkWidth": 1.0 |
| 121 | }, |
| 122 | { |
| 123 | "src": "of:0000000000000011", |
| 124 | "dst": "of:0000000000000001", |
| 125 | "type": "direct", |
Simon Hunt | 7c7aafb | 2014-10-30 08:15:58 -0700 | [diff] [blame] | 126 | "srcPort": 1, |
| 127 | "dstPort": 6, |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 128 | "linkWidth": 1.0 |
| 129 | } |
| 130 | ], |
| 131 | "hosts": [ |
| 132 | { |
| 133 | "id": "00:60:d3:00:11:01/7", |
| 134 | "labels": ["00:60:d3:00:11:01/7", "Host-11-A"], |
| 135 | "cp" : { |
| 136 | "device": "of:0000000000000011", |
| 137 | "port": 6 |
| 138 | } |
| 139 | }, |
| 140 | { |
| 141 | "id": "00:60:d3:00:11:02/7", |
| 142 | "labels": ["00:60:d3:00:11:02/7", "Host-11-B"], |
| 143 | "cp" : { |
| 144 | "device": "of:0000000000000011", |
| 145 | "port": 8 |
| 146 | } |
| 147 | }, |
| 148 | { |
| 149 | "id": "00:60:d3:00:12:01/4", |
| 150 | "labels": ["00:60:d3:00:12:01/4", "Host-12-C"], |
| 151 | "cp" : { |
| 152 | "device": "of:0000000000000012", |
| 153 | "port": 12 |
| 154 | } |
| 155 | }, |
| 156 | { |
| 157 | "id": "00:60:d3:00:12:02/4", |
| 158 | "labels": ["00:60:d3:00:12:02/4", "Host-12-D"], |
| 159 | "cp" : { |
| 160 | "device": "of:0000000000000012", |
| 161 | "port": 13 |
| 162 | } |
| 163 | }, |
| 164 | { |
| 165 | "id": "00:60:d3:00:13:01/19", |
| 166 | "labels": ["00:60:d3:00:13:01/19", "Host-13-E"], |
| 167 | "cp" : { |
| 168 | "device": "of:0000000000000013", |
| 169 | "port": 7 |
| 170 | } |
| 171 | }, |
| 172 | { |
| 173 | "id": "00:60:d3:00:13:02/19", |
| 174 | "labels": ["00:60:d3:00:13:02/19", "Host-13-F"], |
| 175 | "cp" : { |
| 176 | "device": "of:0000000000000013", |
| 177 | "port": 8 |
| 178 | } |
| 179 | } |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 180 | ] |
| 181 | } |