Arista driver bazel build

Change-Id: If9399a91e020fa8671d95c378159df050b46de7f
diff --git a/drivers/arista/BUILD b/drivers/arista/BUILD
new file mode 100644
index 0000000..a0a54cc
--- /dev/null
+++ b/drivers/arista/BUILD
@@ -0,0 +1,33 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+    '@javax_ws_rs_api//jar',
+    '//incubator/api:onos-incubator-api',
+    '//utils/rest:onlab-rest',
+    '//drivers/utilities:onos-drivers-utilities',
+    '//protocols/rest/api:onos-protocols-rest-api',
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+    '//core/api:onos-api-tests',
+]
+
+BUNDLES = [
+    ':onos-drivers-arista',
+    '//drivers/utilities:onos-drivers-utilities',
+]
+
+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.arista',
+    title = 'Arista Drivers',
+    category = 'Drivers',
+    url = 'http://onosproject.org',
+    description = 'Adds support for Arista devices.',
+    included_bundles = BUNDLES,
+    required_apps = [ 'org.onosproject.restsb' ],
+)
diff --git a/drivers/utilities/BUILD b/drivers/utilities/BUILD
new file mode 100644
index 0000000..3263164
--- /dev/null
+++ b/drivers/utilities/BUILD
@@ -0,0 +1,8 @@
+COMPILE_DEPS = CORE_DEPS
+
+osgi_jar_with_tests (
+    deps = COMPILE_DEPS,
+    resources_root = 'src/main/resources',
+    resources = glob(['src/main/resources/**']),
+)
+
diff --git a/providers/rest/BUILD b/providers/rest/BUILD
new file mode 100644
index 0000000..3aca595
--- /dev/null
+++ b/providers/rest/BUILD
@@ -0,0 +1,21 @@
+BUNDLES = [
+    '@jersey_client//jar',
+    '@jersey_security//jar',
+    '@commons_io//jar',
+    '@httpclient_osgi//jar',
+    '@httpcore_osgi//jar',
+    '//providers/rest/device:onos-providers-rest-device',
+    '//protocols/rest/api:onos-protocols-rest-api',
+    '//protocols/rest/ctl:onos-protocols-rest-ctl',
+]
+
+onos_app (
+    app_name = 'org.onosproject.restsb',
+    title = 'REST Provider',
+    category = 'Provider',
+    url = 'https://wiki.onosproject.org/display/ONOS/REST',
+    included_bundles = BUNDLES,
+    description = 'Provides means for ONOS to discover the existence of a REST API enabled device ' +
+        'or proxy for multiple devices from information given by network configuration.',
+)
+
diff --git a/providers/rest/device/BUILD b/providers/rest/device/BUILD
new file mode 100644
index 0000000..dc6632c
--- /dev/null
+++ b/providers/rest/device/BUILD
@@ -0,0 +1,12 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+    '@javax_ws_rs_api//jar',
+    #'//protocols/ovsdb/api:onos-protocols-ovsdb-api',
+    #'//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc',
+    #'//apps/pcep-api:onos-apps-pcep-api',
+    '//incubator/api:onos-incubator-api',
+    '//protocols/rest/api:onos-protocols-rest-api',
+]
+
+osgi_jar_with_tests (
+    deps = COMPILE_DEPS,
+)