)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"9e4d864aafea67f73dfc85b445fc85e6fedc644b","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This changes changes the validation of IPv6 DHCP."},{"line_number":10,"context_line":"enable_dhcp cannot be set to True when ipv6_address_mode"},{"line_number":11,"context_line":"is None or SLAAC. enable_dhcp cannot be set to False when"},{"line_number":12,"context_line":"ipv6_address_mode is dhcpv6_stateful or dhcpv6_stateless."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This change could stop DHCP agent from creating DHCP port"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"3a961159_f34a5fac","line":11,"updated":"2015-01-09 18:29:26.000000000","message":"I\u0027m a little unclear about this. Do we not already have logic that prevents the ipv6 attributes from being set if enable_dhcp is False? Is it even possible to set the ipv6 attributes when enable_dhcp is false?","commit_id":"1764b344619390a55381f6323a8d2fdee22f8f25"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"4332883f85d3887ab016febcc1b55677ba8619b6","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This changes changes the validation of IPv6 DHCP."},{"line_number":10,"context_line":"enable_dhcp cannot be set to True when ipv6_address_mode"},{"line_number":11,"context_line":"is None or SLAAC. enable_dhcp cannot be set to False when"},{"line_number":12,"context_line":"ipv6_address_mode is dhcpv6_stateful or dhcpv6_stateless."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This change could stop DHCP agent from creating DHCP port"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"3a961159_8f763ca2","line":11,"in_reply_to":"3a961159_f34a5fac","updated":"2015-01-12 02:28:14.000000000","message":"I changed that logic so ipv6 attributes can be set when enable_dhcp is False. As long as address mode is dhcpv6_stateful or dhcpv6_stateless.","commit_id":"1764b344619390a55381f6323a8d2fdee22f8f25"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"9e4d864aafea67f73dfc85b445fc85e6fedc644b","unresolved":false,"context_lines":[{"line_number":15,"context_line":"and spawn dnsmasq process when subnet is IPv6 and"},{"line_number":16,"context_line":"IPv6 address mode is None or SLAAC."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"DocImpact"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I1e901ec3a3faf9f4215f6fe040fe38bdd4de1e2a"},{"line_number":21,"context_line":"Closes-Bug:1407573"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"3a961159_1348cbb2","line":18,"updated":"2015-01-09 18:29:26.000000000","message":"This will also need APIImpact","commit_id":"1764b344619390a55381f6323a8d2fdee22f8f25"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"4332883f85d3887ab016febcc1b55677ba8619b6","unresolved":false,"context_lines":[{"line_number":15,"context_line":"and spawn dnsmasq process when subnet is IPv6 and"},{"line_number":16,"context_line":"IPv6 address mode is None or SLAAC."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"DocImpact"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I1e901ec3a3faf9f4215f6fe040fe38bdd4de1e2a"},{"line_number":21,"context_line":"Closes-Bug:1407573"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"3a961159_af6bf8b7","line":18,"in_reply_to":"3a961159_1348cbb2","updated":"2015-01-12 02:28:14.000000000","message":"OK. Will add in next patch.","commit_id":"1764b344619390a55381f6323a8d2fdee22f8f25"}],"neutron/agent/linux/dhcp.py":[{"author":{"_account_id":12076,"name":"Zhiyuan Cai","email":"luckyvega.g@gmail.com","username":"zhiyuan_cai"},"change_message_id":"253ed593d04c14b6fbcb25532072aef8f5975150","unresolved":false,"context_lines":[{"line_number":199,"context_line":"                subnet.ip_version \u003d\u003d 6 and"},{"line_number":200,"context_line":"                getattr(subnet, \u0027ipv6_address_mode\u0027, None) and"},{"line_number":201,"context_line":"                (getattr(subnet, \u0027ipv6_address_mode\u0027, None) !\u003d"},{"line_number":202,"context_line":"                 constants.IPV6_SLAAC)):"},{"line_number":203,"context_line":"                return True"},{"line_number":204,"context_line":"        return False"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_4053f06b","line":202,"updated":"2015-01-05 08:49:36.000000000","message":"Missing enable_dhcp check for ipv6? Also a variable may be used to avoid duplicate getattr(subnet, \u0027ipv6_address_mod\u0027, None).","commit_id":"b6fab9b34473cdcd1415bdd535a9c1edb2984a2a"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"93090375445e302e808fc477b5c39d4bcde14a56","unresolved":false,"context_lines":[{"line_number":199,"context_line":"                subnet.ip_version \u003d\u003d 6 and"},{"line_number":200,"context_line":"                getattr(subnet, \u0027ipv6_address_mode\u0027, None) and"},{"line_number":201,"context_line":"                (getattr(subnet, \u0027ipv6_address_mode\u0027, None) !\u003d"},{"line_number":202,"context_line":"                 constants.IPV6_SLAAC)):"},{"line_number":203,"context_line":"                return True"},{"line_number":204,"context_line":"        return False"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_a842a0a8","line":202,"in_reply_to":"3a961159_061d6b62","updated":"2015-01-06 02:48:10.000000000","message":"When we enabled IPv6 for subnet, \"enable_dhcp\" is kept for IPv6 subnets for backward compatibility. ipv6_ra_mode and ipv6_address_mode can only be set when enable_dhcp is True. \n\nhttps://github.com/openstack/neutron/blob/b88f9df7339a576fbcdf481225bfc644a2a13b2f/neutron/db/db_base_plugin_v2.py#L794\n\nHowever, when ipv6_address_mode is None or SLAAC, dhcpv6 is NOT enabled. I am thinking of changing the attribute validation of enable_dhcp to \"enable_dhcp\u003dTrue is only validate for IPv6 subnet when ipv6_address_mode is dhcpv6-stateful or dhcpv6-stateless\".","commit_id":"b6fab9b34473cdcd1415bdd535a9c1edb2984a2a"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"231cc2e66a2376936325241110d6ae0a934e199e","unresolved":false,"context_lines":[{"line_number":199,"context_line":"                subnet.ip_version \u003d\u003d 6 and"},{"line_number":200,"context_line":"                getattr(subnet, \u0027ipv6_address_mode\u0027, None) and"},{"line_number":201,"context_line":"                (getattr(subnet, \u0027ipv6_address_mode\u0027, None) !\u003d"},{"line_number":202,"context_line":"                 constants.IPV6_SLAAC)):"},{"line_number":203,"context_line":"                return True"},{"line_number":204,"context_line":"        return False"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_061d6b62","line":202,"in_reply_to":"3a961159_4053f06b","updated":"2015-01-05 22:59:23.000000000","message":"It would be nice if we could wrap this complexity in the enable_dhcp property for the subnet object.","commit_id":"b6fab9b34473cdcd1415bdd535a9c1edb2984a2a"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"d27085e0c6a5a041a69482821da4b430d3aaed3a","unresolved":false,"context_lines":[{"line_number":199,"context_line":"            address_mode \u003d getattr(subnet, \u0027ipv6_address_mode\u0027, None)"},{"line_number":200,"context_line":"            if (subnet.ip_version \u003d\u003d 4 and subnet.enable_dhcp) or ("},{"line_number":201,"context_line":"                subnet.ip_version \u003d\u003d 6 and"},{"line_number":202,"context_line":"                address_mode and address_mode !\u003d constants.IPV6_SLAAC):"},{"line_number":203,"context_line":"                return True"},{"line_number":204,"context_line":"        return False"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa81d914_4a209649","line":202,"updated":"2015-01-28 20:07:36.000000000","message":"I think this might be able to be shortened to\nsubnet.ip_version \u003d\u003d6 and address_mode !\u003d constants.IPV6_SLAAC), the \"and address mode\" claus is redundant?","commit_id":"d50fb065383b6a060cb81aaf6ef0b264c9fcd918"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"5c3a7fe7fb80c6c8ef1aabef713faaa438b55b1f","unresolved":false,"context_lines":[{"line_number":199,"context_line":"            address_mode \u003d getattr(subnet, \u0027ipv6_address_mode\u0027, None)"},{"line_number":200,"context_line":"            if (subnet.ip_version \u003d\u003d 4 and subnet.enable_dhcp) or ("},{"line_number":201,"context_line":"                subnet.ip_version \u003d\u003d 6 and"},{"line_number":202,"context_line":"                address_mode and address_mode !\u003d constants.IPV6_SLAAC):"},{"line_number":203,"context_line":"                return True"},{"line_number":204,"context_line":"        return False"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa81d914_87627cab","line":202,"in_reply_to":"fa81d914_4a209649","updated":"2015-01-28 23:11:43.000000000","message":"In that case, subnet.enable_dhcp has to be checked for ipv6 as well. \n\nwould the following be better?\n\nif (subnet.enable_dhcp and (subnet.ip_version \u003d\u003d 4 or (subnet.ip_version \u003d\u003d 6 and address_mode !\u003d constants.IPV6_SLAAC)):","commit_id":"d50fb065383b6a060cb81aaf6ef0b264c9fcd918"},{"author":{"_account_id":11061,"name":"Alexey I. Froloff","email":"raorn@raorn.name","username":"raorn"},"change_message_id":"fe9265c5351731ebdc563fc1483aaa8dbfd17867","unresolved":false,"context_lines":[{"line_number":199,"context_line":"            address_mode \u003d getattr(subnet, \u0027ipv6_address_mode\u0027, None)"},{"line_number":200,"context_line":"            if (subnet.ip_version \u003d\u003d 4 and subnet.enable_dhcp) or ("},{"line_number":201,"context_line":"                subnet.ip_version \u003d\u003d 6 and"},{"line_number":202,"context_line":"                address_mode and address_mode !\u003d constants.IPV6_SLAAC):"},{"line_number":203,"context_line":"                return True"},{"line_number":204,"context_line":"        return False"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a1a9d01_ae055346","line":202,"in_reply_to":"fa81d914_646c6336","updated":"2015-09-30 18:08:00.000000000","message":"We\u0027ve been running several OS installation since Havana or earlier and all of our subnets (in provider networks)  have both ipv6_address_mode and ipv6_ra_mode unset.  Since we can not modify ipv6_address_mode (allow_put is False for this attr), this will break everything for us.  If address_mode is None, enable_dhcp option should be checked.","commit_id":"d50fb065383b6a060cb81aaf6ef0b264c9fcd918"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"e3471cffb6bdec6de6f9878c041d73e8f5b76e2e","unresolved":false,"context_lines":[{"line_number":199,"context_line":"            address_mode \u003d getattr(subnet, \u0027ipv6_address_mode\u0027, None)"},{"line_number":200,"context_line":"            if (subnet.ip_version \u003d\u003d 4 and subnet.enable_dhcp) or ("},{"line_number":201,"context_line":"                subnet.ip_version \u003d\u003d 6 and"},{"line_number":202,"context_line":"                address_mode and address_mode !\u003d constants.IPV6_SLAAC):"},{"line_number":203,"context_line":"                return True"},{"line_number":204,"context_line":"        return False"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa81d914_646c6336","line":202,"in_reply_to":"fa81d914_82032e41","updated":"2015-01-30 06:09:08.000000000","message":"I would say the first case is a kind of conflicted setting since user will expect different result from enable_dhcp and address mode. Shall we disallow this case during subnet create and update?","commit_id":"d50fb065383b6a060cb81aaf6ef0b264c9fcd918"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"74fa18a12fd8d5e6ba87f72e32a4e41f4e8192c9","unresolved":false,"context_lines":[{"line_number":199,"context_line":"            address_mode \u003d getattr(subnet, \u0027ipv6_address_mode\u0027, None)"},{"line_number":200,"context_line":"            if (subnet.ip_version \u003d\u003d 4 and subnet.enable_dhcp) or ("},{"line_number":201,"context_line":"                subnet.ip_version \u003d\u003d 6 and"},{"line_number":202,"context_line":"                address_mode and address_mode !\u003d constants.IPV6_SLAAC):"},{"line_number":203,"context_line":"                return True"},{"line_number":204,"context_line":"        return False"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa81d914_e35ec575","line":202,"in_reply_to":"fa81d914_87627cab","updated":"2015-01-29 02:13:40.000000000","message":"\"and address_mode\" is actually not redundant. When address_mode\u003dNone, we should not enable dhcp. However when we remove it from the if clause, True will be returned. Make sense?","commit_id":"d50fb065383b6a060cb81aaf6ef0b264c9fcd918"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"c73094f1fe6d2fcdbc2fa1df64d07de32f903de8","unresolved":false,"context_lines":[{"line_number":199,"context_line":"            address_mode \u003d getattr(subnet, \u0027ipv6_address_mode\u0027, None)"},{"line_number":200,"context_line":"            if (subnet.ip_version \u003d\u003d 4 and subnet.enable_dhcp) or ("},{"line_number":201,"context_line":"                subnet.ip_version \u003d\u003d 6 and"},{"line_number":202,"context_line":"                address_mode and address_mode !\u003d constants.IPV6_SLAAC):"},{"line_number":203,"context_line":"                return True"},{"line_number":204,"context_line":"        return False"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa81d914_82032e41","line":202,"in_reply_to":"fa81d914_e35ec575","updated":"2015-01-29 13:30:38.000000000","message":"I\u0027m confused as well, but these may be the cases to consider from subnet API\u0027s point of view:\n        enable_dhcp \u003d\u003d True, none of the modes are set\n        enable_dhcp \u003d\u003d True, address mode is set as non-SLAAC\n\nWhat do we do with the first case?","commit_id":"d50fb065383b6a060cb81aaf6ef0b264c9fcd918"}],"neutron/db/db_base_plugin_v2.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"5fe7f871bd52765e2a4cc2ad172403c349c788d2","unresolved":false,"context_lines":[{"line_number":794,"context_line":"    def _validate_ipv6_dhcp(self, address_mode, enable_dhcp):"},{"line_number":795,"context_line":"        if ((enable_dhcp and (not address_mode"},{"line_number":796,"context_line":"                              or address_mode \u003d\u003d constants.IPV6_SLAAC))"},{"line_number":797,"context_line":"            or (not enable_dhcp and address_mode in constants.IPV6_DHCP)):"},{"line_number":798,"context_line":"            msg \u003d _(\"ipv6_address_mode cannot be set to \u0027%(addr_mode)s\u0027 \""},{"line_number":799,"context_line":"                    \"when enable_dhcp is set to \u0027%(enable_dhcp)r\u0027\") % {"},{"line_number":800,"context_line":"                    \u0027addr_mode\u0027: address_mode,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a961159_5e43613e","line":797,"updated":"2015-01-13 15:36:21.000000000","message":"This test can be shortened to:\n\n  if enable_dhcp \u003d\u003d (address_mode in constants.IPV6_DHCP):\n\nThe parentheses are not needed but may be used for readability.","commit_id":"1764b344619390a55381f6323a8d2fdee22f8f25"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"9e4d864aafea67f73dfc85b445fc85e6fedc644b","unresolved":false,"context_lines":[{"line_number":825,"context_line":""},{"line_number":826,"context_line":"        # enable_dhcp is updated to True, disallow address_mode is updated"},{"line_number":827,"context_line":"        # to or originally None or SLAAC."},{"line_number":828,"context_line":"        if (\u0027enable_dhcp\u0027 in subnet and subnet[\u0027enable_dhcp\u0027]):"},{"line_number":829,"context_line":"            address_mode_set \u003d attributes.is_attr_set("},{"line_number":830,"context_line":"                subnet.get(\u0027ipv6_address_mode\u0027))"},{"line_number":831,"context_line":"            if (not address_mode_set or ("}],"source_content_type":"text/x-python","patch_set":4,"id":"3a961159_d34d63c7","line":828,"updated":"2015-01-09 18:29:26.000000000","message":"Should we do subnet.get(\u0027enable_dhcp\u0027, None) instead of checking if the key exists then fetching?","commit_id":"1764b344619390a55381f6323a8d2fdee22f8f25"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"4332883f85d3887ab016febcc1b55677ba8619b6","unresolved":false,"context_lines":[{"line_number":825,"context_line":""},{"line_number":826,"context_line":"        # enable_dhcp is updated to True, disallow address_mode is updated"},{"line_number":827,"context_line":"        # to or originally None or SLAAC."},{"line_number":828,"context_line":"        if (\u0027enable_dhcp\u0027 in subnet and subnet[\u0027enable_dhcp\u0027]):"},{"line_number":829,"context_line":"            address_mode_set \u003d attributes.is_attr_set("},{"line_number":830,"context_line":"                subnet.get(\u0027ipv6_address_mode\u0027))"},{"line_number":831,"context_line":"            if (not address_mode_set or ("}],"source_content_type":"text/x-python","patch_set":4,"id":"3a961159_8f4f1c6a","line":828,"in_reply_to":"3a961159_d34d63c7","updated":"2015-01-12 02:28:14.000000000","message":"Sure.","commit_id":"1764b344619390a55381f6323a8d2fdee22f8f25"}],"neutron/tests/unit/test_db_plugin.py":[{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"9e4d864aafea67f73dfc85b445fc85e6fedc644b","unresolved":false,"context_lines":[{"line_number":1237,"context_line":"        with self.subnet("},{"line_number":1238,"context_line":"            cidr\u003d\u00272607:f0d0:1002:51::/64\u0027,"},{"line_number":1239,"context_line":"            ip_version\u003d6,"},{"line_number":1240,"context_line":"            enable_dhcp\u003dFalse,"},{"line_number":1241,"context_line":"            ipv6_address_mode\u003dconstants.IPV6_SLAAC,"},{"line_number":1242,"context_line":"            gateway_ip\u003dattributes.ATTR_NOT_SPECIFIED) as subnet:"},{"line_number":1243,"context_line":"            with self.port(subnet\u003dsubnet) as port:"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a961159_33c4e70d","line":1240,"updated":"2015-01-09 18:29:26.000000000","message":"Wait, we\u0027re now creating subnets with enable_dhcp false and setting the IPv6 attributes? I\u0027m going to have go back and re-read our meeting log from this past Tuesday but I don\u0027t remember us agreeing on this","commit_id":"1764b344619390a55381f6323a8d2fdee22f8f25"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"4332883f85d3887ab016febcc1b55677ba8619b6","unresolved":false,"context_lines":[{"line_number":1237,"context_line":"        with self.subnet("},{"line_number":1238,"context_line":"            cidr\u003d\u00272607:f0d0:1002:51::/64\u0027,"},{"line_number":1239,"context_line":"            ip_version\u003d6,"},{"line_number":1240,"context_line":"            enable_dhcp\u003dFalse,"},{"line_number":1241,"context_line":"            ipv6_address_mode\u003dconstants.IPV6_SLAAC,"},{"line_number":1242,"context_line":"            gateway_ip\u003dattributes.ATTR_NOT_SPECIFIED) as subnet:"},{"line_number":1243,"context_line":"            with self.port(subnet\u003dsubnet) as port:"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a961159_ef3d00be","line":1240,"in_reply_to":"3a961159_33c4e70d","updated":"2015-01-12 02:28:14.000000000","message":"That\u0027s my understanding from the meeting. Maybe I miss something?","commit_id":"1764b344619390a55381f6323a8d2fdee22f8f25"}],"neutron/tests/unit/test_linux_dhcp.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"ffc9c8119f351802efc96744d0bae55325db04e7","unresolved":false,"context_lines":[{"line_number":626,"context_line":"            self.assertTrue(mocks[\u0027interface_name\u0027].__set__.called)"},{"line_number":627,"context_line":"            self.assertTrue(mocks[\u0027_ensure_network_conf_dir\u0027].called)"},{"line_number":628,"context_line":""},{"line_number":629,"context_line":"    def test_enable_v6_network(self):"},{"line_number":630,"context_line":"        attrs_to_mock \u003d dict("},{"line_number":631,"context_line":"            [(a, mock.DEFAULT) for a in"},{"line_number":632,"context_line":"                [\u0027active\u0027, \u0027get_conf_file_name\u0027, \u0027interface_name\u0027]]"}],"source_content_type":"text/x-python","patch_set":5,"id":"da9b358b_b718801f","line":629,"updated":"2015-04-01 11:36:51.000000000","message":"This is too complicated. I can\u0027t tell what it\u0027s testing. Test the _enable_dhcp function directly. All you have to do is mock some networks to return in that case and then make assertions about the various return values.","commit_id":"d50fb065383b6a060cb81aaf6ef0b264c9fcd918"}]}
