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;
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",
@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";