A network administrator executes a RESTCONF GET request to retrieve interface and OSPF routing configuration details from a Cisco router. The response payload is stored in a Python dictionary named `data` as shown below:
{
"ietf-interfaces:interface": {
"name": "GigabitEthernet0/0/1",
"description": "Uplink to Core",
"ietf-ip:ipv4": {
"address": [
{
"ip": "10.10.20.1",
"netmask": "255.255.255.0"
}
]
},
"Cisco-IOS-XE-ospf:ospf": {
"process-id": [
{
"id": 100,
"area": [
{
"area-id": "0.0.0.0",
"cost": 20
}
]
}
]
}
}
}
Match each Python expression on the left to the corresponding value extracted from the JSON structure on the right.
- data["ietf-interfaces:interface"]["name"]"GigabitEthernet0/0/1"
- data["ietf-interfaces:interface"]["ietf-ip:ipv4"]["address"][0]["ip"]"10.10.20.1"
- data["ietf-interfaces:interface"]["Cisco-IOS-XE-ospf:ospf"]["process-id"][0]["id"]100
- data["ietf-interfaces:interface"]["Cisco-IOS-XE-ospf:ospf"]["process-id"][0]["area"][0]["cost"]20