import io.netty.util.HashedWheelTimer;
import io.netty.util.Timer;
import java.io.IOException;
+import java.security.Provider;
+import java.security.Security;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
import net.sourceforge.argparse4j.inf.ArgumentParser;
import net.sourceforge.argparse4j.inf.ArgumentParserException;
+import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.opendaylight.controller.netconf.api.NetconfMessage;
import org.opendaylight.controller.netconf.client.NetconfClientDispatcherImpl;
+import org.opendaylight.controller.netconf.nettyutil.handler.ssh.client.AsyncSshHandler;
import org.opendaylight.controller.netconf.util.xml.XmlUtil;
import org.opendaylight.controller.sal.connect.api.RemoteDevice;
import org.opendaylight.controller.sal.connect.netconf.listener.NetconfDeviceCommunicator;
private static long macStart = 0xAABBCCDD0000L;
public static void main(final String[] args) {
+
final Parameters params = parseArgs(args, Parameters.getParser());
params.validate();
} catch (InterruptedException | ExecutionException | TimeoutException e) {
LOG.warn("Unable to close executor properly", e);
}
+ //stop the underlying ssh thread that gets spawned if we use ssh
+ if (params.ssh) {
+ AsyncSshHandler.DEFAULT_CLIENT.stop();
+ }
}
static NetconfMessage prepareMessage(final int id, final String editContentString) {