blob: eacb01c72ad287579671db41545a95e9bc7036e0 [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",
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 Hunt0b05d4a2014-10-21 21:50:15 -0700162 ]
163}