350-401 Question 307
Single answerA network engineer is tasked with automating device configuration updates across an enterprise network. The engineer wants to use a Python script that interacts with network devices via NETCONF to push configurations. Which library would be the most appropriate to use in this scenario?
- A
Paramiko
- B
ncclient
- C
Ansible
- D
NAPALM
Show answer and explanation
Correct answer: B
Explanation
NETCONF is a protocol designed for managing and configuring network devices. ncclient is a Python library built specifically to handle NETCONF operations, making it the most appropriate choice for a Python script that interacts with devices via NETCONF. The other options either serve broader purposes or are not tailored to NETCONF.
- A. Incorrect.
Paramiko is a Python library used for SSH-based communication. While it can be used to interact with network devices, it is not specifically designed for NETCONF operations.
- B. Correct.
ncclient is a Python library specifically designed for NETCONF operations, making it the most suitable choice for interacting with network devices using the NETCONF protocol.
- C. Incorrect.
Ansible is an automation tool that can manage configurations and devices, but it is not a Python library specifically for NETCONF. While it supports NETCONF modules, it is not the best answer for writing a Python script.
- D. Incorrect.
NAPALM is a Python library for network automation and supports multiple methods of device interaction but is not specifically dedicated to NETCONF.