Reactive forwarding app changes for karaf 4.2.1 completers

Change-Id: I29bf4a314ba72c18b8d8fc938e2d0f9015a00461
This commit is contained in:
Ray Milkey 2018-10-09 12:03:49 -07:00
parent db57f1c326
commit 6c2cbe85ce
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ COMPILE_DEPS = CORE_DEPS + KRYO + CLI + [
]
osgi_jar_with_tests(
karaf_command_packages = ["org.onosproject.fwd"],
deps = COMPILE_DEPS,
)

View File

@ -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 @@ import org.onlab.packet.MacAddress;
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() {