Completer fixes for core ONOS CLI commands
Change-Id: Icedfc542ad93a2825b592f3deb6cd96d91779544
diff --git a/cli/src/main/java/org/onosproject/cli/net/RegionUpdateCommand.java b/cli/src/main/java/org/onosproject/cli/net/RegionUpdateCommand.java
index 3b164d4..678ae10 100644
--- a/cli/src/main/java/org/onosproject/cli/net/RegionUpdateCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/RegionUpdateCommand.java
@@ -21,8 +21,10 @@
import com.google.common.collect.Sets;
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;
+import org.onosproject.cli.NodeIdCompleter;
import org.onosproject.cluster.NodeId;
import org.onosproject.net.region.Region;
import org.onosproject.net.region.RegionAdminService;
@@ -50,6 +52,7 @@
@Argument(index = 0, name = "id", description = "Region ID",
required = true, multiValued = false)
+ @Completion(RegionIdCompleter.class)
String id = null;
@Argument(index = 1, name = "name", description = "Region Name",
@@ -59,11 +62,13 @@
@Argument(index = 2, name = "type", description = "Region Type (CONTINENT|" +
"COUNTRY|METRO|CAMPUS|BUILDING|FLOOR|ROOM|RACK|LOGICAL_GROUP)",
required = true, multiValued = false)
+ @Completion(RegionTypeCompleter.class)
String type = null;
@Argument(index = 3, name = "masters", description = "Region Master, a set " +
"of nodeIds should be split with '/' delimiter (e.g., 1 2 3 / 4 5 6)",
required = true, multiValued = true)
+ @Completion(NodeIdCompleter.class)
List<String> masterArgs = null;
@Override