Moving huawei YANG model to /models, also removing the redundant YANG which are redundant now.
Change-Id: I10bf58aa5172807d892173c358a75de1fb206d5a
diff --git a/drivers/huawei/BUCK b/drivers/huawei/BUCK
index c8401e0..ccbe21e 100644
--- a/drivers/huawei/BUCK
+++ b/drivers/huawei/BUCK
@@ -1,27 +1,48 @@
-APPS = [
- 'org.onosproject.yang',
- 'org.onosproject.yang-gui',
- 'org.onosproject.config',
- 'org.onosproject.restconf',
- 'org.onosproject.yms',
- 'org.onosproject.protocols.restconfserver',
- 'org.onosproject.netconf',
- 'org.onosproject.netconfsb',
- 'org.onosproject.models.l3vpn',
- 'org.onosproject.l3vpn',
+COMPILE_DEPS = [
+ '//lib:CORE_DEPS',
+ '//lib:org.apache.servicemix.bundles.dom4j',
+ '//models/l3vpn:onos-models-l3vpn',
+ '//models/huawei:onos-models-huawei',
+ '//drivers/utilities:onos-drivers-utilities',
+ '//protocols/netconf/api:onos-protocols-netconf-api',
+ '//apps/l3vpn:onos-apps-l3vpn',
+ '//apps/config:onos-apps-config',
+ '//lib:onos-yang-model',
+ '//lib:onos-yang-runtime',
+ '//apps/yang:onos-apps-yang',
]
-BUNDLES = [
- '//drivers/huawei/yangmodel:onos-drivers-huawei-yangmodel',
- '//drivers/huawei/driver:onos-drivers-huawei-driver',
+APPS = [
+ 'org.onosproject.yang',
+ 'org.onosproject.yang-gui',
+ 'org.onosproject.config',
+ 'org.onosproject.restconf',
+ 'org.onosproject.yms',
+ 'org.onosproject.protocols.restconfserver',
+ 'org.onosproject.netconf',
+ 'org.onosproject.netconfsb',
+ 'org.onosproject.models.l3vpn',
+ 'org.onosproject.l3vpn',
+ 'org.onosproject.models.huawei',
]
+TEST_DEPS = [
+ '//lib:TEST_ADAPTERS',
+ '//utils/osgi:onlab-osgi-tests',
+]
+
+osgi_jar_with_tests(
+ deps = COMPILE_DEPS,
+ test_deps = TEST_DEPS,
+ resources_root = 'src/main/resources',
+ resources = glob(['src/main/resources/**']),
+)
+
onos_app(
- app_name = 'org.onosproject.drivers.huawei',
- title = 'Huawei Device Drivers',
- category = 'Drivers',
- url = 'http://onosproject.org',
- description = 'ONOS Huawei Device Drivers application.',
- included_bundles = BUNDLES,
- required_apps = APPS
+ app_name = 'org.onosproject.drivers.huawei',
+ title = 'Huawei Device Drivers',
+ category = 'Drivers',
+ url = 'http://onosproject.org',
+ description = 'ONOS Huawei Device Drivers application.',
+ required_apps = APPS
)
\ No newline at end of file