Simple Fabric app changes for karaf 4.2.1 CLI
Change-Id: I185263f01acdde70500ea089736e756f5e26649e
diff --git a/apps/simplefabric/BUILD b/apps/simplefabric/BUILD
index 03e118d..007b701 100644
--- a/apps/simplefabric/BUILD
+++ b/apps/simplefabric/BUILD
@@ -7,6 +7,7 @@
]
osgi_jar_with_tests(
+ karaf_command_packages = ["org.onosproject.simplefabric"],
test_deps = TEST_ADAPTERS,
web_context = "/onos/v1/simplefabric",
deps = COMPILE_DEPS,
diff --git a/apps/simplefabric/src/main/java/org/onosproject/simplefabric/SimpleFabricCommand.java b/apps/simplefabric/src/main/java/org/onosproject/simplefabric/SimpleFabricCommand.java
index 780d904..8d88f08 100644
--- a/apps/simplefabric/src/main/java/org/onosproject/simplefabric/SimpleFabricCommand.java
+++ b/apps/simplefabric/src/main/java/org/onosproject/simplefabric/SimpleFabricCommand.java
@@ -17,6 +17,7 @@
import org.apache.karaf.shell.api.action.Argument;
import org.apache.karaf.shell.api.action.Command;
+import org.apache.karaf.shell.api.action.Completion;
import org.apache.karaf.shell.api.action.lifecycle.Service;
import org.onosproject.cli.AbstractShellCommand;
@@ -31,6 +32,7 @@
@Argument(index = 0, name = "command",
description = "Command: show|intents|reactive-intents|refresh|flush",
required = true, multiValued = false)
+ @Completion(SimpleFabricCommandCompleter.class)
String command = null;
@Override