blob: 2da22b8ec1e1e3256b73acaa4145feb392cea5d7 [file] [log] [blame]
adibrastegarniac02358a2018-11-06 18:02:00 -05001load("//tools/build/bazel:osgi_java_library.bzl", "osgi_proto_jar")
2
Thomas Vachuska2050fe42019-10-14 15:41:45 -07003PROTO_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"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -070070 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -050071)
72
73### cfg ###
74proto_library(
75 name = "ConfigPropertyEnums_proto",
76 srcs = ["cfg/ConfigPropertyEnumsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -070077 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -050078)
79
80proto_library(
81 name = "ConfigProperty_proto",
82 srcs = ["cfg/ConfigPropertyProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -070083 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -050084 deps = [":ConfigPropertyEnums_proto"],
85)
86
87### cluster ###
88proto_library(
89 name = "NodeId_proto",
90 srcs = ["cluster/NodeIdProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -070091 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -050092)
93
94proto_library(
95 name = "RoleInfo_proto",
96 srcs = ["cluster/RoleInfoProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -070097 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -050098 deps = [":NodeId_proto"],
99)
100
101### core ###
102
103proto_library(
104 name = "ApplicationId_proto",
105 srcs = ["core/ApplicationIdProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700106 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500107)
108
109proto_library(
110 name = "ApplicationProto_proto",
111 srcs = ["core/ApplicationProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700112 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500113 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"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700124 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500125)
126
127### net ###
128
129### device ###
130proto_library(
131 name = "DeviceDescription_proto",
132 srcs = ["net/device/DeviceDescriptionProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700133 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500134 deps = [":DeviceEnums_proto"],
135)
136
137proto_library(
138 name = "DeviceEnums_proto",
139 srcs = ["net/device/DeviceEnumsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700140 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500141)
142
143proto_library(
144 name = "DeviceEvent_proto",
145 srcs = ["net/device/DeviceEventProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700146 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500147 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"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700157 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500158 deps = [":PortEnums_proto"],
159)
160
161proto_library(
162 name = "PortEnums_proto",
163 srcs = ["net/device/PortEnumsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700164 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500165)
166
167proto_library(
168 name = "PortStatistics_proto",
169 srcs = ["net/device/PortStatisticsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700170 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500171)
172
173### flow ###
174## criteria ##
175proto_library(
176 name = "Criterion_proto",
177 srcs = ["net/flow/criteria/CriterionProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700178 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500179)
180
181## instrcutions ##
182proto_library(
183 name = "Instruction_proto",
184 srcs = ["net/flow/instructions/InstructionProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700185 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500186)
187
188proto_library(
189 name = "Instructions_proto",
190 srcs = ["net/flow/instructions/InstructionsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700191 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500192)
193
194proto_library(
195 name = "FlowEntryEnums_proto",
196 srcs = ["net/flow/FlowEntryEnumsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700197 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500198)
199
200proto_library(
201 name = "FlowEntry_proto",
202 srcs = ["net/flow/FlowEntryProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700203 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniab603ac22018-11-26 17:01:04 -0500204 deps = [":FlowEntryEnums_proto"],
adibrastegarniac02358a2018-11-06 18:02:00 -0500205)
206
207proto_library(
208 name = "FlowRuleEnums_proto",
209 srcs = ["net/flow/FlowRuleEnumsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700210 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500211)
212
213proto_library(
214 name = "FlowRule_proto",
215 srcs = ["net/flow/FlowRuleProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700216 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500217 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"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700227 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500228 deps = [":Criterion_proto"],
229)
230
231proto_library(
232 name = "TrafficTreatment_proto",
233 srcs = ["net/flow/TrafficTreatmentProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700234 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500235 deps = [
adibrastegarniab603ac22018-11-26 17:01:04 -0500236 ":Instruction_proto",
adibrastegarniac02358a2018-11-06 18:02:00 -0500237 ":Instructions_proto",
238 ],
239)
240
241#### host ####
242
243proto_library(
244 name = "HostDescription_proto",
245 srcs = ["net/host/HostDescriptionProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700246 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500247 deps = [":HostLocation_proto"],
248)
249
250proto_library(
251 name = "HostEnums_proto",
252 srcs = ["net/host/HostEnumsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700253 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500254)
255
256proto_library(
257 name = "HostEvent_proto",
258 srcs = ["net/host/HostEventProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700259 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500260 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"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700271 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500272 deps = [
273 ":ConnectPoint_proto",
274 ":LinkEnums_proto",
275 ],
276)
277
278proto_library(
279 name = "LinkEnums_proto",
280 srcs = ["net/link/LinkEnumsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700281 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500282)
283
284proto_library(
285 name = "LinkEvent_proto",
286 srcs = ["net/link/LinkEventProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700287 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500288 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"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700299 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500300)
301
302proto_library(
303 name = "Band_proto",
304 srcs = ["net/meter/BandProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700305 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500306 deps = [":BandEnums_proto"],
307)
308
309proto_library(
310 name = "MeterEnums_proto",
311 srcs = ["net/meter/MeterEnumsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700312 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500313)
314
315proto_library(
316 name = "MeterEvent_proto",
317 srcs = ["net/meter/MeterEventProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700318 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500319 deps = [
320 ":MeterEnums_proto",
321 ":Meter_proto",
322 ],
323)
324
325proto_library(
326 name = "Meter_proto",
327 srcs = ["net/meter/MeterProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700328 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500329 deps = [
adibrastegarniac02358a2018-11-06 18:02:00 -0500330 ":ApplicationId_proto",
331 ":Band_proto",
adibrastegarniab603ac22018-11-26 17:01:04 -0500332 ":MeterEnums_proto",
adibrastegarniac02358a2018-11-06 18:02:00 -0500333 ],
334)
335
336proto_library(
337 name = "MeterRequest_proto",
338 srcs = ["net/meter/MeterRequestProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700339 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500340 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"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700352 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500353 deps = [":TrafficTreatment_proto"],
354)
355
356proto_library(
357 name = "PacketEnums_proto",
358 srcs = ["net/packet/PacketEnumsProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700359 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500360)
361
362proto_library(
363 name = "PacketEvent_proto",
364 srcs = ["net/packet/PacketEventProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700365 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500366 deps = [
367 ":OutboundPacket_proto",
368 ":PacketEnums_proto",
369 ],
370)
371
372proto_library(
373 name = "PacketProcessorEntry_proto",
374 srcs = ["net/packet/PacketProcessorEntryProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700375 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500376 deps = [":PacketProcessor_proto"],
377)
378
379proto_library(
380 name = "PacketProcessor_proto",
381 srcs = ["net/packet/PacketProcessorProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700382 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500383)
384
385proto_library(
386 name = "PacketRequest_proto",
387 srcs = ["net/packet/PacketRequestProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700388 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500389 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"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700401 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500402)
403
404proto_library(
405 name = "ConnectPoint_proto",
406 srcs = ["net/ConnectPointProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700407 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500408)
409
410proto_library(
411 name = "Device_proto",
412 srcs = ["net/DeviceProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700413 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500414 deps = [":DeviceEnums_proto"],
415)
416
417proto_library(
418 name = "DisjointPath_proto",
419 srcs = ["net/DisjointPathProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700420 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500421 deps = [":Path_proto"],
422)
423
424proto_library(
425 name = "HostId_proto",
426 srcs = ["net/HostIdProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700427 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500428)
429
430proto_library(
431 name = "HostLocation_proto",
432 srcs = ["net/HostLocationProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700433 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500434 deps = [":ConnectPoint_proto"],
435)
436
437proto_library(
438 name = "Host_proto",
439 srcs = ["net/HostProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700440 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500441 deps = [
442 ":HostId_proto",
443 ":HostLocation_proto",
444 ":ProviderId_proto",
445 ],
446)
447
448proto_library(
449 name = "Link_proto",
450 srcs = ["net/LinkProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700451 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500452 deps = [
453 ":ConnectPoint_proto",
454 ":LinkEnums_proto",
455 ":ProviderId_proto",
456 ],
457)
458
459proto_library(
460 name = "MastershipRole_proto",
461 srcs = ["net/MastershipRoleProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700462 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500463)
464
465proto_library(
466 name = "Path_proto",
467 srcs = ["net/PathProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700468 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500469 deps = [":Link_proto"],
470)
471
472proto_library(
473 name = "Port_proto",
474 srcs = ["net/PortProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700475 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500476 deps = [":PortEnums_proto"],
477)
478
479proto_library(
480 name = "ProviderId_proto",
481 srcs = ["net/ProviderIdProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700482 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500483)
484
485proto_library(
486 name = "Region_proto",
487 srcs = ["net/RegionProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700488 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500489 deps = [":RegionEnums_proto"],
490)
491
492proto_library(
493 name = "Permission_proto",
494 srcs = ["security/PermissionProto.proto"],
Thomas Vachuska2050fe42019-10-14 15:41:45 -0700495 strip_import_prefix = PROTO_SOURCE_ROOT,
adibrastegarniac02358a2018-11-06 18:02:00 -0500496)