)]}'
{"nova/network/model.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"3cfb7499819ecd6894dd32b9073d0cffbaeee722","unresolved":false,"context_lines":[{"line_number":136,"context_line":"class Model(dict):"},{"line_number":137,"context_line":"    \"\"\"Defines some necessary structures for most of the network models.\"\"\""},{"line_number":138,"context_line":"    def __repr__(self):"},{"line_number":139,"context_line":"        return jsonutils.dumps(self)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def _set_meta(self, kwargs):"},{"line_number":142,"context_line":"        # pull meta out of kwargs if it\u0027s there"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ac371cc_ff3da3c4","line":139,"updated":"2016-08-17 21:41:05.000000000","message":"This now gives me something like this:\n\nvif\u003d{\"profile\": null, \"ovs_interfaceid\": null, \"preserve_on_delete\": false, \"network\": {\"bridge\": \"br100\", \"subnets\": [{\"ips\": [{\"meta\": {}, \"version\": 4, \"type\": \"fixed\", \"floating_ips\": [], \"address\": \"10.1.0.255\"}], \"version\": 4, \"meta\": {\"dhcp_server\": \"10.1.0.1\"}, \"dns\": [{\"meta\": {}, \"version\": 4, \"type\": \"dns\", \"address\": \"8.8.4.4\"}], \"routes\": [], \"cidr\": \"10.1.0.0/20\", \"gateway\": {\"meta\": {}, \"version\": 4, \"type\": \"gateway\", \"address\": \"10.1.0.1\"}}, {\"ips\": [], \"version\": null, \"meta\": {\"dhcp_server\": null}, \"dns\": [], \"routes\": [], \"cidr\": null, \"gateway\": {\"meta\": {}, \"version\": null, \"type\": \"gateway\", \"address\": null}}], \"meta\": {\"tenant_id\": null, \"should_create_bridge\": true, \"bridge_interface\": \"br_flat\"}, \"id\": \"b8cd1446-fb7e-4d51-ad0f-0a890fd4ee84\", \"label\": \"private\"}, \"devname\": null, \"vnic_type\": \"normal\", \"qbh_params\": null, \"meta\": {}, \"details\": {}, \"address\": \"fa:16:3e:28:b0:34\", \"active\": false, \"type\": \"bridge\", \"id\": \"45c31c41-ffdf-4a96-83ea-ece845fc66eb\", \"qbg_params\": null} plug /opt/stack/new/nova/nova/virt/libvirt/vif.py:791\n\nWhich I can format to json like this:\n{\n   \"profile\":null,\n   \"ovs_interfaceid\":null,\n   \"preserve_on_delete\":false,\n   \"network\":{\n      \"bridge\":\"br100\",\n      \"subnets\":[\n         {\n            \"ips\":[\n               {\n                  \"meta\":{\n\n                  },\n                  \"version\":4,\n                  \"type\":\"fixed\",\n                  \"floating_ips\":[\n\n                  ],\n                  \"address\":\"10.1.0.255\"\n               }\n            ],\n            \"version\":4,\n            \"meta\":{\n               \"dhcp_server\":\"10.1.0.1\"\n            },\n            \"dns\":[\n               {\n                  \"meta\":{\n\n                  },\n                  \"version\":4,\n                  \"type\":\"dns\",\n                  \"address\":\"8.8.4.4\"\n               }\n            ],\n            \"routes\":[\n\n            ],\n            \"cidr\":\"10.1.0.0/20\",\n            \"gateway\":{\n               \"meta\":{\n\n               },\n               \"version\":4,\n               \"type\":\"gateway\",\n               \"address\":\"10.1.0.1\"\n            }\n         },\n         {\n            \"ips\":[\n\n            ],\n            \"version\":null,\n            \"meta\":{\n               \"dhcp_server\":null\n            },\n            \"dns\":[\n\n            ],\n            \"routes\":[\n\n            ],\n            \"cidr\":null,\n            \"gateway\":{\n               \"meta\":{\n\n               },\n               \"version\":null,\n               \"type\":\"gateway\",\n               \"address\":null\n            }\n         }\n      ],\n      \"meta\":{\n         \"tenant_id\":null,\n         \"should_create_bridge\":true,\n         \"bridge_interface\":\"br_flat\"\n      },\n      \"id\":\"b8cd1446-fb7e-4d51-ad0f-0a890fd4ee84\",\n      \"label\":\"private\"\n   },\n   \"devname\":null,\n   \"vnic_type\":\"normal\",\n   \"qbh_params\":null,\n   \"meta\":{\n\n   },\n   \"details\":{\n\n   },\n   \"address\":\"fa:16:3e:28:b0:34\",\n   \"active\":false,\n   \"type\":\"bridge\",\n   \"id\":\"45c31c41-ffdf-4a96-83ea-ece845fc66eb\",\n   \"qbg_params\":null\n}","commit_id":"5e312fc2dac45965f7ac621135f67741d02abae2"}]}
