Adding Bazel support for YANG models.
Change-Id: Icdb620bdb99ae9eeb042a84a8ca7563588c813c1
diff --git a/models/common/BUILD b/models/common/BUILD
new file mode 100644
index 0000000..3b845b3
--- /dev/null
+++ b/models/common/BUILD
@@ -0,0 +1,7 @@
+load("//tools/build/bazel:yang.bzl", "yang_model")
+
+yang_model(
+ app_name = "org.onosproject.models.common",
+ title = "Common YANG Models",
+ custom_registrator = True,
+)
diff --git a/models/huawei/BUILD b/models/huawei/BUILD
new file mode 100644
index 0000000..5a0a8a0
--- /dev/null
+++ b/models/huawei/BUILD
@@ -0,0 +1,7 @@
+load("//tools/build/bazel:yang.bzl", "yang_model")
+
+yang_model (
+ app_name = "org.onosproject.models.huawei",
+ title = "Huawei YANG Models",
+ custom_registrator = True,
+)
diff --git a/models/ietf/BUILD b/models/ietf/BUILD
new file mode 100644
index 0000000..9197c54
--- /dev/null
+++ b/models/ietf/BUILD
@@ -0,0 +1,7 @@
+load("//tools/build/bazel:yang.bzl", "yang_model")
+
+yang_model (
+ app_name = "org.onosproject.models.ietf",
+ title = "IETF YANG Models",
+ custom_registrator = False,
+)
diff --git a/models/openconfig/BUILD b/models/openconfig/BUILD
new file mode 100644
index 0000000..c8b2d33
--- /dev/null
+++ b/models/openconfig/BUILD
@@ -0,0 +1,17 @@
+load("//tools/build/bazel:yang.bzl", "yang_model")
+
+COMPILE_DEPS = [
+ "//models/ietf:onos-models-ietf",
+]
+
+APPS = [
+ "org.onosproject.models.ietf",
+]
+
+yang_model(
+ app_name = "org.onosproject.models.openconfig",
+ title = "OpenConfig YANG Models",
+ custom_registrator = True,
+ deps = COMPILE_DEPS,
+ required_apps = APPS,
+)
diff --git a/models/openroadm/BUILD b/models/openroadm/BUILD
new file mode 100644
index 0000000..619fd61
--- /dev/null
+++ b/models/openroadm/BUILD
@@ -0,0 +1,6 @@
+load("//tools/build/bazel:yang.bzl", "yang_model")
+
+yang_model(
+ app_name = "org.onosproject.models.openroadm",
+ title = "Open ROADM YANG Models",
+)
\ No newline at end of file
diff --git a/models/tapi/BUILD b/models/tapi/BUILD
new file mode 100644
index 0000000..e594675
--- /dev/null
+++ b/models/tapi/BUILD
@@ -0,0 +1,7 @@
+load("//tools/build/bazel:yang.bzl", "yang_model")
+
+yang_model(
+ app_name = "org.onosproject.models.tapi",
+ title = "ONF Transport API YANG Models",
+ custom_registrator = True,
+)