commit | 6741a5fdffc1f892c60c9d63aa78eb591fbce713 | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Wed Nov 19 20:40:11 2014 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Nov 19 20:58:43 2014 -0800 |
tree | 6e493c889eeefa551f67ceef963b0f0bbf6fbd38 | |
parent | 5c05f861541f0b8907fb74d931e90748afbf21dc [diff] |
adding random host to host intent command Change-Id: Id7e059466a2a1dbb7a117c84c8c4d104f99858ad
diff --git a/cli/src/main/java/org/onlab/onos/cli/net/IntentPushTestCommand.java b/cli/src/main/java/org/onlab/onos/cli/net/IntentPushTestCommand.java index 8fbdb32..d5eb2eb 100644 --- a/cli/src/main/java/org/onlab/onos/cli/net/IntentPushTestCommand.java +++ b/cli/src/main/java/org/onlab/onos/cli/net/IntentPushTestCommand.java
@@ -74,6 +74,7 @@ protected void execute() { service = get(IntentService.class); + DeviceId ingressDeviceId = deviceId(getDeviceId(ingressDeviceString)); PortNumber ingressPortNumber = portNumber(getPortNumber(ingressDeviceString)); ConnectPoint ingress = new ConnectPoint(ingressDeviceId, ingressPortNumber);
diff --git a/cli/src/main/resources/OSGI-INF/blueprint/shell-config.xml b/cli/src/main/resources/OSGI-INF/blueprint/shell-config.xml index 1621069..132acfd 100644 --- a/cli/src/main/resources/OSGI-INF/blueprint/shell-config.xml +++ b/cli/src/main/resources/OSGI-INF/blueprint/shell-config.xml
@@ -170,6 +170,13 @@ </completers> </command> <command> + <action class="org.onlab.onos.cli.net.RandomIntentCommand"/> + <completers> + <ref component-id="nullCompleter"/> + <null/> + </completers> + </command> + <command> <action class="org.onlab.onos.cli.net.ResourceAllocationsCommand"/> <completers> <ref component-id="connectPointCompleter"/>