Implementing Automation for Cisco Enterprise Solutions (ENAUTO) — Question 13
Which action allows for creating a Python script to pull inventory for Cisco SD-WAN Viptela devices using the Viptela library in the code?
Answer options
- A. from urllib.request import Viptela
- B. from viptela.devices import Viptela
- C. from viptela.viptela import Viptela
- D. from viptela.library import Viptela
Correct answer: B
Explanation
The correct answer is B because it correctly imports the Viptela class from the devices module, which is specifically designed for interacting with Viptela devices. The other options either import from incorrect modules or use incorrect classes, which would not provide the necessary functionality for managing the Viptela devices.