MCPcopy Index your code
hub / github.com/Juniper/netconf-java / connect

Method connect

src/main/java/net/juniper/netconf/Device.java:512–519  ·  view source on GitHub ↗

Connect to the Device, and establish a default NETCONF session. @throws NetconfException if there are issues communicating with the Netconf server.

()

Source from the content-addressed store, hash-verified

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 {

Calls 1

createNetconfSessionMethod · 0.95