Fix for stratum profile deps
Since drivers.stratum depends on drivers.odtn-driver, the stratum profile
selection needs to add with those deps.
Change-Id: I85dffc52112e8b29838def6b854886a2734059a3
diff --git a/tools/build/bazel/modules.bzl b/tools/build/bazel/modules.bzl
index c1c3e0a..559dbe2 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": [],
- "//protocols/rest/ctl:onos-protocols-rest-ctl": [],
+ "//protocols/rest/api:onos-protocols-rest-api": ["stratum"],
+ "//protocols/rest/ctl:onos-protocols-rest-ctl": ["stratum"],
"//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": [],
@@ -107,7 +107,7 @@
"//providers/ovsdb/device:onos-providers-ovsdb-device": [],
"//providers/ovsdb/tunnel:onos-providers-ovsdb-tunnel": [],
"//providers/p4runtime/packet:onos-providers-p4runtime-packet": ["stratum"],
- "//providers/rest/device:onos-providers-rest-device": [],
+ "//providers/rest/device:onos-providers-rest-device": ["stratum"],
"//providers/snmp/device:onos-providers-snmp-device": [],
"//providers/isis/cfg:onos-providers-isis-cfg": [],
"//providers/isis/topology:onos-providers-isis-topology": [],
@@ -126,7 +126,7 @@
"//providers/lldp:onos-providers-lldp-oar": ["seba", "stratum"],
"//providers/netcfghost:onos-providers-netcfghost-oar": ["seba", "stratum"],
"//providers/netcfglinks:onos-providers-netcfglinks-oar": ["stratum"],
- "//providers/netconf:onos-providers-netconf-oar": [],
+ "//providers/netconf:onos-providers-netconf-oar": ["stratum"],
"//providers/null:onos-providers-null-oar": [],
"//providers/openflow/app:onos-providers-openflow-app-oar": ["seba"],
"//providers/openflow/base:onos-providers-openflow-base-oar": ["seba"],
@@ -136,7 +136,7 @@
"//providers/ovsdb/base:onos-providers-ovsdb-base-oar": [],
"//providers/p4runtime:onos-providers-p4runtime-oar": ["stratum"],
"//providers/pcep:onos-providers-pcep-oar": [],
- "//providers/rest:onos-providers-rest-oar": [],
+ "//providers/rest:onos-providers-rest-oar": ["stratum"],
"//providers/snmp:onos-providers-snmp-oar": [],
"//providers/lisp:onos-providers-lisp-oar": [],
"//providers/tl1:onos-providers-tl1-oar": [],
@@ -171,10 +171,10 @@
"//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": [],
- "//drivers/odtn-driver:onos-drivers-odtn-driver-oar": [],
+ "//drivers/netconf:onos-drivers-netconf-oar": ["stratum"],
+ "//drivers/odtn-driver:onos-drivers-odtn-driver-oar": ["stratum"],
"//drivers/oplink:onos-drivers-oplink-oar": [],
- "//drivers/optical:onos-drivers-optical-oar": [],
+ "//drivers/optical:onos-drivers-optical-oar": ["stratum"],
"//drivers/ovsdb:onos-drivers-ovsdb-oar": [],
"//drivers/p4runtime:onos-drivers-p4runtime-oar": ["stratum"],
"//drivers/polatis/netconf:onos-drivers-polatis-netconf-oar": [],
@@ -215,7 +215,7 @@
"//apps/castor:onos-apps-castor-oar": [],
"//apps/cfm:onos-apps-cfm-oar": [],
"//apps/cip:onos-apps-cip-oar": [],
- "//apps/config:onos-apps-config-oar": [],
+ "//apps/config:onos-apps-config-oar": ["stratum"],
"//apps/configsync-netconf:onos-apps-configsync-netconf-oar": [],
"//apps/configsync:onos-apps-configsync-oar": [],
"//apps/cord-support:onos-apps-cord-support-oar": [],
@@ -226,7 +226,7 @@
"//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": [],
+ "//apps/faultmanagement:onos-apps-faultmanagement-oar": ["stratum"],
"//apps/flowanalyzer:onos-apps-flowanalyzer-oar": [],
"//apps/flowspec-api:onos-apps-flowspec-api-oar": [],
"//apps/fwd:onos-apps-fwd-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": [],
+ "//apps/odtn/api:onos-apps-odtn-api-oar": ["stratum"],
"//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"],
+ "//apps/optical-model:onos-apps-optical-model-oar": ["seba", "stratum"],
"//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": [],
@@ -317,7 +317,7 @@
"//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": [],
+ "//apps/yang:onos-apps-yang-oar": ["stratum"],
# "//apps/yms:onos-apps-yms-oar": [],
"//web/gui:onos-web-gui-oar": [],
"//web/gui2:onos-web-gui2-oar": ["stratum"],
@@ -333,14 +333,14 @@
}
MODELS_MAP = {
- "//models/ietf:onos-models-ietf-oar": [],
+ "//models/ietf:onos-models-ietf-oar": ["stratum"],
"//models/common:onos-models-common-oar": [],
"//models/huawei:onos-models-huawei-oar": [],
- "//models/openconfig:onos-models-openconfig-oar": [],
- "//models/openconfig-infinera:onos-models-openconfig-infinera-oar": [],
- "//models/openconfig-odtn:onos-models-openconfig-odtn-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/openroadm:onos-models-openroadm-oar": [],
- "//models/tapi:onos-models-tapi-oar": [],
+ "//models/tapi:onos-models-tapi-oar": ["stratum"],
"//models/l3vpn:onos-models-l3vpn-oar": [],
"//models/polatis:onos-models-polatis-oar": [],
"//models/ciena/waveserverai:onos-models-ciena-waveserverai-oar": [],