blob: 7b426c5f311352f9c6e0337ab5cb81476e3b4e6a [file] [log] [blame]
adibrastegarniac02358a2018-11-06 18:02:00 -05001load("//tools/build/bazel:osgi_java_library.bzl", "osgi_proto_jar")
2
Thomas Vachuska52f2cd12018-11-08 21:20:04 -08003PROTO_SOURCE_ROOT = "core/protobuf/models/proto"
adibrastegarniac02358a2018-11-06 18:02:00 -05004
5osgi_proto_jar(
Thomas Vachuska52f2cd12018-11-08 21:20:04 -08006 name = "onos-core-protobuf-models-proto",
adibrastegarniac02358a2018-11-06 18:02:00 -05007 proto_libs = [
8 ":ApplicationsEnums_proto",
9 ":ConfigPropertyEnums_proto",
10 ":ConfigProperty_proto",
11 ":NodeId_proto",
12 ":RoleInfo_proto",
13 ":ApplicationId_proto",
14 ":ApplicationProto_proto",
15 ":Version_proto",
16 ":DeviceDescription_proto",
17 ":DeviceEnums_proto",
18 ":DeviceEvent_proto",
19 ":PortDescription_proto",
20 ":PortEnums_proto",
21 ":PortStatistics_proto",
22 ":Criterion_proto",
23 ":Instruction_proto",
24 ":Instructions_proto",
25 ":FlowEntryEnums_proto",
26 ":FlowEntry_proto",
27 ":FlowRuleEnums_proto",
28 ":FlowRule_proto",
29 ":TraficSelector_proto",
30 ":TrafficTreatment_proto",
31 ":HostDescription_proto",
32 ":HostEnums_proto",
33 ":HostEvent_proto",
34 ":LinkDescription_proto",
35 ":LinkEnums_proto",
36 ":LinkEvent_proto",
37 ":BandEnums_proto",
38 ":Band_proto",
39 ":MeterEnums_proto",
40 ":MeterEvent_proto",
41 ":Meter_proto",
42 ":MeterRequest_proto",
43 ":OutboundPacket_proto",
44 ":PacketEnums_proto",
45 ":PacketEvent_proto",
46 ":PacketProcessorEntry_proto",
47 ":PacketProcessor_proto",
48 ":PacketRequest_proto",
49 ":RegionEnums_proto",
50 ":ConnectPoint_proto",
51 ":Device_proto",
52 ":DisjointPath_proto",
53 ":HostId_proto",
54 ":HostLocation_proto",
55 ":Host_proto",
56 ":Link_proto",
57 ":MastershipRole_proto",
58 ":Path_proto",
59 ":Port_proto",
60 ":ProviderId_proto",
61 ":Region_proto",
62 ":Permission_proto",
63 ],
64)
65
66### app ###
67proto_library(
68 name = "ApplicationsEnums_proto",
69 srcs = ["app/ApplicationEnumsProto.proto"],
70 proto_source_root = PROTO_SOURCE_ROOT,
71)
72
73### cfg ###
74proto_library(
75 name = "ConfigPropertyEnums_proto",
76 srcs = ["cfg/ConfigPropertyEnumsProto.proto"],
77 proto_source_root = PROTO_SOURCE_ROOT,
78)
79
80proto_library(
81 name = "ConfigProperty_proto",
82 srcs = ["cfg/ConfigPropertyProto.proto"],
83 proto_source_root = PROTO_SOURCE_ROOT,
84 deps = [":ConfigPropertyEnums_proto"],
85)
86
87### cluster ###
88proto_library(
89 name = "NodeId_proto",
90 srcs = ["cluster/NodeIdProto.proto"],
91 proto_source_root = PROTO_SOURCE_ROOT,
92)
93
94proto_library(
95 name = "RoleInfo_proto",
96 srcs = ["cluster/RoleInfoProto.proto"],
97 proto_source_root = PROTO_SOURCE_ROOT,
98 deps = [":NodeId_proto"],
99)
100
101### core ###
102
103proto_library(
104 name = "ApplicationId_proto",
105 srcs = ["core/ApplicationIdProto.proto"],
106 proto_source_root = PROTO_SOURCE_ROOT,
107)
108
109proto_library(
110 name = "ApplicationProto_proto",
111 srcs = ["core/ApplicationProto.proto"],
112 proto_source_root = PROTO_SOURCE_ROOT,
113 deps = [
114 ":ApplicationId_proto",
115 ":ApplicationsEnums_proto",
116 ":Permission_proto",
117 ":Version_proto",
118 ],
119)
120
121proto_library(
122 name = "Version_proto",
123 srcs = ["core/VersionProto.proto"],
124 proto_source_root = PROTO_SOURCE_ROOT,
125)
126
127### net ###
128
129### device ###
130proto_library(
131 name = "DeviceDescription_proto",
132 srcs = ["net/device/DeviceDescriptionProto.proto"],
133 proto_source_root = PROTO_SOURCE_ROOT,
134 deps = [":DeviceEnums_proto"],
135)
136
137proto_library(
138 name = "DeviceEnums_proto",
139 srcs = ["net/device/DeviceEnumsProto.proto"],
140 proto_source_root = PROTO_SOURCE_ROOT,
141)
142
143proto_library(
144 name = "DeviceEvent_proto",
145 srcs = ["net/device/DeviceEventProto.proto"],
146 proto_source_root = PROTO_SOURCE_ROOT,
147 deps = [
148 ":DeviceEnums_proto",
149 ":Device_proto",
150 ":Port_proto",
151 ],
152)
153
154proto_library(
155 name = "PortDescription_proto",
156 srcs = ["net/device/PortDescriptionProto.proto"],
157 proto_source_root = PROTO_SOURCE_ROOT,
158 deps = [":PortEnums_proto"],
159)
160
161proto_library(
162 name = "PortEnums_proto",
163 srcs = ["net/device/PortEnumsProto.proto"],
164 proto_source_root = PROTO_SOURCE_ROOT,
165)
166
167proto_library(
168 name = "PortStatistics_proto",
169 srcs = ["net/device/PortStatisticsProto.proto"],
170 proto_source_root = PROTO_SOURCE_ROOT,
171)
172
173### flow ###
174## criteria ##
175proto_library(
176 name = "Criterion_proto",
177 srcs = ["net/flow/criteria/CriterionProto.proto"],
178 proto_source_root = PROTO_SOURCE_ROOT,
179)
180
181## instrcutions ##
182proto_library(
183 name = "Instruction_proto",
184 srcs = ["net/flow/instructions/InstructionProto.proto"],
185 proto_source_root = PROTO_SOURCE_ROOT,
186)
187
188proto_library(
189 name = "Instructions_proto",
190 srcs = ["net/flow/instructions/InstructionsProto.proto"],
191 proto_source_root = PROTO_SOURCE_ROOT,
192)
193
194proto_library(
195 name = "FlowEntryEnums_proto",
196 srcs = ["net/flow/FlowEntryEnumsProto.proto"],
197 proto_source_root = PROTO_SOURCE_ROOT,
198)
199
200proto_library(
201 name = "FlowEntry_proto",
202 srcs = ["net/flow/FlowEntryProto.proto"],
203 proto_source_root = PROTO_SOURCE_ROOT,
204 deps = ["FlowEntryEnums_proto"],
205)
206
207proto_library(
208 name = "FlowRuleEnums_proto",
209 srcs = ["net/flow/FlowRuleEnumsProto.proto"],
210 proto_source_root = PROTO_SOURCE_ROOT,
211)
212
213proto_library(
214 name = "FlowRule_proto",
215 srcs = ["net/flow/FlowRuleProto.proto"],
216 proto_source_root = PROTO_SOURCE_ROOT,
217 deps = [
218 ":FlowRuleEnums_proto",
219 ":TrafficTreatment_proto",
220 ":TraficSelector_proto",
221 ],
222)
223
224proto_library(
225 name = "TraficSelector_proto",
226 srcs = ["net/flow/TrafficSelectorProto.proto"],
227 proto_source_root = PROTO_SOURCE_ROOT,
228 deps = [":Criterion_proto"],
229)
230
231proto_library(
232 name = "TrafficTreatment_proto",
233 srcs = ["net/flow/TrafficTreatmentProto.proto"],
234 proto_source_root = PROTO_SOURCE_ROOT,
235 deps = [
236 "Instruction_proto",
237 ":Instructions_proto",
238 ],
239)
240
241#### host ####
242
243proto_library(
244 name = "HostDescription_proto",
245 srcs = ["net/host/HostDescriptionProto.proto"],
246 proto_source_root = PROTO_SOURCE_ROOT,
247 deps = [":HostLocation_proto"],
248)
249
250proto_library(
251 name = "HostEnums_proto",
252 srcs = ["net/host/HostEnumsProto.proto"],
253 proto_source_root = PROTO_SOURCE_ROOT,
254)
255
256proto_library(
257 name = "HostEvent_proto",
258 srcs = ["net/host/HostEventProto.proto"],
259 proto_source_root = PROTO_SOURCE_ROOT,
260 deps = [
261 ":HostEnums_proto",
262 ":Host_proto",
263 ],
264)
265
266#### link ####
267
268proto_library(
269 name = "LinkDescription_proto",
270 srcs = ["net/link/LinkDescriptionProto.proto"],
271 proto_source_root = PROTO_SOURCE_ROOT,
272 deps = [
273 ":ConnectPoint_proto",
274 ":LinkEnums_proto",
275 ],
276)
277
278proto_library(
279 name = "LinkEnums_proto",
280 srcs = ["net/link/LinkEnumsProto.proto"],
281 proto_source_root = PROTO_SOURCE_ROOT,
282)
283
284proto_library(
285 name = "LinkEvent_proto",
286 srcs = ["net/link/LinkEventProto.proto"],
287 proto_source_root = PROTO_SOURCE_ROOT,
288 deps = [
289 ":LinkEnums_proto",
290 ":Link_proto",
291 ],
292)
293
294### meter ####
295
296proto_library(
297 name = "BandEnums_proto",
298 srcs = ["net/meter/BandEnumsProto.proto"],
299 proto_source_root = PROTO_SOURCE_ROOT,
300)
301
302proto_library(
303 name = "Band_proto",
304 srcs = ["net/meter/BandProto.proto"],
305 proto_source_root = PROTO_SOURCE_ROOT,
306 deps = [":BandEnums_proto"],
307)
308
309proto_library(
310 name = "MeterEnums_proto",
311 srcs = ["net/meter/MeterEnumsProto.proto"],
312 proto_source_root = PROTO_SOURCE_ROOT,
313)
314
315proto_library(
316 name = "MeterEvent_proto",
317 srcs = ["net/meter/MeterEventProto.proto"],
318 proto_source_root = PROTO_SOURCE_ROOT,
319 deps = [
320 ":MeterEnums_proto",
321 ":Meter_proto",
322 ],
323)
324
325proto_library(
326 name = "Meter_proto",
327 srcs = ["net/meter/MeterProto.proto"],
328 proto_source_root = PROTO_SOURCE_ROOT,
329 deps = [
330 "MeterEnums_proto",
331 ":ApplicationId_proto",
332 ":Band_proto",
333 ],
334)
335
336proto_library(
337 name = "MeterRequest_proto",
338 srcs = ["net/meter/MeterRequestProto.proto"],
339 proto_source_root = PROTO_SOURCE_ROOT,
340 deps = [
341 ":ApplicationId_proto",
342 ":Band_proto",
343 ":MeterEnums_proto",
344 ],
345)
346
347### packet ####
348
349proto_library(
350 name = "OutboundPacket_proto",
351 srcs = ["net/packet/OutboundPacketProto.proto"],
352 proto_source_root = PROTO_SOURCE_ROOT,
353 deps = [":TrafficTreatment_proto"],
354)
355
356proto_library(
357 name = "PacketEnums_proto",
358 srcs = ["net/packet/PacketEnumsProto.proto"],
359 proto_source_root = PROTO_SOURCE_ROOT,
360)
361
362proto_library(
363 name = "PacketEvent_proto",
364 srcs = ["net/packet/PacketEventProto.proto"],
365 proto_source_root = PROTO_SOURCE_ROOT,
366 deps = [
367 ":OutboundPacket_proto",
368 ":PacketEnums_proto",
369 ],
370)
371
372proto_library(
373 name = "PacketProcessorEntry_proto",
374 srcs = ["net/packet/PacketProcessorEntryProto.proto"],
375 proto_source_root = PROTO_SOURCE_ROOT,
376 deps = [":PacketProcessor_proto"],
377)
378
379proto_library(
380 name = "PacketProcessor_proto",
381 srcs = ["net/packet/PacketProcessorProto.proto"],
382 proto_source_root = PROTO_SOURCE_ROOT,
383)
384
385proto_library(
386 name = "PacketRequest_proto",
387 srcs = ["net/packet/PacketRequestProto.proto"],
388 proto_source_root = PROTO_SOURCE_ROOT,
389 deps = [
390 ":ApplicationId_proto",
391 ":NodeId_proto",
392 ":TraficSelector_proto",
393 ],
394)
395
396#### region ####
397
398proto_library(
399 name = "RegionEnums_proto",
400 srcs = ["net/region/RegionEnumsProto.proto"],
401 proto_source_root = PROTO_SOURCE_ROOT,
402)
403
404proto_library(
405 name = "ConnectPoint_proto",
406 srcs = ["net/ConnectPointProto.proto"],
407 proto_source_root = PROTO_SOURCE_ROOT,
408)
409
410proto_library(
411 name = "Device_proto",
412 srcs = ["net/DeviceProto.proto"],
413 proto_source_root = PROTO_SOURCE_ROOT,
414 deps = [":DeviceEnums_proto"],
415)
416
417proto_library(
418 name = "DisjointPath_proto",
419 srcs = ["net/DisjointPathProto.proto"],
420 proto_source_root = PROTO_SOURCE_ROOT,
421 deps = [":Path_proto"],
422)
423
424proto_library(
425 name = "HostId_proto",
426 srcs = ["net/HostIdProto.proto"],
427 proto_source_root = PROTO_SOURCE_ROOT,
428)
429
430proto_library(
431 name = "HostLocation_proto",
432 srcs = ["net/HostLocationProto.proto"],
433 proto_source_root = PROTO_SOURCE_ROOT,
434 deps = [":ConnectPoint_proto"],
435)
436
437proto_library(
438 name = "Host_proto",
439 srcs = ["net/HostProto.proto"],
440 proto_source_root = PROTO_SOURCE_ROOT,
441 deps = [
442 ":HostId_proto",
443 ":HostLocation_proto",
444 ":ProviderId_proto",
445 ],
446)
447
448proto_library(
449 name = "Link_proto",
450 srcs = ["net/LinkProto.proto"],
451 proto_source_root = PROTO_SOURCE_ROOT,
452 deps = [
453 ":ConnectPoint_proto",
454 ":LinkEnums_proto",
455 ":ProviderId_proto",
456 ],
457)
458
459proto_library(
460 name = "MastershipRole_proto",
461 srcs = ["net/MastershipRoleProto.proto"],
462 proto_source_root = PROTO_SOURCE_ROOT,
463)
464
465proto_library(
466 name = "Path_proto",
467 srcs = ["net/PathProto.proto"],
468 proto_source_root = PROTO_SOURCE_ROOT,
469 deps = [":Link_proto"],
470)
471
472proto_library(
473 name = "Port_proto",
474 srcs = ["net/PortProto.proto"],
475 proto_source_root = PROTO_SOURCE_ROOT,
476 deps = [":PortEnums_proto"],
477)
478
479proto_library(
480 name = "ProviderId_proto",
481 srcs = ["net/ProviderIdProto.proto"],
482 proto_source_root = PROTO_SOURCE_ROOT,
483)
484
485proto_library(
486 name = "Region_proto",
487 srcs = ["net/RegionProto.proto"],
488 proto_source_root = PROTO_SOURCE_ROOT,
489 deps = [":RegionEnums_proto"],
490)
491
492proto_library(
493 name = "Permission_proto",
494 srcs = ["security/PermissionProto.proto"],
495 proto_source_root = PROTO_SOURCE_ROOT,
496)