Support to build openstack related apps using Bazel

Change-Id: Ibc9f43a8fd92bb41b162a88a1eb3e8c8c5ad990a
diff --git a/apps/openstacknode/api/BUILD b/apps/openstacknode/api/BUILD
new file mode 100644
index 0000000..9cccaaa
--- /dev/null
+++ b/apps/openstacknode/api/BUILD
@@ -0,0 +1,24 @@
+load(
+    "//apps/openstacknode:openstack4j.bzl",
+    "ALL_PACKAGES",
+    "EXCLUDE_PACKAGES",
+    "INCLUDE_PACKAGES",
+)
+
+COMPILE_DEPS = CORE_DEPS + CLI + [
+    "//core/store/serializers:onos-core-serializers",
+    "//protocols/ovsdb/api:onos-protocols-ovsdb-api",
+    "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+    "//core/api:onos-api-tests",
+    "//core/common:onos-core-common-tests",
+]
+
+osgi_jar_with_tests(
+    exclude_tests = ["org.onosproject.openstacknode.api.OpenstackNodeTest"],
+    import_packages = INCLUDE_PACKAGES + "," + EXCLUDE_PACKAGES + "," + ALL_PACKAGES,
+    test_deps = TEST_ADAPTERS,
+    deps = COMPILE_DEPS,
+)