Exam 350-401 | Question id=5684 | Automation |
Refer to the exhibit.
with manager.connect(host=192.168.0.1, port=22
username='admin', password='password1', hostkey_verify=True,
device_params={'name':'nexus'}) as m:
What does the snippet of code achieve?
A. |
It creates an SSH connection using the SSH key that is stored, and the password is ignored. | |
B. |
It creates a temporary connection to a Cisco Nexus device and retrieves a token to be used for API calls. | |
C. |
It opens an ncclient connection to a Cisco Nexus device and maintains it for the duration of the context. | |
D. |
It opens a tunnel and encapsulates the login information, if the host key is correct. |