)]}'
{"nova/network/neutronv2/api.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"ccdaaaa98d6581f402af107c494b9421f371368b","unresolved":false,"context_lines":[{"line_number":1185,"context_line":"                return num_instances"},{"line_number":1186,"context_line":""},{"line_number":1187,"context_line":"            # We only need the port count so only ask for ids back."},{"line_number":1188,"context_line":"            params \u003d dict(tenant_id\u003dcontext.project_id, fields\u003d[\u0027id\u0027])"},{"line_number":1189,"context_line":"            ports \u003d neutron.list_ports(**params)[\u0027ports\u0027]"},{"line_number":1190,"context_line":"            free_ports \u003d quotas.get(\u0027port\u0027) - len(ports)"},{"line_number":1191,"context_line":"            if free_ports \u003c 0:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_2d7d376e","line":1188,"updated":"2015-12-07 08:59:42.000000000","message":"yeah this is nice. it will have less traffic returned from neutron\nconsider params \u003d {\u0027tenant_id\u0027: context.project_id,\n                                \u0027fields\u0027: [\u0027id\u0027]}\nthat will save you a few extra cycles\n\nonce again i think that this code should be dropped as it does not really solve the issue when there is really a race","commit_id":"768887b6fcc72e30fb9fa58d817a1b5c56203e4a"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"ac7ab85e5957a2ac6304b345fcff3ad3e8d31246","unresolved":false,"context_lines":[{"line_number":1185,"context_line":"                return num_instances"},{"line_number":1186,"context_line":""},{"line_number":1187,"context_line":"            # We only need the port count so only ask for ids back."},{"line_number":1188,"context_line":"            params \u003d dict(tenant_id\u003dcontext.project_id, fields\u003d[\u0027id\u0027])"},{"line_number":1189,"context_line":"            ports \u003d neutron.list_ports(**params)[\u0027ports\u0027]"},{"line_number":1190,"context_line":"            free_ports \u003d quotas.get(\u0027port\u0027) - len(ports)"},{"line_number":1191,"context_line":"            if free_ports \u003c 0:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_f9bfe0a7","line":1188,"in_reply_to":"7a740942_2d7d376e","updated":"2015-12-07 15:10:28.000000000","message":"Gary, you might be interested in this spec:\n\nhttps://review.openstack.org/#/c/250993/","commit_id":"768887b6fcc72e30fb9fa58d817a1b5c56203e4a"}]}
