blob: b2f6d3a029ee7593125d5d055ae17392463f6d42 [file] [log] [blame]
Simon Hunt0b05d4a2014-10-21 21:50:15 -07001{
Simon Hunt0b05d4a2014-10-21 21:50:15 -07002 "meta": {
Simon Hunt2c9e0c22014-10-23 15:12:58 -07003 "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 Hunt0b05d4a2014-10-21 21:50:15 -070013 },
Simon Hunt2c9e0c22014-10-23 15:12:58 -070014 "devices": [
Simon Hunt0b05d4a2014-10-21 21:50:15 -070015 {
Simon Hunt2c9e0c22014-10-23 15:12:58 -070016 "id": "of:0000000000000001",
Simon Huntcc267562014-10-29 10:22:17 -070017 "labels": ["00:00:00:00:00:00:00:01", "SFO-W10", "opt-1"],
Simon Hunt2c9e0c22014-10-23 15:12:58 -070018 "type": "roadm"
Simon Hunt0b05d4a2014-10-21 21:50:15 -070019 },
20 {
Simon Hunt2c9e0c22014-10-23 15:12:58 -070021 "id": "of:0000000000000002",
Simon Huntcc267562014-10-29 10:22:17 -070022 "labels": ["00:00:00:00:00:00:00:02", "SJC-W10", "opt-2"],
Simon Hunt2c9e0c22014-10-23 15:12:58 -070023 "type": "roadm"
Simon Hunt0b05d4a2014-10-21 21:50:15 -070024 },
25 {
Simon Hunt2c9e0c22014-10-23 15:12:58 -070026 "id": "of:0000000000000003",
Simon Huntcc267562014-10-29 10:22:17 -070027 "labels": ["00:00:00:00:00:00:00:03", "LAX-W10", "opt-3"],
Simon Hunt2c9e0c22014-10-23 15:12:58 -070028 "type": "roadm"
Simon Hunt0b05d4a2014-10-21 21:50:15 -070029 },
30 {
Simon Hunt2c9e0c22014-10-23 15:12:58 -070031 "id": "of:0000000000000004",
Simon Huntcc267562014-10-29 10:22:17 -070032 "labels": ["00:00:00:00:00:00:00:04", "SDG-W10", "opt-4"],
Simon Hunt2c9e0c22014-10-23 15:12:58 -070033 "type": "roadm"
Simon Hunt0b05d4a2014-10-21 21:50:15 -070034 },
35 {
Simon Hunt2c9e0c22014-10-23 15:12:58 -070036 "id": "of:0000000000000011",
Simon Huntcc267562014-10-29 10:22:17 -070037 "labels": ["00:00:00:00:00:00:00:11", "SFO-pkt", "pkt-11"],
Simon Hunt2c9e0c22014-10-23 15:12:58 -070038 "type": "switch"
Simon Hunt0b05d4a2014-10-21 21:50:15 -070039 },
40 {
Simon Hunt2c9e0c22014-10-23 15:12:58 -070041 "id": "of:0000000000000012",
Simon Huntcc267562014-10-29 10:22:17 -070042 "labels": ["00:00:00:00:00:00:00:12", "SJC-pkt", "pkt-12"],
Simon Hunt2c9e0c22014-10-23 15:12:58 -070043 "type": "switch"
Simon Hunt0b05d4a2014-10-21 21:50:15 -070044 },
45 {
Simon Hunt2c9e0c22014-10-23 15:12:58 -070046 "id": "of:0000000000000013",
Simon Huntcc267562014-10-29 10:22:17 -070047 "labels": ["00:00:00:00:00:00:00:13", "LAX-pkt", "pkt-13"],
Simon Hunt2c9e0c22014-10-23 15:12:58 -070048 "type": "switch"
Simon Hunt0b05d4a2014-10-21 21:50:15 -070049 }
50 ],
Simon Hunt2c9e0c22014-10-23 15:12:58 -070051 "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 Hunt0b05d4a2014-10-21 21:50:15 -070057 "links": [
Simon Hunt2c9e0c22014-10-23 15:12:58 -070058 {
59 "src": "of:0000000000000001",
60 "dst": "of:0000000000000002",
61 "type": "optical",
Simon Hunt7c7aafb2014-10-30 08:15:58 -070062 "srcPort": 1,
63 "dstPort": 2,
Simon Hunt2c9e0c22014-10-23 15:12:58 -070064 "linkWidth": 1.5
65 },
66 {
67 "src": "of:0000000000000001",
68 "dst": "of:0000000000000003",
69 "type": "optical",
Simon Hunt7c7aafb2014-10-30 08:15:58 -070070 "srcPort": 2,
71 "dstPort": 5,
Simon Hunt2c9e0c22014-10-23 15:12:58 -070072 "linkWidth": 1.5
73 },
74 {
75 "src": "of:0000000000000001",
76 "dst": "of:0000000000000004",
77 "type": "optical",
Simon Hunt7c7aafb2014-10-30 08:15:58 -070078 "srcPort": 3,
79 "dstPort": 2,
Simon Hunt2c9e0c22014-10-23 15:12:58 -070080 "linkWidth": 1.5
81 },
82 {
83 "src": "of:0000000000000002",
84 "dst": "of:0000000000000003",
85 "type": "optical",
Simon Hunt7c7aafb2014-10-30 08:15:58 -070086 "srcPort": 3,
87 "dstPort": 4,
Simon Hunt2c9e0c22014-10-23 15:12:58 -070088 "linkWidth": 1.5
89 },
90 {
91 "src": "of:0000000000000002",
92 "dst": "of:0000000000000004",
93 "type": "optical",
Simon Hunt7c7aafb2014-10-30 08:15:58 -070094 "srcPort": 4,
95 "dstPort": 1,
Simon Hunt2c9e0c22014-10-23 15:12:58 -070096 "linkWidth": 1.5
97 },
98 {
99 "src": "of:0000000000000003",
100 "dst": "of:0000000000000004",
101 "type": "optical",
Simon Hunt7c7aafb2014-10-30 08:15:58 -0700102 "srcPort": 3,
103 "dstPort": 3,
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700104 "linkWidth": 1.5
105 },
106 {
107 "src": "of:0000000000000013",
108 "dst": "of:0000000000000003",
109 "type": "direct",
Simon Hunt7c7aafb2014-10-30 08:15:58 -0700110 "srcPort": 1,
111 "dstPort": 7,
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700112 "linkWidth": 1.0
113 },
114 {
115 "src": "of:0000000000000012",
116 "dst": "of:0000000000000002",
117 "type": "direct",
Simon Hunt7c7aafb2014-10-30 08:15:58 -0700118 "srcPort": 1,
119 "dstPort": 9,
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700120 "linkWidth": 1.0
121 },
122 {
123 "src": "of:0000000000000011",
124 "dst": "of:0000000000000001",
125 "type": "direct",
Simon Hunt7c7aafb2014-10-30 08:15:58 -0700126 "srcPort": 1,
127 "dstPort": 6,
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700128 "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 Hunt0b05d4a2014-10-21 21:50:15 -0700180 ]
181}