[AETHER-255] Tost profile for bazel build (onos and onos-package)

Change-Id: I0c0cf93dc1c5e43379bfba27d11943cc0e9bd208
diff --git a/BUILD b/BUILD
index 626eeee..7bec64b 100644
--- a/BUILD
+++ b/BUILD
@@ -20,6 +20,7 @@
     "minimal",
     "seba",
     "stratum",
+    "tost",
 ])
 
 filegroup(
@@ -33,6 +34,7 @@
         ":minimal_profile": extensions("minimal") + apps("minimal"),
         ":seba_profile": extensions("seba") + apps("seba"),
         ":stratum_profile": extensions("stratum") + apps("stratum"),
+        ":tost_profile": extensions("tost") + apps("tost"),
         "//conditions:default": extensions() + apps(),
     }),
     visibility = ["//visibility:public"],
@@ -73,6 +75,7 @@
         ":minimal_profile": apps("minimal"),
         ":seba_profile": apps("seba"),
         ":stratum_profile": apps("stratum"),
+        ":tost_profile": apps("tost"),
         "//conditions:default": apps(),
     }),
     outs = ["onos.tar.gz"],
diff --git a/tools/build/bazel/modules.bzl b/tools/build/bazel/modules.bzl
index 6afe114..9a1c18e 100644
--- a/tools/build/bazel/modules.bzl
+++ b/tools/build/bazel/modules.bzl
@@ -75,8 +75,8 @@
     "//protocols/pcep/pcepio:onos-protocols-pcep-pcepio": [],
     "//protocols/pcep/server/api:onos-protocols-pcep-server-api": [],
     "//protocols/pcep/server/ctl:onos-protocols-pcep-server-ctl": [],
-    "//protocols/rest/api:onos-protocols-rest-api": ["stratum"],
-    "//protocols/rest/ctl:onos-protocols-rest-ctl": ["stratum"],
+    "//protocols/rest/api:onos-protocols-rest-api": ["stratum", "tost"],
+    "//protocols/rest/ctl:onos-protocols-rest-ctl": ["stratum", "tost"],
     "//protocols/restconf/client/api:onos-protocols-restconf-client-api": [],
     "//protocols/restconf/client/ctl:onos-protocols-restconf-client-ctl": [],
     "//protocols/snmp/api:onos-protocols-snmp-api": [],
