$ python3 -c 'from cloudinit.url_helper import readurl; import sys, json; print(json.dumps(json.loads(readurl(sys.argv[1]).contents.decode()), indent=1))' http://169.254.169.254/openstack/latest/network_data.json
{
"links": [
{
"id": "tapf6f6405e-15",
"mtu": null,
"type": "ovs",
"ethernet_mac_address": "fa:16:3e:a6:41:0b",
"vif_id": "f6f6405e-15f5-44c0-bb40-75488b4dae41"
}
],
"networks": [
{
"network_id": "db6a8975-5ca2-49d6-8ca7-f8747a163e58",
"id": "network0",
"link": "tapf6f6405e-15",
"type": "ipv4_dhcp"
}
],
"services": [
{
"address": "10.245.160.2",
"type": "dns"
}
]
}