A network engineer issues a RESTCONF GET request to a Cisco IOS XE router to inspect interface operational state data. The API returns the following JSON payload, which is parsed into a Python dictionary named `payload`:
{
"ietf-interfaces:interfaces-state": {
"interface": [
{
"name": "GigabitEthernet1",
"type": "iana-if-type:ethernetCsmacd",
"oper-status": "up",
"phys-address": "00:50:56:89:a1:b2",
"speed": 1000000000
},
{
"name": "GigabitEthernet2",
"type": "iana-if-type:ethernetCsmacd",
"oper-status": "down",
"phys-address": "00:50:56:89:a1:c3",
"speed": 100000000
}
]
}
}
Match each Python dictionary lookup expression on the left with its evaluated value on the right.
- payload["ietf-interfaces:interfaces-state"]["interface"][0]["oper-status"]"up"
- payload["ietf-interfaces:interfaces-state"]["interface"][1]["speed"]100000000
- payload["ietf-interfaces:interfaces-state"]["interface"][1]["oper-status"]"down"
- payload["ietf-interfaces:interfaces-state"]["interface"][0]["speed"]1000000000