200-901 Question 137
Single answerYou are tasked with automating the deployment of network devices in a data center using Cisco's infrastructure automation tools. You decide to use a Python script that leverages the Cisco DevNet-supported libraries. Which library would be most suitable for managing the configuration of network devices via NETCONF?
- A
ncclient
- B
paramiko
- C
pyATS
- D
Ansible
Show answer and explanation
Correct answer: A
Explanation
The ncclient library is specifically designed to interact with network devices using the NETCONF protocol, making it the most appropriate option for automating the deployment and configuration of network devices using NETCONF in a Python script.
- A. Correct.
ncclient is a Python library specifically designed for interacting with network devices using the NETCONF protocol, making it the most suitable choice for this scenario.
- B. Incorrect.
paramiko is a Python library for SSH connections and is more general-purpose. While it can be used for network device automation, it does not natively support NETCONF.
- C. Incorrect.
pyATS is a Cisco DevNet-supported testing framework for network automation but is not focused on NETCONF directly.
- D. Incorrect.
Ansible is an automation tool that can manage configurations, but it is not a Python library and does not interact with NETCONF natively in a Python scripting context.