)]}'
{"neutron/db/l3_dvr_db.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"6d572b47ed9f63f76b601c10814bd4b283c971d2","unresolved":false,"context_lines":[{"line_number":161,"context_line":""},{"line_number":162,"context_line":"    def _update_fip_assoc(self, context, fip, floatingip_db, external_port):"},{"line_number":163,"context_line":"        \"\"\"Override to delete the fip agent gw port on disassociate.\"\"\""},{"line_number":164,"context_line":"        unused_agent_port \u003d fip.get(\u0027port_id\u0027)"},{"line_number":165,"context_line":"        admin_ctx \u003d context.elevated()"},{"line_number":166,"context_line":"        if unused_agent_port is None and floatingip_db[\u0027fixed_port_id\u0027]:"},{"line_number":167,"context_line":"            self.clear_unused_fip_agent_gw_port("}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_d0ea71ab","line":164,"updated":"2014-12-17 16:57:40.000000000","message":"\"unused_agent_port\" seems like a misleading variable name.  Shouldn\u0027t it be something like \"fip_port_id\"?\n\nAlso, do you know why the previous version used -1 as the default for this get?  Can you comment on why it is no longer needed?","commit_id":"e78f36273464b8ca3f3e8d3256e6a6675f6680a8"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"d3bb7cd719bf584dfc972b76b5912b95856b6e17","unresolved":false,"context_lines":[{"line_number":161,"context_line":""},{"line_number":162,"context_line":"    def _update_fip_assoc(self, context, fip, floatingip_db, external_port):"},{"line_number":163,"context_line":"        \"\"\"Override to delete the fip agent gw port on disassociate.\"\"\""},{"line_number":164,"context_line":"        unused_agent_port \u003d fip.get(\u0027port_id\u0027)"},{"line_number":165,"context_line":"        admin_ctx \u003d context.elevated()"},{"line_number":166,"context_line":"        if unused_agent_port is None and floatingip_db[\u0027fixed_port_id\u0027]:"},{"line_number":167,"context_line":"            self.clear_unused_fip_agent_gw_port("}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_224d1d73","line":164,"in_reply_to":"3a961159_d0ea71ab","updated":"2014-12-18 01:42:00.000000000","message":"I am not sure why the \"-1\" was used in the previous version. \nThat patch was written by someone else.\nIf I remember correctly in our original version we had \n\nif (not (\u0027port_id\u0027 in fip and fip[\u0027port_id\u0027])) and (\n            floatingip_db[\u0027fixed_port_id\u0027] is not None):","commit_id":"e78f36273464b8ca3f3e8d3256e6a6675f6680a8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"6d572b47ed9f63f76b601c10814bd4b283c971d2","unresolved":false,"context_lines":[{"line_number":162,"context_line":"    def _update_fip_assoc(self, context, fip, floatingip_db, external_port):"},{"line_number":163,"context_line":"        \"\"\"Override to delete the fip agent gw port on disassociate.\"\"\""},{"line_number":164,"context_line":"        unused_agent_port \u003d fip.get(\u0027port_id\u0027)"},{"line_number":165,"context_line":"        admin_ctx \u003d context.elevated()"},{"line_number":166,"context_line":"        if unused_agent_port is None and floatingip_db[\u0027fixed_port_id\u0027]:"},{"line_number":167,"context_line":"            self.clear_unused_fip_agent_gw_port("},{"line_number":168,"context_line":"                admin_ctx, floatingip_db, fip[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_d05d117b","line":165,"updated":"2014-12-17 16:57:40.000000000","message":"nit:  Move this under the if statement below because it is unused otherwise.","commit_id":"e78f36273464b8ca3f3e8d3256e6a6675f6680a8"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"d3bb7cd719bf584dfc972b76b5912b95856b6e17","unresolved":false,"context_lines":[{"line_number":162,"context_line":"    def _update_fip_assoc(self, context, fip, floatingip_db, external_port):"},{"line_number":163,"context_line":"        \"\"\"Override to delete the fip agent gw port on disassociate.\"\"\""},{"line_number":164,"context_line":"        unused_agent_port \u003d fip.get(\u0027port_id\u0027)"},{"line_number":165,"context_line":"        admin_ctx \u003d context.elevated()"},{"line_number":166,"context_line":"        if unused_agent_port is None and floatingip_db[\u0027fixed_port_id\u0027]:"},{"line_number":167,"context_line":"            self.clear_unused_fip_agent_gw_port("},{"line_number":168,"context_line":"                admin_ctx, floatingip_db, fip[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_c23b79c6","line":165,"in_reply_to":"3a961159_d05d117b","updated":"2014-12-18 01:42:00.000000000","message":"Will do it.","commit_id":"e78f36273464b8ca3f3e8d3256e6a6675f6680a8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"6d572b47ed9f63f76b601c10814bd4b283c971d2","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        \"\"\"Override to delete the fip agent gw port on disassociate.\"\"\""},{"line_number":164,"context_line":"        unused_agent_port \u003d fip.get(\u0027port_id\u0027)"},{"line_number":165,"context_line":"        admin_ctx \u003d context.elevated()"},{"line_number":166,"context_line":"        if unused_agent_port is None and floatingip_db[\u0027fixed_port_id\u0027]:"},{"line_number":167,"context_line":"            self.clear_unused_fip_agent_gw_port("},{"line_number":168,"context_line":"                admin_ctx, floatingip_db, fip[\u0027id\u0027])"},{"line_number":169,"context_line":"        super(L3_NAT_with_dvr_db_mixin, self)._update_fip_assoc("}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_9612a256","line":166,"updated":"2014-12-17 16:57:40.000000000","message":"nit:  I liked how the previous version used the following pattern.  It improved readability by giving the boolean expression a name that described what it was meant to indicate:\n\n  unused_agent_port \u003d \u003cboolean expression\u003e\n  if unused_agent_port:\n      \u003cclear it\u003e","commit_id":"e78f36273464b8ca3f3e8d3256e6a6675f6680a8"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"d3bb7cd719bf584dfc972b76b5912b95856b6e17","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        \"\"\"Override to delete the fip agent gw port on disassociate.\"\"\""},{"line_number":164,"context_line":"        unused_agent_port \u003d fip.get(\u0027port_id\u0027)"},{"line_number":165,"context_line":"        admin_ctx \u003d context.elevated()"},{"line_number":166,"context_line":"        if unused_agent_port is None and floatingip_db[\u0027fixed_port_id\u0027]:"},{"line_number":167,"context_line":"            self.clear_unused_fip_agent_gw_port("},{"line_number":168,"context_line":"                admin_ctx, floatingip_db, fip[\u0027id\u0027])"},{"line_number":169,"context_line":"        super(L3_NAT_with_dvr_db_mixin, self)._update_fip_assoc("}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_229b5dca","line":166,"in_reply_to":"3a961159_9612a256","updated":"2014-12-18 01:42:00.000000000","message":"Will address it.","commit_id":"e78f36273464b8ca3f3e8d3256e6a6675f6680a8"}]}
