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

Method createDevice

examples/CreateDevice.java:18–25  ·  view source on GitHub ↗

Create a new Device using username and password authentication. @return an unconnected Device object. @throws NetconfException if there are issues creating the Device.

()

Source from the content-addressed store, hash-verified

16 * @throws NetconfException if there are issues creating the Device.
17 */
18 public static Device createDevice() throws NetconfException {
19 return Device.builder()
20 .hostName(HOSTNAME)
21 .userName(USERNAME)
22 .password(PASSWORD)
23 .strictHostKeyChecking(false)
24 .build();
25 }
26
27 /**
28 * Create a new Device using username and public key file.

Callers 5

mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95

Calls 6

builderMethod · 0.95
strictHostKeyCheckingMethod · 0.80
passwordMethod · 0.80
userNameMethod · 0.80
hostNameMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected