python -c 'import json, sys, urllib;
print(json.dumps(json.loads(urllib.urlopen(sys.argv[1]).read()), indent=2))' http://169.254.169.254/openstack/latest/network_data.json
{
"services": [
{
"type": "dns",
"address": "199.204.44.24"
},
{
"type": "dns",
"address": "199.204.47.54"
}
],
"networks": [
{
"network_id": "6d6357ac-0f70-4afa-8bd7-c274cc4ea235",
"type": "ipv4_dhcp",
"link": "tap2ecc7709-b3",
"id": "network0"
},
{
"network_id": "d227a9b3-6960-4d94-8976-ee5788b44f54",
"type": "ipv4_dhcp",
"link": "tap2f88d109-5b",
"id": "network1"
},
{
"network_id": "dab2ba57-cae2-4311-a5ed-010b263891f5",
"type": "ipv4_dhcp",
"link": "tap1a5382f8-04",
"id": "network2"
}
],
"links": [
{
"type": "ovs",
"vif_id": "2ecc7709-b3f7-4448-9580-e1ec32d75bbd",
"ethernet_mac_address": "fa:16:3e:69:b0:58",
"id": "tap2ecc7709-b3",
"mtu": null
},
{
"type": "ovs",
"vif_id": "2f88d109-5b57-40e6-af32-2472df09dc33",
"ethernet_mac_address": "fa:16:3e:d4:57:ad",
"id": "tap2f88d109-5b",
"mtu": null
},
{
"type": "ovs",
"vif_id": "1a5382f8-04c5-4d75-ab98-d666c1ef52cc",
"ethernet_mac_address": "fa:16:3e:05:30:fe",
"id": "tap1a5382f8-04",
"mtu": null
}
]
}