Add modules to Bazel build
cli
core
incubator/rpc
pipelines/basic
protocols/netconf
protocols/openflow
protocols/rest

Change-Id: I165b94a04ba893d97d944e5deb2746f54566503b
diff --git a/protocols/netconf/api/BUILD b/protocols/netconf/api/BUILD
new file mode 100644
index 0000000..2d486c5
--- /dev/null
+++ b/protocols/netconf/api/BUILD
@@ -0,0 +1,3 @@
+osgi_jar_with_tests(
+    deps = CORE_DEPS + JACKSON,
+)
diff --git a/protocols/netconf/ctl/BUILD b/protocols/netconf/ctl/BUILD
new file mode 100644
index 0000000..09346b2
--- /dev/null
+++ b/protocols/netconf/ctl/BUILD
@@ -0,0 +1,19 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+    "@ganymed_ssh2//jar",
+    "@org_apache_karaf_shell_console//jar",
+    "@sshd_core//jar",
+    "@bcpkix_jdk15on//jar",
+    "@bcprov_jdk15on//jar",
+    "//protocols/netconf/api:onos-protocols-netconf-api",
+    "//cli:onos-cli",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+    "//utils/osgi:onlab-osgi-tests",
+    "//core/api:onos-api-tests",
+]
+
+osgi_jar_with_tests(
+    test_deps = TEST_DEPS,
+    deps = COMPILE_DEPS,
+)