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