Add blueprint wiring for netconf-console
[netconf.git] / netconf / netconf-console / src / main / java / org / opendaylight / netconf / console / commands / NetconfUpdateDeviceCommand.java
index a15daf29d373b38e1702c87a0f9546d78a0aa4ea..c890a39884cfd6d86ef8b88bbefeb34144d15f62 100644 (file)
@@ -8,9 +8,9 @@
 
 package org.opendaylight.netconf.console.commands;
 
+import com.google.common.annotations.VisibleForTesting;
 import java.util.HashMap;
 import java.util.Map;
-
 import org.apache.karaf.shell.commands.Command;
 import org.apache.karaf.shell.commands.Option;
 import org.apache.karaf.shell.console.AbstractAction;
@@ -26,6 +26,12 @@ public class NetconfUpdateDeviceCommand extends AbstractAction {
         this.service = service;
     }
 
+    @VisibleForTesting
+    NetconfUpdateDeviceCommand(final NetconfCommands service, final String newIp) {
+        this.service = service;
+        this.newIp = newIp;
+    }
+
     @Option(name = "-id",
             aliases = { "--nodeId" },
             description = "NETCONF node ID of the netconf device",
@@ -77,7 +83,7 @@ public class NetconfUpdateDeviceCommand extends AbstractAction {
 
     @Option(name = "-t",
             aliases = { "--tcp-only" },
-            description = "Type of connection, true for tcp only, false by default",
+            description = "Type of connection, true for tcp only",
             required = false,
             multiValued = false)
     private String newConnectionType = "false";