)]}'
{"neutron/db/l3_dvr_db.py":[{"author":{"_account_id":23430,"name":"sunzuohua","email":"zuohuasun@gmail.com","username":"ZuohuaSun"},"change_message_id":"6231993f0fd6c5db50b59dd78cdfaa5816d63328","unresolved":false,"context_lines":[{"line_number":720,"context_line":"                if (port_in_migration or"},{"line_number":721,"context_line":"                    self._is_unbound_port(port)):"},{"line_number":722,"context_line":"                    port_dict.update({port[\u0027id\u0027]: port})"},{"line_number":723,"context_line":"                l3_agent_on_host \u003d self.get_l3_agents("},{"line_number":724,"context_line":"                    context,"},{"line_number":725,"context_line":"                    filters\u003d{\u0027host\u0027: [port_host]})"},{"line_number":726,"context_line":"                l3_agent_mode \u003d \u0027\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f96bb07_581c62c0","line":723,"updated":"2018-01-16 08:17:33.000000000","message":"There are ports which having hosts and of which hosts have no l3 agent:take ports created by ironic as an example.","commit_id":"e42755496ad2159815447c364bb0c84ec85451cd"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"cd92f937f654373632c68ac744379dad3830922b","unresolved":false,"context_lines":[{"line_number":720,"context_line":"                if (port_in_migration or"},{"line_number":721,"context_line":"                    self._is_unbound_port(port)):"},{"line_number":722,"context_line":"                    port_dict.update({port[\u0027id\u0027]: port})"},{"line_number":723,"context_line":"                l3_agent_on_host \u003d self.get_l3_agents("},{"line_number":724,"context_line":"                    context,"},{"line_number":725,"context_line":"                    filters\u003d{\u0027host\u0027: [port_host]})"},{"line_number":726,"context_line":"                l3_agent_mode \u003d \u0027\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f96bb07_32660d2c","line":723,"in_reply_to":"7f96bb07_581c62c0","updated":"2018-01-18 01:15:26.000000000","message":"How does ports created by ironic come into play with DVR routers. Not sure I understand your question.\nAlso when you talk about not having l3 agents in the host, it does not come under the DVR category. Since DVR requires L3 agent to be running on all hosts.","commit_id":"e42755496ad2159815447c364bb0c84ec85451cd"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"48f4bb1b2fd2fc7ff6b7237a9e08a847f9e8f38f","unresolved":false,"context_lines":[{"line_number":730,"context_line":"                requesting_agent_mode \u003d self._get_agent_mode(agent)"},{"line_number":731,"context_line":"                # Consider the ports where the portbinding host and"},{"line_number":732,"context_line":"                # request host match."},{"line_number":733,"context_line":"                if port_host and port_host \u003d\u003d host:"},{"line_number":734,"context_line":"                    # Check for agent type before adding the port_dict."},{"line_number":735,"context_line":"                    # For VMs that are hosted on the dvr_no_external"},{"line_number":736,"context_line":"                    # agent and if the request is coming from the same"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f96bb07_cfd82220","line":733,"updated":"2018-01-19 16:35:12.000000000","message":"So here and L748 we only do something if port_host is set.  I think this whole block could be inside an \"if port_host:\" that way we don\u0027t do any extra work like getting the agents, etc. for nothing.","commit_id":"e42755496ad2159815447c364bb0c84ec85451cd"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ea90a5cb81255affdb81ca28c55cc65d319a602b","unresolved":false,"context_lines":[{"line_number":730,"context_line":"                requesting_agent_mode \u003d self._get_agent_mode(agent)"},{"line_number":731,"context_line":"                # Consider the ports where the portbinding host and"},{"line_number":732,"context_line":"                # request host match."},{"line_number":733,"context_line":"                if port_host and port_host \u003d\u003d host:"},{"line_number":734,"context_line":"                    # Check for agent type before adding the port_dict."},{"line_number":735,"context_line":"                    # For VMs that are hosted on the dvr_no_external"},{"line_number":736,"context_line":"                    # agent and if the request is coming from the same"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f96bb07_4f9e4f55","line":733,"in_reply_to":"7f96bb07_cfd82220","updated":"2018-01-19 18:08:36.000000000","message":"Sure will fix it.","commit_id":"e42755496ad2159815447c364bb0c84ec85451cd"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"23e77e58570d63ef75e783b4aa8541370f44226d","unresolved":false,"context_lines":[{"line_number":719,"context_line":"                port_host \u003d port[portbindings.HOST_ID]"},{"line_number":720,"context_line":"                if (port_in_migration or"},{"line_number":721,"context_line":"                    self._is_unbound_port(port)):"},{"line_number":722,"context_line":"                    port_dict.update({port[\u0027id\u0027]: port})"},{"line_number":723,"context_line":"                if port_host:"},{"line_number":724,"context_line":"                    l3_agent_on_host \u003d self.get_l3_agents("},{"line_number":725,"context_line":"                        context,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_ffdd2514","line":722,"updated":"2018-02-08 17:00:31.000000000","message":"Looks like there can be a \"continue\" here as the purpose of this loop is to update the port dict, and if it\u0027s unbound then port_host will not be set.","commit_id":"8c915213b1668c11fbe0ac4164c4e72a943a3894"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"23e77e58570d63ef75e783b4aa8541370f44226d","unresolved":false,"context_lines":[{"line_number":743,"context_line":"                                l3_const.L3_AGENT_MODE_DVR_NO_EXTERNAL)):"},{"line_number":744,"context_line":"                            port[\u0027agent\u0027] \u003d ("},{"line_number":745,"context_line":"                                l3_const.L3_AGENT_MODE_DVR_NO_EXTERNAL)"},{"line_number":746,"context_line":"                        port_dict.update({port[\u0027id\u0027]: port})"},{"line_number":747,"context_line":"                    # Consider the ports where the portbinding host and"},{"line_number":748,"context_line":"                    # request host does not match."},{"line_number":749,"context_line":"                    if port_host !\u003d host:"}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_bff31d0a","line":746,"updated":"2018-02-08 17:00:31.000000000","message":"This looks like it\u0027s not indented properly, but it is, as the old code on L722 shows.  Think we should just add a blank line to make it obvious.","commit_id":"8c915213b1668c11fbe0ac4164c4e72a943a3894"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"23e77e58570d63ef75e783b4aa8541370f44226d","unresolved":false,"context_lines":[{"line_number":746,"context_line":"                        port_dict.update({port[\u0027id\u0027]: port})"},{"line_number":747,"context_line":"                    # Consider the ports where the portbinding host and"},{"line_number":748,"context_line":"                    # request host does not match."},{"line_number":749,"context_line":"                    if port_host !\u003d host:"},{"line_number":750,"context_line":"                        # If the agent requesting is dvr_snat but"},{"line_number":751,"context_line":"                        # the portbinding host resides in dvr_no_external"},{"line_number":752,"context_line":"                        # agent then include the port."}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_241e2470","line":749,"updated":"2018-02-08 17:00:31.000000000","message":"nit: can just be \"else:\"","commit_id":"8c915213b1668c11fbe0ac4164c4e72a943a3894"}]}
