)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"53952d57c2b0cae57e18aaf7e897f17e47236a82","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This fix skips the check of if gateway IP is inside"},{"line_number":16,"context_line":"subnet when subnet is IPv6 and gateway IP is Link"},{"line_number":17,"context_line":"Local."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: I8623bfe5949808b0562ea9915fa6155a83fdc294"},{"line_number":20,"context_line":"Closes-Bug: 1284518"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAAU3%2F%2FbkQ%3D","line":17,"updated":"2014-02-26 17:28:12.000000000","message":"The patch apply to normal ports as well. Suggest changing the commit message to reflect it if that\u0027s the intent.","commit_id":"995a409acd8becc09ae3b25328deeceef4d08bae"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"41d03c3211ad72a9792c42515661834f4b7178b4","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This fix skips the check of if gateway IP is inside"},{"line_number":16,"context_line":"subnet when subnet is IPv6 and gateway IP is Link"},{"line_number":17,"context_line":"Local."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: I8623bfe5949808b0562ea9915fa6155a83fdc294"},{"line_number":20,"context_line":"Closes-Bug: 1284518"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAAVX%2F%2F9N0%3D","line":17,"in_reply_to":"AAAAU3%2F%2FbkQ%3D","updated":"2014-02-27 06:31:45.000000000","message":"will do in next patch.","commit_id":"995a409acd8becc09ae3b25328deeceef4d08bae"}],"neutron/db/db_base_plugin_v2.py":[{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"4ca39c7a4c343ec3aab764f6b6b0b0eee0a1a291","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                    is_link_local \u003d False"},{"line_number":580,"context_line":"                    ip_address \u003d fixed[\u0027ip_address\u0027]"},{"line_number":581,"context_line":"                    ip \u003d netaddr.IPAddress(ip_address)"},{"line_number":582,"context_line":"                    is_link_local \u003d ip.is_link_local()"},{"line_number":583,"context_line":"                    if (not is_link_local and not"},{"line_number":584,"context_line":"                        NeutronDbPluginV2._check_subnet_ip(subnet[\u0027cidr\u0027],"},{"line_number":585,"context_line":"                                                           ip_address)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAU3%2F%2Foq0%3D","line":582,"updated":"2014-02-25 14:50:02.000000000","message":"This could be combined into one line. May get close to the 79 char limit, but we get rid of some temporary variables. \n\nis_link_local \u003d netaddr.IPAddress(fixed[ip_address\u0027]).is_link_local()","commit_id":"995a409acd8becc09ae3b25328deeceef4d08bae"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"41d03c3211ad72a9792c42515661834f4b7178b4","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                    is_link_local \u003d False"},{"line_number":580,"context_line":"                    ip_address \u003d fixed[\u0027ip_address\u0027]"},{"line_number":581,"context_line":"                    ip \u003d netaddr.IPAddress(ip_address)"},{"line_number":582,"context_line":"                    is_link_local \u003d ip.is_link_local()"},{"line_number":583,"context_line":"                    if (not is_link_local and not"},{"line_number":584,"context_line":"                        NeutronDbPluginV2._check_subnet_ip(subnet[\u0027cidr\u0027],"},{"line_number":585,"context_line":"                                                           ip_address)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAVX%2F%2F9NA%3D","line":582,"in_reply_to":"AAAAU3%2F%2FaQ8%3D","updated":"2014-02-27 06:31:45.000000000","message":"Thanks, Sean. Will try this.","commit_id":"995a409acd8becc09ae3b25328deeceef4d08bae"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"28bfe63e4408e51ff2fc0f5314ff706ced75caff","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                    is_link_local \u003d False"},{"line_number":580,"context_line":"                    ip_address \u003d fixed[\u0027ip_address\u0027]"},{"line_number":581,"context_line":"                    ip \u003d netaddr.IPAddress(ip_address)"},{"line_number":582,"context_line":"                    is_link_local \u003d ip.is_link_local()"},{"line_number":583,"context_line":"                    if (not is_link_local and not"},{"line_number":584,"context_line":"                        NeutronDbPluginV2._check_subnet_ip(subnet[\u0027cidr\u0027],"},{"line_number":585,"context_line":"                                                           ip_address)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAU3%2F%2FaQ8%3D","line":582,"in_reply_to":"AAAAU3%2F%2Fis4%3D","updated":"2014-02-26 19:47:37.000000000","message":"You could add a newline where the parens is:\n\nis_link_local \u003d netaddr.IPAddress(\n\nthen continue it on the next line","commit_id":"995a409acd8becc09ae3b25328deeceef4d08bae"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"a851db0310ad0b312a344fa81bf162ebfb6412cc","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                    is_link_local \u003d False"},{"line_number":580,"context_line":"                    ip_address \u003d fixed[\u0027ip_address\u0027]"},{"line_number":581,"context_line":"                    ip \u003d netaddr.IPAddress(ip_address)"},{"line_number":582,"context_line":"                    is_link_local \u003d ip.is_link_local()"},{"line_number":583,"context_line":"                    if (not is_link_local and not"},{"line_number":584,"context_line":"                        NeutronDbPluginV2._check_subnet_ip(subnet[\u0027cidr\u0027],"},{"line_number":585,"context_line":"                                                           ip_address)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAU3%2F%2Fis4%3D","line":582,"in_reply_to":"AAAAU3%2F%2Foq0%3D","updated":"2014-02-26 01:48:15.000000000","message":"yeah, the length limit is exactly the reason I used a temporary variable. let me see what I can do to avoid the variable.","commit_id":"995a409acd8becc09ae3b25328deeceef4d08bae"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"5f1206fcf4eedef914d0a3e315b684a4efa5b8d8","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                    is_link_local \u003d False"},{"line_number":580,"context_line":"                    ip_address \u003d fixed[\u0027ip_address\u0027]"},{"line_number":581,"context_line":"                    ip \u003d netaddr.IPAddress(ip_address)"},{"line_number":582,"context_line":"                    is_link_local \u003d ip.is_link_local()"},{"line_number":583,"context_line":"                    if (not is_link_local and not"},{"line_number":584,"context_line":"                        NeutronDbPluginV2._check_subnet_ip(subnet[\u0027cidr\u0027],"},{"line_number":585,"context_line":"                                                           ip_address)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAVX%2F%2F7xA%3D","line":582,"in_reply_to":"AAAAVX%2F%2F9NA%3D","updated":"2014-02-27 09:20:07.000000000","message":"it turns out there is pep8 indent requirement as well so even if I break it into two lines, it\u0027s still longer than 79. So guess I need to use a variable anyway.","commit_id":"995a409acd8becc09ae3b25328deeceef4d08bae"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"daf3256c8d6654ea62d48a048cf72cdae308eff8","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                    is_link_local \u003d False"},{"line_number":580,"context_line":"                    ip_address \u003d fixed[\u0027ip_address\u0027]"},{"line_number":581,"context_line":"                    ip \u003d netaddr.IPAddress(ip_address)"},{"line_number":582,"context_line":"                    is_link_local \u003d ip.is_link_local()"},{"line_number":583,"context_line":"                    if (not is_link_local and not"},{"line_number":584,"context_line":"                        NeutronDbPluginV2._check_subnet_ip(subnet[\u0027cidr\u0027],"},{"line_number":585,"context_line":"                                                           ip_address)):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAVX%2F%2FrHc%3D","line":582,"updated":"2014-03-01 08:12:36.000000000","message":"There is no need to set is_link_local to False. L.579-582 can be:\n\n  ip \u003d netaddr.IPAddress(fixed[\u0027ip_address\u0027])\n  is_link_local \u003d ip.is_link_local()","commit_id":"75fae04de166bf003012b1c848051f3afe3394e4"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"b40c7597c6ff174ad560ca50c84acad44c3e36c9","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                    is_link_local \u003d False"},{"line_number":580,"context_line":"                    ip_address \u003d fixed[\u0027ip_address\u0027]"},{"line_number":581,"context_line":"                    ip \u003d netaddr.IPAddress(ip_address)"},{"line_number":582,"context_line":"                    is_link_local \u003d ip.is_link_local()"},{"line_number":583,"context_line":"                    if (not is_link_local and not"},{"line_number":584,"context_line":"                        NeutronDbPluginV2._check_subnet_ip(subnet[\u0027cidr\u0027],"},{"line_number":585,"context_line":"                                                           ip_address)):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAVX%2F%2Fo9g%3D","line":582,"in_reply_to":"AAAAVX%2F%2FrHc%3D","updated":"2014-03-02 06:47:36.000000000","message":"will fix in next patch","commit_id":"75fae04de166bf003012b1c848051f3afe3394e4"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"881cd1c975863c5a64d2db5c7e511ed8daea63ed","unresolved":false,"context_lines":[{"line_number":570,"context_line":"                # Ensure that the IP is valid on the subnet"},{"line_number":571,"context_line":"                # For IPv6 subnet, allow using link local address."},{"line_number":572,"context_line":"                # Because when port is used as gateway, RA can only be sent"},{"line_number":573,"context_line":"                # from link local address"},{"line_number":574,"context_line":"                if not found:"},{"line_number":575,"context_line":"                    ip_address \u003d fixed[\u0027ip_address\u0027]"},{"line_number":576,"context_line":"                    ip \u003d netaddr.IPAddress(ip_address)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAWH%2F9tuA%3D","line":573,"updated":"2014-04-02 16:15:14.000000000","message":"valid \u003d (\n     found or\n     netaddr.IPAddress(fixed[\u0027ip_address\u0027]).is_link_local() or\n     NeutronDbPluginV2._check_subnet_ip(subnet[\u0027cidr\u0027], fixed[\u0027ip_address\u0027])\n)\n\nif not valid:\n    raise n_exc.InvalidInput(...)","commit_id":"e8f350732b244671c27382c04b0fe9c6fda2d28a"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"1ec092f0c5d5e3a894d0a4c981c5f8b2c8517801","unresolved":false,"context_lines":[{"line_number":570,"context_line":"                # Ensure that the IP is valid on the subnet"},{"line_number":571,"context_line":"                # For IPv6 subnet, allow using link local address."},{"line_number":572,"context_line":"                # Because when port is used as gateway, RA can only be sent"},{"line_number":573,"context_line":"                # from link local address"},{"line_number":574,"context_line":"                if not found:"},{"line_number":575,"context_line":"                    ip_address \u003d fixed[\u0027ip_address\u0027]"},{"line_number":576,"context_line":"                    ip \u003d netaddr.IPAddress(ip_address)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAWH%2F9o3c%3D","line":573,"in_reply_to":"AAAAWH%2F9tuA%3D","updated":"2014-04-03 06:46:05.000000000","message":"Mark, thanks for the suggestion. I will address in next patch.","commit_id":"e8f350732b244671c27382c04b0fe9c6fda2d28a"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"ec1faaf4c9cc31e1d98991cabb1555a4d0f49b8e","unresolved":false,"context_lines":[{"line_number":563,"context_line":"                # Ensure that the IP is valid on the subnet"},{"line_number":564,"context_line":"                # For IPv6 subnet, allow using link local address."},{"line_number":565,"context_line":"                # Because when port is used as gateway, RA can only be sent"},{"line_number":566,"context_line":"                # from link local address"},{"line_number":567,"context_line":"                valid \u003d ("},{"line_number":568,"context_line":"                    found or"},{"line_number":569,"context_line":"                    netaddr.IPAddress(fixed[\u0027ip_address\u0027]).is_link_local() or"}],"source_content_type":"text/x-python","patch_set":5,"id":"7adec928_32bdaa03","line":566,"updated":"2014-05-21 05:28:24.000000000","message":"From what I can tell, this change boils down to the addition of 3 comment lines and one line of code to check is_link_local.  Why not just do that?  I think the gratuitous refactoring and other whitespace changes could be avoided and reviewers could grok it much more easily.","commit_id":"03893dcbb968cec632dd1d1e9307673e86cc96fd"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"8ff9fda1915a4c2bc8c00d910cdf1478ae220dcf","unresolved":false,"context_lines":[{"line_number":563,"context_line":"                # Ensure that the IP is valid on the subnet"},{"line_number":564,"context_line":"                # For IPv6 subnet, allow using link local address."},{"line_number":565,"context_line":"                # Because when port is used as gateway, RA can only be sent"},{"line_number":566,"context_line":"                # from link local address"},{"line_number":567,"context_line":"                valid \u003d ("},{"line_number":568,"context_line":"                    found or"},{"line_number":569,"context_line":"                    netaddr.IPAddress(fixed[\u0027ip_address\u0027]).is_link_local() or"}],"source_content_type":"text/x-python","patch_set":5,"id":"7adec928_ca0f3b87","line":566,"in_reply_to":"7adec928_32bdaa03","updated":"2014-05-22 14:09:08.000000000","message":"Carl, thanks a lot for your comment! Actually we were thinking about if there are use cases that a subnet with link local address gateway should be attached to router. I am discussing this with team in this email thread:\n\nhttp://lists.openstack.org/pipermail/openstack-dev/2014-May/034914.html\n\nI will put this code review in progress until we have some conclusions. Please feel free to let me know your thoughts.","commit_id":"03893dcbb968cec632dd1d1e9307673e86cc96fd"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"ec1faaf4c9cc31e1d98991cabb1555a4d0f49b8e","unresolved":false,"context_lines":[{"line_number":564,"context_line":"                # For IPv6 subnet, allow using link local address."},{"line_number":565,"context_line":"                # Because when port is used as gateway, RA can only be sent"},{"line_number":566,"context_line":"                # from link local address"},{"line_number":567,"context_line":"                valid \u003d ("},{"line_number":568,"context_line":"                    found or"},{"line_number":569,"context_line":"                    netaddr.IPAddress(fixed[\u0027ip_address\u0027]).is_link_local() or"},{"line_number":570,"context_line":"                    NeutronDbPluginV2._check_subnet_ip(subnet[\u0027cidr\u0027],"}],"source_content_type":"text/x-python","patch_set":5,"id":"7adec928_72cf32b4","line":567,"updated":"2014-05-21 05:28:24.000000000","message":"This seems like a gratuitous application of De Morgan\u0027s law.  Any particular reason?  It makes it more difficult for reviewers to review what is otherwise a very simple change.  I can see no advantage to its application.","commit_id":"03893dcbb968cec632dd1d1e9307673e86cc96fd"}],"neutron/tests/unit/test_db_plugin.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"daf3256c8d6654ea62d48a048cf72cdae308eff8","unresolved":false,"context_lines":[{"line_number":843,"context_line":"                self._delete(\u0027ports\u0027, port[\u0027port\u0027][\u0027id\u0027])"},{"line_number":844,"context_line":""},{"line_number":845,"context_line":"    def test_create_port_ipv6_link_local(self):"},{"line_number":846,"context_line":"        with self.network(shared\u003dTrue) as network:"},{"line_number":847,"context_line":"            with self.subnet(network\u003dnetwork,"},{"line_number":848,"context_line":"                             cidr\u003d\u00272001:db8:a::/64\u0027,"},{"line_number":849,"context_line":"                             ip_version\u003d6) as subnet:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAVX%2F%2FrHQ%3D","line":846,"updated":"2014-03-01 08:12:36.000000000","message":"shared\u003dTrue is unnecessary.\n\nThe comment applies to other ipv6 tests added.","commit_id":"75fae04de166bf003012b1c848051f3afe3394e4"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"b40c7597c6ff174ad560ca50c84acad44c3e36c9","unresolved":false,"context_lines":[{"line_number":843,"context_line":"                self._delete(\u0027ports\u0027, port[\u0027port\u0027][\u0027id\u0027])"},{"line_number":844,"context_line":""},{"line_number":845,"context_line":"    def test_create_port_ipv6_link_local(self):"},{"line_number":846,"context_line":"        with self.network(shared\u003dTrue) as network:"},{"line_number":847,"context_line":"            with self.subnet(network\u003dnetwork,"},{"line_number":848,"context_line":"                             cidr\u003d\u00272001:db8:a::/64\u0027,"},{"line_number":849,"context_line":"                             ip_version\u003d6) as subnet:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAVX%2F%2Fo8Q%3D","line":846,"in_reply_to":"AAAAVX%2F%2FrHQ%3D","updated":"2014-03-02 06:47:36.000000000","message":"Will fix this and the rest comments in next patch.","commit_id":"75fae04de166bf003012b1c848051f3afe3394e4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"daf3256c8d6654ea62d48a048cf72cdae308eff8","unresolved":false,"context_lines":[{"line_number":855,"context_line":"                port_res \u003d self._create_port(self.fmt,"},{"line_number":856,"context_line":"                                             network[\u0027network\u0027][\u0027id\u0027],"},{"line_number":857,"context_line":"                                             webob.exc.HTTPCreated.code,"},{"line_number":858,"context_line":"                                             tenant_id\u003d\u0027another_tenant\u0027,"},{"line_number":859,"context_line":"                                             fixed_ips\u003d[fixed_ip],"},{"line_number":860,"context_line":"                                             set_context\u003dFalse)"},{"line_number":861,"context_line":"                port \u003d self.deserialize(self.fmt, port_res)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAVX%2F%2FrGw%3D","line":858,"updated":"2014-03-01 08:12:36.000000000","message":"not required.","commit_id":"75fae04de166bf003012b1c848051f3afe3394e4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"daf3256c8d6654ea62d48a048cf72cdae308eff8","unresolved":false,"context_lines":[{"line_number":857,"context_line":"                                             webob.exc.HTTPCreated.code,"},{"line_number":858,"context_line":"                                             tenant_id\u003d\u0027another_tenant\u0027,"},{"line_number":859,"context_line":"                                             fixed_ips\u003d[fixed_ip],"},{"line_number":860,"context_line":"                                             set_context\u003dFalse)"},{"line_number":861,"context_line":"                port \u003d self.deserialize(self.fmt, port_res)"},{"line_number":862,"context_line":"                for k, v in keys:"},{"line_number":863,"context_line":"                    self.assertEqual(port[\u0027port\u0027][k], v)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAVX%2F%2FrGs%3D","line":860,"updated":"2014-03-01 08:12:36.000000000","message":"Not required.","commit_id":"75fae04de166bf003012b1c848051f3afe3394e4"}]}
