我已经将ODL Netconf TestTool ( Netconf -testtool-1.1.0-Boron-executable.jar)部署到了我的氮气ODL控制器上,所以我开始测试Netconf。
当我通过java -Xmx1G -jar启动Netconf测试工具netconf- TestTool -1.1.0-Boron-executable.jar时,我得到了以下似乎正确的输出。
root@Ubuntu:~# java -Xmx1G -jar netconf-testtool-1.1.0-Boron-executable.jar
- 16:56:29.985 [main] INFO o.o.n.t.tool.NetconfDeviceSimulator - Starting 1, SSH simulated devices starting on port 17830
- 16:56:31.336 [main] INFO o.a.sshd.common.util.SecurityUtils - Trying to register BouncyCastle as a JCE provider
- 16:56:32.381 [main] INFO o.a.sshd.common.util.SecurityUtils - BouncyCastle not registered, using the default JCE provider
- 16:56:32.683 [main] INFO o.o.n.t.tool.NetconfDeviceSimulator - All simulated devices started successfully from port 17830 to 17830然后,我继续通过REST在上为Netconf TestTool添加一个Netconf-Connector,这是成功的,并且它报告了“连接”状态。
"node-id": "Netconf-Testtool",
"netconf-node-topology:host": "127.0.0.1",
"netconf-node-topology:connection-status": "connecting",
"netconf-node-topology:port": 17830但是当我回顾ODL时,我看到了下面的TestTool错误
java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size以前有没有人见过这个?
发布于 2018-02-27 07:05:43
使用carbon (1.2.3-SNAPSHOT)的netconf-test-tool和ODL Boron SR3作为控制器,我也遇到了同样的情况。
我发现原因是我的VM使用的是运行该工具的JDK8 u161,并且看起来u151中有一个更改了默认的键大小。http://www.oracle.com/technetwork/java/javase/8u151-relnotes-3850493.html
按照Stephen的建议,我从netconf testtool-1.3.2-executable.jar中取出了netconf-testtool-1.3.2-executable.jar工件,问题已经解决了,我可以挂载模拟器了。
测试工具1.3.x版本上与SSH相关的依赖项可能已使用较新版本的JDK进行了更新。
https://stackoverflow.com/questions/48911525
复制相似问题