How does using the Python with statement in conjunction with ncclient manager improve an existing NETCONF automation script?

How does using the Python with statement in conjunction with ncclient manager improve an existing NETCONF automation script?
A. It allows the NETCONF connection to the device to be gracefully closed without having to explicitly code this action.
B. It manages the running configuration of the device by comparing it to the new configuration applied using NETCONF.
C. The with statement tries to connect to the device using TCP port 830 first but also tries to connect via TCP port 22.
D. Use of the with statement catches any exceptions when trying to connect to a device using NETCONF.

cisco-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.