blob: cdf8f46a0e2102918a9d1d129271daad704d1511 [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",
Brian O'Connorca05e1f2020-01-07 11:28:46 -080021 # "//core/security:onos-security",
Thomas Vachuskaf5d17202018-06-12 17:28:13 -070022 "//core/store/persistence:onos-core-persistence",
Thomas Vachuskaf5d17202018-06-12 17:28:13 -070023 "//cli:onos-cli",
Ray Milkey3ca46e92018-06-13 10:21:53 -070024 "//drivers/utilities:onos-drivers-utilities",
Ray Milkey18fb0812018-06-21 10:32:53 -070025 "//providers/general/device:onos-providers-general-device",
Ray Milkey324af932018-06-20 19:50:31 -070026 "//web/api:onos-rest",
Thomas Vachuskaf5d17202018-06-12 17:28:13 -070027]
28
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070029FEATURES = [
30 "//tools/package/features:onos-thirdparty-base",
31 "//tools/package/features:onos-thirdparty-web",
32 "//tools/package/features:onos-api",
33 "//tools/package/features:onos-core",
Thomas Vachuska03c608c2018-07-10 16:45:08 -070034 "//tools/package/features:onos-cli",
35 "//tools/package/features:onos-rest",
Ray Milkeyd84f89b2018-08-17 14:54:17 -070036 # "//tools/package/features:onos-security",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070037]
38
Brian O'Connorca05e1f2020-01-07 11:28:46 -080039#
40# ONOS Profile Maps
41#
42# To include a JAR or app in a specific profile, add the profile name
43# to the list in the maps below. If multiple profiles are listed,
44# then it will be included in each profile. Every item included in the
45# map will be included in the default profile (build with no profile
46# specified).
47#
48
49#
50# ONOS Protocols and Providers
51#
52
53PROTOCOL_MAP = {
54 "//protocols/bgp/bgpio:onos-protocols-bgp-bgpio": [],
55 "//protocols/bgp/api:onos-protocols-bgp-api": [],
56 "//protocols/bgp/ctl:onos-protocols-bgp-ctl": [],
57 "//protocols/isis/api:onos-protocols-isis-api": [],
58 "//protocols/isis/ctl:onos-protocols-isis-ctl": [],
59 "//protocols/isis/isisio:onos-protocols-isis-isisio": [],
60 "//protocols/lisp/api:onos-protocols-lisp-api": [],
61 "//protocols/lisp/ctl:onos-protocols-lisp-ctl": [],
62 "//protocols/lisp/msg:onos-protocols-lisp-msg": [],
63 "//protocols/netconf/api:onos-protocols-netconf-api": [],
64 "//protocols/netconf/ctl:onos-protocols-netconf-ctl": [],
65 "//protocols/openflow/api:onos-protocols-openflow-api": ["seba"],
66 "//protocols/openflow/ctl:onos-protocols-openflow-ctl": ["seba"],
67 "//protocols/ospf/api:onos-protocols-ospf-api": [],
68 "//protocols/ospf/protocol:onos-protocols-ospf-protocol": [],
69 "//protocols/ospf/ctl:onos-protocols-ospf-ctl": [],
70 "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc": [],
71 "//protocols/ovsdb/api:onos-protocols-ovsdb-api": [],
72 "//protocols/ovsdb/ctl:onos-protocols-ovsdb-ctl": [],
73 "//protocols/p4runtime/api:onos-protocols-p4runtime-api": ["stratum"],
74 "//protocols/p4runtime/model:onos-protocols-p4runtime-model": ["statum"],
75 "//protocols/pcep/pcepio:onos-protocols-pcep-pcepio": [],
76 "//protocols/pcep/server/api:onos-protocols-pcep-server-api": [],
77 "//protocols/pcep/server/ctl:onos-protocols-pcep-server-ctl": [],
78 "//protocols/rest/api:onos-protocols-rest-api": [],
79 "//protocols/rest/ctl:onos-protocols-rest-ctl": [],
80 "//protocols/restconf/client/api:onos-protocols-restconf-client-api": [],
81 "//protocols/restconf/client/ctl:onos-protocols-restconf-client-ctl": [],
82 "//protocols/snmp/api:onos-protocols-snmp-api": [],
83 "//protocols/snmp/ctl:onos-protocols-snmp-ctl": [],
84 "//protocols/tl1/api:onos-protocols-tl1-api": [],
85 "//protocols/tl1/ctl:onos-protocols-tl1-ctl": [],
86 "//protocols/xmpp/core/api:onos-protocols-xmpp-core-api": [],
87 "//protocols/xmpp/core/ctl:onos-protocols-xmpp-core-ctl": [],
88}
89
90PROTOCOL_APP_MAP = {
91 "//protocols/grpc:onos-protocols-grpc-oar": ["stratum"],
92 "//protocols/gnmi:onos-protocols-gnmi-oar": ["stratum"],
93 "//protocols/gnoi:onos-protocols-gnoi-oar": ["stratum"],
94 "//protocols/p4runtime:onos-protocols-p4runtime-oar": ["stratum"],
95 "//protocols/restconf/server:onos-protocols-restconf-server-oar": [],
96 "//protocols/xmpp/core:onos-protocols-xmpp-core-oar": [],
97 "//protocols/xmpp/pubsub:onos-protocols-xmpp-pubsub-oar": [],
98}
99
100PROVIDER_MAP = {
101 "//providers/netconf/device:onos-providers-netconf-device": [],
102 "//providers/openflow/device:onos-providers-openflow-device": ["seba"],
103 "//providers/openflow/packet:onos-providers-openflow-packet": ["seba"],
104 "//providers/openflow/flow:onos-providers-openflow-flow": ["seba"],
105 "//providers/openflow/group:onos-providers-openflow-group": ["seba"],
106 "//providers/openflow/meter:onos-providers-openflow-meter": ["seba"],
107 "//providers/ovsdb/device:onos-providers-ovsdb-device": [],
108 "//providers/ovsdb/tunnel:onos-providers-ovsdb-tunnel": [],
109 "//providers/p4runtime/packet:onos-providers-p4runtime-packet": ["stratum"],
110 "//providers/rest/device:onos-providers-rest-device": [],
111 "//providers/snmp/device:onos-providers-snmp-device": [],
112 "//providers/isis/cfg:onos-providers-isis-cfg": [],
113 "//providers/isis/topology:onos-providers-isis-topology": [],
114 "//providers/lisp/device:onos-providers-lisp-device": [],
115 "//providers/tl1/device:onos-providers-tl1-device": [],
116}
117
118PROVIDER_APP_MAP = {
119 "//providers/general:onos-providers-general-oar": ["minimal", "seba", "stratum"],
120 "//providers/bgp:onos-providers-bgp-oar": [],
121 "//providers/bgpcep:onos-providers-bgpcep-oar": [],
122 "//providers/host:onos-providers-host-oar": ["seba", "stratum"],
123 "//providers/hostprobing:onos-providers-hostprobing-oar": ["seba", "stratum"],
124 "//providers/isis:onos-providers-isis-oar": [],
125 "//providers/link:onos-providers-link-oar": ["stratum"],
126 "//providers/lldp:onos-providers-lldp-oar": ["seba", "stratum"],
127 "//providers/netcfghost:onos-providers-netcfghost-oar": ["seba", "stratum"],
128 "//providers/netcfglinks:onos-providers-netcfglinks-oar": ["stratum"],
129 "//providers/netconf:onos-providers-netconf-oar": [],
130 "//providers/null:onos-providers-null-oar": [],
131 "//providers/openflow/app:onos-providers-openflow-app-oar": ["seba"],
132 "//providers/openflow/base:onos-providers-openflow-base-oar": ["seba"],
133 "//providers/openflow/message:onos-providers-openflow-message-oar": ["seba"],
134 "//providers/ovsdb:onos-providers-ovsdb-oar": [],
135 "//providers/ovsdb/host:onos-providers-ovsdb-host-oar": [],
136 "//providers/ovsdb/base:onos-providers-ovsdb-base-oar": [],
137 "//providers/p4runtime:onos-providers-p4runtime-oar": ["stratum"],
138 "//providers/pcep:onos-providers-pcep-oar": [],
139 "//providers/rest:onos-providers-rest-oar": [],
140 "//providers/snmp:onos-providers-snmp-oar": [],
141 "//providers/lisp:onos-providers-lisp-oar": [],
142 "//providers/tl1:onos-providers-tl1-oar": [],
143 "//providers/xmpp/device:onos-providers-xmpp-device-oar": [],
144 # "//providers/ietfte:onos-providers-ietfte-oar": [],
145}
146
147#
148# ONOS Drivers
149#
150
151DRIVER_MAP = {
152 "//drivers/default:onos-drivers-default-oar": ["minimal", "seba", "stratum"],
153 "//drivers/arista:onos-drivers-arista-oar": [],
154 "//drivers/bmv2:onos-drivers-bmv2-oar": ["stratum"],
155 "//drivers/barefoot:onos-drivers-barefoot-oar": ["stratum"],
156 "//drivers/ciena/waveserver:onos-drivers-ciena-waveserver-oar": [],
157 "//drivers/ciena/c5162:onos-drivers-ciena-c5162-oar": [],
158 "//drivers/ciena/c5170:onos-drivers-ciena-c5170-oar": [],
159 "//drivers/ciena/waveserverai:onos-drivers-ciena-waveserverai-oar": [],
160 "//drivers/cisco/netconf:onos-drivers-cisco-netconf-oar": [],
161 "//drivers/cisco/rest:onos-drivers-cisco-rest-oar": [],
162 "//drivers/corsa:onos-drivers-corsa-oar": [],
163 "//drivers/flowspec:onos-drivers-flowspec-oar": [],
164 "//drivers/fujitsu:onos-drivers-fujitsu-oar": [],
165 "//drivers/gnmi:onos-drivers-gnmi-oar": ["stratum"],
166 "//drivers/gnoi:onos-drivers-gnoi-oar": ["stratum"],
167 "//drivers/hp:onos-drivers-hp-oar": [],
168 "//drivers/huawei:onos-drivers-huawei-oar": [],
169 "//drivers/juniper:onos-drivers-juniper-oar": [],
170 "//drivers/lisp:onos-drivers-lisp-oar": [],
171 "//drivers/lumentum:onos-drivers-lumentum-oar": [],
172 "//drivers/mellanox:onos-drivers-mellanox-oar": ["stratum"],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800173 "//drivers/netconf:onos-drivers-netconf-oar": [],
174 "//drivers/odtn-driver:onos-drivers-odtn-driver-oar": [],
175 "//drivers/oplink:onos-drivers-oplink-oar": [],
176 "//drivers/optical:onos-drivers-optical-oar": [],
177 "//drivers/ovsdb:onos-drivers-ovsdb-oar": [],
178 "//drivers/p4runtime:onos-drivers-p4runtime-oar": ["stratum"],
179 "//drivers/polatis/netconf:onos-drivers-polatis-netconf-oar": [],
180 "//drivers/polatis/openflow:onos-drivers-polatis-openflow-oar": [],
181 "//drivers/server:onos-drivers-server-oar": [],
182 "//drivers/stratum:onos-drivers-stratum-oar": ["stratum"],
183 "//drivers/zte:onos-drivers-zte-oar": [],
184}
185
186#
187# ONOS Apps and App API JARs
188#
189
190APP_JAR_MAP = {
191 "//apps/cpman/api:onos-apps-cpman-api": [],
192 "//apps/routing-api:onos-apps-routing-api": [],
193 "//apps/dhcp/api:onos-apps-dhcp-api": [],
194 "//apps/dhcp/app:onos-apps-dhcp-app": [],
195 "//apps/imr/api:onos-apps-imr-api": [],
196 "//apps/imr/app:onos-apps-imr-app": [],
197 "//apps/dhcprelay/app:onos-apps-dhcprelay-app": [],
198 "//apps/dhcprelay/web:onos-apps-dhcprelay-web": [],
199 "//apps/fwd:onos-apps-fwd": [],
200 "//apps/iptopology-api:onos-apps-iptopology-api": [],
201 "//apps/kafka-integration/api:onos-apps-kafka-integration-api": [],
202 "//apps/kafka-integration/app:onos-apps-kafka-integration-app": [],
203 "//apps/routing/common:onos-apps-routing-common": [],
204 "//apps/vtn/vtnrsc:onos-apps-vtn-vtnrsc": [],
205 "//apps/vtn/sfcmgr:onos-apps-vtn-sfcmgr": [],
206 "//apps/vtn/vtnmgr:onos-apps-vtn-vtnmgr": [],
207 "//apps/vtn/vtnweb:onos-apps-vtn-vtnweb": [],
208}
209
210APP_MAP = {
211 "//apps/acl:onos-apps-acl-oar": [],
212 "//apps/artemis:onos-apps-artemis-oar": [],
213 "//apps/bgprouter:onos-apps-bgprouter-oar": [],
214 "//apps/castor:onos-apps-castor-oar": [],
215 "//apps/cfm:onos-apps-cfm-oar": [],
216 "//apps/cip:onos-apps-cip-oar": [],
217 "//apps/config:onos-apps-config-oar": [],
218 "//apps/configsync-netconf:onos-apps-configsync-netconf-oar": [],
219 "//apps/configsync:onos-apps-configsync-oar": [],
220 "//apps/cord-support:onos-apps-cord-support-oar": [],
221 "//apps/cpman/app:onos-apps-cpman-app-oar": [],
222 "//apps/dhcp:onos-apps-dhcp-oar": [],
223 "//apps/dhcprelay:onos-apps-dhcprelay-oar": [],
224 "//apps/drivermatrix:onos-apps-drivermatrix-oar": [],
225 "//apps/events:onos-apps-events-oar": [],
226 "//apps/evpn-route-service:onos-apps-evpn-route-service-oar": [],
227 "//apps/evpnopenflow:onos-apps-evpnopenflow-oar": [],
228 "//apps/faultmanagement:onos-apps-faultmanagement-oar": [],
229 "//apps/flowanalyzer:onos-apps-flowanalyzer-oar": [],
230 "//apps/flowspec-api:onos-apps-flowspec-api-oar": [],
231 "//apps/fwd:onos-apps-fwd-oar": [],
232 "//apps/gangliametrics:onos-apps-gangliametrics-oar": [],
233 "//apps/gluon:onos-apps-gluon-oar": [],
234 "//apps/graphitemetrics:onos-apps-graphitemetrics-oar": [],
235 "//apps/imr:onos-apps-imr-oar": [],
236 "//apps/inbandtelemetry:onos-apps-inbandtelemetry-oar": [],
237 "//apps/influxdbmetrics:onos-apps-influxdbmetrics-oar": [],
238 "//apps/intentsync:onos-apps-intentsync-oar": [],
239 "//apps/k8s-networking:onos-apps-k8s-networking-oar": [],
240 "//apps/k8s-node:onos-apps-k8s-node-oar": [],
241 "//apps/kafka-integration:onos-apps-kafka-integration-oar": [],
242 "//apps/l3vpn:onos-apps-l3vpn-oar": [],
243 "//apps/layout:onos-apps-layout-oar": [],
244 "//apps/linkprops:onos-apps-linkprops-oar": [],
245 "//apps/mappingmanagement:onos-apps-mappingmanagement-oar": [],
246 "//apps/mcast:onos-apps-mcast-oar": ["seba"],
247 "//apps/metrics:onos-apps-metrics-oar": [],
248 "//apps/mfwd:onos-apps-mfwd-oar": [],
249 "//apps/mlb:onos-apps-mlb-oar": [],
250 "//apps/mobility:onos-apps-mobility-oar": [],
251 "//apps/netconf/client:onos-apps-netconf-client-oar": [],
252 "//apps/network-troubleshoot:onos-apps-network-troubleshoot-oar": [],
253 "//apps/newoptical:onos-apps-newoptical-oar": [],
254 "//apps/nodemetrics:onos-apps-nodemetrics-oar": [],
255 "//apps/odtn/api:onos-apps-odtn-api-oar": [],
256 "//apps/odtn/service:onos-apps-odtn-service-oar": [],
257 "//apps/ofagent:onos-apps-ofagent-oar": [],
258 "//apps/onlp-demo:onos-apps-onlp-demo-oar": [],
259 "//apps/onos-topo:onos-apps-onos-topo-oar": [],
260 "//apps/openroadm:onos-apps-openroadm-oar": [],
261 "//apps/openstacknetworking:onos-apps-openstacknetworking-oar": [],
262 "//apps/openstacknetworkingui:onos-apps-openstacknetworkingui-oar": [],
263 "//apps/openstacknode:onos-apps-openstacknode-oar": [],
264 "//apps/openstacktelemetry:onos-apps-openstacktelemetry-oar": [],
265 "//apps/openstacktroubleshoot:onos-apps-openstacktroubleshoot-oar": [],
266 "//apps/openstackvtap:onos-apps-openstackvtap-oar": [],
267 "//apps/optical-model:onos-apps-optical-model-oar": ["seba"],
268 "//apps/optical-rest:onos-apps-optical-rest-oar": [],
269 "//apps/p4-tutorial/mytunnel:onos-apps-p4-tutorial-mytunnel-oar": [],
270 "//apps/p4-tutorial/pipeconf:onos-apps-p4-tutorial-pipeconf-oar": [],
271 "//apps/packet-stats:onos-apps-packet-stats-oar": [],
272 "//apps/packet-throttle:onos-apps-packet-throttle-oar": [],
273 "//apps/pathpainter:onos-apps-pathpainter-oar": [],
274 "//apps/pcep-api:onos-apps-pcep-api-oar": [],
275 "//apps/pim:onos-apps-pim-oar": [],
276 "//apps/portloadbalancer:onos-apps-portloadbalancer-oar": [],
277 "//apps/powermanagement:onos-apps-powermanagement-oar": [],
278 "//apps/proxyarp:onos-apps-proxyarp-oar": [],
279 "//apps/rabbitmq:onos-apps-rabbitmq-oar": [],
280 "//apps/reactive-routing:onos-apps-reactive-routing-oar": [],
281 "//apps/restconf:onos-apps-restconf-oar": [],
282 "//apps/roadm:onos-apps-roadm-oar": [],
283 "//apps/route-service:onos-apps-route-service-oar": ["seba"],
284 "//apps/routeradvertisement:onos-apps-routeradvertisement-oar": [],
285 "//apps/routing/cpr:onos-apps-routing-cpr-oar": [],
286 "//apps/routing/fibinstaller:onos-apps-routing-fibinstaller-oar": [],
287 "//apps/routing/fpm:onos-apps-routing-fpm-oar": [],
288 "//apps/scalablegateway:onos-apps-scalablegateway-oar": [],
289 "//apps/sdnip:onos-apps-sdnip-oar": [],
290 "//apps/segmentrouting:onos-apps-segmentrouting-oar": ["seba"],
291 "//apps/simplefabric:onos-apps-simplefabric-oar": [],
292 "//apps/t3:onos-apps-t3-oar": [],
293 # "//apps/tenbi:onos-apps-tenbi-oar": [],
294 # "//apps/tenbi/yangmodel:onos-apps-tenbi-yangmodel-feature": [],
295 "//apps/test/cluster-ha:onos-apps-test-cluster-ha-oar": [],
296 "//apps/test/demo:onos-apps-test-demo-oar": [],
297 "//apps/test/distributed-primitives:onos-apps-test-distributed-primitives-oar": [],
298 "//apps/test/election:onos-apps-test-election-oar": [],
299 "//apps/test/flow-perf:onos-apps-test-flow-perf-oar": [],
300 "//apps/test/intent-perf:onos-apps-test-intent-perf-oar": [],
301 "//apps/test/loadtest:onos-apps-test-loadtest-oar": [],
302 "//apps/test/messaging-perf:onos-apps-test-messaging-perf-oar": [],
303 "//apps/test/netcfg-monitor:onos-apps-test-netcfg-monitor-oar": [],
304 "//apps/test/primitive-perf:onos-apps-test-primitive-perf-oar": [],
305 "//apps/test/route-scale:onos-apps-test-route-scale-oar": [],
306 "//apps/test/transaction-perf:onos-apps-test-transaction-perf-oar": [],
307 "//apps/tetopology:onos-apps-tetopology-oar": [],
308 "//apps/tetunnel:onos-apps-tetunnel-oar": [],
309 "//apps/tunnel:onos-apps-tunnel-oar": [],
310 "//apps/virtual:onos-apps-virtual-oar": [],
311 "//apps/virtualbng:onos-apps-virtualbng-oar": [],
312 "//apps/vpls:onos-apps-vpls-oar": [],
313 "//apps/vrouter:onos-apps-vrouter-oar": [],
314 "//apps/vtn:onos-apps-vtn-oar": [],
315 "//apps/workflow/ofoverlay:onos-apps-workflow-ofoverlay-oar": [],
316 "//apps/workflow:onos-apps-workflow-oar": [],
317 "//apps/yang-gui:onos-apps-yang-gui-oar": [],
318 "//apps/yang:onos-apps-yang-oar": [],
319 # "//apps/yms:onos-apps-yms-oar": [],
320 "//web/gui:onos-web-gui-oar": [],
321 "//web/gui2:onos-web-gui2-oar": ["stratum"],
322}
323
324#
325# Pipelines and Models
326#
327
328PIPELINE_MAP = {
329 "//pipelines/basic:onos-pipelines-basic-oar": ["stratum"],
330 "//pipelines/fabric:onos-pipelines-fabric-oar": ["stratum"],
331}
332
333MODELS_MAP = {
334 "//models/ietf:onos-models-ietf-oar": [],
335 "//models/common:onos-models-common-oar": [],
336 "//models/huawei:onos-models-huawei-oar": [],
337 "//models/openconfig:onos-models-openconfig-oar": [],
338 "//models/openconfig-infinera:onos-models-openconfig-infinera-oar": [],
339 "//models/openconfig-odtn:onos-models-openconfig-odtn-oar": [],
340 "//models/openroadm:onos-models-openroadm-oar": [],
341 "//models/tapi:onos-models-tapi-oar": [],
342 "//models/l3vpn:onos-models-l3vpn-oar": [],
Brian O'Connorca05e1f2020-01-07 11:28:46 -0800343 "//models/polatis:onos-models-polatis-oar": [],
344 "//models/ciena/waveserverai:onos-models-ciena-waveserverai-oar": [],
345}
346
347#
348# Convenience functions for processing profile maps
349#
350
351def filter(map, profile):
352 all = not bool(profile) or profile == "all"
353 return [k for k, v in map.items() if all or profile in v]
354
355def extensions(profile = None):
356 return filter(PROTOCOL_MAP, profile) + filter(PROVIDER_MAP, profile)
357
358def apps(profile = None):
359 return filter(PROTOCOL_APP_MAP, profile) + \
360 filter(PROVIDER_APP_MAP, profile) + \
361 filter(DRIVER_MAP, profile) + \
362 filter(APP_MAP, profile) + \
363 filter(APP_JAR_MAP, profile) + \
364 filter(PIPELINE_MAP, profile) + \
365 filter(MODELS_MAP, profile)
366
367#
368# Instantiate a config_setting for every profile in the list
369#
370def profiles(profiles):
371 for p in profiles:
372 native.config_setting(
373 name = "%s_profile" % p,
374 values = {"define": "profile=%s" % p},
375 )