Make vRouter components into separate apps.
This allows us to leverage the ONOS app subsystem for selecting which
components to load.
CORD-710
Change-Id: Ibd7c4c1afd2caa137b44c085e7b6b5b4a1082521
diff --git a/apps/routing/cpr/BUCK b/apps/routing/cpr/BUCK
new file mode 100644
index 0000000..89a499d
--- /dev/null
+++ b/apps/routing/cpr/BUCK
@@ -0,0 +1,30 @@
+COMPILE_DEPS = [
+ '//lib:CORE_DEPS',
+ '//incubator/api:onos-incubator-api',
+ '//apps/routing-api:onos-apps-routing-api',
+]
+
+TEST_DEPS = [
+ '//lib:TEST_ADAPTERS',
+ '//incubator/api:onos-incubator-api-tests',
+ '//apps/routing-api:onos-apps-routing-api-tests',
+]
+
+osgi_jar_with_tests (
+ deps = COMPILE_DEPS,
+ test_deps = TEST_DEPS,
+)
+
+BUNDLES = [
+ '//apps/routing/cpr:onos-apps-routing-cpr',
+ '//apps/routing-api:onos-apps-routing-api',
+]
+
+onos_app (
+ app_name = 'org.onosproject.cpr',
+ title = 'Control plane redirect',
+ category = 'Traffic Steering',
+ url = 'http://onosproject.org',
+ description = 'Redirects routing control traffic to a control plane',
+ included_bundles = BUNDLES,
+)