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

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

Question

headers = { ‘Content-Type’: ‘application/yang-datatjson’,
‘accept’: ‘application/yang-data+json’ }

data = OrderedDict ([( ‘iet£-interfaces: interface’,
OrderedDict ([
(*name’, ‘Loopback2") ,
(type, Siana-if-type:softwareLoopback’) ,
(ietf-ip:ipvs",
OrderedDict ([
(Caddress’, [OrderedDict ([
(ip, 10.222.234.8"),
(*netmask’, °255.255.255.0")
1

response =
requests.put ("attps: //10.10.20.48:443/restcon£/data/iet£-interfaces: interfaces/interface=Loopback2”,
auth=("cisco”, “cisco 1234!”),

json=data
)

Refer to the exhibit.

A Python script is used to configure a Cisco IOS XE router.

The Loopback2 interface currently has a description of Management2 and an IP address/netmask of 10.222.34.22/32

What is the result of executing the script?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.