Reactive forwarding app changes for karaf 4.2.1 completers
Change-Id: I29bf4a314ba72c18b8d8fc938e2d0f9015a00461
diff --git a/apps/fwd/BUILD b/apps/fwd/BUILD
index f2f4bc4..40d5216 100644
--- a/apps/fwd/BUILD
+++ b/apps/fwd/BUILD
@@ -4,6 +4,7 @@
]
osgi_jar_with_tests(
+ karaf_command_packages = ["org.onosproject.fwd"],
deps = COMPILE_DEPS,
)
diff --git a/apps/fwd/src/main/java/org/onosproject/fwd/ReactiveForwardingCommand.java b/apps/fwd/src/main/java/org/onosproject/fwd/ReactiveForwardingCommand.java
index d0468d2..0355b64 100644
--- a/apps/fwd/src/main/java/org/onosproject/fwd/ReactiveForwardingCommand.java
+++ b/apps/fwd/src/main/java/org/onosproject/fwd/ReactiveForwardingCommand.java
@@ -15,6 +15,7 @@
*/
package org.onosproject.fwd;
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;
import org.apache.karaf.shell.api.action.Argument;
@@ -29,6 +30,7 @@
public class ReactiveForwardingCommand extends AbstractShellCommand {
@Argument(index = 0, name = "mac", description = "One Mac Address",
required = false, multiValued = false)
+ @Completion(MacAddressCompleter.class)
String mac = null;
@Override
protected void doExecute() {