Question 36 of 60 from exam 300-435-ENAUTO: Automating and Programming Cisco Enterprise Solutions

Question 36 of 60 from exam 300-435-ENAUTO: Automating and Programming Cisco Enterprise Solutions

Question

headers = {'Content-Type': ‘application/yang-datatjson',

‘acccept': ‘application/yang-data+json'}

response =
requests.get ("https://10.10.20.48:443/restconf/data/ietf-interfaces: interfaces",

auth=("cisco", "cisco_1234!"),
headers=headers,

verify=False

)

i=0
for interface in interfaces:
if "Loopback" in interface ["name"]:
print (interfaces [i] ["ietf-ip:ipv4"] ["address"] [0] ["ip"])

i=i+l

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?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

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