)]}'
{"neutron/common/exceptions.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"af79bf96ef1825c29f0232800475983fc48d8157","unresolved":false,"context_lines":[{"line_number":473,"context_line":""},{"line_number":474,"context_line":""},{"line_number":475,"context_line":"class SubnetAlreadyAssociatedRouter(Conflict):"},{"line_number":476,"context_line":"    message \u003d _(\"Subnet \u0027%(subnet_id)s\u0027 is already associated with \""},{"line_number":477,"context_line":"                \"a router\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_6fe5fd35","line":476,"updated":"2015-06-25 09:24:10.000000000","message":"I\u0027d better say it more explicitly, like \"Cannot update default gateway for subnet already connected to a router\"","commit_id":"0dd18295d00c40d98ab7f0cb3e29a22fea087285"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"0773c0aceaeb6fedf79eb5cac854fedfa36c7bb2","unresolved":false,"context_lines":[{"line_number":473,"context_line":""},{"line_number":474,"context_line":""},{"line_number":475,"context_line":"class SubnetAlreadyAssociatedRouter(Conflict):"},{"line_number":476,"context_line":"    message \u003d _(\"Subnet \u0027%(subnet_id)s\u0027 is already associated with \""},{"line_number":477,"context_line":"                \"a router\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_f057a9fe","line":476,"in_reply_to":"fa32b979_4065661b","updated":"2015-06-25 10:44:30.000000000","message":"I like the message, looks quite uniform.","commit_id":"0dd18295d00c40d98ab7f0cb3e29a22fea087285"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4bc4f6d0c1bddb1af067bbd5fbe8997ae90a8875","unresolved":false,"context_lines":[{"line_number":473,"context_line":""},{"line_number":474,"context_line":""},{"line_number":475,"context_line":"class SubnetAlreadyAssociatedRouter(Conflict):"},{"line_number":476,"context_line":"    message \u003d _(\"Subnet \u0027%(subnet_id)s\u0027 is already associated with \""},{"line_number":477,"context_line":"                \"a router\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_4065661b","line":476,"in_reply_to":"fa32b979_6fe5fd35","updated":"2015-06-25 10:05:28.000000000","message":"The case is only one. I\u0027d like to let this class common so that the class can be used by other cases.\n\nOr we can use a message like InUse with reason\u003d\"Cannot update default gateway for subnet already connected to a router\".\n\n message \u003d _(\"Unable to complete operation on subnet %(subnet_id)s. %(reason)s\")","commit_id":"0dd18295d00c40d98ab7f0cb3e29a22fea087285"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"880c8c47544503e0a481faa554c5eecd5b6056aa","unresolved":false,"context_lines":[{"line_number":473,"context_line":""},{"line_number":474,"context_line":""},{"line_number":475,"context_line":"class SubnetAlreadyAssociatedRouter(Conflict):"},{"line_number":476,"context_line":"    message \u003d _(\"Subnet \u0027%(subnet_id)s\u0027 is already associated with \""},{"line_number":477,"context_line":"                \"a router\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba3cc151_2977d503","line":476,"in_reply_to":"fa32b979_f057a9fe","updated":"2015-06-29 02:31:36.000000000","message":"Done","commit_id":"0dd18295d00c40d98ab7f0cb3e29a22fea087285"}],"neutron/db/db_base_plugin_v2.py":[{"author":{"_account_id":16929,"name":"Giridhar Jayavelu","email":"gjayavelu@vmware.com","username":"gjayavelu"},"change_message_id":"1387baadafbf5e200986e83a9c680e2061f60628","unresolved":false,"context_lines":[{"line_number":714,"context_line":"            gw_ports \u003d self._get_router_gw_ports_by_network(context,"},{"line_number":715,"context_line":"                subnet[\u0027network_id\u0027])"},{"line_number":716,"context_line":"            if gw_ports:"},{"line_number":717,"context_line":"                reason \u003d _(\"Gateway can\u0027t be changed since the subnet is \""},{"line_number":718,"context_line":"                           \"in use for an external network of a router.\")"},{"line_number":719,"context_line":"                raise n_exc.SubnetInUse(subnet_id\u003dsubnet[\u0027id\u0027],"},{"line_number":720,"context_line":"                                        reason\u003dreason)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_1dcdcb30","line":717,"updated":"2015-06-24 05:25:57.000000000","message":"nit: can be rephrased as \"subnet in use by external network\" or similar. Because, this method can be called in general to get the status not only for changing gateway.","commit_id":"d71f3c8fe2ff91fbdf189dd33f76f1e2ff17531e"},{"author":{"_account_id":704,"name":"Edgar Magana","email":"emagana@gmail.com","username":"emagana"},"change_message_id":"c84cd23a9e293206616297e61ffdbf9905b272ac","unresolved":false,"context_lines":[{"line_number":714,"context_line":"            gw_ports \u003d self._get_router_gw_ports_by_network(context,"},{"line_number":715,"context_line":"                subnet[\u0027network_id\u0027])"},{"line_number":716,"context_line":"            if gw_ports:"},{"line_number":717,"context_line":"                reason \u003d _(\"Gateway can\u0027t be changed since the subnet is \""},{"line_number":718,"context_line":"                           \"in use for an external network of a router.\")"},{"line_number":719,"context_line":"                raise n_exc.SubnetInUse(subnet_id\u003dsubnet[\u0027id\u0027],"},{"line_number":720,"context_line":"                                        reason\u003dreason)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_a8db3b7b","line":717,"in_reply_to":"fa32b979_1dcdcb30","updated":"2015-06-24 05:47:15.000000000","message":"I do agree with the suggestion","commit_id":"d71f3c8fe2ff91fbdf189dd33f76f1e2ff17531e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"081775a424db159fd58d164af29e1bdc170501eb","unresolved":false,"context_lines":[{"line_number":714,"context_line":"            gw_ports \u003d self._get_router_gw_ports_by_network(context,"},{"line_number":715,"context_line":"                subnet[\u0027network_id\u0027])"},{"line_number":716,"context_line":"            if gw_ports:"},{"line_number":717,"context_line":"                reason \u003d _(\"Gateway can\u0027t be changed since the subnet is \""},{"line_number":718,"context_line":"                           \"in use for an external network of a router.\")"},{"line_number":719,"context_line":"                raise n_exc.SubnetInUse(subnet_id\u003dsubnet[\u0027id\u0027],"},{"line_number":720,"context_line":"                                        reason\u003dreason)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_288e4b2e","line":717,"in_reply_to":"fa32b979_a8db3b7b","updated":"2015-06-24 06:01:11.000000000","message":"You\u0027re right.","commit_id":"d71f3c8fe2ff91fbdf189dd33f76f1e2ff17531e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"4704eb958c4a9e6e5ffdff5b92d2249986326b02","unresolved":false,"context_lines":[{"line_number":714,"context_line":"            gw_ports \u003d self._get_router_gw_ports_by_network(context,"},{"line_number":715,"context_line":"                subnet[\u0027network_id\u0027])"},{"line_number":716,"context_line":"            if gw_ports:"},{"line_number":717,"context_line":"                reason \u003d _(\"Subnet is in use by an external network of \""},{"line_number":718,"context_line":"                           \"a router.\")"},{"line_number":719,"context_line":"                raise n_exc.SubnetInUse(subnet_id\u003dsubnet[\u0027id\u0027],"},{"line_number":720,"context_line":"                                        reason\u003dreason)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_7a5c124b","line":717,"updated":"2015-06-24 10:14:24.000000000","message":"Where is the check that subnet is from external network?","commit_id":"b9af4082685d237e396c2d09a2c1bc13bbda99e9"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"3840c42832802208af14b6796f87ca71c7c51090","unresolved":false,"context_lines":[{"line_number":714,"context_line":"            gw_ports \u003d self._get_router_gw_ports_by_network(context,"},{"line_number":715,"context_line":"                subnet[\u0027network_id\u0027])"},{"line_number":716,"context_line":"            if gw_ports:"},{"line_number":717,"context_line":"                reason \u003d _(\"Subnet is in use by an external network of \""},{"line_number":718,"context_line":"                           \"a router.\")"},{"line_number":719,"context_line":"                raise n_exc.SubnetInUse(subnet_id\u003dsubnet[\u0027id\u0027],"},{"line_number":720,"context_line":"                                        reason\u003dreason)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_0658de2f","line":717,"in_reply_to":"fa32b979_7a5c124b","updated":"2015-06-25 07:26:09.000000000","message":"You\u0027re right.","commit_id":"b9af4082685d237e396c2d09a2c1bc13bbda99e9"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"4704eb958c4a9e6e5ffdff5b92d2249986326b02","unresolved":false,"context_lines":[{"line_number":716,"context_line":"            if gw_ports:"},{"line_number":717,"context_line":"                reason \u003d _(\"Subnet is in use by an external network of \""},{"line_number":718,"context_line":"                           \"a router.\")"},{"line_number":719,"context_line":"                raise n_exc.SubnetInUse(subnet_id\u003dsubnet[\u0027id\u0027],"},{"line_number":720,"context_line":"                                        reason\u003dreason)"},{"line_number":721,"context_line":""},{"line_number":722,"context_line":"    def update_subnet(self, context, id, subnet):"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_bc3b77d0","line":719,"updated":"2015-06-24 10:14:24.000000000","message":"InUse is more for delete operations, I think we better raise some subclass of BadRequest or Conflict (create new?)","commit_id":"b9af4082685d237e396c2d09a2c1bc13bbda99e9"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"3840c42832802208af14b6796f87ca71c7c51090","unresolved":false,"context_lines":[{"line_number":716,"context_line":"            if gw_ports:"},{"line_number":717,"context_line":"                reason \u003d _(\"Subnet is in use by an external network of \""},{"line_number":718,"context_line":"                           \"a router.\")"},{"line_number":719,"context_line":"                raise n_exc.SubnetInUse(subnet_id\u003dsubnet[\u0027id\u0027],"},{"line_number":720,"context_line":"                                        reason\u003dreason)"},{"line_number":721,"context_line":""},{"line_number":722,"context_line":"    def update_subnet(self, context, id, subnet):"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_a6433241","line":719,"in_reply_to":"fa32b979_bc3b77d0","updated":"2015-06-25 07:26:09.000000000","message":"You got it.","commit_id":"b9af4082685d237e396c2d09a2c1bc13bbda99e9"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"af79bf96ef1825c29f0232800475983fc48d8157","unresolved":false,"context_lines":[{"line_number":711,"context_line":"        l3plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":712,"context_line":"            service_constants.L3_ROUTER_NAT)"},{"line_number":713,"context_line":"        if l3plugin:"},{"line_number":714,"context_line":"            gw_ports \u003d self._get_router_gw_ports_by_network(context,"},{"line_number":715,"context_line":"                subnet[\u0027network_id\u0027])"},{"line_number":716,"context_line":"            if gw_ports:"},{"line_number":717,"context_line":"                raise n_exc.SubnetAlreadyAssociatedRouter("}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_fa230d56","line":714,"updated":"2015-06-25 09:24:10.000000000","message":"I guess this ensures the subnet relates to ext network, one cannot add gw_port from non-external network","commit_id":"0dd18295d00c40d98ab7f0cb3e29a22fea087285"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4bc4f6d0c1bddb1af067bbd5fbe8997ae90a8875","unresolved":false,"context_lines":[{"line_number":711,"context_line":"        l3plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":712,"context_line":"            service_constants.L3_ROUTER_NAT)"},{"line_number":713,"context_line":"        if l3plugin:"},{"line_number":714,"context_line":"            gw_ports \u003d self._get_router_gw_ports_by_network(context,"},{"line_number":715,"context_line":"                subnet[\u0027network_id\u0027])"},{"line_number":716,"context_line":"            if gw_ports:"},{"line_number":717,"context_line":"                raise n_exc.SubnetAlreadyAssociatedRouter("}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_c022d651","line":714,"in_reply_to":"fa32b979_fa230d56","updated":"2015-06-25 10:05:28.000000000","message":"Exactly, I forgot the point.","commit_id":"0dd18295d00c40d98ab7f0cb3e29a22fea087285"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"7b18ce1ed3d8193b9740c81de0caf3f9fc104d9f","unresolved":false,"context_lines":[{"line_number":551,"context_line":"                                    for p in db_subnet.allocation_pools]"},{"line_number":552,"context_line":"            self.ipam.validate_gw_out_of_pools(s[\"gateway_ip\"],"},{"line_number":553,"context_line":"                                               allocation_pools)"},{"line_number":554,"context_line":""},{"line_number":555,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":556,"context_line":"            subnet, changes \u003d self.ipam.update_db_subnet(context, id, s)"},{"line_number":557,"context_line":"        result \u003d self._make_subnet_dict(subnet)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a50d1a3_fb4b8f57","line":554,"updated":"2015-07-27 09:11:20.000000000","message":"I think what Ryan Moats was suggesting is to notify here before DB update like registry.notify(resources.ROUTER_GATEWAY, events.BEFORE_UPDATE, self, **kwargs) so that any 3rd party l3 service plugins that do not support gw update may raise here and prevent inconsistency between DB and a backend.","commit_id":"589ea421851a8bc5301d3008f7203d52f602f0fd"},{"author":{"_account_id":4149,"name":"Itsuro Oda","email":"oda@valinux.co.jp","username":"oda-g"},"change_message_id":"e4d72c19e488c3c0533d26f4aa814fb91805b848","unresolved":false,"context_lines":[{"line_number":551,"context_line":"                                    for p in db_subnet.allocation_pools]"},{"line_number":552,"context_line":"            self.ipam.validate_gw_out_of_pools(s[\"gateway_ip\"],"},{"line_number":553,"context_line":"                                               allocation_pools)"},{"line_number":554,"context_line":""},{"line_number":555,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":556,"context_line":"            subnet, changes \u003d self.ipam.update_db_subnet(context, id, s)"},{"line_number":557,"context_line":"        result \u003d self._make_subnet_dict(subnet)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a50d1a3_366b25bb","line":554,"in_reply_to":"3a50d1a3_1ec0977b","updated":"2015-07-27 22:15:17.000000000","message":"Oleg, Ryan,\n\nI think it is another topic to be filed by another bug report.\nAPI allows to modify gateway_ip now. The aim of this patch is to fix l3-agent to follow gateway_ip modification.","commit_id":"589ea421851a8bc5301d3008f7203d52f602f0fd"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"b88511dd11b019c553cc8e5e263e7586faf877b3","unresolved":false,"context_lines":[{"line_number":551,"context_line":"                                    for p in db_subnet.allocation_pools]"},{"line_number":552,"context_line":"            self.ipam.validate_gw_out_of_pools(s[\"gateway_ip\"],"},{"line_number":553,"context_line":"                                               allocation_pools)"},{"line_number":554,"context_line":""},{"line_number":555,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":556,"context_line":"            subnet, changes \u003d self.ipam.update_db_subnet(context, id, s)"},{"line_number":557,"context_line":"        result \u003d self._make_subnet_dict(subnet)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a50d1a3_e5d97758","line":554,"in_reply_to":"3a50d1a3_366b25bb","updated":"2015-07-28 08:40:58.000000000","message":"It\u0027s the matter of three lines of code, however I\u0027m ok with a separate patch","commit_id":"589ea421851a8bc5301d3008f7203d52f602f0fd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"da7238a45f0341f4ae2fb90ea2e577d83ec34d39","unresolved":false,"context_lines":[{"line_number":551,"context_line":"                                    for p in db_subnet.allocation_pools]"},{"line_number":552,"context_line":"            self.ipam.validate_gw_out_of_pools(s[\"gateway_ip\"],"},{"line_number":553,"context_line":"                                               allocation_pools)"},{"line_number":554,"context_line":""},{"line_number":555,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":556,"context_line":"            subnet, changes \u003d self.ipam.update_db_subnet(context, id, s)"},{"line_number":557,"context_line":"        result \u003d self._make_subnet_dict(subnet)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a50d1a3_9632f2f0","line":554,"in_reply_to":"3a50d1a3_e5d97758","updated":"2015-07-29 06:03:31.000000000","message":"Thanks. I added it in new patchset.","commit_id":"589ea421851a8bc5301d3008f7203d52f602f0fd"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"b7378387b4753a9876235488ff2bc85fbe749c93","unresolved":false,"context_lines":[{"line_number":551,"context_line":"                                    for p in db_subnet.allocation_pools]"},{"line_number":552,"context_line":"            self.ipam.validate_gw_out_of_pools(s[\"gateway_ip\"],"},{"line_number":553,"context_line":"                                               allocation_pools)"},{"line_number":554,"context_line":""},{"line_number":555,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":556,"context_line":"            subnet, changes \u003d self.ipam.update_db_subnet(context, id, s)"},{"line_number":557,"context_line":"        result \u003d self._make_subnet_dict(subnet)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a50d1a3_1ec0977b","line":554,"in_reply_to":"3a50d1a3_fb4b8f57","updated":"2015-07-27 14:54:53.000000000","message":"Thank you, Oleg, that is exactly what I\u0027ve been going after","commit_id":"589ea421851a8bc5301d3008f7203d52f602f0fd"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"dd8a38d3587dd4985206056c66c21ae0f35a48fb","unresolved":false,"context_lines":[{"line_number":581,"context_line":"            #NOTE(hichihara): This notify is added by code reviewers"},{"line_number":582,"context_line":"            # suggestion but no one uses right now. Reconsider kwargs"},{"line_number":583,"context_line":"            # (and this comment) when it is actually used."},{"line_number":584,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id}"},{"line_number":585,"context_line":"            registry.notify(resources.ROUTER_GATEWAY, events.BEFORE_UPDATE,"},{"line_number":586,"context_line":"                            self, **kwargs)"},{"line_number":587,"context_line":"            pools \u003d range_pools if range_pools is not None else db_pools"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_6caef9e8","line":584,"updated":"2015-07-31 12:53:13.000000000","message":"consider kwargs same as at #597 for consistency","commit_id":"94d82f3b7ad30bcf4c037b92bad9640f8a3da181"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"668d9ab486c2b1f1128cc2ae0e5a420c38985da4","unresolved":false,"context_lines":[{"line_number":581,"context_line":"            #NOTE(hichihara): This notify is added by code reviewers"},{"line_number":582,"context_line":"            # suggestion but no one uses right now. Reconsider kwargs"},{"line_number":583,"context_line":"            # (and this comment) when it is actually used."},{"line_number":584,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id}"},{"line_number":585,"context_line":"            registry.notify(resources.ROUTER_GATEWAY, events.BEFORE_UPDATE,"},{"line_number":586,"context_line":"                            self, **kwargs)"},{"line_number":587,"context_line":"            pools \u003d range_pools if range_pools is not None else db_pools"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa1b9901_b37493fd","line":584,"in_reply_to":"3a50d1a3_6caef9e8","updated":"2015-08-18 04:22:39.000000000","message":"Done","commit_id":"94d82f3b7ad30bcf4c037b92bad9640f8a3da181"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"cb2e0cffba36f4adfbabba9abb6ff40f0691feeb","unresolved":false,"context_lines":[{"line_number":643,"context_line":"            self.ipam.validate_gw_out_of_pools(gateway_ip, pools)"},{"line_number":644,"context_line":""},{"line_number":645,"context_line":"        if gateway_ip_changed:"},{"line_number":646,"context_line":"            #NOTE(hichihara): This notify is added by code reviewers"},{"line_number":647,"context_line":"            # suggestion but no one uses right now. Reconsider kwargs"},{"line_number":648,"context_line":"            # (and this comment) when it is actually used."},{"line_number":649,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa1b9901_75b2f107","line":646,"updated":"2015-08-20 00:48:09.000000000","message":"nit: I don\u0027t think having this comment is really useful. This will just be eventually removed by someone else. Why do you want to reconsider kwargs here?","commit_id":"dcd755df10ce822b7be24a92c1cdc38d0700889d"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4a4ccffa0b9f0c837ebec0b041822dfdeec83656","unresolved":false,"context_lines":[{"line_number":643,"context_line":"            self.ipam.validate_gw_out_of_pools(gateway_ip, pools)"},{"line_number":644,"context_line":""},{"line_number":645,"context_line":"        if gateway_ip_changed:"},{"line_number":646,"context_line":"            #NOTE(hichihara): This notify is added by code reviewers"},{"line_number":647,"context_line":"            # suggestion but no one uses right now. Reconsider kwargs"},{"line_number":648,"context_line":"            # (and this comment) when it is actually used."},{"line_number":649,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa1b9901_47268a17","line":646,"in_reply_to":"fa1b9901_2e396da4","updated":"2015-08-24 04:51:17.000000000","message":"Thank you for review. I updated with Ryan\u0027s suggestion.","commit_id":"dcd755df10ce822b7be24a92c1cdc38d0700889d"},{"author":{"_account_id":704,"name":"Edgar Magana","email":"emagana@gmail.com","username":"emagana"},"change_message_id":"2b91c7384fef2785b6a11e7bc656f127fe339af5","unresolved":false,"context_lines":[{"line_number":643,"context_line":"            self.ipam.validate_gw_out_of_pools(gateway_ip, pools)"},{"line_number":644,"context_line":""},{"line_number":645,"context_line":"        if gateway_ip_changed:"},{"line_number":646,"context_line":"            #NOTE(hichihara): This notify is added by code reviewers"},{"line_number":647,"context_line":"            # suggestion but no one uses right now. Reconsider kwargs"},{"line_number":648,"context_line":"            # (and this comment) when it is actually used."},{"line_number":649,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa1b9901_835092d5","line":646,"in_reply_to":"fa1b9901_75b2f107","updated":"2015-08-20 12:53:27.000000000","message":"I am also not in favor of this kind of comments. I couldn\u0027t review all other reviewers suggestions, so it could have come from a previous one.","commit_id":"dcd755df10ce822b7be24a92c1cdc38d0700889d"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"74affaba593a36d0c094d157ed55a40e0939707a","unresolved":false,"context_lines":[{"line_number":643,"context_line":"            self.ipam.validate_gw_out_of_pools(gateway_ip, pools)"},{"line_number":644,"context_line":""},{"line_number":645,"context_line":"        if gateway_ip_changed:"},{"line_number":646,"context_line":"            #NOTE(hichihara): This notify is added by code reviewers"},{"line_number":647,"context_line":"            # suggestion but no one uses right now. Reconsider kwargs"},{"line_number":648,"context_line":"            # (and this comment) when it is actually used."},{"line_number":649,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa1b9901_2e396da4","line":646,"in_reply_to":"fa1b9901_835092d5","updated":"2015-08-20 13:16:12.000000000","message":"Yes, this comment should be changed - being the reviewer that drove this, the point here was to send a notification so that downstream things that *don\u0027t* support this change get a chance to veto it before it is made.\n\nI\u0027d suggest changing this comment to:\n#provide pre-update notification to not break agents that don\u0027t support this change\n\n(or something like that)","commit_id":"dcd755df10ce822b7be24a92c1cdc38d0700889d"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"961f2e2c0eeacd75a04365e705e91da3856b141e","unresolved":false,"context_lines":[{"line_number":636,"context_line":"            s[\u0027allocation_pools\u0027] \u003d range_pools"},{"line_number":637,"context_line":""},{"line_number":638,"context_line":"        # If either gateway_ip or allocation_pools were specified"},{"line_number":639,"context_line":"        gateway_ip_changed \u003d s.get(\u0027gateway_ip\u0027)"},{"line_number":640,"context_line":"        if gateway_ip_changed or s.get(\u0027allocation_pools\u0027):"},{"line_number":641,"context_line":"            gateway_ip \u003d gateway_ip_changed or db_subnet.gateway_ip"},{"line_number":642,"context_line":"            pools \u003d range_pools if range_pools is not None else db_pools"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_6b34b449","line":639,"updated":"2015-08-24 09:28:32.000000000","message":"nit: this variable name made me think a boolean.\ni prefer new_gateway_ip or something like that.","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"cb779db062a6d30ecab1eb4df3230b344d3a345e","unresolved":false,"context_lines":[{"line_number":636,"context_line":"            s[\u0027allocation_pools\u0027] \u003d range_pools"},{"line_number":637,"context_line":""},{"line_number":638,"context_line":"        # If either gateway_ip or allocation_pools were specified"},{"line_number":639,"context_line":"        gateway_ip_changed \u003d s.get(\u0027gateway_ip\u0027)"},{"line_number":640,"context_line":"        if gateway_ip_changed or s.get(\u0027allocation_pools\u0027):"},{"line_number":641,"context_line":"            gateway_ip \u003d gateway_ip_changed or db_subnet.gateway_ip"},{"line_number":642,"context_line":"            pools \u003d range_pools if range_pools is not None else db_pools"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_e1299c8a","line":639,"in_reply_to":"fa1b9901_13f1986a","updated":"2015-08-25 00:12:01.000000000","message":"You\u0027re right. Done.","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"11a85eeb6b5e803a60fda75b2658f8f2b17f03dd","unresolved":false,"context_lines":[{"line_number":636,"context_line":"            s[\u0027allocation_pools\u0027] \u003d range_pools"},{"line_number":637,"context_line":""},{"line_number":638,"context_line":"        # If either gateway_ip or allocation_pools were specified"},{"line_number":639,"context_line":"        gateway_ip_changed \u003d s.get(\u0027gateway_ip\u0027)"},{"line_number":640,"context_line":"        if gateway_ip_changed or s.get(\u0027allocation_pools\u0027):"},{"line_number":641,"context_line":"            gateway_ip \u003d gateway_ip_changed or db_subnet.gateway_ip"},{"line_number":642,"context_line":"            pools \u003d range_pools if range_pools is not None else db_pools"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_91b92e18","line":639,"in_reply_to":"fa1b9901_6b34b449","updated":"2015-08-24 13:45:26.000000000","message":"Me too.\n\nAlso, what if a DB operations sets a subnet\u0027s gateway IP to the same value as it was before?  In other words, \u0027gateway_ip\u0027 is specified in the request, but the value is not actually changing.  Should the new callbacks below be made, in that case?","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"689cab55f4b8ffcd363fcb335e8d606c374b6eac","unresolved":false,"context_lines":[{"line_number":636,"context_line":"            s[\u0027allocation_pools\u0027] \u003d range_pools"},{"line_number":637,"context_line":""},{"line_number":638,"context_line":"        # If either gateway_ip or allocation_pools were specified"},{"line_number":639,"context_line":"        gateway_ip_changed \u003d s.get(\u0027gateway_ip\u0027)"},{"line_number":640,"context_line":"        if gateway_ip_changed or s.get(\u0027allocation_pools\u0027):"},{"line_number":641,"context_line":"            gateway_ip \u003d gateway_ip_changed or db_subnet.gateway_ip"},{"line_number":642,"context_line":"            pools \u003d range_pools if range_pools is not None else db_pools"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_13f1986a","line":639,"in_reply_to":"fa1b9901_91b92e18","updated":"2015-08-24 20:21:04.000000000","message":"agree on both accounts","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"c71110a33910dc4863ac14d1c1cf3e43e9f07f32","unresolved":false,"context_lines":[{"line_number":644,"context_line":""},{"line_number":645,"context_line":"        if gateway_ip_changed:"},{"line_number":646,"context_line":"            # Provide pre-update notification not to break plugins that don\u0027t"},{"line_number":647,"context_line":"            # support to change gateway ip"},{"line_number":648,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"},{"line_number":649,"context_line":"                      \u0027network_id\u0027: db_subnet.network_id}"},{"line_number":650,"context_line":"            registry.notify(resources.SUBNET_GATEWAY, events.BEFORE_UPDATE,"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_3e027f3f","line":647,"updated":"2015-08-24 08:14:50.000000000","message":"nit: support gateway ip change","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"cb779db062a6d30ecab1eb4df3230b344d3a345e","unresolved":false,"context_lines":[{"line_number":644,"context_line":""},{"line_number":645,"context_line":"        if gateway_ip_changed:"},{"line_number":646,"context_line":"            # Provide pre-update notification not to break plugins that don\u0027t"},{"line_number":647,"context_line":"            # support to change gateway ip"},{"line_number":648,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"},{"line_number":649,"context_line":"                      \u0027network_id\u0027: db_subnet.network_id}"},{"line_number":650,"context_line":"            registry.notify(resources.SUBNET_GATEWAY, events.BEFORE_UPDATE,"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_8109c02e","line":647,"in_reply_to":"fa1b9901_3e027f3f","updated":"2015-08-25 00:12:01.000000000","message":"Done","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"316ec79e17f1f15c3ab6ce6783dc9d72b5ad78b9","unresolved":false,"context_lines":[{"line_number":728,"context_line":"            # support gateway ip change"},{"line_number":729,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"},{"line_number":730,"context_line":"                      \u0027network_id\u0027: db_subnet.network_id}"},{"line_number":731,"context_line":"            registry.notify(resources.SUBNET_GATEWAY, events.BEFORE_UPDATE,"},{"line_number":732,"context_line":"                            self, **kwargs)"},{"line_number":733,"context_line":""},{"line_number":734,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_7c193121","line":731,"updated":"2015-09-01 03:22:26.000000000","message":"this may raise a CallbackFailure exception ([1]). If uncaught here, this may return a 500 error...and that\u0027s not nice.\n\n[1] https://github.com/openstack/neutron/blob/master/doc/source/devref/callbacks.rst#subscribing-and-aborting-events","commit_id":"c7baa95923f00143eb547eed13244c7f60b94ff7"},{"author":{"_account_id":4149,"name":"Itsuro Oda","email":"oda@valinux.co.jp","username":"oda-g"},"change_message_id":"986a785cba1122978e90cab3d6351636a7987553","unresolved":false,"context_lines":[{"line_number":728,"context_line":"            # support gateway ip change"},{"line_number":729,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"},{"line_number":730,"context_line":"                      \u0027network_id\u0027: db_subnet.network_id}"},{"line_number":731,"context_line":"            registry.notify(resources.SUBNET_GATEWAY, events.BEFORE_UPDATE,"},{"line_number":732,"context_line":"                            self, **kwargs)"},{"line_number":733,"context_line":""},{"line_number":734,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_4936b6b5","line":731,"in_reply_to":"da20952f_265cd1ec","updated":"2015-09-01 22:49:30.000000000","message":"Ah, I see. callback manager catches an exception and raise CallbackFailure. \nIMHO it is better to pass the exception raised by callback to a user. It is not related this patch anyway.","commit_id":"c7baa95923f00143eb547eed13244c7f60b94ff7"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"22bcfcd6eff47e6b637634e525dd626d475d4b8d","unresolved":false,"context_lines":[{"line_number":728,"context_line":"            # support gateway ip change"},{"line_number":729,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"},{"line_number":730,"context_line":"                      \u0027network_id\u0027: db_subnet.network_id}"},{"line_number":731,"context_line":"            registry.notify(resources.SUBNET_GATEWAY, events.BEFORE_UPDATE,"},{"line_number":732,"context_line":"                            self, **kwargs)"},{"line_number":733,"context_line":""},{"line_number":734,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_a94af2aa","line":731,"in_reply_to":"da20952f_4936b6b5","updated":"2015-09-01 22:56:26.000000000","message":"it will, by spitting 500 with Internal Server Error!! How cannot be related to this patch? meh...","commit_id":"c7baa95923f00143eb547eed13244c7f60b94ff7"},{"author":{"_account_id":4149,"name":"Itsuro Oda","email":"oda@valinux.co.jp","username":"oda-g"},"change_message_id":"ce9da7d195b59a73ff620ee1274bcd4253a2c857","unresolved":false,"context_lines":[{"line_number":728,"context_line":"            # support gateway ip change"},{"line_number":729,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"},{"line_number":730,"context_line":"                      \u0027network_id\u0027: db_subnet.network_id}"},{"line_number":731,"context_line":"            registry.notify(resources.SUBNET_GATEWAY, events.BEFORE_UPDATE,"},{"line_number":732,"context_line":"                            self, **kwargs)"},{"line_number":733,"context_line":""},{"line_number":734,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_93dac116","line":731,"in_reply_to":"da20952f_7c193121","updated":"2015-09-01 22:01:00.000000000","message":"I think it is duty of a callback to raise an appropriate exception. Reason of failure is known by only the callback.","commit_id":"c7baa95923f00143eb547eed13244c7f60b94ff7"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"4c153dee1006d8733cb9fc7c555c3762cfb47a2d","unresolved":false,"context_lines":[{"line_number":728,"context_line":"            # support gateway ip change"},{"line_number":729,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"},{"line_number":730,"context_line":"                      \u0027network_id\u0027: db_subnet.network_id}"},{"line_number":731,"context_line":"            registry.notify(resources.SUBNET_GATEWAY, events.BEFORE_UPDATE,"},{"line_number":732,"context_line":"                            self, **kwargs)"},{"line_number":733,"context_line":""},{"line_number":734,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_265cd1ec","line":731,"in_reply_to":"da20952f_93dac116","updated":"2015-09-01 22:19:22.000000000","message":"you\u0027re looking at this from the wrong perspective. The callback raises the exception indeed, but this happens when \u0027notify\u0027 is invoked.","commit_id":"c7baa95923f00143eb547eed13244c7f60b94ff7"},{"author":{"_account_id":4149,"name":"Itsuro Oda","email":"oda@valinux.co.jp","username":"oda-g"},"change_message_id":"711eaebd308abd7b2b2bd7954ec15e805d521943","unresolved":false,"context_lines":[{"line_number":728,"context_line":"            # support gateway ip change"},{"line_number":729,"context_line":"            kwargs \u003d {\u0027context\u0027: context, \u0027subnet_id\u0027: id,"},{"line_number":730,"context_line":"                      \u0027network_id\u0027: db_subnet.network_id}"},{"line_number":731,"context_line":"            registry.notify(resources.SUBNET_GATEWAY, events.BEFORE_UPDATE,"},{"line_number":732,"context_line":"                            self, **kwargs)"},{"line_number":733,"context_line":""},{"line_number":734,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_e46ed195","line":731,"in_reply_to":"da20952f_a94af2aa","updated":"2015-09-01 23:11:56.000000000","message":"Ok, you are right. then it is no problem at the moment since no callback exists...so it can be fixed later.","commit_id":"c7baa95923f00143eb547eed13244c7f60b94ff7"}],"neutron/db/l3_db.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"0f51804a5a09b9071a616d46dc49b40ba71872c3","unresolved":false,"context_lines":[{"line_number":1374,"context_line":""},{"line_number":1375,"context_line":""},{"line_number":1376,"context_line":"def _notify_routers_gateway_ip_update(resource, event, trigger, **kwargs):"},{"line_number":1377,"context_line":"    l2plugin \u003d kwargs[\u0027l2plugin\u0027]"},{"line_number":1378,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":1379,"context_line":"    network_id \u003d kwargs[\u0027network_id\u0027]"},{"line_number":1380,"context_line":"    l3plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":6,"id":"ba3cc151_0adbdc22","line":1377,"updated":"2015-07-10 05:32:26.000000000","message":"why do you need to pass plugin as parameter? You can always get it from NeutronManager.get_plugin()","commit_id":"aaaa755af3ab30b0eb7085eac11207758c0a3531"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"f14825a75f256a95dc813c9d3c61bd44a97b9faf","unresolved":false,"context_lines":[{"line_number":1374,"context_line":""},{"line_number":1375,"context_line":""},{"line_number":1376,"context_line":"def _notify_routers_gateway_ip_update(resource, event, trigger, **kwargs):"},{"line_number":1377,"context_line":"    l2plugin \u003d kwargs[\u0027l2plugin\u0027]"},{"line_number":1378,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":1379,"context_line":"    network_id \u003d kwargs[\u0027network_id\u0027]"},{"line_number":1380,"context_line":"    l3plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":6,"id":"ba3cc151_bd3eb889","line":1377,"in_reply_to":"ba3cc151_0adbdc22","updated":"2015-07-10 05:57:55.000000000","message":"You\u0027re right. I will update.","commit_id":"aaaa755af3ab30b0eb7085eac11207758c0a3531"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"7b18ce1ed3d8193b9740c81de0caf3f9fc104d9f","unresolved":false,"context_lines":[{"line_number":1409,"context_line":"            constants.L3_ROUTER_NAT)"},{"line_number":1410,"context_line":"    if l3plugin:"},{"line_number":1411,"context_line":"        l2plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":1412,"context_line":"        gw_ports \u003d l2plugin._get_router_gw_ports_by_network(context,"},{"line_number":1413,"context_line":"                network_id)"},{"line_number":1414,"context_line":"        router_ids \u003d [p[\u0027device_id\u0027] for p in gw_ports]"},{"line_number":1415,"context_line":"        for id in router_ids:"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a50d1a3_f855d5c5","line":1412,"updated":"2015-07-27 09:11:20.000000000","message":"the test you added contains the check for presence _get_router_gw_ports_by_network in core plugin, don\u0027t we need it here? Does it make sense to just fetch ports with filters to be more robust?","commit_id":"589ea421851a8bc5301d3008f7203d52f602f0fd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"da7238a45f0341f4ae2fb90ea2e577d83ec34d39","unresolved":false,"context_lines":[{"line_number":1409,"context_line":"            constants.L3_ROUTER_NAT)"},{"line_number":1410,"context_line":"    if l3plugin:"},{"line_number":1411,"context_line":"        l2plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":1412,"context_line":"        gw_ports \u003d l2plugin._get_router_gw_ports_by_network(context,"},{"line_number":1413,"context_line":"                network_id)"},{"line_number":1414,"context_line":"        router_ids \u003d [p[\u0027device_id\u0027] for p in gw_ports]"},{"line_number":1415,"context_line":"        for id in router_ids:"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a50d1a3_76a086f4","line":1412,"in_reply_to":"3a50d1a3_f855d5c5","updated":"2015-07-29 06:03:31.000000000","message":"Done","commit_id":"589ea421851a8bc5301d3008f7203d52f602f0fd"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"aab41762f0896093fdf489e4784d7a57fc77ae06","unresolved":false,"context_lines":[{"line_number":1409,"context_line":"        return"},{"line_number":1410,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":1411,"context_line":"    network_id \u003d kwargs[\u0027network_id\u0027]"},{"line_number":1412,"context_line":"    query \u003d context.session.query(models_v2.Port).filter_by("},{"line_number":1413,"context_line":"                network_id\u003dnetwork_id,"},{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_2bb7f385","line":1412,"updated":"2015-07-29 09:30:50.000000000","message":"This will return all gw ports for all routers on given external network. We should filter by port\u0027s fixed ips as well to get ports for particular subnet_id.","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"196331ac8272ba45ae7e98da11cd5b36c37aa368","unresolved":false,"context_lines":[{"line_number":1409,"context_line":"        return"},{"line_number":1410,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":1411,"context_line":"    network_id \u003d kwargs[\u0027network_id\u0027]"},{"line_number":1412,"context_line":"    query \u003d context.session.query(models_v2.Port).filter_by("},{"line_number":1413,"context_line":"                network_id\u003dnetwork_id,"},{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_430a51d3","line":1412,"in_reply_to":"3a50d1a3_2bb7f385","updated":"2015-07-29 15:50:56.000000000","message":"+1","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a6d8e143ec0b6814f23f93ceafde869a5ad074","unresolved":false,"context_lines":[{"line_number":1409,"context_line":"        return"},{"line_number":1410,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":1411,"context_line":"    network_id \u003d kwargs[\u0027network_id\u0027]"},{"line_number":1412,"context_line":"    query \u003d context.session.query(models_v2.Port).filter_by("},{"line_number":1413,"context_line":"                network_id\u003dnetwork_id,"},{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_7c934e5d","line":1412,"in_reply_to":"3a50d1a3_430a51d3","updated":"2015-07-30 06:32:17.000000000","message":"\u003e This will return all gw ports for all routers on given external network. \n\nIt means, external_gateway_info is related to \"network\" so it notifies all routers which have the network(includes updated subnet) as external_gateway_info.\n\n\u003e We should filter by port\u0027s fixed ips as well to get ports for particular subnet_id.\n\nGenerally external network has one subnet only. In the case, the method applies to all ports.\n\nI guess that l3agent should decide whether router should be updated since l3agent has definite logic for deciding.","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"ef7bbdd62f455479641fa99c096f78085cfc8f37","unresolved":false,"context_lines":[{"line_number":1409,"context_line":"        return"},{"line_number":1410,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":1411,"context_line":"    network_id \u003d kwargs[\u0027network_id\u0027]"},{"line_number":1412,"context_line":"    query \u003d context.session.query(models_v2.Port).filter_by("},{"line_number":1413,"context_line":"                network_id\u003dnetwork_id,"},{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_97aefee5","line":1412,"in_reply_to":"3a50d1a3_6e0151af","updated":"2015-07-31 06:03:14.000000000","message":"Done","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"681967e6fceeb3fb9f2215d1439fcc159b0d989c","unresolved":false,"context_lines":[{"line_number":1409,"context_line":"        return"},{"line_number":1410,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":1411,"context_line":"    network_id \u003d kwargs[\u0027network_id\u0027]"},{"line_number":1412,"context_line":"    query \u003d context.session.query(models_v2.Port).filter_by("},{"line_number":1413,"context_line":"                network_id\u003dnetwork_id,"},{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_6e0151af","line":1412,"in_reply_to":"3a50d1a3_7c934e5d","updated":"2015-07-30 08:22:20.000000000","message":"Generally it\u0027s not correct to notify about router updated if it\u0027s really not updated. I\u0027m not sure what prevents us from filtering by subnet id.","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"aab41762f0896093fdf489e4784d7a57fc77ae06","unresolved":false,"context_lines":[{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"},{"line_number":1416,"context_line":"    for id in router_ids:"},{"line_number":1417,"context_line":"        l3plugin.notify_router_updated(context, id)"},{"line_number":1418,"context_line":""},{"line_number":1419,"context_line":""},{"line_number":1420,"context_line":"def subscribe():"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_5d580231","line":1417,"updated":"2015-07-29 09:30:50.000000000","message":"So the callback only notifies agent about updated router. Can you please point where in code ip address is updated for router gw port?","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":4149,"name":"Itsuro Oda","email":"oda@valinux.co.jp","username":"oda-g"},"change_message_id":"c53ac7e6035631a6acac52ea8c85c0460e0f623a","unresolved":false,"context_lines":[{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"},{"line_number":1416,"context_line":"    for id in router_ids:"},{"line_number":1417,"context_line":"        l3plugin.notify_router_updated(context, id)"},{"line_number":1418,"context_line":""},{"line_number":1419,"context_line":""},{"line_number":1420,"context_line":"def subscribe():"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_ce07451c","line":1417,"in_reply_to":"3a50d1a3_2ecee9b7","updated":"2015-07-30 08:39:45.000000000","message":"@Oleg,\n\nYou seem to misunderstand something. gw port is not updated at all.\ngateway_ip of a subnet of a external network is updated. notification is to notify to a router(s) to update its route table of the default gateway (if necessary).","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"681967e6fceeb3fb9f2215d1439fcc159b0d989c","unresolved":false,"context_lines":[{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"},{"line_number":1416,"context_line":"    for id in router_ids:"},{"line_number":1417,"context_line":"        l3plugin.notify_router_updated(context, id)"},{"line_number":1418,"context_line":""},{"line_number":1419,"context_line":""},{"line_number":1420,"context_line":"def subscribe():"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_2ecee9b7","line":1417,"in_reply_to":"3a50d1a3_3c6aa682","updated":"2015-07-30 08:22:20.000000000","message":"Fixed IP for gw port should be updated in DB, right? Agent can\u0027t update DB, so I\u0027m wondering where this is done.","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a6d8e143ec0b6814f23f93ceafde869a5ad074","unresolved":false,"context_lines":[{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"},{"line_number":1416,"context_line":"    for id in router_ids:"},{"line_number":1417,"context_line":"        l3plugin.notify_router_updated(context, id)"},{"line_number":1418,"context_line":""},{"line_number":1419,"context_line":""},{"line_number":1420,"context_line":"def subscribe():"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_3c6aa682","line":1417,"in_reply_to":"3a50d1a3_5d580231","updated":"2015-07-30 06:32:17.000000000","message":"If l3agent gets the notification, it gets latest info of gw port and then updates router according to the info. Do you want the codes in l3agent?","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"ef7bbdd62f455479641fa99c096f78085cfc8f37","unresolved":false,"context_lines":[{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"},{"line_number":1416,"context_line":"    for id in router_ids:"},{"line_number":1417,"context_line":"        l3plugin.notify_router_updated(context, id)"},{"line_number":1418,"context_line":""},{"line_number":1419,"context_line":""},{"line_number":1420,"context_line":"def subscribe():"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_57b8762a","line":1417,"in_reply_to":"3a50d1a3_74a83e21","updated":"2015-07-31 06:03:14.000000000","message":"Thanks, Oda and Oleg.","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"9c9d5230d71c4950489adc018c27ac80e5cb926f","unresolved":false,"context_lines":[{"line_number":1414,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1415,"context_line":"    router_ids \u003d set(p[\u0027device_id\u0027] for p in query)"},{"line_number":1416,"context_line":"    for id in router_ids:"},{"line_number":1417,"context_line":"        l3plugin.notify_router_updated(context, id)"},{"line_number":1418,"context_line":""},{"line_number":1419,"context_line":""},{"line_number":1420,"context_line":"def subscribe():"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_74a83e21","line":1417,"in_reply_to":"3a50d1a3_ce07451c","updated":"2015-07-30 09:14:57.000000000","message":"Got it, sorry for mess","commit_id":"6cc775b1fa52be5b266ebc36c2697173d5c26eae"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"dd8a38d3587dd4985206056c66c21ae0f35a48fb","unresolved":false,"context_lines":[{"line_number":1427,"context_line":"    registry.subscribe("},{"line_number":1428,"context_line":"        _notify_routers_callback, resources.PORT, events.AFTER_DELETE)"},{"line_number":1429,"context_line":"    registry.subscribe("},{"line_number":1430,"context_line":"        _notify_routers_gateway_ip_update, resources.ROUTER_GATEWAY,"},{"line_number":1431,"context_line":"        events.AFTER_UPDATE)"},{"line_number":1432,"context_line":""},{"line_number":1433,"context_line":"# NOTE(armax): multiple l3 service plugins (potentially out of tree) inherit"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_2cf1d195","line":1430,"updated":"2015-07-31 12:53:13.000000000","message":"Ok, this is what confused me (commets in the previous PS): it\u0027s not router\u0027s gateway ip that\u0027s being updated, but subnet\u0027s gateway ip. Router\u0027s gw ip is the one from router\u0027s gw port and we should not mix them up. Consider another resource (SUBNET_GATEWAY) and callback name (_notify_subnet_gateway_ip_update)","commit_id":"94d82f3b7ad30bcf4c037b92bad9640f8a3da181"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"668d9ab486c2b1f1128cc2ae0e5a420c38985da4","unresolved":false,"context_lines":[{"line_number":1427,"context_line":"    registry.subscribe("},{"line_number":1428,"context_line":"        _notify_routers_callback, resources.PORT, events.AFTER_DELETE)"},{"line_number":1429,"context_line":"    registry.subscribe("},{"line_number":1430,"context_line":"        _notify_routers_gateway_ip_update, resources.ROUTER_GATEWAY,"},{"line_number":1431,"context_line":"        events.AFTER_UPDATE)"},{"line_number":1432,"context_line":""},{"line_number":1433,"context_line":"# NOTE(armax): multiple l3 service plugins (potentially out of tree) inherit"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa1b9901_338883e7","line":1430,"in_reply_to":"3a50d1a3_2cf1d195","updated":"2015-08-18 04:22:39.000000000","message":"Done","commit_id":"94d82f3b7ad30bcf4c037b92bad9640f8a3da181"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"689cab55f4b8ffcd363fcb335e8d606c374b6eac","unresolved":false,"context_lines":[{"line_number":1424,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1425,"context_line":"    router_ids \u003d set()"},{"line_number":1426,"context_line":"    for port in query:"},{"line_number":1427,"context_line":"        if subnet_id in [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]:"},{"line_number":1428,"context_line":"            router_ids.add(port[\u0027device_id\u0027])"},{"line_number":1429,"context_line":"    for id in router_ids:"},{"line_number":1430,"context_line":"        l3plugin.notify_router_updated(context, id)"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_c45a74f2","line":1427,"updated":"2015-08-24 20:21:04.000000000","message":"Could this be built in to the query?  Seems silly to me to filter a database query immediately after running it.","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"cb779db062a6d30ecab1eb4df3230b344d3a345e","unresolved":false,"context_lines":[{"line_number":1424,"context_line":"                device_owner\u003dl3_constants.DEVICE_OWNER_ROUTER_GW)"},{"line_number":1425,"context_line":"    router_ids \u003d set()"},{"line_number":1426,"context_line":"    for port in query:"},{"line_number":1427,"context_line":"        if subnet_id in [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]:"},{"line_number":1428,"context_line":"            router_ids.add(port[\u0027device_id\u0027])"},{"line_number":1429,"context_line":"    for id in router_ids:"},{"line_number":1430,"context_line":"        l3plugin.notify_router_updated(context, id)"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_a123a4a6","line":1427,"in_reply_to":"fa1b9901_c45a74f2","updated":"2015-08-25 00:12:01.000000000","message":"Done","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"961f2e2c0eeacd75a04365e705e91da3856b141e","unresolved":false,"context_lines":[{"line_number":1426,"context_line":"    for port in query:"},{"line_number":1427,"context_line":"        if subnet_id in [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]:"},{"line_number":1428,"context_line":"            router_ids.add(port[\u0027device_id\u0027])"},{"line_number":1429,"context_line":"    for id in router_ids:"},{"line_number":1430,"context_line":"        l3plugin.notify_router_updated(context, id)"},{"line_number":1431,"context_line":""},{"line_number":1432,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_cb35c0f7","line":1429,"updated":"2015-08-24 09:28:32.000000000","message":"better to avoid shadowing built-in function.","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"cb779db062a6d30ecab1eb4df3230b344d3a345e","unresolved":false,"context_lines":[{"line_number":1426,"context_line":"    for port in query:"},{"line_number":1427,"context_line":"        if subnet_id in [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]:"},{"line_number":1428,"context_line":"            router_ids.add(port[\u0027device_id\u0027])"},{"line_number":1429,"context_line":"    for id in router_ids:"},{"line_number":1430,"context_line":"        l3plugin.notify_router_updated(context, id)"},{"line_number":1431,"context_line":""},{"line_number":1432,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_413ba8d1","line":1429,"in_reply_to":"fa1b9901_2b3a1899","updated":"2015-08-25 00:12:01.000000000","message":"Done","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"025b03977821398bb16edfed61ce8da073d2b3b4","unresolved":false,"context_lines":[{"line_number":1426,"context_line":"    for port in query:"},{"line_number":1427,"context_line":"        if subnet_id in [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]:"},{"line_number":1428,"context_line":"            router_ids.add(port[\u0027device_id\u0027])"},{"line_number":1429,"context_line":"    for id in router_ids:"},{"line_number":1430,"context_line":"        l3plugin.notify_router_updated(context, id)"},{"line_number":1431,"context_line":""},{"line_number":1432,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"fa1b9901_2b3a1899","line":1429,"in_reply_to":"fa1b9901_cb35c0f7","updated":"2015-08-24 21:31:24.000000000","message":"ie. don\u0027t use id: for router_id in router_ids:","commit_id":"41b9bc075ea0b9e5281ed1d879bfaa9a571ad594"}],"neutron/tests/unit/db/test_db_base_plugin_v2.py":[{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"33900e6b74b72736c877bb71cd2727a47a7374d3","unresolved":false,"context_lines":[{"line_number":4161,"context_line":"        plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":4162,"context_line":"        if not hasattr(plugin, \u0027_get_router_gw_ports_by_network\u0027):"},{"line_number":4163,"context_line":"            # skipped if testing plugin is not inherited from"},{"line_number":4164,"context_line":"            # DbBasePluginCommon. This test class is used by such plugin too."},{"line_number":4165,"context_line":"            return"},{"line_number":4166,"context_line":"        registry.subscribe("},{"line_number":4167,"context_line":"            l3_db._notify_routers_gateway_ip_update, resources.ROUTER_GATEWAY,"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a41bdd9_a5dcc673","line":4164,"updated":"2015-07-15 03:56:39.000000000","message":"Please use self.skipTest(\"message\") for skipping tests.","commit_id":"f46f1576fe282c1d902db1602324e548a3b48d13"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"038cc99226d089a68b19af096e59b1d6cc73c680","unresolved":false,"context_lines":[{"line_number":4161,"context_line":"        plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":4162,"context_line":"        if not hasattr(plugin, \u0027_get_router_gw_ports_by_network\u0027):"},{"line_number":4163,"context_line":"            # skipped if testing plugin is not inherited from"},{"line_number":4164,"context_line":"            # DbBasePluginCommon. This test class is used by such plugin too."},{"line_number":4165,"context_line":"            return"},{"line_number":4166,"context_line":"        registry.subscribe("},{"line_number":4167,"context_line":"            l3_db._notify_routers_gateway_ip_update, resources.ROUTER_GATEWAY,"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a41bdd9_d8f72dd1","line":4164,"in_reply_to":"9a41bdd9_a5dcc673","updated":"2015-07-16 06:06:40.000000000","message":"Done","commit_id":"f46f1576fe282c1d902db1602324e548a3b48d13"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"7b18ce1ed3d8193b9740c81de0caf3f9fc104d9f","unresolved":false,"context_lines":[{"line_number":4162,"context_line":"        if not hasattr(plugin, \u0027_get_router_gw_ports_by_network\u0027):"},{"line_number":4163,"context_line":"            # skipped if testing plugin is not inherited from"},{"line_number":4164,"context_line":"            # DbBasePluginCommon. This test class is used by such plugin too."},{"line_number":4165,"context_line":"            self.skipTest(\"plugin is not a successor of DbBasePluginCommin.\")"},{"line_number":4166,"context_line":"        registry.subscribe("},{"line_number":4167,"context_line":"            l3_db._notify_routers_gateway_ip_update, resources.ROUTER_GATEWAY,"},{"line_number":4168,"context_line":"            events.AFTER_UPDATE)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a50d1a3_f84b9557","line":4165,"updated":"2015-07-27 09:11:20.000000000","message":"nit: typo in DbBasePluginCommon","commit_id":"589ea421851a8bc5301d3008f7203d52f602f0fd"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"7b18ce1ed3d8193b9740c81de0caf3f9fc104d9f","unresolved":false,"context_lines":[{"line_number":4166,"context_line":"        registry.subscribe("},{"line_number":4167,"context_line":"            l3_db._notify_routers_gateway_ip_update, resources.ROUTER_GATEWAY,"},{"line_number":4168,"context_line":"            events.AFTER_UPDATE)"},{"line_number":4169,"context_line":"        with mock.patch.object(manager.NeutronManager,"},{"line_number":4170,"context_line":"                               \u0027get_service_plugins\u0027) as srv_plugins, \\"},{"line_number":4171,"context_line":"            mock.patch.object(plugin, \u0027_get_router_gw_ports_by_network\u0027) as \\"},{"line_number":4172,"context_line":"            get_router_gw_ports_by_network:"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a50d1a3_f8f2b599","line":4169,"updated":"2015-07-27 09:11:20.000000000","message":"I\u0027d suggest to mock at lower layer, like l3_rpc_notifier.routers_updated to check that l3 plugin method is called correctly (no typos, correct prameters passed)","commit_id":"589ea421851a8bc5301d3008f7203d52f602f0fd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"da7238a45f0341f4ae2fb90ea2e577d83ec34d39","unresolved":false,"context_lines":[{"line_number":4166,"context_line":"        registry.subscribe("},{"line_number":4167,"context_line":"            l3_db._notify_routers_gateway_ip_update, resources.ROUTER_GATEWAY,"},{"line_number":4168,"context_line":"            events.AFTER_UPDATE)"},{"line_number":4169,"context_line":"        with mock.patch.object(manager.NeutronManager,"},{"line_number":4170,"context_line":"                               \u0027get_service_plugins\u0027) as srv_plugins, \\"},{"line_number":4171,"context_line":"            mock.patch.object(plugin, \u0027_get_router_gw_ports_by_network\u0027) as \\"},{"line_number":4172,"context_line":"            get_router_gw_ports_by_network:"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a50d1a3_16fca270","line":4169,"in_reply_to":"3a50d1a3_f8f2b599","updated":"2015-07-29 06:03:31.000000000","message":"Done","commit_id":"589ea421851a8bc5301d3008f7203d52f602f0fd"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"9bc284e53c0776257a88bab346860cbf607a23b3","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":13,"id":"fa1b9901_8287b360","updated":"2015-08-18 07:06:44.000000000","message":"I think the test should go to l3_db tests, not to base db plugin tests","commit_id":"7e2efcd07ca83883eed0e1c9371b44c953810451"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"9cc62ab62d4c427205b1f844776e441ed3d4ade2","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":13,"id":"fa1b9901_fe710b45","in_reply_to":"fa1b9901_8287b360","updated":"2015-08-19 20:53:51.000000000","message":"Done","commit_id":"7e2efcd07ca83883eed0e1c9371b44c953810451"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"9bc284e53c0776257a88bab346860cbf607a23b3","unresolved":false,"context_lines":[{"line_number":4298,"context_line":"                                 webob.exc.HTTPConflict.code)"},{"line_number":4299,"context_line":""},{"line_number":4300,"context_line":"    def test_update_subnet_gateway_for_external_net(self):"},{"line_number":4301,"context_line":"        registry.subscribe("},{"line_number":4302,"context_line":"            l3_db._notify_subnet_gateway_ip_update, resources.SUBNET_GATEWAY,"},{"line_number":4303,"context_line":"            events.AFTER_UPDATE)"},{"line_number":4304,"context_line":"        with mock.patch.object(manager.NeutronManager,"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa1b9901_6274df9b","line":4301,"updated":"2015-08-18 07:06:44.000000000","message":"Is it necessary? l3_db was imported..","commit_id":"7e2efcd07ca83883eed0e1c9371b44c953810451"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"9cc62ab62d4c427205b1f844776e441ed3d4ade2","unresolved":false,"context_lines":[{"line_number":4298,"context_line":"                                 webob.exc.HTTPConflict.code)"},{"line_number":4299,"context_line":""},{"line_number":4300,"context_line":"    def test_update_subnet_gateway_for_external_net(self):"},{"line_number":4301,"context_line":"        registry.subscribe("},{"line_number":4302,"context_line":"            l3_db._notify_subnet_gateway_ip_update, resources.SUBNET_GATEWAY,"},{"line_number":4303,"context_line":"            events.AFTER_UPDATE)"},{"line_number":4304,"context_line":"        with mock.patch.object(manager.NeutronManager,"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa1b9901_de744737","line":4301,"in_reply_to":"fa1b9901_6274df9b","updated":"2015-08-19 20:53:51.000000000","message":"Test failed without it although I\u0027m not sure why happens.","commit_id":"7e2efcd07ca83883eed0e1c9371b44c953810451"}]}
