blob: e0c4b4ff2ba9ce45f5930a3ba76f47a8c15ac19f [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",
pierventre18917912020-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",
pierventre18917912020-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
pierventre18917912020-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": [],
Jian Li4170ab72020-07-22 17:34:55 +090065 "//protocols/openflow/api:onos-protocols-openflow-api": ["seba", "sona"],
66 "//protocols/openflow/ctl:onos-protocols-openflow-ctl": ["seba", "sona"],
pierventre18917912020-01-07 11:28:46 -080067 "//protocols/ospf/api:onos-protocols-ospf-api": [],
68 "//protocols/ospf/protocol:onos-protocols-ospf-protocol": [],
69 "//protocols/ospf/ctl:onos-protocols-ospf-ctl": [],
Jian Li4170ab72020-07-22 17:34:55 +090070 "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc": ["sona"],
71 "//protocols/ovsdb/api:onos-protocols-ovsdb-api": ["sona"],
72 "//protocols/ovsdb/ctl:onos-protocols-ovsdb-ctl": ["sona"],
pierventre18917912020-01-07 11:28:46 -080073 "//protocols/p4runtime/api:onos-protocols-p4runtime-api": ["stratum"],
74 "//protocols/p4runtime/model:onos-protocols-p4runtime-model": ["stratum"],
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 = {
Jian Li4170ab72020-07-22 17:34:55 +090091 "//protocols/grpc:onos-protocols-grpc-oar": ["stratum", "tost", "sona"],
92 "//protocols/gnmi:onos-protocols-gnmi-oar": ["stratum", "tost", "sona"],
pierventre8a95ee42020-06-30 22:04:16 +020093 "//protocols/gnoi:onos-protocols-gnoi-oar": ["stratum", "tost"],
94 "//protocols/p4runtime:onos-protocols-p4runtime-oar": ["stratum", "tost"],
pierventre18917912020-01-07 11:28:46 -080095 "//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": [],
Jian Li4170ab72020-07-22 17:34:55 +0900102 "//providers/openflow/device:onos-providers-openflow-device": ["seba", "sona"],
103 "//providers/openflow/packet:onos-providers-openflow-packet": ["seba", "sona"],
104 "//providers/openflow/flow:onos-providers-openflow-flow": ["seba", "sona"],
105 "//providers/openflow/group:onos-providers-openflow-group": ["seba", "sona"],
106 "//providers/openflow/meter:onos-providers-openflow-meter": ["seba", "sona"],
107 "//providers/ovsdb/device:onos-providers-ovsdb-device": ["sona"],
108 "//providers/ovsdb/tunnel:onos-providers-ovsdb-tunnel": ["sona"],
pierventre18917912020-01-07 11:28:46 -0800109 "//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 = {
Jian Li4170ab72020-07-22 17:34:55 +0900119 "//providers/general:onos-providers-general-oar": ["stratum", "tost", "sona"],
pierventre18917912020-01-07 11:28:46 -0800120 "//providers/bgp:onos-providers-bgp-oar": [],
121 "//providers/bgpcep:onos-providers-bgpcep-oar": [],
Jian Li4170ab72020-07-22 17:34:55 +0900122 "//providers/host:onos-providers-host-oar": ["seba", "stratum", "tost", "sona"],
123 "//providers/hostprobing:onos-providers-hostprobing-oar": ["seba", "stratum", "tost", "sona"],
pierventre18917912020-01-07 11:28:46 -0800124 "//providers/isis:onos-providers-isis-oar": [],
125 "//providers/link:onos-providers-link-oar": ["stratum"],
Jian Li4170ab72020-07-22 17:34:55 +0900126 "//providers/lldp:onos-providers-lldp-oar": ["seba", "stratum", "tost", "sona"],
127 "//providers/netcfghost:onos-providers-netcfghost-oar": ["seba", "stratum", "tost", "sona"],
pierventre18917912020-01-07 11:28:46 -0800128 "//providers/netcfglinks:onos-providers-netcfglinks-oar": ["stratum"],
129 "//providers/netconf:onos-providers-netconf-oar": [],
130 "//providers/null:onos-providers-null-oar": [],
Jian Li4170ab72020-07-22 17:34:55 +0900131 "//providers/openflow/app:onos-providers-openflow-app-oar": ["seba", "sona"],
132 "//providers/openflow/base:onos-providers-openflow-base-oar": ["seba", "sona"],
133 "//providers/openflow/message:onos-providers-openflow-message-oar": ["seba", "sona"],
134 "//providers/ovsdb:onos-providers-ovsdb-oar": ["sona"],
135 "//providers/ovsdb/host:onos-providers-ovsdb-host-oar": ["sona"],
136 "//providers/ovsdb/base:onos-providers-ovsdb-base-oar": ["sona"],
pierventre8a95ee42020-06-30 22:04:16 +0200137 "//providers/p4runtime:onos-providers-p4runtime-oar": ["stratum", "tost"],
pierventre18917912020-01-07 11:28:46 -0800138 "//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 = {
Jian Li4170ab72020-07-22 17:34:55 +0900152 "//drivers/default:onos-drivers-default-oar": ["minimal", "seba", "stratum", "tost", "sona"],
pierventre18917912020-01-07 11:28:46 -0800153 "//drivers/arista:onos-drivers-arista-oar": [],
pierventre8a95ee42020-06-30 22:04:16 +0200154 "//drivers/bmv2:onos-drivers-bmv2-oar": ["stratum", "tost"],
155 "//drivers/barefoot:onos-drivers-barefoot-oar": ["stratum", "tost"],
pierventre18917912020-01-07 11:28:46 -0800156 "//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": [],
Jian Li4170ab72020-07-22 17:34:55 +0900165 "//drivers/gnmi:onos-drivers-gnmi-oar": ["stratum", "tost", "sona"],
pierventre8a95ee42020-06-30 22:04:16 +0200166 "//drivers/gnoi:onos-drivers-gnoi-oar": ["stratum", "tost"],
pierventre18917912020-01-07 11:28:46 -0800167 "//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"],
173 "//drivers/microsemi/ea1000:onos-drivers-microsemi-ea1000-oar": [],
174 "//drivers/netconf:onos-drivers-netconf-oar": [],
175 "//drivers/odtn-driver:onos-drivers-odtn-driver-oar": [],
176 "//drivers/oplink:onos-drivers-oplink-oar": [],
177 "//drivers/optical:onos-drivers-optical-oar": [],
Jian Li4170ab72020-07-22 17:34:55 +0900178 "//drivers/ovsdb:onos-drivers-ovsdb-oar": ["sona"],
pierventre8a95ee42020-06-30 22:04:16 +0200179 "//drivers/p4runtime:onos-drivers-p4runtime-oar": ["stratum", "tost"],
pierventre18917912020-01-07 11:28:46 -0800180 "//drivers/polatis/netconf:onos-drivers-polatis-netconf-oar": [],
181 "//drivers/polatis/openflow:onos-drivers-polatis-openflow-oar": [],
182 "//drivers/server:onos-drivers-server-oar": [],
pierventre8a95ee42020-06-30 22:04:16 +0200183 "//drivers/stratum:onos-drivers-stratum-oar": ["stratum", "tost"],
pierventre18917912020-01-07 11:28:46 -0800184}
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": [],
pierventre8a95ee42020-06-30 22:04:16 +0200223 "//apps/dhcprelay:onos-apps-dhcprelay-oar": ["tost"],
pierventre18917912020-01-07 11:28:46 -0800224 "//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": [],
pierventre088cb4d2020-07-30 21:55:32 +0200236 "//apps/inbandtelemetry:onos-apps-inbandtelemetry-oar": ["tost"],
pierventre18917912020-01-07 11:28:46 -0800237 "//apps/influxdbmetrics:onos-apps-influxdbmetrics-oar": [],
238 "//apps/intentsync:onos-apps-intentsync-oar": [],
Jian Li4170ab72020-07-22 17:34:55 +0900239 "//apps/k8s-networking:onos-apps-k8s-networking-oar": ["sona"],
240 "//apps/k8s-node:onos-apps-k8s-node-oar": ["sona"],
pierventre18917912020-01-07 11:28:46 -0800241 "//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": [],
pierventre8a95ee42020-06-30 22:04:16 +0200246 "//apps/mcast:onos-apps-mcast-oar": ["seba", "tost"],
pierventre18917912020-01-07 11:28:46 -0800247 "//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/openroadm:onos-apps-openroadm-oar": [],
Jian Li4170ab72020-07-22 17:34:55 +0900260 "//apps/openstacknetworking:onos-apps-openstacknetworking-oar": ["sona"],
261 "//apps/openstacknetworkingui:onos-apps-openstacknetworkingui-oar": ["sona"],
262 "//apps/openstacknode:onos-apps-openstacknode-oar": ["sona"],
263 "//apps/openstacktelemetry:onos-apps-openstacktelemetry-oar": ["sona"],
264 "//apps/openstacktroubleshoot:onos-apps-openstacktroubleshoot-oar": ["sona"],
265 "//apps/openstackvtap:onos-apps-openstackvtap-oar": ["sona"],
266 "//apps/optical-model:onos-apps-optical-model-oar": ["seba", "sona"],
pierventre18917912020-01-07 11:28:46 -0800267 "//apps/optical-rest:onos-apps-optical-rest-oar": [],
268 "//apps/p4-tutorial/mytunnel:onos-apps-p4-tutorial-mytunnel-oar": [],
269 "//apps/p4-tutorial/pipeconf:onos-apps-p4-tutorial-pipeconf-oar": [],
270 "//apps/packet-stats:onos-apps-packet-stats-oar": [],
271 "//apps/packet-throttle:onos-apps-packet-throttle-oar": [],
272 "//apps/pathpainter:onos-apps-pathpainter-oar": [],
273 "//apps/pcep-api:onos-apps-pcep-api-oar": [],
274 "//apps/pim:onos-apps-pim-oar": [],
pierventre8a95ee42020-06-30 22:04:16 +0200275 "//apps/portloadbalancer:onos-apps-portloadbalancer-oar": ["seba", "tost"],
pierventre18917912020-01-07 11:28:46 -0800276 "//apps/powermanagement:onos-apps-powermanagement-oar": [],
277 "//apps/proxyarp:onos-apps-proxyarp-oar": [],
278 "//apps/rabbitmq:onos-apps-rabbitmq-oar": [],
279 "//apps/reactive-routing:onos-apps-reactive-routing-oar": [],
280 "//apps/restconf:onos-apps-restconf-oar": [],
281 "//apps/roadm:onos-apps-roadm-oar": [],
pierventre8a95ee42020-06-30 22:04:16 +0200282 "//apps/route-service:onos-apps-route-service-oar": ["seba", "tost"],
283 "//apps/routeradvertisement:onos-apps-routeradvertisement-oar": ["tost"],
pierventre18917912020-01-07 11:28:46 -0800284 "//apps/routing/cpr:onos-apps-routing-cpr-oar": [],
285 "//apps/routing/fibinstaller:onos-apps-routing-fibinstaller-oar": [],
pierventre8a95ee42020-06-30 22:04:16 +0200286 "//apps/routing/fpm:onos-apps-routing-fpm-oar": ["tost"],
pierventre18917912020-01-07 11:28:46 -0800287 "//apps/scalablegateway:onos-apps-scalablegateway-oar": [],
288 "//apps/sdnip:onos-apps-sdnip-oar": [],
289 "//apps/segmentrouting:onos-apps-segmentrouting-oar": ["seba"],
290 "//apps/simplefabric:onos-apps-simplefabric-oar": [],
291 "//apps/t3:onos-apps-t3-oar": [],
292 # "//apps/tenbi:onos-apps-tenbi-oar": [],
293 # "//apps/tenbi/yangmodel:onos-apps-tenbi-yangmodel-feature": [],
294 "//apps/test/cluster-ha:onos-apps-test-cluster-ha-oar": [],
295 "//apps/test/demo:onos-apps-test-demo-oar": [],
296 "//apps/test/distributed-primitives:onos-apps-test-distributed-primitives-oar": [],
297 "//apps/test/election:onos-apps-test-election-oar": [],
298 "//apps/test/flow-perf:onos-apps-test-flow-perf-oar": [],
299 "//apps/test/intent-perf:onos-apps-test-intent-perf-oar": [],
300 "//apps/test/loadtest:onos-apps-test-loadtest-oar": [],
301 "//apps/test/messaging-perf:onos-apps-test-messaging-perf-oar": [],
302 "//apps/test/netcfg-monitor:onos-apps-test-netcfg-monitor-oar": [],
303 "//apps/test/primitive-perf:onos-apps-test-primitive-perf-oar": [],
304 "//apps/test/route-scale:onos-apps-test-route-scale-oar": [],
305 "//apps/test/transaction-perf:onos-apps-test-transaction-perf-oar": [],
306 "//apps/tetopology:onos-apps-tetopology-oar": [],
307 "//apps/tetunnel:onos-apps-tetunnel-oar": [],
Jian Li4170ab72020-07-22 17:34:55 +0900308 "//apps/tunnel:onos-apps-tunnel-oar": ["sona"],
pierventre18917912020-01-07 11:28:46 -0800309 "//apps/virtual:onos-apps-virtual-oar": [],
310 "//apps/virtualbng:onos-apps-virtualbng-oar": [],
311 "//apps/vpls:onos-apps-vpls-oar": [],
312 "//apps/vrouter:onos-apps-vrouter-oar": [],
313 "//apps/vtn:onos-apps-vtn-oar": [],
314 "//apps/workflow/ofoverlay:onos-apps-workflow-ofoverlay-oar": [],
315 "//apps/workflow:onos-apps-workflow-oar": [],
316 "//apps/yang-gui:onos-apps-yang-gui-oar": [],
317 "//apps/yang:onos-apps-yang-oar": [],
318 # "//apps/yms:onos-apps-yms-oar": [],
Carmelo Casconee3a3df42020-08-01 21:36:15 -0700319 "//web/gui:onos-web-gui-oar": ["sona", "tost"],
pierventre8a95ee42020-06-30 22:04:16 +0200320 "//web/gui2:onos-web-gui2-oar": ["stratum", "tost"],
pierventre18917912020-01-07 11:28:46 -0800321}
322
323#
324# Pipelines and Models
325#
326
327PIPELINE_MAP = {
pierventre8a95ee42020-06-30 22:04:16 +0200328 "//pipelines/basic:onos-pipelines-basic-oar": ["stratum", "tost"],
329 "//pipelines/fabric:onos-pipelines-fabric-oar": ["stratum", "tost"],
pierventre18917912020-01-07 11:28:46 -0800330}
331
332MODELS_MAP = {
333 "//models/ietf:onos-models-ietf-oar": [],
334 "//models/common:onos-models-common-oar": [],
335 "//models/huawei:onos-models-huawei-oar": [],
336 "//models/openconfig:onos-models-openconfig-oar": [],
337 "//models/openconfig-infinera:onos-models-openconfig-infinera-oar": [],
338 "//models/openconfig-odtn:onos-models-openconfig-odtn-oar": [],
339 "//models/openroadm:onos-models-openroadm-oar": [],
340 "//models/tapi:onos-models-tapi-oar": [],
341 "//models/l3vpn:onos-models-l3vpn-oar": [],
342 "//models/microsemi:onos-models-microsemi-oar": [],
343 "//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 )