Connect to the Device, and establish a default NETCONF session. @throws NetconfException if there are issues communicating with the Netconf server.
()
| 510 | * @throws NetconfException if there are issues communicating with the Netconf server. |
| 511 | */ |
| 512 | public void connect() throws NetconfException { |
| 513 | if (hostName == null || userName == null || (password == null && |
| 514 | pemKeyFile == null)) { |
| 515 | throw new NetconfException("Login parameters of Device can't be " + |
| 516 | "null."); |
| 517 | } |
| 518 | netconfSession = this.createNetconfSession(); |
| 519 | } |
| 520 | |
| 521 | private void loadPrivateKey() throws NetconfException { |
| 522 | try { |