blob: 84529194df03f0cb1fa78a6377af11ec284cceb5 [file] [log] [blame]
Thomas Vachuskaf5d17202018-06-12 17:28:13 -07001UTILS = [
2 "//utils/osgiwrap:osgi-jar",
3 "//utils/osgi:onlab-osgi",
4 "//utils/junit:onlab-junit",
5 "//utils/misc:onlab-misc",
6 "//utils/rest:onlab-rest",
Thomas Vachuskaf5d17202018-06-12 17:28:13 -07007]
8
9API = [
10 "//core/api:onos-api",
Thomas Vachuskaf5d17202018-06-12 17:28:13 -070011]
12
13CORE = UTILS + API + [
14 "//core/net:onos-core-net",
15 "//core/common:onos-core-common",
Brian O'Connorca05e1f2020-01-07 11:28:46 -080016 "//core/protobuf/models:onos-core-protobuf-models",
17 "//core/protobuf/models/proto:onos-core-protobuf-models-proto",
Ray Milkey324af932018-06-20 19:50:31 -070018 "//core/store/primitives:onos-core-primitives",
Thomas Vachuskaf5d17202018-06-12 17:28:13 -070019 "//core/store/serializers:onos-core-serializers",
20 "//core/store/dist:onos-core-dist",
Thomas Vachuskaf5d17202018-06-12 17:28:13 -070021 "//core/store/persistence:onos-core-persistence",
Thomas Vachuskaf5d17202018-06-12 17:28:13 -070022 "//cli:onos-cli",
Ray Milkey3ca46e92018-06-13 10:21:53 -070023 "//drivers/utilities:onos-drivers-utilities",
Ray Milkey18fb0812018-06-21 10:32:53 -070024 "//providers/general/device:onos-providers-general-device",
Ray Milkey324af932018-06-20 19:50:31 -070025 "//web/api:onos-rest",
Thomas Vachuskaf5d17202018-06-12 17:28:13 -070026]
27
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070028FEATURES = [
29 "//tools/package/features:onos-thirdparty-base",
30 "//tools/package/features:onos-thirdparty-web",
31 "//tools/package/features:onos-api",
32 "//tools/package/features:onos-core",
Thomas Vachuska03c608c2018-07-10 16:45:08 -070033 "//tools/package/features:onos-cli",
34 "//tools/package/features:onos-rest",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070035]
36
Brian O'Connorca05e1f2020-01-07 11:28:46 -080037#
38# ONOS Profile Maps
39#
40# To include a JAR or app in a specific profile, add the profile name
41# to the list in the maps below. If multiple profiles are listed,
42# then it will be included in each profile. Every item included in the
43# map will be included in the default profile (build with no profile
44# specified).
45#
46
47#
48# ONOS Protocols and Providers
49#
50
51PROTOCOL_MAP = {
52 "//protocols/bgp/bgpio:onos-protocols-bgp-bgpio": [],
53 "//protocols/bgp/api:onos-protocols-bgp-api": [],
54 "//protocols/bgp/ctl:onos-protocols-bgp-ctl": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -080055 "//protocols/lisp/api:onos-protocols-lisp-api": [],
56 "//protocols/lisp/ctl:onos-protocols-lisp-ctl": [],
57 "//protocols/lisp/msg:onos-protocols-lisp-msg": [],
58 "//protocols/netconf/api:onos-protocols-netconf-api": [],
59 "//protocols/netconf/ctl:onos-protocols-netconf-ctl": [],
Jian Li7ffa8bd2020-07-22 17:34:55 +090060 "//protocols/openflow/api:onos-protocols-openflow-api": ["seba", "sona"],
61 "//protocols/openflow/ctl:onos-protocols-openflow-ctl": ["seba", "sona"],
Jian Li7ffa8bd2020-07-22 17:34:55 +090062 "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc": ["sona"],
63 "//protocols/ovsdb/api:onos-protocols-ovsdb-api": ["sona"],
64 "//protocols/ovsdb/ctl:onos-protocols-ovsdb-ctl": ["sona"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -080065 "//protocols/p4runtime/api:onos-protocols-p4runtime-api": ["stratum"],
Yi Tseng0033dcb2020-01-22 17:54:47 -080066 "//protocols/p4runtime/model:onos-protocols-p4runtime-model": ["stratum"],
pierventre1b9616f2020-11-09 16:30:36 +010067 "//protocols/rest/api:onos-protocols-rest-api": [],
68 "//protocols/rest/ctl:onos-protocols-rest-ctl": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -080069 "//protocols/restconf/client/api:onos-protocols-restconf-client-api": [],
70 "//protocols/restconf/client/ctl:onos-protocols-restconf-client-ctl": [],
71 "//protocols/snmp/api:onos-protocols-snmp-api": [],
72 "//protocols/snmp/ctl:onos-protocols-snmp-ctl": [],
73 "//protocols/tl1/api:onos-protocols-tl1-api": [],
74 "//protocols/tl1/ctl:onos-protocols-tl1-ctl": [],
75 "//protocols/xmpp/core/api:onos-protocols-xmpp-core-api": [],
76 "//protocols/xmpp/core/ctl:onos-protocols-xmpp-core-ctl": [],
77}
78
79PROTOCOL_APP_MAP = {
Charles Chan059a46b2022-02-04 21:44:25 -080080 "//protocols/grpc:onos-protocols-grpc-oar": ["stratum", "sdfabric", "sona"],
81 "//protocols/gnmi:onos-protocols-gnmi-oar": ["stratum", "sdfabric", "sona"],
82 "//protocols/gnoi:onos-protocols-gnoi-oar": ["stratum", "sdfabric"],
83 "//protocols/p4runtime:onos-protocols-p4runtime-oar": ["stratum", "sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -080084 "//protocols/restconf/server:onos-protocols-restconf-server-oar": [],
85 "//protocols/xmpp/core:onos-protocols-xmpp-core-oar": [],
86 "//protocols/xmpp/pubsub:onos-protocols-xmpp-pubsub-oar": [],
87}
88
89PROVIDER_MAP = {
90 "//providers/netconf/device:onos-providers-netconf-device": [],
Jian Li7ffa8bd2020-07-22 17:34:55 +090091 "//providers/openflow/device:onos-providers-openflow-device": ["seba", "sona"],
92 "//providers/openflow/packet:onos-providers-openflow-packet": ["seba", "sona"],
93 "//providers/openflow/flow:onos-providers-openflow-flow": ["seba", "sona"],
94 "//providers/openflow/group:onos-providers-openflow-group": ["seba", "sona"],
95 "//providers/openflow/meter:onos-providers-openflow-meter": ["seba", "sona"],
96 "//providers/ovsdb/device:onos-providers-ovsdb-device": ["sona"],
97 "//providers/ovsdb/tunnel:onos-providers-ovsdb-tunnel": ["sona"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -080098 "//providers/p4runtime/packet:onos-providers-p4runtime-packet": ["stratum"],
pierventre1b9616f2020-11-09 16:30:36 +010099 "//providers/rest/device:onos-providers-rest-device": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800100 "//providers/snmp/device:onos-providers-snmp-device": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800101 "//providers/lisp/device:onos-providers-lisp-device": [],
102 "//providers/tl1/device:onos-providers-tl1-device": [],
103}
104
105PROVIDER_APP_MAP = {
Charles Chan059a46b2022-02-04 21:44:25 -0800106 "//providers/general:onos-providers-general-oar": ["stratum", "sdfabric", "sona"],
107 "//providers/host:onos-providers-host-oar": ["seba", "stratum", "sdfabric", "sona"],
108 "//providers/hostprobing:onos-providers-hostprobing-oar": ["seba", "stratum", "sdfabric", "sona"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800109 "//providers/link:onos-providers-link-oar": ["stratum"],
Charles Chan059a46b2022-02-04 21:44:25 -0800110 "//providers/lldp:onos-providers-lldp-oar": ["seba", "stratum", "sdfabric", "sona"],
111 "//providers/netcfghost:onos-providers-netcfghost-oar": ["seba", "stratum", "sdfabric", "sona"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800112 "//providers/netcfglinks:onos-providers-netcfglinks-oar": ["stratum"],
pierventre1b9616f2020-11-09 16:30:36 +0100113 "//providers/netconf:onos-providers-netconf-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800114 "//providers/null:onos-providers-null-oar": [],
Jian Li7ffa8bd2020-07-22 17:34:55 +0900115 "//providers/openflow/app:onos-providers-openflow-app-oar": ["seba", "sona"],
116 "//providers/openflow/base:onos-providers-openflow-base-oar": ["seba", "sona"],
117 "//providers/openflow/message:onos-providers-openflow-message-oar": ["seba", "sona"],
118 "//providers/ovsdb:onos-providers-ovsdb-oar": ["sona"],
119 "//providers/ovsdb/host:onos-providers-ovsdb-host-oar": ["sona"],
120 "//providers/ovsdb/base:onos-providers-ovsdb-base-oar": ["sona"],
Charles Chan059a46b2022-02-04 21:44:25 -0800121 "//providers/p4runtime:onos-providers-p4runtime-oar": ["stratum", "sdfabric"],
pierventre1b9616f2020-11-09 16:30:36 +0100122 "//providers/rest:onos-providers-rest-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800123 "//providers/snmp:onos-providers-snmp-oar": [],
124 "//providers/lisp:onos-providers-lisp-oar": [],
125 "//providers/tl1:onos-providers-tl1-oar": [],
126 "//providers/xmpp/device:onos-providers-xmpp-device-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800127}
128
129#
130# ONOS Drivers
131#
132
133DRIVER_MAP = {
Charles Chan059a46b2022-02-04 21:44:25 -0800134 "//drivers/default:onos-drivers-default-oar": ["minimal", "seba", "stratum", "sdfabric", "sona"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800135 "//drivers/arista:onos-drivers-arista-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800136 "//drivers/bmv2:onos-drivers-bmv2-oar": ["stratum", "sdfabric"],
137 "//drivers/barefoot:onos-drivers-barefoot-oar": ["stratum", "sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800138 "//drivers/ciena/waveserver:onos-drivers-ciena-waveserver-oar": [],
139 "//drivers/ciena/c5162:onos-drivers-ciena-c5162-oar": [],
140 "//drivers/ciena/c5170:onos-drivers-ciena-c5170-oar": [],
141 "//drivers/ciena/waveserverai:onos-drivers-ciena-waveserverai-oar": [],
142 "//drivers/cisco/netconf:onos-drivers-cisco-netconf-oar": [],
143 "//drivers/cisco/rest:onos-drivers-cisco-rest-oar": [],
144 "//drivers/corsa:onos-drivers-corsa-oar": [],
Jan Kundrát981fe472019-10-15 22:44:19 +0200145 "//drivers/czechlight:onos-drivers-czechlight-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800146 "//drivers/flowspec:onos-drivers-flowspec-oar": [],
147 "//drivers/fujitsu:onos-drivers-fujitsu-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800148 "//drivers/gnmi:onos-drivers-gnmi-oar": ["stratum", "sdfabric", "sona"],
149 "//drivers/gnoi:onos-drivers-gnoi-oar": ["stratum", "sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800150 "//drivers/hp:onos-drivers-hp-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800151 "//drivers/juniper:onos-drivers-juniper-oar": [],
152 "//drivers/lisp:onos-drivers-lisp-oar": [],
153 "//drivers/lumentum:onos-drivers-lumentum-oar": [],
154 "//drivers/mellanox:onos-drivers-mellanox-oar": ["stratum"],
pierventre1b9616f2020-11-09 16:30:36 +0100155 "//drivers/netconf:onos-drivers-netconf-oar": [],
156 "//drivers/odtn-driver:onos-drivers-odtn-driver-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800157 "//drivers/oplink:onos-drivers-oplink-oar": [],
pierventre1b9616f2020-11-09 16:30:36 +0100158 "//drivers/optical:onos-drivers-optical-oar": [],
Jian Li7ffa8bd2020-07-22 17:34:55 +0900159 "//drivers/ovsdb:onos-drivers-ovsdb-oar": ["sona"],
Charles Chan059a46b2022-02-04 21:44:25 -0800160 "//drivers/p4runtime:onos-drivers-p4runtime-oar": ["stratum", "sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800161 "//drivers/polatis/netconf:onos-drivers-polatis-netconf-oar": [],
162 "//drivers/polatis/openflow:onos-drivers-polatis-openflow-oar": [],
163 "//drivers/server:onos-drivers-server-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800164 "//drivers/stratum:onos-drivers-stratum-oar": ["stratum", "sdfabric"],
pierventre1b9616f2020-11-09 16:30:36 +0100165 "//drivers/stratum-odtn:onos-drivers-stratum-odtn-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800166 "//drivers/zte:onos-drivers-zte-oar": [],
167}
168
169#
170# ONOS Apps and App API JARs
171#
172
173APP_JAR_MAP = {
174 "//apps/cpman/api:onos-apps-cpman-api": [],
175 "//apps/routing-api:onos-apps-routing-api": [],
176 "//apps/dhcp/api:onos-apps-dhcp-api": [],
177 "//apps/dhcp/app:onos-apps-dhcp-app": [],
178 "//apps/imr/api:onos-apps-imr-api": [],
179 "//apps/imr/app:onos-apps-imr-app": [],
180 "//apps/dhcprelay/app:onos-apps-dhcprelay-app": [],
181 "//apps/dhcprelay/web:onos-apps-dhcprelay-web": [],
182 "//apps/fwd:onos-apps-fwd": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800183 "//apps/kafka-integration/api:onos-apps-kafka-integration-api": [],
184 "//apps/kafka-integration/app:onos-apps-kafka-integration-app": [],
185 "//apps/routing/common:onos-apps-routing-common": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800186}
187
188APP_MAP = {
189 "//apps/acl:onos-apps-acl-oar": [],
skhere55dfab22023-08-24 19:32:07 +0530190 "//apps/aiplugin:onos-apps-aiplugin-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800191 "//apps/artemis:onos-apps-artemis-oar": [],
192 "//apps/bgprouter:onos-apps-bgprouter-oar": [],
193 "//apps/castor:onos-apps-castor-oar": [],
194 "//apps/cfm:onos-apps-cfm-oar": [],
pierventre1b9616f2020-11-09 16:30:36 +0100195 "//apps/config:onos-apps-config-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800196 "//apps/cord-support:onos-apps-cord-support-oar": [],
197 "//apps/cpman/app:onos-apps-cpman-app-oar": [],
198 "//apps/dhcp:onos-apps-dhcp-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800199 "//apps/dhcprelay:onos-apps-dhcprelay-oar": ["sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800200 "//apps/drivermatrix:onos-apps-drivermatrix-oar": [],
201 "//apps/events:onos-apps-events-oar": [],
pierventre1b9616f2020-11-09 16:30:36 +0100202 "//apps/faultmanagement:onos-apps-faultmanagement-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800203 "//apps/flowanalyzer:onos-apps-flowanalyzer-oar": [],
204 "//apps/flowspec-api:onos-apps-flowspec-api-oar": [],
205 "//apps/fwd:onos-apps-fwd-oar": [],
206 "//apps/gangliametrics:onos-apps-gangliametrics-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800207 "//apps/graphitemetrics:onos-apps-graphitemetrics-oar": [],
208 "//apps/imr:onos-apps-imr-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800209 "//apps/inbandtelemetry:onos-apps-inbandtelemetry-oar": ["sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800210 "//apps/influxdbmetrics:onos-apps-influxdbmetrics-oar": [],
211 "//apps/intentsync:onos-apps-intentsync-oar": [],
Jian Li7ffa8bd2020-07-22 17:34:55 +0900212 "//apps/k8s-networking:onos-apps-k8s-networking-oar": ["sona"],
213 "//apps/k8s-node:onos-apps-k8s-node-oar": ["sona"],
Jian Lie2a53cb2020-12-19 01:26:57 +0900214 "//apps/kubevirt-networking:onos-apps-kubevirt-networking-oar": ["sona"],
215 "//apps/kubevirt-node:onos-apps-kubevirt-node-oar": ["sona"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800216 "//apps/kafka-integration:onos-apps-kafka-integration-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800217 "//apps/layout:onos-apps-layout-oar": [],
218 "//apps/linkprops:onos-apps-linkprops-oar": [],
219 "//apps/mappingmanagement:onos-apps-mappingmanagement-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800220 "//apps/mcast:onos-apps-mcast-oar": ["seba", "sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800221 "//apps/metrics:onos-apps-metrics-oar": [],
222 "//apps/mfwd:onos-apps-mfwd-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800223 "//apps/mlb:onos-apps-mlb-oar": ["sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800224 "//apps/mobility:onos-apps-mobility-oar": [],
senthilffafca22024-02-14 15:40:04 +0900225 "//apps/ipflow-monitor/netflow:onos-apps-ipflow-monitor-netflow-oar": [],
karthik1977c8999f42024-02-15 11:53:58 +0530226 "//apps/ipflow-monitor/sflow:onos-apps-ipflow-monitor-sflow-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800227 "//apps/network-troubleshoot:onos-apps-network-troubleshoot-oar": [],
228 "//apps/newoptical:onos-apps-newoptical-oar": [],
229 "//apps/nodemetrics:onos-apps-nodemetrics-oar": [],
Saritha80cb8542019-12-09 10:39:20 +0530230 "//apps/node-diagnosis:onos-apps-node-diagnosis-oar": [],
pierventre1b9616f2020-11-09 16:30:36 +0100231 "//apps/odtn/api:onos-apps-odtn-api-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800232 "//apps/odtn/service:onos-apps-odtn-service-oar": [],
233 "//apps/ofagent:onos-apps-ofagent-oar": [],
234 "//apps/onlp-demo:onos-apps-onlp-demo-oar": [],
235 "//apps/onos-topo:onos-apps-onos-topo-oar": [],
236 "//apps/openroadm:onos-apps-openroadm-oar": [],
Jian Li7ffa8bd2020-07-22 17:34:55 +0900237 "//apps/openstacknetworking:onos-apps-openstacknetworking-oar": ["sona"],
238 "//apps/openstacknetworkingui:onos-apps-openstacknetworkingui-oar": ["sona"],
239 "//apps/openstacknode:onos-apps-openstacknode-oar": ["sona"],
240 "//apps/openstacktelemetry:onos-apps-openstacktelemetry-oar": ["sona"],
241 "//apps/openstacktroubleshoot:onos-apps-openstacktroubleshoot-oar": ["sona"],
242 "//apps/openstackvtap:onos-apps-openstackvtap-oar": ["sona"],
pierventre1b9616f2020-11-09 16:30:36 +0100243 "//apps/optical-model:onos-apps-optical-model-oar": ["seba", "sona"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800244 "//apps/optical-rest:onos-apps-optical-rest-oar": [],
245 "//apps/p4-tutorial/mytunnel:onos-apps-p4-tutorial-mytunnel-oar": [],
246 "//apps/p4-tutorial/pipeconf:onos-apps-p4-tutorial-pipeconf-oar": [],
247 "//apps/packet-stats:onos-apps-packet-stats-oar": [],
248 "//apps/packet-throttle:onos-apps-packet-throttle-oar": [],
249 "//apps/pathpainter:onos-apps-pathpainter-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800250 "//apps/pim:onos-apps-pim-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800251 "//apps/portloadbalancer:onos-apps-portloadbalancer-oar": ["seba", "sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800252 "//apps/powermanagement:onos-apps-powermanagement-oar": [],
253 "//apps/proxyarp:onos-apps-proxyarp-oar": [],
254 "//apps/rabbitmq:onos-apps-rabbitmq-oar": [],
255 "//apps/reactive-routing:onos-apps-reactive-routing-oar": [],
256 "//apps/restconf:onos-apps-restconf-oar": [],
257 "//apps/roadm:onos-apps-roadm-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800258 "//apps/route-service:onos-apps-route-service-oar": ["seba", "sdfabric"],
259 "//apps/routeradvertisement:onos-apps-routeradvertisement-oar": ["sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800260 "//apps/routing/cpr:onos-apps-routing-cpr-oar": [],
261 "//apps/routing/fibinstaller:onos-apps-routing-fibinstaller-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800262 "//apps/routing/fpm:onos-apps-routing-fpm-oar": ["sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800263 "//apps/scalablegateway:onos-apps-scalablegateway-oar": [],
264 "//apps/sdnip:onos-apps-sdnip-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800265 "//apps/simplefabric:onos-apps-simplefabric-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800266 "//apps/test/cluster-ha:onos-apps-test-cluster-ha-oar": [],
267 "//apps/test/demo:onos-apps-test-demo-oar": [],
268 "//apps/test/distributed-primitives:onos-apps-test-distributed-primitives-oar": [],
269 "//apps/test/election:onos-apps-test-election-oar": [],
270 "//apps/test/flow-perf:onos-apps-test-flow-perf-oar": [],
271 "//apps/test/intent-perf:onos-apps-test-intent-perf-oar": [],
272 "//apps/test/loadtest:onos-apps-test-loadtest-oar": [],
273 "//apps/test/messaging-perf:onos-apps-test-messaging-perf-oar": [],
274 "//apps/test/netcfg-monitor:onos-apps-test-netcfg-monitor-oar": [],
275 "//apps/test/primitive-perf:onos-apps-test-primitive-perf-oar": [],
276 "//apps/test/route-scale:onos-apps-test-route-scale-oar": [],
277 "//apps/test/transaction-perf:onos-apps-test-transaction-perf-oar": [],
Jian Li7ffa8bd2020-07-22 17:34:55 +0900278 "//apps/tunnel:onos-apps-tunnel-oar": ["sona"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800279 "//apps/virtual:onos-apps-virtual-oar": [],
280 "//apps/virtualbng:onos-apps-virtualbng-oar": [],
281 "//apps/vpls:onos-apps-vpls-oar": [],
282 "//apps/vrouter:onos-apps-vrouter-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800283 "//apps/workflow/ofoverlay:onos-apps-workflow-ofoverlay-oar": [],
284 "//apps/workflow:onos-apps-workflow-oar": [],
285 "//apps/yang-gui:onos-apps-yang-gui-oar": [],
pierventre1b9616f2020-11-09 16:30:36 +0100286 "//apps/yang:onos-apps-yang-oar": [],
Charles Chan059a46b2022-02-04 21:44:25 -0800287 "//web/gui:onos-web-gui-oar": ["sona", "sdfabric"],
288 "//web/gui2:onos-web-gui2-oar": ["stratum", "sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800289}
290
291#
292# Pipelines and Models
293#
294
295PIPELINE_MAP = {
Charles Chan059a46b2022-02-04 21:44:25 -0800296 "//pipelines/basic:onos-pipelines-basic-oar": ["stratum", "sdfabric"],
297 "//pipelines/fabric:onos-pipelines-fabric-oar": ["stratum", "sdfabric"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800298}
299
300MODELS_MAP = {
pierventre1b9616f2020-11-09 16:30:36 +0100301 "//models/ietf:onos-models-ietf-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800302 "//models/common:onos-models-common-oar": [],
pierventre1b9616f2020-11-09 16:30:36 +0100303 "//models/openconfig:onos-models-openconfig-oar": [],
304 "//models/openconfig-infinera:onos-models-openconfig-infinera-oar": [],
305 "//models/openconfig-odtn:onos-models-openconfig-odtn-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800306 "//models/openroadm:onos-models-openroadm-oar": [],
pierventre1b9616f2020-11-09 16:30:36 +0100307 "//models/tapi:onos-models-tapi-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800308 "//models/polatis:onos-models-polatis-oar": [],
309 "//models/ciena/waveserverai:onos-models-ciena-waveserverai-oar": [],
310}
311
312#
313# Convenience functions for processing profile maps
314#
315
316def filter(map, profile):
317 all = not bool(profile) or profile == "all"
318 return [k for k, v in map.items() if all or profile in v]
319
320def extensions(profile = None):
321 return filter(PROTOCOL_MAP, profile) + filter(PROVIDER_MAP, profile)
322
323def apps(profile = None):
324 return filter(PROTOCOL_APP_MAP, profile) + \
325 filter(PROVIDER_APP_MAP, profile) + \
326 filter(DRIVER_MAP, profile) + \
327 filter(APP_MAP, profile) + \
328 filter(APP_JAR_MAP, profile) + \
329 filter(PIPELINE_MAP, profile) + \
330 filter(MODELS_MAP, profile)
331
332#
333# Instantiate a config_setting for every profile in the list
334#
335def profiles(profiles):
336 for p in profiles:
337 native.config_setting(
338 name = "%s_profile" % p,
339 values = {"define": "profile=%s" % p},
340 )