package org.opendaylight.netconf.console.commands;
+import com.google.common.annotations.VisibleForTesting;
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
+ NetconfDisconnectDeviceCommand(final NetconfCommands service, final String deviceId, final String deviceIp,
+ final String devicePort) {
+ this.service = service;
+ this.deviceId = deviceId;
+ this.deviceIp = deviceIp;
+ this.devicePort = devicePort;
+ }
+
@Option(name = "-i",
aliases = { "--ipaddress" },
description = "IP address of the netconf device",
required = false,
multiValued = false)
- private String deviceIp = "";
+ private String deviceIp;
@Option(name = "-p",
aliases = { "--port" },
description = "Node Identifier of the netconf device",
required = false,
multiValued = false)
- private String deviceId = "";
+ private String deviceId;
@Override
protected Object doExecute() throws Exception {