)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2db92e63ff374f133bac1a701797789d30897681","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     watanabe.isao \u003czou.yun@jp.fujitsu.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-04-27 15:25:55 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"When disabling dhcp, delete dhcp port properly"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When setting enable_dhcp parameter of subnet to False, the dhcp port"},{"line_number":10,"context_line":"of this subnet is included in the port_fixed_ips, by mistake."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"3acd31a7_51c4133f","line":7,"updated":"2015-04-29 17:16:51.000000000","message":"This patch isn\u0027t deleting the port is it?\n\nTo me it looks like it just removes the IP addresses. Is that right?","commit_id":"510b2a5126b2323b8e61a944705dfa861be4dda9"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"eef6697e990f7bfa036b113723a2aa5341f5f9f6","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     watanabe.isao \u003czou.yun@jp.fujitsu.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-04-27 15:25:55 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"When disabling dhcp, delete dhcp port properly"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When setting enable_dhcp parameter of subnet to False, the dhcp port"},{"line_number":10,"context_line":"of this subnet is included in the port_fixed_ips, by mistake."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a0c5dc1_3e55ca4f","line":7,"in_reply_to":"3acd31a7_51c4133f","updated":"2015-05-13 04:51:41.000000000","message":"Yes,  you are right.","commit_id":"510b2a5126b2323b8e61a944705dfa861be4dda9"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"90b795fed40a3bc194cf9a93c89d479868fe082b","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"When disabling dhcp, delete fixed ip properly"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When setting enable_dhcp parameter of subnet to False, the fixed ip of"},{"line_number":10,"context_line":"dhcp port of this subnet is not been removed."},{"line_number":11,"context_line":"Also a resync will be triggered."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"5afe65bd_8e00cd02","line":9,"updated":"2015-06-04 22:27:25.000000000","message":"nit:  I prefer to describe the change rather than the problem.","commit_id":"2acdbf3bac7f4a967e2ef8f98b2ac14fa0f7f861"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"1b830b3803c845f4edbf05616bc80fca927fa905","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"When disabling dhcp, delete fixed ip properly"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When setting enable_dhcp parameter of subnet to False, the fixed ip of"},{"line_number":10,"context_line":"dhcp port of this subnet is not been removed."},{"line_number":11,"context_line":"Also a resync will be triggered."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3afb71cf_e4ed8f26","line":9,"in_reply_to":"5afe65bd_8e00cd02","updated":"2015-06-05 01:11:57.000000000","message":"Thank you for your comment. I got you point. The problem should be distributed in bug report. I\u0027ll be more careful about this next time.","commit_id":"2acdbf3bac7f4a967e2ef8f98b2ac14fa0f7f861"}],"neutron/agent/linux/dhcp.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b0a922ecb220e8c90c3d5cd07ce46006332616d","unresolved":false,"context_lines":[{"line_number":875,"context_line":"                        raise exceptions.Conflict()"},{"line_number":876,"context_line":"                else:"},{"line_number":877,"context_line":"                    dhcp_port \u003d port"},{"line_number":878,"context_line":"                    for port_fixed_ip in dhcp_port[\u0027fixed_ips\u0027]:"},{"line_number":879,"context_line":"                        if port_fixed_ip[\u0027subnet_id\u0027] not in subnets:"},{"line_number":880,"context_line":"                            dhcp_port[\u0027fixed_ips\u0027].remove(port_fixed_ip)"},{"line_number":881,"context_line":"                # break since we found port that matches device_id"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_33c81d22","line":878,"updated":"2015-02-23 18:01:22.000000000","message":"I think this clean up should be executed even if dhcp_enabled_subnet_ids is not None, right? So it shouldn\u0027t be under the \u0027else\u0027","commit_id":"30a2c70cabefb601bcf7b75d4a12ca5bc91fc1a5"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"819f64a0f18300c64194db7cfa13f75d5217dd78","unresolved":false,"context_lines":[{"line_number":875,"context_line":"                        raise exceptions.Conflict()"},{"line_number":876,"context_line":"                else:"},{"line_number":877,"context_line":"                    dhcp_port \u003d port"},{"line_number":878,"context_line":"                    for port_fixed_ip in dhcp_port[\u0027fixed_ips\u0027]:"},{"line_number":879,"context_line":"                        if port_fixed_ip[\u0027subnet_id\u0027] not in subnets:"},{"line_number":880,"context_line":"                            dhcp_port[\u0027fixed_ips\u0027].remove(port_fixed_ip)"},{"line_number":881,"context_line":"                # break since we found port that matches device_id"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_9a7beb7a","line":878,"in_reply_to":"ba7be1f8_33c81d22","updated":"2015-02-27 04:09:15.000000000","message":"In \u0027if\u0027 block, enable_dhcp of subnet is ensured. The key to the problem is when in \u0027else\u0027 block some non enable_dhcp subnet may mix into dhcp_port from port.","commit_id":"30a2c70cabefb601bcf7b75d4a12ca5bc91fc1a5"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b0a922ecb220e8c90c3d5cd07ce46006332616d","unresolved":false,"context_lines":[{"line_number":876,"context_line":"                else:"},{"line_number":877,"context_line":"                    dhcp_port \u003d port"},{"line_number":878,"context_line":"                    for port_fixed_ip in dhcp_port[\u0027fixed_ips\u0027]:"},{"line_number":879,"context_line":"                        if port_fixed_ip[\u0027subnet_id\u0027] not in subnets:"},{"line_number":880,"context_line":"                            dhcp_port[\u0027fixed_ips\u0027].remove(port_fixed_ip)"},{"line_number":881,"context_line":"                # break since we found port that matches device_id"},{"line_number":882,"context_line":"                break"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_f3776500","line":879,"updated":"2015-02-23 18:01:22.000000000","message":"dhcp_enabled_subnet_ids instead of subnets would be more clear","commit_id":"30a2c70cabefb601bcf7b75d4a12ca5bc91fc1a5"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"819f64a0f18300c64194db7cfa13f75d5217dd78","unresolved":false,"context_lines":[{"line_number":876,"context_line":"                else:"},{"line_number":877,"context_line":"                    dhcp_port \u003d port"},{"line_number":878,"context_line":"                    for port_fixed_ip in dhcp_port[\u0027fixed_ips\u0027]:"},{"line_number":879,"context_line":"                        if port_fixed_ip[\u0027subnet_id\u0027] not in subnets:"},{"line_number":880,"context_line":"                            dhcp_port[\u0027fixed_ips\u0027].remove(port_fixed_ip)"},{"line_number":881,"context_line":"                # break since we found port that matches device_id"},{"line_number":882,"context_line":"                break"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_40eee4b5","line":879,"in_reply_to":"ba7be1f8_f3776500","updated":"2015-02-27 04:09:15.000000000","message":"Tested that if I changed as so. The problem will not be fixed. Also a runtime Error will occur in q-dhcp.log.\n\nConsidering this may because dhcp_enabled_subnet_ids has been removed nearly none in Line-863.","commit_id":"30a2c70cabefb601bcf7b75d4a12ca5bc91fc1a5"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"4b20785e7f33d3761733af1b1badfc32e8947d5f","unresolved":false,"context_lines":[{"line_number":875,"context_line":"                        raise exceptions.Conflict()"},{"line_number":876,"context_line":"                else:"},{"line_number":877,"context_line":"                    dhcp_port \u003d port"},{"line_number":878,"context_line":"                    for port_fixed_ip in dhcp_port[\u0027fixed_ips\u0027]:"},{"line_number":879,"context_line":"                        if port_fixed_ip[\u0027subnet_id\u0027] not in subnets:"},{"line_number":880,"context_line":"                            dhcp_port[\u0027fixed_ips\u0027].remove(port_fixed_ip)"},{"line_number":881,"context_line":"                # break since we found port that matches device_id"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_10e6dd16","line":878,"updated":"2015-02-27 16:29:08.000000000","message":"Let me try to explain better my point. If dhcp_enabled_subnet_ids is not None then this clean up won\u0027t be executed. Imagine you have 2 subnets for both enable_dhcp is true, then you turn it to false for one of them and this clean up won\u0027t be executed so you end up with the same bug, right?","commit_id":"c8c6228c499306e644519b4f76da29bd3efb5ad4"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"822347cbc584cc3000ba32b38b0abdc6064f7109","unresolved":false,"context_lines":[{"line_number":875,"context_line":"                        raise exceptions.Conflict()"},{"line_number":876,"context_line":"                else:"},{"line_number":877,"context_line":"                    dhcp_port \u003d port"},{"line_number":878,"context_line":"                    for port_fixed_ip in dhcp_port[\u0027fixed_ips\u0027]:"},{"line_number":879,"context_line":"                        if port_fixed_ip[\u0027subnet_id\u0027] not in subnets:"},{"line_number":880,"context_line":"                            dhcp_port[\u0027fixed_ips\u0027].remove(port_fixed_ip)"},{"line_number":881,"context_line":"                # break since we found port that matches device_id"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_e14f5332","line":878,"in_reply_to":"ba7be1f8_10e6dd16","updated":"2015-03-13 08:42:30.000000000","message":"Actuary confirmed that both fix the bug. And about your another comment...","commit_id":"c8c6228c499306e644519b4f76da29bd3efb5ad4"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"4b20785e7f33d3761733af1b1badfc32e8947d5f","unresolved":false,"context_lines":[{"line_number":877,"context_line":"                    dhcp_port \u003d port"},{"line_number":878,"context_line":"                    for port_fixed_ip in dhcp_port[\u0027fixed_ips\u0027]:"},{"line_number":879,"context_line":"                        if port_fixed_ip[\u0027subnet_id\u0027] not in subnets:"},{"line_number":880,"context_line":"                            dhcp_port[\u0027fixed_ips\u0027].remove(port_fixed_ip)"},{"line_number":881,"context_line":"                # break since we found port that matches device_id"},{"line_number":882,"context_line":"                break"},{"line_number":883,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_b6bd0a05","line":880,"updated":"2015-02-27 16:29:08.000000000","message":"here you actually remove the ips that are added at line 861.  I think we can do better... lines 861-864 can be replace by:\n\nips_needs_removal \u003d False\nif fixed_ip.subnet_id in dhcp_enabled_subnet_ids:\n    port_fixed_ips.append(\n         {\u0027subnet_id\u0027: fixed_ip.subnet_id,\n           \u0027ip_address\u0027: fixed_ip.ip_address})\n     dhcp_enabled_subnet_ids.remove(fixed_ip.subnet_id)\nelse:\n    ips_needs_removal  \u003d True\n\nThen you replace line 868 with\n\n\nif dhcp_enabled_subnet_ids or ips_needs_removal :\n\nSo you execute the update_dhcp_port with the correct fixed_ips . What do you think?\n\nIn any case here if you remove fixed_ips from the dhcp port you have to notify the plugin","commit_id":"c8c6228c499306e644519b4f76da29bd3efb5ad4"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"822347cbc584cc3000ba32b38b0abdc6064f7109","unresolved":false,"context_lines":[{"line_number":877,"context_line":"                    dhcp_port \u003d port"},{"line_number":878,"context_line":"                    for port_fixed_ip in dhcp_port[\u0027fixed_ips\u0027]:"},{"line_number":879,"context_line":"                        if port_fixed_ip[\u0027subnet_id\u0027] not in subnets:"},{"line_number":880,"context_line":"                            dhcp_port[\u0027fixed_ips\u0027].remove(port_fixed_ip)"},{"line_number":881,"context_line":"                # break since we found port that matches device_id"},{"line_number":882,"context_line":"                break"},{"line_number":883,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_6129a336","line":880,"in_reply_to":"ba7be1f8_b6bd0a05","updated":"2015-03-13 08:42:30.000000000","message":"Yes, this is smart. And confirmed that it works. Please let me fix the bug as this.","commit_id":"c8c6228c499306e644519b4f76da29bd3efb5ad4"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"a5e6891b54ea217f0cafbf3bf520748f93756b97","unresolved":false,"context_lines":[{"line_number":851,"context_line":"            if port_device_id \u003d\u003d device_id:"},{"line_number":852,"context_line":"                port_fixed_ips \u003d []"},{"line_number":853,"context_line":"                for fixed_ip in port.fixed_ips:"},{"line_number":854,"context_line":"                    ips_needs_removal \u003d False"},{"line_number":855,"context_line":"                    if fixed_ip.subnet_id in dhcp_enabled_subnet_ids:"},{"line_number":856,"context_line":"                        port_fixed_ips.append("},{"line_number":857,"context_line":"                            {\u0027subnet_id\u0027: fixed_ip.subnet_id,"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_1e3e3db8","line":854,"updated":"2015-03-16 04:45:23.000000000","message":"you mean this around L852?","commit_id":"1978fe80d891ae72797d47c81b869aba37affe89"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"82c2a0ea519ddd22b0da9c061b4c085041603b41","unresolved":false,"context_lines":[{"line_number":851,"context_line":"            if port_device_id \u003d\u003d device_id:"},{"line_number":852,"context_line":"                port_fixed_ips \u003d []"},{"line_number":853,"context_line":"                for fixed_ip in port.fixed_ips:"},{"line_number":854,"context_line":"                    ips_needs_removal \u003d False"},{"line_number":855,"context_line":"                    if fixed_ip.subnet_id in dhcp_enabled_subnet_ids:"},{"line_number":856,"context_line":"                        port_fixed_ips.append("},{"line_number":857,"context_line":"                            {\u0027subnet_id\u0027: fixed_ip.subnet_id,"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_6165dead","line":854,"in_reply_to":"9a80dd14_1e3e3db8","updated":"2015-03-16 05:35:03.000000000","message":"OK. We already have port_fixed_ips for verify. We don\u0027t need ips_needs_removal. Will change this.","commit_id":"1978fe80d891ae72797d47c81b869aba37affe89"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"27a68e486312a62fd414be14a7dd394f6f68005a","unresolved":false,"context_lines":[{"line_number":863,"context_line":"                            {\u0027subnet_id\u0027: fixed_ip.subnet_id,"},{"line_number":864,"context_line":"                             \u0027ip_address\u0027: fixed_ip.ip_address})"},{"line_number":865,"context_line":"                        dhcp_enabled_subnet_ids.remove(fixed_ip.subnet_id)"},{"line_number":866,"context_line":""},{"line_number":867,"context_line":"                port_fixed_ips.extend("},{"line_number":868,"context_line":"                    [dict(subnet_id\u003ds) for s in dhcp_enabled_subnet_ids])"},{"line_number":869,"context_line":"                dhcp_port \u003d self.plugin.update_dhcp_port("}],"source_content_type":"text/x-python","patch_set":4,"id":"fa963961_db749d9d","line":866,"updated":"2015-03-27 16:53:28.000000000","message":"you shouldn\u0027t remove the check here, otherwise you\u0027d call update_dhcp_port even where it\u0027s not needed, right? What yamamoto meant is that \n\nips_needs_removal \u003d False\n\nshould be before the \u0027for\u0027 loop at line 860","commit_id":"cc4a0d571ec5527c0b3002bd546a9ff68e60c836"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"2a5f6bba59d24ee819fbd2e1c0932c75f2e11e3c","unresolved":false,"context_lines":[{"line_number":863,"context_line":"                            {\u0027subnet_id\u0027: fixed_ip.subnet_id,"},{"line_number":864,"context_line":"                             \u0027ip_address\u0027: fixed_ip.ip_address})"},{"line_number":865,"context_line":"                        dhcp_enabled_subnet_ids.remove(fixed_ip.subnet_id)"},{"line_number":866,"context_line":""},{"line_number":867,"context_line":"                port_fixed_ips.extend("},{"line_number":868,"context_line":"                    [dict(subnet_id\u003ds) for s in dhcp_enabled_subnet_ids])"},{"line_number":869,"context_line":"                dhcp_port \u003d self.plugin.update_dhcp_port("}],"source_content_type":"text/x-python","patch_set":4,"id":"bab921fb_8cf77e8a","line":866,"in_reply_to":"fa963961_db749d9d","updated":"2015-04-27 05:19:37.000000000","message":"Thank you for the correction.","commit_id":"cc4a0d571ec5527c0b3002bd546a9ff68e60c836"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"90b795fed40a3bc194cf9a93c89d479868fe082b","unresolved":false,"context_lines":[{"line_number":861,"context_line":"            port_device_id \u003d getattr(port, \u0027device_id\u0027, None)"},{"line_number":862,"context_line":"            if port_device_id \u003d\u003d device_id:"},{"line_number":863,"context_line":"                port_fixed_ips \u003d []"},{"line_number":864,"context_line":"                ips_needs_removal \u003d False"},{"line_number":865,"context_line":"                for fixed_ip in port.fixed_ips:"},{"line_number":866,"context_line":"                    if fixed_ip.subnet_id in dhcp_enabled_subnet_ids:"},{"line_number":867,"context_line":"                        port_fixed_ips.append("}],"source_content_type":"text/x-python","patch_set":6,"id":"5afe65bd_f35a8e4f","line":864,"updated":"2015-06-04 22:27:25.000000000","message":"nit:  ips_need_removal or ip_needs_removal","commit_id":"2acdbf3bac7f4a967e2ef8f98b2ac14fa0f7f861"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"1b830b3803c845f4edbf05616bc80fca927fa905","unresolved":false,"context_lines":[{"line_number":861,"context_line":"            port_device_id \u003d getattr(port, \u0027device_id\u0027, None)"},{"line_number":862,"context_line":"            if port_device_id \u003d\u003d device_id:"},{"line_number":863,"context_line":"                port_fixed_ips \u003d []"},{"line_number":864,"context_line":"                ips_needs_removal \u003d False"},{"line_number":865,"context_line":"                for fixed_ip in port.fixed_ips:"},{"line_number":866,"context_line":"                    if fixed_ip.subnet_id in dhcp_enabled_subnet_ids:"},{"line_number":867,"context_line":"                        port_fixed_ips.append("}],"source_content_type":"text/x-python","patch_set":6,"id":"3afb71cf_84c49b92","line":864,"in_reply_to":"5afe65bd_f35a8e4f","updated":"2015-06-05 01:11:57.000000000","message":"Yes, these make sense.","commit_id":"2acdbf3bac7f4a967e2ef8f98b2ac14fa0f7f861"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"90b795fed40a3bc194cf9a93c89d479868fe082b","unresolved":false,"context_lines":[{"line_number":873,"context_line":""},{"line_number":874,"context_line":"                # If there are dhcp_enabled_subnet_ids here that means that"},{"line_number":875,"context_line":"                # we need to add those to the port and call update."},{"line_number":876,"context_line":"                if dhcp_enabled_subnet_ids or ips_needs_removal:"},{"line_number":877,"context_line":"                    port_fixed_ips.extend("},{"line_number":878,"context_line":"                        [dict(subnet_id\u003ds) for s in dhcp_enabled_subnet_ids])"},{"line_number":879,"context_line":"                    dhcp_port \u003d self.plugin.update_dhcp_port("}],"source_content_type":"text/x-python","patch_set":6,"id":"5afe65bd_2e2af92c","line":876,"updated":"2015-06-04 22:27:25.000000000","message":"All of this logic is getting out of hand.  I wish it were written more clearly.  Maybe I\u0027ll refactor it a bit and post a follow-on.","commit_id":"2acdbf3bac7f4a967e2ef8f98b2ac14fa0f7f861"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7622566353baa96ce35b5b3ebf27c9255fab568f","unresolved":false,"context_lines":[{"line_number":873,"context_line":""},{"line_number":874,"context_line":"                # If there are dhcp_enabled_subnet_ids here that means that"},{"line_number":875,"context_line":"                # we need to add those to the port and call update."},{"line_number":876,"context_line":"                if dhcp_enabled_subnet_ids or ips_needs_removal:"},{"line_number":877,"context_line":"                    port_fixed_ips.extend("},{"line_number":878,"context_line":"                        [dict(subnet_id\u003ds) for s in dhcp_enabled_subnet_ids])"},{"line_number":879,"context_line":"                    dhcp_port \u003d self.plugin.update_dhcp_port("}],"source_content_type":"text/x-python","patch_set":6,"id":"3afb71cf_d7346adf","line":876,"in_reply_to":"3afb71cf_245287de","updated":"2015-06-05 15:42:22.000000000","message":"I meant to add here that this was not a comment about this patch.  I think the logic was already a bit awkward.  This patch did what was necessary to fix the bug without a major refactor.  That is fine.\n\nI felt like a refactor could also be done to follow this up and make it clearer.  So, that is why I merged it and followed it up.  I did not mean to be overly critical of your patch.  I do appreciate your work to fix this bug.","commit_id":"2acdbf3bac7f4a967e2ef8f98b2ac14fa0f7f861"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"1b830b3803c845f4edbf05616bc80fca927fa905","unresolved":false,"context_lines":[{"line_number":873,"context_line":""},{"line_number":874,"context_line":"                # If there are dhcp_enabled_subnet_ids here that means that"},{"line_number":875,"context_line":"                # we need to add those to the port and call update."},{"line_number":876,"context_line":"                if dhcp_enabled_subnet_ids or ips_needs_removal:"},{"line_number":877,"context_line":"                    port_fixed_ips.extend("},{"line_number":878,"context_line":"                        [dict(subnet_id\u003ds) for s in dhcp_enabled_subnet_ids])"},{"line_number":879,"context_line":"                    dhcp_port \u003d self.plugin.update_dhcp_port("}],"source_content_type":"text/x-python","patch_set":6,"id":"3afb71cf_245287de","line":876,"in_reply_to":"5afe65bd_2e2af92c","updated":"2015-06-05 01:11:57.000000000","message":"It is very kind of you.","commit_id":"2acdbf3bac7f4a967e2ef8f98b2ac14fa0f7f861"}],"neutron/tests/unit/agent/dhcp/test_agent.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"14d515572321ea6cc1115141ed29e8f68a3634d7","unresolved":false,"context_lines":[{"line_number":1340,"context_line":"        self.assertFalse(plugin.setup_dhcp_port.called)"},{"line_number":1341,"context_line":"        self.assertFalse(plugin.update_dhcp_port.called)"},{"line_number":1342,"context_line":""},{"line_number":1343,"context_line":"    def test_setup_dhcp_port_with_non_enable_dhcp_subnet(self):"},{"line_number":1344,"context_line":"        plugin \u003d mock.Mock()"},{"line_number":1345,"context_line":"        dh \u003d dhcp.DeviceManager(cfg.CONF, plugin)"},{"line_number":1346,"context_line":"        fake_network_copy \u003d copy.deepcopy(fake_network)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9abe1de1_3155201d","line":1343,"updated":"2015-04-27 11:02:08.000000000","message":"if you be nice to add a unit test where you cover the case of disabling the dhcp for a subnet. It would be enough to disable the dhcp for fake_subnet1","commit_id":"510b2a5126b2323b8e61a944705dfa861be4dda9"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"58792bba684b127bd6d2597ebd30dbcf2d1261d9","unresolved":false,"context_lines":[{"line_number":1340,"context_line":"        self.assertFalse(plugin.setup_dhcp_port.called)"},{"line_number":1341,"context_line":"        self.assertFalse(plugin.update_dhcp_port.called)"},{"line_number":1342,"context_line":""},{"line_number":1343,"context_line":"    def test_setup_dhcp_port_with_non_enable_dhcp_subnet(self):"},{"line_number":1344,"context_line":"        plugin \u003d mock.Mock()"},{"line_number":1345,"context_line":"        dh \u003d dhcp.DeviceManager(cfg.CONF, plugin)"},{"line_number":1346,"context_line":"        fake_network_copy \u003d copy.deepcopy(fake_network)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ad32947_7ead9387","line":1343,"in_reply_to":"9abe1de1_3155201d","updated":"2015-04-27 23:27:28.000000000","message":"I\u0027m sorry. I\u0027m not quite get your point.\n - enable_dhcp of fake_subnet2 of fake_network is False\n - enable_dhcp of fake_subnet1 of fake_network is True\nI think fake_network is perfect for this case.","commit_id":"510b2a5126b2323b8e61a944705dfa861be4dda9"}],"neutron/tests/unit/test_dhcp_agent.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"4b20785e7f33d3761733af1b1badfc32e8947d5f","unresolved":false,"context_lines":[{"line_number":1299,"context_line":"        self.assertFalse(plugin.setup_dhcp_port.called)"},{"line_number":1300,"context_line":"        self.assertFalse(plugin.update_dhcp_port.called)"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"    def test_setup_dhcp_port_with_non_enable_dhcp_subnet(self):"},{"line_number":1303,"context_line":"        plugin \u003d mock.Mock()"},{"line_number":1304,"context_line":"        dh \u003d dhcp.DeviceManager(cfg.CONF, cfg.CONF.AGENT.root_helper, plugin)"},{"line_number":1305,"context_line":"        fake_network_copy \u003d copy.deepcopy(fake_network)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_761f120a","line":1302,"updated":"2015-02-27 16:29:08.000000000","message":"Consider adding a UT with the following scenario:\n\n1) 2 subnets with dhcp enabled \n2) disable dhcp for one of them\n\nFor point one you can get inspired by test_create_dhcp_port_update_add_subnet","commit_id":"c8c6228c499306e644519b4f76da29bd3efb5ad4"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"822347cbc584cc3000ba32b38b0abdc6064f7109","unresolved":false,"context_lines":[{"line_number":1299,"context_line":"        self.assertFalse(plugin.setup_dhcp_port.called)"},{"line_number":1300,"context_line":"        self.assertFalse(plugin.update_dhcp_port.called)"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"    def test_setup_dhcp_port_with_non_enable_dhcp_subnet(self):"},{"line_number":1303,"context_line":"        plugin \u003d mock.Mock()"},{"line_number":1304,"context_line":"        dh \u003d dhcp.DeviceManager(cfg.CONF, cfg.CONF.AGENT.root_helper, plugin)"},{"line_number":1305,"context_line":"        fake_network_copy \u003d copy.deepcopy(fake_network)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_a15c7b4c","line":1302,"in_reply_to":"ba7be1f8_761f120a","updated":"2015-03-13 08:42:30.000000000","message":"Done","commit_id":"c8c6228c499306e644519b4f76da29bd3efb5ad4"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"f7a0aa39d60767ba62541fe88bd36a2c00817b41","unresolved":false,"context_lines":[{"line_number":1289,"context_line":"        plugin \u003d mock.Mock()"},{"line_number":1290,"context_line":"        dh \u003d dhcp.DeviceManager(cfg.CONF, plugin)"},{"line_number":1291,"context_line":"        fake_network_copy \u003d copy.deepcopy(fake_network)"},{"line_number":1292,"context_line":"        fake_network_copy.ports[0].device_id \u003d dh.get_device_id(fake_network)"},{"line_number":1293,"context_line":"        plugin.update_dhcp_port.return_value \u003d fake_network.ports[0]"},{"line_number":1294,"context_line":"        self.assertIn(fake_subnet1[\u0027id\u0027],"},{"line_number":1295,"context_line":"            dh.setup_dhcp_port(fake_network_copy)[\u0027fixed_ips\u0027][0][\u0027subnet_id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa963961_7bec71c7","line":1292,"updated":"2015-03-27 17:03:14.000000000","message":"what you want to test here is the case where you disable dhcp for a subnet right?\nSo you should set somewhere\n\n\nfake_network_copy.subnets[0].enable_dhcp \u003d False","commit_id":"1978fe80d891ae72797d47c81b869aba37affe89"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"a5e6891b54ea217f0cafbf3bf520748f93756b97","unresolved":false,"context_lines":[{"line_number":1294,"context_line":"        self.assertIn(fake_subnet1[\u0027id\u0027],"},{"line_number":1295,"context_line":"            dh.setup_dhcp_port(fake_network_copy)[\u0027fixed_ips\u0027][0][\u0027subnet_id\u0027])"},{"line_number":1296,"context_line":"        self.assertNotIn(fake_subnet2[\u0027id\u0027],"},{"line_number":1297,"context_line":"            dh.setup_dhcp_port(fake_network_copy)[\u0027fixed_ips\u0027][0][\u0027subnet_id\u0027])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"    def test_destroy(self):"},{"line_number":1300,"context_line":"        fake_net \u003d dhcp.NetModel("}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_de366550","line":1297,"updated":"2015-03-16 04:45:23.000000000","message":"In/NotIn don\u0027t seem a correct comparison here.","commit_id":"1978fe80d891ae72797d47c81b869aba37affe89"},{"author":{"_account_id":14039,"name":"watanabe isao","email":"watanabe.isao.openstack@gmail.com","username":"watanabe.isao"},"change_message_id":"82c2a0ea519ddd22b0da9c061b4c085041603b41","unresolved":false,"context_lines":[{"line_number":1294,"context_line":"        self.assertIn(fake_subnet1[\u0027id\u0027],"},{"line_number":1295,"context_line":"            dh.setup_dhcp_port(fake_network_copy)[\u0027fixed_ips\u0027][0][\u0027subnet_id\u0027])"},{"line_number":1296,"context_line":"        self.assertNotIn(fake_subnet2[\u0027id\u0027],"},{"line_number":1297,"context_line":"            dh.setup_dhcp_port(fake_network_copy)[\u0027fixed_ips\u0027][0][\u0027subnet_id\u0027])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"    def test_destroy(self):"},{"line_number":1300,"context_line":"        fake_net \u003d dhcp.NetModel("}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_e1270e61","line":1297,"in_reply_to":"9a80dd14_de366550","updated":"2015-03-16 05:35:03.000000000","message":"What do you think is a better comparison here, please?","commit_id":"1978fe80d891ae72797d47c81b869aba37affe89"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"f7a0aa39d60767ba62541fe88bd36a2c00817b41","unresolved":false,"context_lines":[{"line_number":1294,"context_line":"        self.assertIn(fake_subnet1[\u0027id\u0027],"},{"line_number":1295,"context_line":"            dh.setup_dhcp_port(fake_network_copy)[\u0027fixed_ips\u0027][0][\u0027subnet_id\u0027])"},{"line_number":1296,"context_line":"        self.assertNotIn(fake_subnet2[\u0027id\u0027],"},{"line_number":1297,"context_line":"            dh.setup_dhcp_port(fake_network_copy)[\u0027fixed_ips\u0027][0][\u0027subnet_id\u0027])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"    def test_destroy(self):"},{"line_number":1300,"context_line":"        fake_net \u003d dhcp.NetModel("}],"source_content_type":"text/x-python","patch_set":3,"id":"fa963961_db2b7dea","line":1297,"in_reply_to":"9a80dd14_e1270e61","updated":"2015-03-27 17:03:14.000000000","message":"assertEqual :)","commit_id":"1978fe80d891ae72797d47c81b869aba37affe89"}]}