@@ -88,10 +88,10 @@
 }
 
 PROTOCOL_APP_MAP = {
-    "//protocols/grpc:onos-protocols-grpc-oar": ["stratum"],
-    "//protocols/gnmi:onos-protocols-gnmi-oar": ["stratum"],
-    "//protocols/gnoi:onos-protocols-gnoi-oar": ["stratum"],
-    "//protocols/p4runtime:onos-protocols-p4runtime-oar": ["stratum"],
+    "//protocols/grpc:onos-protocols-grpc-oar": ["stratum", "tost"],
+    "//protocols/gnmi:onos-protocols-gnmi-oar": ["stratum", "tost"],
+    "//protocols/gnoi:onos-protocols-gnoi-oar": ["stratum", "tost"],
+    "//protocols/p4runtime:onos-protocols-p4runtime-oar": ["stratum", "tost"],
     "//protocols/restconf/server:onos-protocols-restconf-server-oar": [],
     "//protocols/xmpp/core:onos-protocols-xmpp-core-oar": [],
     "//protocols/xmpp/pubsub:onos-protocols-xmpp-pubsub-oar": [],
@@ -116,17 +116,17 @@
 }
 
 PROVIDER_APP_MAP = {
-    "//providers/general:onos-providers-general-oar": ["stratum"],
+    "//providers/general:onos-providers-general-oar": ["stratum", "tost"],
     "//providers/bgp:onos-providers-bgp-oar": [],
     "//providers/bgpcep:onos-providers-bgpcep-oar": [],
-    "//providers/host:onos-providers-host-oar": ["seba", "stratum"],
-    "//providers/hostprobing:onos-providers-hostprobing-oar": ["seba", "stratum"],
+    "//providers/host:onos-providers-host-oar": ["seba", "stratum", "tost"],
+    "//providers/hostprobing:onos-providers-hostprobing-oar": ["seba", "stratum", "tost"],
     "//providers/isis:onos-providers-isis-oar": [],
     "//providers/link:onos-providers-link-oar": ["stratum"],
-    "//providers/lldp:onos-providers-lldp-oar": ["seba", "stratum"],
-    "//providers/netcfghost:onos-providers-netcfghost-oar": ["seba", "stratum"],
+    "//providers/lldp:onos-providers-lldp-oar": ["seba", "stratum", "tost"],
+    "//providers/netcfghost:onos-providers-netcfghost-oar": ["seba", "stratum", "tost"],
     "//providers/netcfglinks:onos-providers-netcfglinks-oar": ["stratum"],
-    "//providers/netconf:onos-providers-netconf-oar": ["stratum"],
+    "//providers/netconf:onos-providers-netconf-oar": ["stratum", "tost"],
     "//providers/null:onos-providers-null-oar": [],
     "//providers/openflow/app:onos-providers-openflow-app-oar": ["seba"],
     "//providers/openflow/base:onos-providers-openflow-base-oar": ["seba"],
@@ -134,9 +134,9 @@
     "//providers/ovsdb:onos-providers-ovsdb-oar": [],
     "//providers/ovsdb/host:onos-providers-ovsdb-host-oar": [],
     "//providers/ovsdb/base:onos-providers-ovsdb-base-oar": [],
-    "//providers/p4runtime:onos-providers-p4runtime-oar": ["stratum"],
+    "//providers/p4runtime:onos-providers-p4runtime-oar": ["stratum", "tost"],
     "//providers/pcep:onos-providers-pcep-oar": [],
-    "//providers/rest:onos-providers-rest-oar": ["stratum"],
+    "//providers/rest:onos-providers-rest-oar": ["stratum", "tost"],
     "//providers/snmp:onos-providers-snmp-oar": [],
     "//providers/lisp:onos-providers-lisp-oar": [],
     "//providers/tl1:onos-providers-tl1-oar": [],
@@ -149,10 +149,10 @@
 #
 
 DRIVER_MAP = {
-    "//drivers/default:onos-drivers-default-oar": ["minimal", "seba", "stratum"],
+    "//drivers/default:onos-drivers-default-oar": ["minimal", "seba", "stratum", "tost"],
     "//drivers/arista:onos-drivers-arista-oar": [],
-    "//drivers/bmv2:onos-drivers-bmv2-oar": ["stratum"],
-    "//drivers/barefoot:onos-drivers-barefoot-oar": ["stratum"],
+    "//drivers/bmv2:onos-drivers-bmv2-oar": ["stratum", "tost"],
+    "//drivers/barefoot:onos-drivers-barefoot-oar": ["stratum", "tost"],
     "//drivers/ciena/waveserver:onos-drivers-ciena-waveserver-oar": [],
     "//drivers/ciena/c5162:onos-drivers-ciena-c5162-oar": [],
     "//drivers/ciena/c5170:onos-drivers-ciena-c5170-oar": [],
@@ -163,24 +163,24 @@
     "//drivers/czechlight:onos-drivers-czechlight-oar": [],
     "//drivers/flowspec:onos-drivers-flowspec-oar": [],
     "//drivers/fujitsu:onos-drivers-fujitsu-oar": [],
-    "//drivers/gnmi:onos-drivers-gnmi-oar": ["stratum"],
-    "//drivers/gnoi:onos-drivers-gnoi-oar": ["stratum"],
+    "//drivers/gnmi:onos-drivers-gnmi-oar": ["stratum", "tost"],
+    "//drivers/gnoi:onos-drivers-gnoi-oar": ["stratum", "tost"],
     "//drivers/hp:onos-drivers-hp-oar": [],
     "//drivers/huawei:onos-drivers-huawei-oar": [],
     "//drivers/juniper:onos-drivers-juniper-oar": [],
     "//drivers/lisp:onos-drivers-lisp-oar": [],
     "//drivers/lumentum:onos-drivers-lumentum-oar": [],
     "//drivers/mellanox:onos-drivers-mellanox-oar": ["stratum"],
-    "//drivers/netconf:onos-drivers-netconf-oar": ["stratum"],
-    "//drivers/odtn-driver:onos-drivers-odtn-driver-oar": ["stratum"],
+    "//drivers/netconf:onos-drivers-netconf-oar": ["stratum", "tost"],
+    "//drivers/odtn-driver:onos-drivers-odtn-driver-oar": ["stratum", "tost"],
     "//drivers/oplink:onos-drivers-oplink-oar": [],
-    "//drivers/optical:onos-drivers-optical-oar": ["stratum"],
+    "//drivers/optical:onos-drivers-optical-oar": ["stratum", "tost"],
     "//drivers/ovsdb:onos-drivers-ovsdb-oar": [],
-    "//drivers/p4runtime:onos-drivers-p4runtime-oar": ["stratum"],
+    "//drivers/p4runtime:onos-drivers-p4runtime-oar": ["stratum", "tost"],
     "//drivers/polatis/netconf:onos-drivers-polatis-netconf-oar": [],
     "//drivers/polatis/openflow:onos-drivers-polatis-openflow-oar": [],
     "//drivers/server:onos-drivers-server-oar": [],
-    "//drivers/stratum:onos-drivers-stratum-oar": ["stratum"],
+    "//drivers/stratum:onos-drivers-stratum-oar": ["stratum", "tost"],
     "//drivers/zte:onos-drivers-zte-oar": [],
 }
 
@@ -215,18 +215,18 @@
     "//apps/castor:onos-apps-castor-oar": [],
     "//apps/cfm:onos-apps-cfm-oar": [],
     "//apps/cip:onos-apps-cip-oar": [],
-    "//apps/config:onos-apps-config-oar": ["stratum"],
+    "//apps/config:onos-apps-config-oar": ["stratum", "tost"],
     "//apps/configsync-netconf:onos-apps-configsync-netconf-oar": [],
     "//apps/configsync:onos-apps-configsync-oar": [],
     "//apps/cord-support:onos-apps-cord-support-oar": [],
     "//apps/cpman/app:onos-apps-cpman-app-oar": [],
     "//apps/dhcp:onos-apps-dhcp-oar": [],
-    "//apps/dhcprelay:onos-apps-dhcprelay-oar": [],
+    "//apps/dhcprelay:onos-apps-dhcprelay-oar": ["tost"],
     "//apps/drivermatrix:onos-apps-drivermatrix-oar": [],
     "//apps/events:onos-apps-events-oar": [],
     "//apps/evpn-route-service:onos-apps-evpn-route-service-oar": [],
     "//apps/evpnopenflow:onos-apps-evpnopenflow-oar": [],
-    "//apps/faultmanagement:onos-apps-faultmanagement-oar": ["stratum"],
+    "//apps/faultmanagement:onos-apps-faultmanagement-oar": ["stratum", "tost"],
     "//apps/flowanalyzer:onos-apps-flowanalyzer-oar": [],
     "//apps/flowspec-api:onos-apps-flowspec-api-oar": [],
     "//apps/fwd:onos-apps-fwd-oar": [],
@@ -244,7 +244,7 @@
     "//apps/layout:onos-apps-layout-oar": [],
     "//apps/linkprops:onos-apps-linkprops-oar": [],
     "//apps/mappingmanagement:onos-apps-mappingmanagement-oar": [],
-    "//apps/mcast:onos-apps-mcast-oar": ["seba"],
+    "//apps/mcast:onos-apps-mcast-oar": ["seba", "tost"],
     "//apps/metrics:onos-apps-metrics-oar": [],
     "//apps/mfwd:onos-apps-mfwd-oar": [],
     "//apps/mlb:onos-apps-mlb-oar": [],
@@ -254,7 +254,7 @@
     "//apps/newoptical:onos-apps-newoptical-oar": [],
     "//apps/nodemetrics:onos-apps-nodemetrics-oar": [],
     "//apps/node-diagnosis:onos-apps-node-diagnosis-oar": [],
-    "//apps/odtn/api:onos-apps-odtn-api-oar": ["stratum"],
+    "//apps/odtn/api:onos-apps-odtn-api-oar": ["stratum", "tost"],
     "//apps/odtn/service:onos-apps-odtn-service-oar": [],
     "//apps/ofagent:onos-apps-ofagent-oar": [],
     "//apps/onlp-demo:onos-apps-onlp-demo-oar": [],
@@ -266,7 +266,7 @@
     "//apps/openstacktelemetry:onos-apps-openstacktelemetry-oar": [],
     "//apps/openstacktroubleshoot:onos-apps-openstacktroubleshoot-oar": [],
     "//apps/openstackvtap:onos-apps-openstackvtap-oar": [],
-    "//apps/optical-model:onos-apps-optical-model-oar": ["seba", "stratum"],
+    "//apps/optical-model:onos-apps-optical-model-oar": ["seba", "stratum", "tost"],
     "//apps/optical-rest:onos-apps-optical-rest-oar": [],
     "//apps/p4-tutorial/mytunnel:onos-apps-p4-tutorial-mytunnel-oar": [],
     "//apps/p4-tutorial/pipeconf:onos-apps-p4-tutorial-pipeconf-oar": [],
@@ -275,18 +275,18 @@
     "//apps/pathpainter:onos-apps-pathpainter-oar": [],
     "//apps/pcep-api:onos-apps-pcep-api-oar": [],
     "//apps/pim:onos-apps-pim-oar": [],
-    "//apps/portloadbalancer:onos-apps-portloadbalancer-oar": ["seba"],
+    "//apps/portloadbalancer:onos-apps-portloadbalancer-oar": ["seba", "tost"],
     "//apps/powermanagement:onos-apps-powermanagement-oar": [],
     "//apps/proxyarp:onos-apps-proxyarp-oar": [],
     "//apps/rabbitmq:onos-apps-rabbitmq-oar": [],
     "//apps/reactive-routing:onos-apps-reactive-routing-oar": [],
     "//apps/restconf:onos-apps-restconf-oar": [],
     "//apps/roadm:onos-apps-roadm-oar": [],
-    "//apps/route-service:onos-apps-route-service-oar": ["seba"],
-    "//apps/routeradvertisement:onos-apps-routeradvertisement-oar": [],
+    "//apps/route-service:onos-apps-route-service-oar": ["seba", "tost"],
+    "//apps/routeradvertisement:onos-apps-routeradvertisement-oar": ["tost"],
     "//apps/routing/cpr:onos-apps-routing-cpr-oar": [],
     "//apps/routing/fibinstaller:onos-apps-routing-fibinstaller-oar": [],
-    "//apps/routing/fpm:onos-apps-routing-fpm-oar": [],
+    "//apps/routing/fpm:onos-apps-routing-fpm-oar": ["tost"],
     "//apps/scalablegateway:onos-apps-scalablegateway-oar": [],
     "//apps/sdnip:onos-apps-sdnip-oar": [],
     "//apps/simplefabric:onos-apps-simplefabric-oar": [],
@@ -315,10 +315,10 @@
     "//apps/workflow/ofoverlay:onos-apps-workflow-ofoverlay-oar": [],
     "//apps/workflow:onos-apps-workflow-oar": [],
     "//apps/yang-gui:onos-apps-yang-gui-oar": [],
-    "//apps/yang:onos-apps-yang-oar": ["stratum"],
+    "//apps/yang:onos-apps-yang-oar": ["stratum", "tost"],
     # "//apps/yms:onos-apps-yms-oar": [],
     "//web/gui:onos-web-gui-oar": [],
-    "//web/gui2:onos-web-gui2-oar": ["stratum"],
+    "//web/gui2:onos-web-gui2-oar": ["stratum", "tost"],
 }
 
 #
