Create a new Device using username and password authentication. @return an unconnected Device object. @throws NetconfException if there are issues creating the Device.
()
| 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. |