X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fnetconf-console%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fconsole%2Fcommands%2FNetconfUpdateDeviceCommand.java;h=c890a39884cfd6d86ef8b88bbefeb34144d15f62;hb=201c71af265bea1af1188b788199a86e2dfb63b1;hp=a15daf29d373b38e1702c87a0f9546d78a0aa4ea;hpb=071e1e359a9a423821cf89043c4be24edb3e8924;p=netconf.git diff --git a/netconf/netconf-console/src/main/java/org/opendaylight/netconf/console/commands/NetconfUpdateDeviceCommand.java b/netconf/netconf-console/src/main/java/org/opendaylight/netconf/console/commands/NetconfUpdateDeviceCommand.java index a15daf29d3..c890a39884 100644 --- a/netconf/netconf-console/src/main/java/org/opendaylight/netconf/console/commands/NetconfUpdateDeviceCommand.java +++ b/netconf/netconf-console/src/main/java/org/opendaylight/netconf/console/commands/NetconfUpdateDeviceCommand.java @@ -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";