Which statement should be added before the loop?

Refer to the exhibit.

A Python script is used to configure a Cisco IOS XE device. The script must be updated to

print the IP addresses of all the loopback interfaces.

Which statement should be added before the loop?
A . interfaces = response.json()[“ietf-interfaces:interfaces”]
B . interface = response.json()[“ietf-interfaces:interfaces”]
C . interface = response.json()[“ietf-interfaces:interfaces”][“interface”]
D . interfaces = response.json()[“ietf-interfaces:interfaces”][“interface”]

Answer: D

Explanation:

Reference: https://blog.wimwauters.com/networkprogrammability/2020-04-04_restconf_python/

Latest 300-435 Dumps Valid Version with 106 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments