)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"e47a795e0da10a4a6140b1850d4760b65d4340f4","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-12-30 13:24:59 +0530"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add L3 Notifications To Enable BGP Dynamic Routing"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch makes the L3 service generate notifications that enable"},{"line_number":10,"context_line":"BGP dynamic routing to react appropriately to user-initiated changes"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"fa69d971_0caf5395","line":7,"updated":"2016-01-01 13:12:00.000000000","message":"Let\u0027s put this patch after https://review.openstack.org/#/c/216994/","commit_id":"cd693ccd9886421bfdb0b1ab78882ea20ff60ddb"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"45fadbb93a21569060c6054592afe5f5fa22e7ae","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Parent:     28b262a4 (Add Queries For BGP Route Lookups)"},{"line_number":2,"context_line":"Author:     vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":3,"context_line":"AuthorDate: 2016-01-03 20:37:56 +0530"},{"line_number":4,"context_line":"Commit:     vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-01-06 15:32:40 +0000"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"fa69d971_fb19667a","line":2,"updated":"2016-01-08 03:46:42.000000000","message":"I really got to learn GIT. Ryan plz go ahead and change the owner as it\u0027s your patch. In the meantime I will figure out what stupidity I am doing.","commit_id":"39d74f161d4c696869b43da45f1e2a4ac174f527"}],"neutron/db/l3_db.py":[{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"1c992e2f8c0abf7ae6070bd8fd426e35efe3d037","unresolved":false,"context_lines":[{"line_number":353,"context_line":"        self._core_plugin.delete_port("},{"line_number":354,"context_line":"            admin_ctx, gw_port[\u0027id\u0027], l3_port_check\u003dFalse)"},{"line_number":355,"context_line":"        registry.notify(resources.ROUTER_GATEWAY,"},{"line_number":356,"context_line":"                        events.AFTER_DELETE, self,"},{"line_number":357,"context_line":"                        **{\u0027router_id\u0027: router_id,"},{"line_number":358,"context_line":"                           \u0027network_id\u0027: old_network})"},{"line_number":359,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9a8ffd7b_34eddf8e","line":356,"updated":"2015-11-30 22:29:29.000000000","message":"shouldn\u0027t this, L387, L675 and L788 be to specific methods of self?","commit_id":"5c7d66bb8a02dc8d17cec76c0aca6b993b02d272"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"835c6aa63b426d0e0a6a6c12020ea7197b82f059","unresolved":false,"context_lines":[{"line_number":353,"context_line":"        self._core_plugin.delete_port("},{"line_number":354,"context_line":"            admin_ctx, gw_port[\u0027id\u0027], l3_port_check\u003dFalse)"},{"line_number":355,"context_line":"        registry.notify(resources.ROUTER_GATEWAY,"},{"line_number":356,"context_line":"                        events.AFTER_DELETE, self,"},{"line_number":357,"context_line":"                        **{\u0027router_id\u0027: router_id,"},{"line_number":358,"context_line":"                           \u0027network_id\u0027: old_network})"},{"line_number":359,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9a8ffd7b_e200c168","line":356,"in_reply_to":"9a8ffd7b_34eddf8e","updated":"2015-12-01 18:30:04.000000000","message":"Yes it should, done.","commit_id":"5c7d66bb8a02dc8d17cec76c0aca6b993b02d272"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"e64967cf6443169bb51ad499a3957e765e3194db","unresolved":false,"context_lines":[{"line_number":664,"context_line":"        gw_network_id \u003d None"},{"line_number":665,"context_line":"        if router.gw_port:"},{"line_number":666,"context_line":"            gw_network_id \u003d router.gw_port.network_id"},{"line_number":667,"context_line":"            gw_ips \u003d router.gw_port.fixed_ips"},{"line_number":668,"context_line":""},{"line_number":669,"context_line":"        kwargs \u003d {\u0027network_id\u0027: gw_network_id,"},{"line_number":670,"context_line":"                  \u0027gateway_ips\u0027: gw_ips,"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a8ffd7b_aa54fe20","line":667,"updated":"2015-12-01 06:07:15.000000000","message":"better to rename it as gw_fips","commit_id":"5c7d66bb8a02dc8d17cec76c0aca6b993b02d272"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"835c6aa63b426d0e0a6a6c12020ea7197b82f059","unresolved":false,"context_lines":[{"line_number":664,"context_line":"        gw_network_id \u003d None"},{"line_number":665,"context_line":"        if router.gw_port:"},{"line_number":666,"context_line":"            gw_network_id \u003d router.gw_port.network_id"},{"line_number":667,"context_line":"            gw_ips \u003d router.gw_port.fixed_ips"},{"line_number":668,"context_line":""},{"line_number":669,"context_line":"        kwargs \u003d {\u0027network_id\u0027: gw_network_id,"},{"line_number":670,"context_line":"                  \u0027gateway_ips\u0027: gw_ips,"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a8ffd7b_42fc2d3e","line":667,"in_reply_to":"9a8ffd7b_aa54fe20","updated":"2015-12-01 18:30:04.000000000","message":"Done","commit_id":"5c7d66bb8a02dc8d17cec76c0aca6b993b02d272"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"e64967cf6443169bb51ad499a3957e765e3194db","unresolved":false,"context_lines":[{"line_number":672,"context_line":"                  \u0027router_id\u0027: router_id,"},{"line_number":673,"context_line":"                  \u0027port_id\u0027: port[\u0027id\u0027],"},{"line_number":674,"context_line":"                  \u0027interface_info\u0027: interface_info}"},{"line_number":675,"context_line":"        registry.notify(resources.ROUTER_INTERFACE, events.AFTER_CREATE,"},{"line_number":676,"context_line":"                        self, **kwargs)"},{"line_number":677,"context_line":""},{"line_number":678,"context_line":"        return self._make_router_interface_info("}],"source_content_type":"text/x-python","patch_set":6,"id":"9a8ffd7b_ca5dc249","line":675,"updated":"2015-12-01 06:07:15.000000000","message":"The action could be either AFTER_CREATE or AFTER_UPDATE.","commit_id":"5c7d66bb8a02dc8d17cec76c0aca6b993b02d272"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"835c6aa63b426d0e0a6a6c12020ea7197b82f059","unresolved":false,"context_lines":[{"line_number":672,"context_line":"                  \u0027router_id\u0027: router_id,"},{"line_number":673,"context_line":"                  \u0027port_id\u0027: port[\u0027id\u0027],"},{"line_number":674,"context_line":"                  \u0027interface_info\u0027: interface_info}"},{"line_number":675,"context_line":"        registry.notify(resources.ROUTER_INTERFACE, events.AFTER_CREATE,"},{"line_number":676,"context_line":"                        self, **kwargs)"},{"line_number":677,"context_line":""},{"line_number":678,"context_line":"        return self._make_router_interface_info("}],"source_content_type":"text/x-python","patch_set":6,"id":"9a8ffd7b_22e009cc","line":675,"in_reply_to":"9a8ffd7b_ca5dc249","updated":"2015-12-01 18:30:04.000000000","message":"AFTER_UPDATE may make more sense in this context.","commit_id":"5c7d66bb8a02dc8d17cec76c0aca6b993b02d272"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"1c992e2f8c0abf7ae6070bd8fd426e35efe3d037","unresolved":false,"context_lines":[{"line_number":986,"context_line":"                    break"},{"line_number":987,"context_line":""},{"line_number":988,"context_line":"        registry.notify(resources.FLOATING_IP, events.AFTER_UPDATE,"},{"line_number":989,"context_line":"                        self._update_fip_assoc, **args)"},{"line_number":990,"context_line":""},{"line_number":991,"context_line":"    def _is_ipv4_network(self, context, net_id):"},{"line_number":992,"context_line":"        net \u003d self._core_plugin._get_network(context, net_id)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a8ffd7b_f4b43783","line":989,"updated":"2015-11-30 22:29:29.000000000","message":"this looks like a circular notification?","commit_id":"5c7d66bb8a02dc8d17cec76c0aca6b993b02d272"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"2d55cf5c4ca095e6d32920b19ccfbbc1c6d6b09f","unresolved":false,"context_lines":[{"line_number":986,"context_line":"                    break"},{"line_number":987,"context_line":""},{"line_number":988,"context_line":"        registry.notify(resources.FLOATING_IP, events.AFTER_UPDATE,"},{"line_number":989,"context_line":"                        self._update_fip_assoc, **args)"},{"line_number":990,"context_line":""},{"line_number":991,"context_line":"    def _is_ipv4_network(self, context, net_id):"},{"line_number":992,"context_line":"        net \u003d self._core_plugin._get_network(context, net_id)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a8ffd7b_31f131ce","line":989,"in_reply_to":"9a8ffd7b_0582af52","updated":"2015-12-01 20:07:28.000000000","message":"This doesn\u0027t register anything, registry.notyify() actually kicks out the notification for subscribers to consume.  This causes a notification to be sent when a FIP association changes in any way, which is exactly the behavior we want.","commit_id":"5c7d66bb8a02dc8d17cec76c0aca6b993b02d272"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"b664dcd81cf5dee18431e524fab63b4589e87796","unresolved":false,"context_lines":[{"line_number":986,"context_line":"                    break"},{"line_number":987,"context_line":""},{"line_number":988,"context_line":"        registry.notify(resources.FLOATING_IP, events.AFTER_UPDATE,"},{"line_number":989,"context_line":"                        self._update_fip_assoc, **args)"},{"line_number":990,"context_line":""},{"line_number":991,"context_line":"    def _is_ipv4_network(self, context, net_id):"},{"line_number":992,"context_line":"        net \u003d self._core_plugin._get_network(context, net_id)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a8ffd7b_0582af52","line":989,"in_reply_to":"9a8ffd7b_42ad0d87","updated":"2015-12-01 18:38:05.000000000","message":"circular in the sense that it re-registers itself each time it gets called...  I assume that doesn\u0027t actually do anything, but it sorta looks funny to me...","commit_id":"5c7d66bb8a02dc8d17cec76c0aca6b993b02d272"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"835c6aa63b426d0e0a6a6c12020ea7197b82f059","unresolved":false,"context_lines":[{"line_number":986,"context_line":"                    break"},{"line_number":987,"context_line":""},{"line_number":988,"context_line":"        registry.notify(resources.FLOATING_IP, events.AFTER_UPDATE,"},{"line_number":989,"context_line":"                        self._update_fip_assoc, **args)"},{"line_number":990,"context_line":""},{"line_number":991,"context_line":"    def _is_ipv4_network(self, context, net_id):"},{"line_number":992,"context_line":"        net \u003d self._core_plugin._get_network(context, net_id)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a8ffd7b_42ad0d87","line":989,"in_reply_to":"9a8ffd7b_f4b43783","updated":"2015-12-01 18:30:04.000000000","message":"Not circular from what I can see.  Is this method invoked in an RPC callback I didn\u0027t notice?  That might make it circular.  Where are you seeing this as being circular?","commit_id":"5c7d66bb8a02dc8d17cec76c0aca6b993b02d272"},{"author":{"_account_id":17609,"name":"steve","email":"ruansx@cn.ibm.com","username":"steve.ruan"},"change_message_id":"0e6f35e091d2e8323156b01d89ecbf3f4af9f88b","unresolved":false,"context_lines":[{"line_number":355,"context_line":"            self._check_router_gw_port_in_use(context, router_id)"},{"line_number":356,"context_line":"        self._core_plugin.delete_port("},{"line_number":357,"context_line":"            admin_ctx, gw_port[\u0027id\u0027], l3_port_check\u003dFalse)"},{"line_number":358,"context_line":"        registry.notify(resources.ROUTER_GATEWAY,"},{"line_number":359,"context_line":"                        events.AFTER_DELETE, self,"},{"line_number":360,"context_line":"                        **{\u0027router_id\u0027: router_id,"},{"line_number":361,"context_line":"                           \u0027network_id\u0027: old_network})"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa69d971_5baa191b","line":358,"range":{"start_line":358,"start_character":24,"end_line":358,"end_character":33},"updated":"2015-12-30 08:49:41.000000000","message":"This event callback func: router_gateway_callback need 3 arguments. ONLY 2 is provide, \"cidrs\" is missing","commit_id":"cd693ccd9886421bfdb0b1ab78882ea20ff60ddb"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"bb1be63e8160eb0cbea61c8495291a3e375baa6c","unresolved":false,"context_lines":[{"line_number":355,"context_line":"            self._check_router_gw_port_in_use(context, router_id)"},{"line_number":356,"context_line":"        self._core_plugin.delete_port("},{"line_number":357,"context_line":"            admin_ctx, gw_port[\u0027id\u0027], l3_port_check\u003dFalse)"},{"line_number":358,"context_line":"        registry.notify(resources.ROUTER_GATEWAY,"},{"line_number":359,"context_line":"                        events.AFTER_DELETE, self,"},{"line_number":360,"context_line":"                        **{\u0027router_id\u0027: router_id,"},{"line_number":361,"context_line":"                           \u0027network_id\u0027: old_network})"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa69d971_2c901743","line":358,"range":{"start_line":358,"start_character":24,"end_line":358,"end_character":33},"in_reply_to":"fa69d971_5baa191b","updated":"2016-01-01 13:21:50.000000000","message":"Better Ryan can look into this. Personally, I believe you are correct. We need to retrieve the CIDR list of the deleted networks.","commit_id":"cd693ccd9886421bfdb0b1ab78882ea20ff60ddb"},{"author":{"_account_id":17609,"name":"steve","email":"ruansx@cn.ibm.com","username":"steve.ruan"},"change_message_id":"0e6f35e091d2e8323156b01d89ecbf3f4af9f88b","unresolved":false,"context_lines":[{"line_number":686,"context_line":"                  \u0027port_id\u0027: port[\u0027id\u0027],"},{"line_number":687,"context_line":"                  \u0027interface_info\u0027: interface_info}"},{"line_number":688,"context_line":"        registry.notify(resources.ROUTER_INTERFACE, events.AFTER_CREATE,"},{"line_number":689,"context_line":"                        self, **kwargs)"},{"line_number":690,"context_line":""},{"line_number":691,"context_line":"        return self._make_router_interface_info("},{"line_number":692,"context_line":"            router.id, port[\u0027tenant_id\u0027], port[\u0027id\u0027], subnets[-1][\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa69d971_db43696b","line":689,"range":{"start_line":689,"start_character":38,"end_line":689,"end_character":39},"updated":"2015-12-30 08:49:41.000000000","message":"More arguments than expected","commit_id":"cd693ccd9886421bfdb0b1ab78882ea20ff60ddb"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"264ff5f5c12215761654a52ee551091b5a4fdab4","unresolved":false,"context_lines":[{"line_number":357,"context_line":"            self._check_router_gw_port_in_use(context, router_id)"},{"line_number":358,"context_line":"        self._core_plugin.delete_port("},{"line_number":359,"context_line":"            admin_ctx, gw_port[\u0027id\u0027], l3_port_check\u003dFalse)"},{"line_number":360,"context_line":"        registry.notify(resources.ROUTER_GATEWAY,"},{"line_number":361,"context_line":"                        events.AFTER_DELETE, self,"},{"line_number":362,"context_line":"                        **{\u0027router_id\u0027: router_id,"},{"line_number":363,"context_line":"                           \u0027network_id\u0027: old_network})"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa69d971_0c7193e0","line":360,"updated":"2016-01-01 14:06:02.000000000","message":"Address PS9 comment.","commit_id":"3a278ac4a98a5ef69ef0fa8afe01eed3df024b32"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"264ff5f5c12215761654a52ee551091b5a4fdab4","unresolved":false,"context_lines":[{"line_number":687,"context_line":"                  \u0027router_id\u0027: router_id,"},{"line_number":688,"context_line":"                  \u0027port_id\u0027: port[\u0027id\u0027],"},{"line_number":689,"context_line":"                  \u0027interface_info\u0027: interface_info}"},{"line_number":690,"context_line":"        registry.notify(resources.ROUTER_INTERFACE, events.AFTER_CREATE,"},{"line_number":691,"context_line":"                        self, **kwargs)"},{"line_number":692,"context_line":""},{"line_number":693,"context_line":"        return self._make_router_interface_info("}],"source_content_type":"text/x-python","patch_set":10,"id":"fa69d971_6c828f96","line":690,"updated":"2016-01-01 14:06:02.000000000","message":"Address PS9.","commit_id":"3a278ac4a98a5ef69ef0fa8afe01eed3df024b32"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0866e2e5abad5e6a04c9fd29617de75373bc13ff","unresolved":false,"context_lines":[{"line_number":343,"context_line":"        if not port_requires_deletion:"},{"line_number":344,"context_line":"            return"},{"line_number":345,"context_line":"        admin_ctx \u003d context.elevated()"},{"line_number":346,"context_line":"        old_network \u003d router.gw_port[\u0027network_id\u0027]"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"        if self.get_floatingips_count("},{"line_number":349,"context_line":"            admin_ctx, {\u0027router_id\u0027: [router_id]}):"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa69d971_a39f035e","line":346,"range":{"start_line":346,"start_character":8,"end_line":346,"end_character":19},"updated":"2016-01-08 20:58:00.000000000","message":"nit:  old_network_id","commit_id":"39d74f161d4c696869b43da45f1e2a4ac174f527"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0866e2e5abad5e6a04c9fd29617de75373bc13ff","unresolved":false,"context_lines":[{"line_number":359,"context_line":"            admin_ctx, gw_port[\u0027id\u0027], l3_port_check\u003dFalse)"},{"line_number":360,"context_line":"        registry.notify(resources.ROUTER_GATEWAY,"},{"line_number":361,"context_line":"                        events.AFTER_DELETE, self,"},{"line_number":362,"context_line":"                        **{\u0027router_id\u0027: router_id,"},{"line_number":363,"context_line":"                           \u0027network_id\u0027: old_network})"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"    def _check_router_gw_port_in_use(self, context, router_id):"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa69d971_63ba6be3","line":362,"updated":"2016-01-08 20:58:00.000000000","message":"nit:  This strikes me as kind of silly.  How about this:\n\n        registry.notify(resources.ROUTER_GATEWAY,\n                        events.AFTER_DELETE,\n                        self,\n                        router_id\u003drouter_id,\n                        network_id\u003dold_network)\n\nLooking through the rest of the file, I see this pattern of passing arguments indirectly using a dict all over the place.  So, I guess I\u0027m okay with it if you want to keep it this way.","commit_id":"39d74f161d4c696869b43da45f1e2a4ac174f527"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0866e2e5abad5e6a04c9fd29617de75373bc13ff","unresolved":false,"context_lines":[{"line_number":390,"context_line":"            kwargs \u003d {\u0027gw_ips\u0027: ext_ips, \u0027network_id\u0027: new_network,"},{"line_number":391,"context_line":"                      \u0027router_id\u0027: router_id}"},{"line_number":392,"context_line":"            registry.notify(resources.ROUTER_GATEWAY, events.AFTER_CREATE,"},{"line_number":393,"context_line":"                            self, **kwargs)"},{"line_number":394,"context_line":""},{"line_number":395,"context_line":"    def _update_current_gw_port(self, context, router_id, router, ext_ips):"},{"line_number":396,"context_line":"        self._core_plugin.update_port(context, router.gw_port[\u0027id\u0027], {\u0027port\u0027:"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa69d971_a3adc389","line":393,"range":{"start_line":393,"start_character":34,"end_line":393,"end_character":42},"updated":"2016-01-08 20:58:00.000000000","message":"nit:  This looks slightly less silly to me (for some reason) but why not just pass them as regular old arguments here too?  See L362 comment.","commit_id":"39d74f161d4c696869b43da45f1e2a4ac174f527"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0866e2e5abad5e6a04c9fd29617de75373bc13ff","unresolved":false,"context_lines":[{"line_number":688,"context_line":"                  \u0027port_id\u0027: port[\u0027id\u0027],"},{"line_number":689,"context_line":"                  \u0027interface_info\u0027: interface_info}"},{"line_number":690,"context_line":"        registry.notify(resources.ROUTER_INTERFACE, events.AFTER_CREATE,"},{"line_number":691,"context_line":"                        self, **kwargs)"},{"line_number":692,"context_line":""},{"line_number":693,"context_line":"        return self._make_router_interface_info("},{"line_number":694,"context_line":"            router.id, port[\u0027tenant_id\u0027], port[\u0027id\u0027], subnets[-1][\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa69d971_63126bb6","line":691,"range":{"start_line":691,"start_character":30,"end_line":691,"end_character":38},"updated":"2016-01-08 20:58:00.000000000","message":"ditto (L393)","commit_id":"39d74f161d4c696869b43da45f1e2a4ac174f527"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0866e2e5abad5e6a04c9fd29617de75373bc13ff","unresolved":false,"context_lines":[{"line_number":802,"context_line":"        kwargs \u003d {\u0027cidrs\u0027: [x[\u0027cidr\u0027] for x in subnets],"},{"line_number":803,"context_line":"                  \u0027network_id\u0027: gw_network_id}"},{"line_number":804,"context_line":"        registry.notify(resources.ROUTER_INTERFACE, events.AFTER_DELETE,"},{"line_number":805,"context_line":"                        self, **kwargs)"},{"line_number":806,"context_line":"        return self._make_router_interface_info(router_id, port[\u0027tenant_id\u0027],"},{"line_number":807,"context_line":"                                                port[\u0027id\u0027], subnets[0][\u0027id\u0027],"},{"line_number":808,"context_line":"                                                [subnet[\u0027id\u0027] for subnet in"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa69d971_a3770301","line":805,"range":{"start_line":805,"start_character":30,"end_line":805,"end_character":38},"updated":"2016-01-08 20:58:00.000000000","message":"ditto (L393)","commit_id":"39d74f161d4c696869b43da45f1e2a4ac174f527"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0866e2e5abad5e6a04c9fd29617de75373bc13ff","unresolved":false,"context_lines":[{"line_number":983,"context_line":"                              \u0027fixed_port_id\u0027: port_id,"},{"line_number":984,"context_line":"                              \u0027router_id\u0027: router_id,"},{"line_number":985,"context_line":"                              \u0027last_known_router_id\u0027: previous_router_id})"},{"line_number":986,"context_line":"        args \u003d {\u0027fixed_ip_address\u0027: internal_ip_address,"},{"line_number":987,"context_line":"                \u0027fixed_port_id\u0027: port_id,"},{"line_number":988,"context_line":"                \u0027router_id\u0027: router_id,"},{"line_number":989,"context_line":"                \u0027last_known_router_id\u0027: previous_router_id,"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa69d971_03d7efbf","line":986,"range":{"start_line":986,"start_character":8,"end_line":986,"end_character":12},"updated":"2016-01-08 20:58:00.000000000","message":"I\u0027d move this down closer to L1003 where it is used.  I know you put it here because of L1000 where you assign args[\u0027next_hop\u0027] but I think it would read better if you used a simple local variable (next_hop) for that and construct this dict down there to make it obvious that most of it is not being modified by the code in between.","commit_id":"39d74f161d4c696869b43da45f1e2a4ac174f527"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0866e2e5abad5e6a04c9fd29617de75373bc13ff","unresolved":false,"context_lines":[{"line_number":997,"context_line":"            for fixed_ip in gw_port.fixed_ips:"},{"line_number":998,"context_line":"                addr \u003d netaddr.IPAddress(fixed_ip.ip_address)"},{"line_number":999,"context_line":"                if addr.version \u003d\u003d 4:"},{"line_number":1000,"context_line":"                    args[\u0027next_hop\u0027] \u003d fixed_ip.ip_address"},{"line_number":1001,"context_line":"                    break"},{"line_number":1002,"context_line":""},{"line_number":1003,"context_line":"        registry.notify(resources.FLOATING_IP, events.AFTER_UPDATE,"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa69d971_a3fce33e","line":1000,"range":{"start_line":1000,"start_character":20,"end_line":1000,"end_character":36},"updated":"2016-01-08 20:58:00.000000000","message":"But create a new local variable called next_hop to do this.","commit_id":"39d74f161d4c696869b43da45f1e2a4ac174f527"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0866e2e5abad5e6a04c9fd29617de75373bc13ff","unresolved":false,"context_lines":[{"line_number":1001,"context_line":"                    break"},{"line_number":1002,"context_line":""},{"line_number":1003,"context_line":"        registry.notify(resources.FLOATING_IP, events.AFTER_UPDATE,"},{"line_number":1004,"context_line":"                        self._update_fip_assoc, **args)"},{"line_number":1005,"context_line":""},{"line_number":1006,"context_line":"    def _is_ipv4_network(self, context, net_id):"},{"line_number":1007,"context_line":"        net \u003d self._core_plugin._get_network(context, net_id)"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa69d971_c3f79757","line":1004,"range":{"start_line":1004,"start_character":48,"end_line":1004,"end_character":54},"updated":"2016-01-08 20:58:00.000000000","message":"ditto (L393)","commit_id":"39d74f161d4c696869b43da45f1e2a4ac174f527"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"de0e3911f0707b811e2caf8978805e3f33e671e1","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        return network_id"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"    def _delete_current_gw_port(self, context, router_id, router,"},{"line_number":339,"context_line":"                                new_network_id):"},{"line_number":340,"context_line":"        \"\"\"Delete gw port if attached to an old network.\"\"\""},{"line_number":341,"context_line":"        port_requires_deletion \u003d ("},{"line_number":342,"context_line":"            router.gw_port and router.gw_port[\u0027network_id\u0027] !\u003d new_network_id)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba63e191_9cc4ca5f","line":339,"range":{"start_line":339,"start_character":43,"end_line":339,"end_character":46},"updated":"2016-01-19 20:45:33.000000000","message":"Normally, I wouldn\u0027t like changing the name of a parameter like this even though new_network_id is a better name.\n\nIn this case, with the addition of old_network_id, it kind of makes sense to rename this for consistency.  To be pedantic, I\u0027d have you do it in a separate patch to precede this one.","commit_id":"5f5d6cc38fea4d31195f8417d0f7fbfec7192dc6"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"de0e3911f0707b811e2caf8978805e3f33e671e1","unresolved":false,"context_lines":[{"line_number":366,"context_line":"        try:"},{"line_number":367,"context_line":"            registry.notify("},{"line_number":368,"context_line":"                resources.ROUTER_GATEWAY, events.BEFORE_DELETE, self,"},{"line_number":369,"context_line":"                context\u003dcontext, router_id\u003drouter_id)"},{"line_number":370,"context_line":"        except exceptions.CallbackFailure as e:"},{"line_number":371,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":372,"context_line":"                # NOTE(armax): preserve old check\u0027s behavior"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba63e191_9c9b6a72","line":369,"range":{"start_line":369,"start_character":16,"end_line":369,"end_character":52},"updated":"2016-01-19 20:45:33.000000000","message":"Since these were passed as kwargs before, it is better to leave it that way even though I would like this better.  Before when I gave the feedback about this, I meant to say that I noticed the pattern that already existed throughout the file and that it was okay to keep it.  Sorry if I didn\u0027t state that.\n\nAs it stands, this shouldn\u0027t be done in this patch because it is out of scope.","commit_id":"5f5d6cc38fea4d31195f8417d0f7fbfec7192dc6"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"de0e3911f0707b811e2caf8978805e3f33e671e1","unresolved":false,"context_lines":[{"line_number":374,"context_line":"                    raise e.errors[0].error"},{"line_number":375,"context_line":"                raise l3.RouterInUse(router_id\u003drouter_id, reason\u003de)"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    def _create_gw_port(self, context, router_id, router, new_network_id,"},{"line_number":378,"context_line":"                        ext_ips):"},{"line_number":379,"context_line":"        new_valid_gw_port_attachment \u003d ("},{"line_number":380,"context_line":"            new_network_id and (not router.gw_port or"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba63e191_dc3b2237","line":377,"range":{"start_line":377,"start_character":69,"end_line":377,"end_character":72},"updated":"2016-01-19 20:45:33.000000000","message":"Since this appears a few times in this patch, maybe we should create a separate patch for this.  We can merge it very quickly (assuming the gate behaves).","commit_id":"5f5d6cc38fea4d31195f8417d0f7fbfec7192dc6"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"de0e3911f0707b811e2caf8978805e3f33e671e1","unresolved":false,"context_lines":[{"line_number":390,"context_line":"            self._create_router_gw_port(context, router,"},{"line_number":391,"context_line":"                                        new_network_id, ext_ips)"},{"line_number":392,"context_line":"            registry.notify(resources.ROUTER_GATEWAY, events.AFTER_CREATE,"},{"line_number":393,"context_line":"                            self, gw_ips\u003dext_ips, network_id\u003dnew_network_id,"},{"line_number":394,"context_line":"                            router_id\u003drouter_id)"},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"    def _update_current_gw_port(self, context, router_id, router, ext_ips):"},{"line_number":397,"context_line":"        self._core_plugin.update_port(context, router.gw_port[\u0027id\u0027], {\u0027port\u0027:"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba63e191_fcfe266a","line":394,"range":{"start_line":393,"start_character":34,"end_line":394,"end_character":47},"updated":"2016-01-19 20:45:33.000000000","message":"Here, since this is new code, I don\u0027t mind passing as regular old options.  But, you do have the option to follow the pattern in the rest of the file.  I can go either way.","commit_id":"5f5d6cc38fea4d31195f8417d0f7fbfec7192dc6"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"de0e3911f0707b811e2caf8978805e3f33e671e1","unresolved":false,"context_lines":[{"line_number":683,"context_line":"            gw_ips \u003d router.gw_port.fixed_ips"},{"line_number":684,"context_line":""},{"line_number":685,"context_line":"        registry.notify(resources.ROUTER_INTERFACE, events.AFTER_CREATE,"},{"line_number":686,"context_line":"                        self, network_id\u003dgw_network_id, gateway_ips\u003dgw_ips,"},{"line_number":687,"context_line":"                        cidrs\u003d[x[\u0027cidr\u0027] for x in subnets],"},{"line_number":688,"context_line":"                        port_id\u003dport[\u0027id\u0027], router_id\u003drouter_id,"},{"line_number":689,"context_line":"                        interface_info\u003dinterface_info)"},{"line_number":690,"context_line":""},{"line_number":691,"context_line":"        return self._make_router_interface_info("},{"line_number":692,"context_line":"            router.id, port[\u0027tenant_id\u0027], port[\u0027id\u0027], subnets[-1][\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba63e191_fcb62689","line":689,"range":{"start_line":686,"start_character":24,"end_line":689,"end_character":53},"updated":"2016-01-19 20:45:33.000000000","message":"nit: With so many arguments, I think putting one argument per line improves readability.  So that I don\u0027t have to visually parse for commas.","commit_id":"5f5d6cc38fea4d31195f8417d0f7fbfec7192dc6"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"de0e3911f0707b811e2caf8978805e3f33e671e1","unresolved":false,"context_lines":[{"line_number":798,"context_line":"            gw_network_id \u003d router.gw_port.network_id"},{"line_number":799,"context_line":""},{"line_number":800,"context_line":"        registry.notify(resources.ROUTER_INTERFACE, events.AFTER_DELETE,"},{"line_number":801,"context_line":"                        self, cidrs\u003d[x[\u0027cidr\u0027] for x in subnets],"},{"line_number":802,"context_line":"                        network_id\u003dgw_network_id)"},{"line_number":803,"context_line":"        return self._make_router_interface_info(router_id, port[\u0027tenant_id\u0027],"},{"line_number":804,"context_line":"                                                port[\u0027id\u0027], subnets[0][\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba63e191_9ca60a52","line":801,"range":{"start_line":801,"start_character":28,"end_line":801,"end_character":30},"updated":"2016-01-19 20:45:33.000000000","message":"ditto (L689)","commit_id":"5f5d6cc38fea4d31195f8417d0f7fbfec7192dc6"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"de0e3911f0707b811e2caf8978805e3f33e671e1","unresolved":false,"context_lines":[{"line_number":995,"context_line":"                \u0027next_hop\u0027: next_hop,"},{"line_number":996,"context_line":"                \u0027context\u0027: context}"},{"line_number":997,"context_line":"        registry.notify(resources.FLOATING_IP, events.AFTER_UPDATE,"},{"line_number":998,"context_line":"                        self._update_fip_assoc, **args)"},{"line_number":999,"context_line":""},{"line_number":1000,"context_line":"    def _is_ipv4_network(self, context, net_id):"},{"line_number":1001,"context_line":"        net \u003d self._core_plugin._get_network(context, net_id)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba63e191_3c611e3a","line":998,"range":{"start_line":998,"start_character":48,"end_line":998,"end_character":54},"updated":"2016-01-19 20:45:33.000000000","message":"I\u0027d say pick one way or the other for this patch and, at least, be consistent within the patch.\n\nJust my opinion, I like adding the new code just passing them as regular old keyword arguments like L802 (network_id\u003dgw_network_id) and leave existing code as it is.","commit_id":"5f5d6cc38fea4d31195f8417d0f7fbfec7192dc6"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"8b5e24cfd2adcfd42accad1f57c914e57ec4516b","unresolved":false,"context_lines":[{"line_number":366,"context_line":"        try:"},{"line_number":367,"context_line":"            registry.notify("},{"line_number":368,"context_line":"                resources.ROUTER_GATEWAY, events.BEFORE_DELETE, self,"},{"line_number":369,"context_line":"                context\u003dcontext, router_id\u003drouter_id)"},{"line_number":370,"context_line":"        except exceptions.CallbackFailure as e:"},{"line_number":371,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":372,"context_line":"                # NOTE(armax): preserve old check\u0027s behavior"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba63e191_2bba3324","line":369,"range":{"start_line":369,"start_character":16,"end_line":369,"end_character":52},"updated":"2016-01-19 21:51:24.000000000","message":"Revert this change. L366 - L369.  It is just too far out of scope.","commit_id":"fd8c25df37996ddc86cf0370cb55eb8324dcf39f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"74dbec09235ba141d19b909cbe90814daa710d7d","unresolved":false,"context_lines":[{"line_number":991,"context_line":"            gw_port \u003d router.gw_port"},{"line_number":992,"context_line":"            for fixed_ip in gw_port.fixed_ips:"},{"line_number":993,"context_line":"                addr \u003d netaddr.IPAddress(fixed_ip.ip_address)"},{"line_number":994,"context_line":"                if addr.version \u003d\u003d 4:"},{"line_number":995,"context_line":"                    next_hop \u003d fixed_ip.ip_address"},{"line_number":996,"context_line":"                    break"},{"line_number":997,"context_line":"        args \u003d {\u0027fixed_ip_address\u0027: internal_ip_address,"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba63e191_8b21dfb6","line":994,"range":{"start_line":994,"start_character":35,"end_line":994,"end_character":36},"updated":"2016-01-19 22:10:34.000000000","message":"I almost hate to bring this up.  But, should we just do it like this *just in case* ?\n\n  internal_address_version \u003d netaddr.IPAddress(internal_ip_address).version\n  if addr.version \u003d internal_ip_address.version:\n      next_hop \u003d ...\n      break","commit_id":"db34da761520cf87d457a9ccd6c4fbc20c1cc4e9"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"b42672b5cc9e515788f94a9771df900bebe13f3b","unresolved":false,"context_lines":[{"line_number":991,"context_line":"            gw_port \u003d router.gw_port"},{"line_number":992,"context_line":"            for fixed_ip in gw_port.fixed_ips:"},{"line_number":993,"context_line":"                addr \u003d netaddr.IPAddress(fixed_ip.ip_address)"},{"line_number":994,"context_line":"                if addr.version \u003d\u003d 4:"},{"line_number":995,"context_line":"                    next_hop \u003d fixed_ip.ip_address"},{"line_number":996,"context_line":"                    break"},{"line_number":997,"context_line":"        args \u003d {\u0027fixed_ip_address\u0027: internal_ip_address,"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba63e191_bd12de60","line":994,"range":{"start_line":994,"start_character":35,"end_line":994,"end_character":36},"in_reply_to":"ba63e191_16dc3211","updated":"2016-01-20 02:22:27.000000000","message":"I only object to Floating IPv6 - no thank you :)\n\nl3_constants.IP_VERSION_4 would be the constant","commit_id":"db34da761520cf87d457a9ccd6c4fbc20c1cc4e9"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"2711ff9e435216eacf2cea2643b0dc1190a5130e","unresolved":false,"context_lines":[{"line_number":991,"context_line":"            gw_port \u003d router.gw_port"},{"line_number":992,"context_line":"            for fixed_ip in gw_port.fixed_ips:"},{"line_number":993,"context_line":"                addr \u003d netaddr.IPAddress(fixed_ip.ip_address)"},{"line_number":994,"context_line":"                if addr.version \u003d\u003d 4:"},{"line_number":995,"context_line":"                    next_hop \u003d fixed_ip.ip_address"},{"line_number":996,"context_line":"                    break"},{"line_number":997,"context_line":"        args \u003d {\u0027fixed_ip_address\u0027: internal_ip_address,"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba63e191_16dc3211","line":994,"range":{"start_line":994,"start_character":35,"end_line":994,"end_character":36},"in_reply_to":"ba63e191_8b21dfb6","updated":"2016-01-19 22:24:00.000000000","message":"What color should the bike shed be????  I jest, but do we really envision IPv6 floating IP\u0027s?  I suppose we could use a constant instead of a magic number here if someone really objects....","commit_id":"db34da761520cf87d457a9ccd6c4fbc20c1cc4e9"}]}