@@ -326,19 +326,19 @@
 #
 
 PIPELINE_MAP = {
-    "//pipelines/basic:onos-pipelines-basic-oar": ["stratum"],
-    "//pipelines/fabric:onos-pipelines-fabric-oar": ["stratum"],
+    "//pipelines/basic:onos-pipelines-basic-oar": ["stratum", "tost"],
+    "//pipelines/fabric:onos-pipelines-fabric-oar": ["stratum", "tost"],
 }
 
 MODELS_MAP = {
-    "//models/ietf:onos-models-ietf-oar": ["stratum"],
+    "//models/ietf:onos-models-ietf-oar": ["stratum", "tost"],
     "//models/common:onos-models-common-oar": [],
     "//models/huawei:onos-models-huawei-oar": [],
-    "//models/openconfig:onos-models-openconfig-oar": ["stratum"],
-    "//models/openconfig-infinera:onos-models-openconfig-infinera-oar": ["stratum"],
-    "//models/openconfig-odtn:onos-models-openconfig-odtn-oar": ["stratum"],
+    "//models/openconfig:onos-models-openconfig-oar": ["stratum", "tost"],
+    "//models/openconfig-infinera:onos-models-openconfig-infinera-oar": ["stratum", "tost"],
+    "//models/openconfig-odtn:onos-models-openconfig-odtn-oar": ["stratum", "tost"],
     "//models/openroadm:onos-models-openroadm-oar": [],
-    "//models/tapi:onos-models-tapi-oar": ["stratum"],
+    "//models/tapi:onos-models-tapi-oar": ["stratum", "tost"],
     "//models/l3vpn:onos-models-l3vpn-oar": [],
     "//models/polatis:onos-models-polatis-oar": [],
     "//models/ciena/waveserverai:onos-models-ciena-waveserverai-oar": [],