blob: e0d5c37e854d8bb4d14ea3ab9e5dd5db1a18fe80 [file] [log] [blame]
load("//tools/build/bazel:osgi_java_library.bzl", "osgi_proto_jar")
PROTO_SOURCE_ROOT = "incubator/protobuf/models/proto"
osgi_proto_jar(
proto_libs = [
":ApplicationsEnums_proto",
":ConfigPropertyEnums_proto",
":ConfigProperty_proto",
":NodeId_proto",
":RoleInfo_proto",
":ApplicationId_proto",
":ApplicationProto_proto",
":Version_proto",
":DeviceDescription_proto",
":DeviceEnums_proto",
":DeviceEvent_proto",
":PortDescription_proto",
":PortEnums_proto",
":PortStatistics_proto",
":Criterion_proto",
":Instruction_proto",
":Instructions_proto",
":FlowEntryEnums_proto",
":FlowEntry_proto",
":FlowRuleEnums_proto",
":FlowRule_proto",
":TraficSelector_proto",
":TrafficTreatment_proto",
":HostDescription_proto",
":HostEnums_proto",
":HostEvent_proto",
":LinkDescription_proto",
":LinkEnums_proto",
":LinkEvent_proto",
":BandEnums_proto",
":Band_proto",
":MeterEnums_proto",
":MeterEvent_proto",
":Meter_proto",
":MeterRequest_proto",
":OutboundPacket_proto",
":PacketEnums_proto",
":PacketEvent_proto",
":PacketProcessorEntry_proto",
":PacketProcessor_proto",
":PacketRequest_proto",
":RegionEnums_proto",
":ConnectPoint_proto",
":Device_proto",
":DisjointPath_proto",
":HostId_proto",
":HostLocation_proto",
":Host_proto",
":Link_proto",
":MastershipRole_proto",
":Path_proto",
":Port_proto",
":ProviderId_proto",
":Region_proto",
":Permission_proto",
],
)
### app ###
proto_library(
name = "ApplicationsEnums_proto",
srcs = ["app/ApplicationEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
### cfg ###
proto_library(
name = "ConfigPropertyEnums_proto",
srcs = ["cfg/ConfigPropertyEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "ConfigProperty_proto",
srcs = ["cfg/ConfigPropertyProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":ConfigPropertyEnums_proto"],
)
### cluster ###
proto_library(
name = "NodeId_proto",
srcs = ["cluster/NodeIdProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "RoleInfo_proto",
srcs = ["cluster/RoleInfoProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":NodeId_proto"],
)
### core ###
proto_library(
name = "ApplicationId_proto",
srcs = ["core/ApplicationIdProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "ApplicationProto_proto",
srcs = ["core/ApplicationProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":ApplicationId_proto",
":ApplicationsEnums_proto",
":Permission_proto",
":Version_proto",
],
)
proto_library(
name = "Version_proto",
srcs = ["core/VersionProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
### net ###
### device ###
proto_library(
name = "DeviceDescription_proto",
srcs = ["net/device/DeviceDescriptionProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":DeviceEnums_proto"],
)
proto_library(
name = "DeviceEnums_proto",
srcs = ["net/device/DeviceEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "DeviceEvent_proto",
srcs = ["net/device/DeviceEventProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":DeviceEnums_proto",
":Device_proto",
":Port_proto",
],
)
proto_library(
name = "PortDescription_proto",
srcs = ["net/device/PortDescriptionProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":PortEnums_proto"],
)
proto_library(
name = "PortEnums_proto",
srcs = ["net/device/PortEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "PortStatistics_proto",
srcs = ["net/device/PortStatisticsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
### flow ###
## criteria ##
proto_library(
name = "Criterion_proto",
srcs = ["net/flow/criteria/CriterionProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
## instrcutions ##
proto_library(
name = "Instruction_proto",
srcs = ["net/flow/instructions/InstructionProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "Instructions_proto",
srcs = ["net/flow/instructions/InstructionsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "FlowEntryEnums_proto",
srcs = ["net/flow/FlowEntryEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "FlowEntry_proto",
srcs = ["net/flow/FlowEntryProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = ["FlowEntryEnums_proto"],
)
proto_library(
name = "FlowRuleEnums_proto",
srcs = ["net/flow/FlowRuleEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "FlowRule_proto",
srcs = ["net/flow/FlowRuleProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":FlowRuleEnums_proto",
":TrafficTreatment_proto",
":TraficSelector_proto",
],
)
proto_library(
name = "TraficSelector_proto",
srcs = ["net/flow/TrafficSelectorProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":Criterion_proto"],
)
proto_library(
name = "TrafficTreatment_proto",
srcs = ["net/flow/TrafficTreatmentProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
"Instruction_proto",
":Instructions_proto",
],
)
#### host ####
proto_library(
name = "HostDescription_proto",
srcs = ["net/host/HostDescriptionProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":HostLocation_proto"],
)
proto_library(
name = "HostEnums_proto",
srcs = ["net/host/HostEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "HostEvent_proto",
srcs = ["net/host/HostEventProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":HostEnums_proto",
":Host_proto",
],
)
#### link ####
proto_library(
name = "LinkDescription_proto",
srcs = ["net/link/LinkDescriptionProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":ConnectPoint_proto",
":LinkEnums_proto",
],
)
proto_library(
name = "LinkEnums_proto",
srcs = ["net/link/LinkEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "LinkEvent_proto",
srcs = ["net/link/LinkEventProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":LinkEnums_proto",
":Link_proto",
],
)
### meter ####
proto_library(
name = "BandEnums_proto",
srcs = ["net/meter/BandEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "Band_proto",
srcs = ["net/meter/BandProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":BandEnums_proto"],
)
proto_library(
name = "MeterEnums_proto",
srcs = ["net/meter/MeterEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "MeterEvent_proto",
srcs = ["net/meter/MeterEventProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":MeterEnums_proto",
":Meter_proto",
],
)
proto_library(
name = "Meter_proto",
srcs = ["net/meter/MeterProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
"MeterEnums_proto",
":ApplicationId_proto",
":Band_proto",
],
)
proto_library(
name = "MeterRequest_proto",
srcs = ["net/meter/MeterRequestProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":ApplicationId_proto",
":Band_proto",
":MeterEnums_proto",
],
)
### packet ####
proto_library(
name = "OutboundPacket_proto",
srcs = ["net/packet/OutboundPacketProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":TrafficTreatment_proto"],
)
proto_library(
name = "PacketEnums_proto",
srcs = ["net/packet/PacketEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "PacketEvent_proto",
srcs = ["net/packet/PacketEventProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":OutboundPacket_proto",
":PacketEnums_proto",
],
)
proto_library(
name = "PacketProcessorEntry_proto",
srcs = ["net/packet/PacketProcessorEntryProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":PacketProcessor_proto"],
)
proto_library(
name = "PacketProcessor_proto",
srcs = ["net/packet/PacketProcessorProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "PacketRequest_proto",
srcs = ["net/packet/PacketRequestProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":ApplicationId_proto",
":NodeId_proto",
":TraficSelector_proto",
],
)
#### region ####
proto_library(
name = "RegionEnums_proto",
srcs = ["net/region/RegionEnumsProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "ConnectPoint_proto",
srcs = ["net/ConnectPointProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "Device_proto",
srcs = ["net/DeviceProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":DeviceEnums_proto"],
)
proto_library(
name = "DisjointPath_proto",
srcs = ["net/DisjointPathProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":Path_proto"],
)
proto_library(
name = "HostId_proto",
srcs = ["net/HostIdProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "HostLocation_proto",
srcs = ["net/HostLocationProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":ConnectPoint_proto"],
)
proto_library(
name = "Host_proto",
srcs = ["net/HostProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":HostId_proto",
":HostLocation_proto",
":ProviderId_proto",
],
)
proto_library(
name = "Link_proto",
srcs = ["net/LinkProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [
":ConnectPoint_proto",
":LinkEnums_proto",
":ProviderId_proto",
],
)
proto_library(
name = "MastershipRole_proto",
srcs = ["net/MastershipRoleProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "Path_proto",
srcs = ["net/PathProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":Link_proto"],
)
proto_library(
name = "Port_proto",
srcs = ["net/PortProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":PortEnums_proto"],
)
proto_library(
name = "ProviderId_proto",
srcs = ["net/ProviderIdProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)
proto_library(
name = "Region_proto",
srcs = ["net/RegionProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
deps = [":RegionEnums_proto"],
)
proto_library(
name = "Permission_proto",
srcs = ["security/PermissionProto.proto"],
proto_source_root = PROTO_SOURCE_ROOT,
)