Question 20 of 28


Prev Question Next Question

Question

def configure_ip_address (interface, ip, length)
BASE_URL + “/data/ietf-inter faces: intefaces/interface=(i}”. format (
interface

data = OrderedDict (
t

“ietf-interfaces:interface”,
orderedDirect (
C
(name”, interface),
(“type”, “iana-if-type:ethernetCsmacd”),
G
“ietf-ip:ipv6”,
orderedDict (
C
(
“address”,
[OrderedDict ([(“ip”, ip), (“prefix-length”, length) 1)],

)

response = requests.put (
url, auth=(USERNAME, PASSWORD), headers=HEADERS, verify=False, json=data
>

print (response. status_code)

configure_ip_address ("“GigabitEthernet2”, “2001:db8:636c:6179:2063:7572:7469:7300", “64”)

Refer to the exhibit.

What is the effect of the script on the device?

Answers