)]}'
{"neutron/agent/l3/dvr_local_router.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4d5417a3be7f2531e0f35c70264e5d1b6546fc88","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        self.fip_ns \u003d None"},{"line_number":50,"context_line":"        self._pending_arp_set \u003d set()"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def get_cent_router_cidrs(self):"},{"line_number":53,"context_line":"        return self.centralized_floatingips_set"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def migrate_cent_floating_ip(self, fip, interface_name, device):"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_b35e26e4","line":52,"updated":"2017-09-20 20:02:20.000000000","message":"nit: s/cent/centralized","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bdfcdaacef501a8b7ccc250ecbef3ac71bb4efbc","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        self.fip_ns \u003d None"},{"line_number":50,"context_line":"        self._pending_arp_set \u003d set()"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def get_cent_router_cidrs(self):"},{"line_number":53,"context_line":"        return self.centralized_floatingips_set"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def migrate_cent_floating_ip(self, fip, interface_name, device):"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_ab834e04","line":52,"in_reply_to":"bf57530f_b35e26e4","updated":"2017-09-20 21:36:37.000000000","message":"will fix it.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4d5417a3be7f2531e0f35c70264e5d1b6546fc88","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def get_cent_router_cidrs(self):"},{"line_number":53,"context_line":"        return self.centralized_floatingips_set"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def migrate_cent_floating_ip(self, fip, interface_name, device):"},{"line_number":56,"context_line":"        # Remove the centralized fip first and then add fip to the host"},{"line_number":57,"context_line":"        ip_cidr \u003d common_utils.ip_to_cidr(fip[\u0027floating_ip_address\u0027])"},{"line_number":58,"context_line":"        self.floating_ip_removed_dist(ip_cidr)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_d3275a64","line":55,"updated":"2017-09-20 20:02:20.000000000","message":"here too","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bdfcdaacef501a8b7ccc250ecbef3ac71bb4efbc","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def get_cent_router_cidrs(self):"},{"line_number":53,"context_line":"        return self.centralized_floatingips_set"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def migrate_cent_floating_ip(self, fip, interface_name, device):"},{"line_number":56,"context_line":"        # Remove the centralized fip first and then add fip to the host"},{"line_number":57,"context_line":"        ip_cidr \u003d common_utils.ip_to_cidr(fip[\u0027floating_ip_address\u0027])"},{"line_number":58,"context_line":"        self.floating_ip_removed_dist(ip_cidr)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_8b888a1f","line":55,"in_reply_to":"bf57530f_d3275a64","updated":"2017-09-20 21:36:37.000000000","message":"will fix it.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"}],"neutron/agent/l3/router_info.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4d5417a3be7f2531e0f35c70264e5d1b6546fc88","unresolved":false,"context_lines":[{"line_number":323,"context_line":"        return set([addr[\u0027cidr\u0027] for addr in device.addr.list()])"},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"    def get_cent_router_cidrs(self):"},{"line_number":326,"context_line":"        pass"},{"line_number":327,"context_line":""},{"line_number":328,"context_line":"    def process_floating_ip_addresses(self, interface_name):"},{"line_number":329,"context_line":"        \"\"\"Configure IP addresses on router\u0027s external gateway interface."}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_539eca63","line":326,"updated":"2017-09-20 20:02:20.000000000","message":"return set() ...","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bdfcdaacef501a8b7ccc250ecbef3ac71bb4efbc","unresolved":false,"context_lines":[{"line_number":323,"context_line":"        return set([addr[\u0027cidr\u0027] for addr in device.addr.list()])"},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"    def get_cent_router_cidrs(self):"},{"line_number":326,"context_line":"        pass"},{"line_number":327,"context_line":""},{"line_number":328,"context_line":"    def process_floating_ip_addresses(self, interface_name):"},{"line_number":329,"context_line":"        \"\"\"Configure IP addresses on router\u0027s external gateway interface."}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_4b7a9224","line":326,"in_reply_to":"bf57530f_539eca63","updated":"2017-09-20 21:36:37.000000000","message":"Ok will fix it.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4d5417a3be7f2531e0f35c70264e5d1b6546fc88","unresolved":false,"context_lines":[{"line_number":365,"context_line":"                          {\u0027old\u0027: self.fip_map[fip_ip],"},{"line_number":366,"context_line":"                           \u0027new\u0027: fip[\u0027fixed_ip_address\u0027]})"},{"line_number":367,"context_line":"                fip_statuses[fip[\u0027id\u0027]] \u003d self.move_floating_ip(fip)"},{"line_number":368,"context_line":"            elif (cent_router_cidrs and ip_cidr in cent_router_cidrs and"},{"line_number":369,"context_line":"                fip.get(\u0027host\u0027) \u003d\u003d self.host):"},{"line_number":370,"context_line":"                LOG.debug(\"Floating IP is migrating from centralized \""},{"line_number":371,"context_line":"                          \"to distributed: %s\", fip)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_f38ede2c","line":368,"range":{"start_line":368,"start_character":18,"end_line":368,"end_character":40},"updated":"2017-09-20 20:02:20.000000000","message":"... then you don\u0027t need this check to avoid TypeError","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bdfcdaacef501a8b7ccc250ecbef3ac71bb4efbc","unresolved":false,"context_lines":[{"line_number":365,"context_line":"                          {\u0027old\u0027: self.fip_map[fip_ip],"},{"line_number":366,"context_line":"                           \u0027new\u0027: fip[\u0027fixed_ip_address\u0027]})"},{"line_number":367,"context_line":"                fip_statuses[fip[\u0027id\u0027]] \u003d self.move_floating_ip(fip)"},{"line_number":368,"context_line":"            elif (cent_router_cidrs and ip_cidr in cent_router_cidrs and"},{"line_number":369,"context_line":"                fip.get(\u0027host\u0027) \u003d\u003d self.host):"},{"line_number":370,"context_line":"                LOG.debug(\"Floating IP is migrating from centralized \""},{"line_number":371,"context_line":"                          \"to distributed: %s\", fip)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_2b775e3d","line":368,"range":{"start_line":368,"start_character":18,"end_line":368,"end_character":40},"in_reply_to":"bf57530f_f38ede2c","updated":"2017-09-20 21:36:37.000000000","message":"Yes, returning an empty set would be the right one. I thought of it, but had a second thought.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"}],"neutron/db/l3_dvrscheduler_db.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4d5417a3be7f2531e0f35c70264e5d1b6546fc88","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    \"\"\""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def dvr_handle_new_service_port(self, context, port,"},{"line_number":83,"context_line":"                                    unbound_migrate\u003dFalse, dest_host\u003dNone):"},{"line_number":84,"context_line":"        \"\"\"Handle new dvr service port creation."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        When a new dvr service port is created, this function will"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_33a9167b","line":83,"updated":"2017-09-20 20:02:20.000000000","message":"nit: would put new argument last","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bdfcdaacef501a8b7ccc250ecbef3ac71bb4efbc","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    \"\"\""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def dvr_handle_new_service_port(self, context, port,"},{"line_number":83,"context_line":"                                    unbound_migrate\u003dFalse, dest_host\u003dNone):"},{"line_number":84,"context_line":"        \"\"\"Handle new dvr service port creation."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        When a new dvr service port is created, this function will"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_cb93224f","line":83,"in_reply_to":"bf57530f_33a9167b","updated":"2017-09-20 21:36:37.000000000","message":"ok will fix it.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4d5417a3be7f2531e0f35c70264e5d1b6546fc88","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not l3_agent_on_host:"},{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        subnet_ids \u003d [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]"},{"line_number":98,"context_line":"        router_ids \u003d self.get_dvr_routers_by_subnet_ids(context, subnet_ids)"},{"line_number":99,"context_line":"        agents_to_be_notified \u003d []"},{"line_number":100,"context_line":"        agent_port_host_match \u003d False"},{"line_number":101,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_b304e67c","line":98,"updated":"2017-09-20 20:02:20.000000000","message":"I would leave these lines where they were to minimize changes","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bdfcdaacef501a8b7ccc250ecbef3ac71bb4efbc","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not l3_agent_on_host:"},{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        subnet_ids \u003d [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]"},{"line_number":98,"context_line":"        router_ids \u003d self.get_dvr_routers_by_subnet_ids(context, subnet_ids)"},{"line_number":99,"context_line":"        agents_to_be_notified \u003d []"},{"line_number":100,"context_line":"        agent_port_host_match \u003d False"},{"line_number":101,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_6ba2f69c","line":98,"in_reply_to":"bf57530f_b304e67c","updated":"2017-09-20 21:36:37.000000000","message":"Ok, will fix it.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4d5417a3be7f2531e0f35c70264e5d1b6546fc88","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        subnet_ids \u003d [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]"},{"line_number":98,"context_line":"        router_ids \u003d self.get_dvr_routers_by_subnet_ids(context, subnet_ids)"},{"line_number":99,"context_line":"        agents_to_be_notified \u003d []"},{"line_number":100,"context_line":"        agent_port_host_match \u003d False"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        if dest_host:"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_f32ffef3","line":99,"updated":"2017-09-20 20:02:20.000000000","message":"This isn\u0027t required since it\u0027s initialized on L118 before it\u0027s used.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bdfcdaacef501a8b7ccc250ecbef3ac71bb4efbc","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        subnet_ids \u003d [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]"},{"line_number":98,"context_line":"        router_ids \u003d self.get_dvr_routers_by_subnet_ids(context, subnet_ids)"},{"line_number":99,"context_line":"        agents_to_be_notified \u003d []"},{"line_number":100,"context_line":"        agent_port_host_match \u003d False"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        if dest_host:"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_2bacfe8a","line":99,"in_reply_to":"bf57530f_f32ffef3","updated":"2017-09-20 21:36:37.000000000","message":"Ok will fix it.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4d5417a3be7f2531e0f35c70264e5d1b6546fc88","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            # snat_nodes hosting the routers."},{"line_number":117,"context_line":"            # Make a call here to notify the snat nodes."},{"line_number":118,"context_line":"            agents_to_be_notified \u003d self.get_dvr_snat_agent_list(context)"},{"line_number":119,"context_line":"            if router_ids:"},{"line_number":120,"context_line":"                for agent in agents_to_be_notified:"},{"line_number":121,"context_line":"                    LOG.debug(\u0027DVR: Handle new unbound migration port, \u0027"},{"line_number":122,"context_line":"                              \u0027host %(host)s, router_ids %(router_ids)s\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_f37dbee7","line":119,"updated":"2017-09-20 20:02:20.000000000","message":"Because you\u0027re checking router_ids here,  this whole block can live under L128 below","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ec541a46131b995d12fd73127e6315d9fa07e649","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            # snat_nodes hosting the routers."},{"line_number":117,"context_line":"            # Make a call here to notify the snat nodes."},{"line_number":118,"context_line":"            agents_to_be_notified \u003d self.get_dvr_snat_agent_list(context)"},{"line_number":119,"context_line":"            if router_ids:"},{"line_number":120,"context_line":"                for agent in agents_to_be_notified:"},{"line_number":121,"context_line":"                    LOG.debug(\u0027DVR: Handle new unbound migration port, \u0027"},{"line_number":122,"context_line":"                              \u0027host %(host)s, router_ids %(router_ids)s\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_64cb4353","line":119,"in_reply_to":"bf57530f_f37dbee7","updated":"2017-09-20 23:07:10.000000000","message":"I checked this change but it might not work, since first one is for unbound_migrate condition and the other is for all other conditions. \nWe can bring both together under one \u0027if router_ids\u0027.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bdfcdaacef501a8b7ccc250ecbef3ac71bb4efbc","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            # snat_nodes hosting the routers."},{"line_number":117,"context_line":"            # Make a call here to notify the snat nodes."},{"line_number":118,"context_line":"            agents_to_be_notified \u003d self.get_dvr_snat_agent_list(context)"},{"line_number":119,"context_line":"            if router_ids:"},{"line_number":120,"context_line":"                for agent in agents_to_be_notified:"},{"line_number":121,"context_line":"                    LOG.debug(\u0027DVR: Handle new unbound migration port, \u0027"},{"line_number":122,"context_line":"                              \u0027host %(host)s, router_ids %(router_ids)s\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_abb10ee4","line":119,"in_reply_to":"bf57530f_f37dbee7","updated":"2017-09-20 21:36:37.000000000","message":"Sure can fix it.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4d5417a3be7f2531e0f35c70264e5d1b6546fc88","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def get_dvr_snat_agent_list(self, context):"},{"line_number":137,"context_line":"        agent_filters \u003d {\u0027agent_modes\u0027: [n_const.L3_AGENT_MODE_DVR_SNAT]}"},{"line_number":138,"context_line":"        return self.get_l3_agents(context, active\u003dTrue,"},{"line_number":139,"context_line":"                                  filters\u003dagent_filters)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def get_dvr_routers_by_subnet_ids(self, context, subnet_ids):"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_b3a3c64f","line":138,"range":{"start_line":138,"start_character":43,"end_line":138,"end_character":54},"updated":"2017-09-20 20:02:20.000000000","message":"See code at L243 below on how to pass active\u003d","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bdfcdaacef501a8b7ccc250ecbef3ac71bb4efbc","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def get_dvr_snat_agent_list(self, context):"},{"line_number":137,"context_line":"        agent_filters \u003d {\u0027agent_modes\u0027: [n_const.L3_AGENT_MODE_DVR_SNAT]}"},{"line_number":138,"context_line":"        return self.get_l3_agents(context, active\u003dTrue,"},{"line_number":139,"context_line":"                                  filters\u003dagent_filters)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def get_dvr_routers_by_subnet_ids(self, context, subnet_ids):"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_0bc25a34","line":138,"range":{"start_line":138,"start_character":43,"end_line":138,"end_character":54},"in_reply_to":"bf57530f_b3a3c64f","updated":"2017-09-20 21:36:37.000000000","message":"Ok will fix it.","commit_id":"eaf820c143961c5df3b82c4ccba6f5f3b50a7ed3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"223e50e952aeb2fb4fd6749d6da7ec944e7e8bb4","unresolved":false,"context_lines":[{"line_number":107,"context_line":"                check_for_fip_and_create_agent_gw_port_on_host_if_not_exists("},{"line_number":108,"context_line":"                    context, port, dest_host))"},{"line_number":109,"context_line":"        subnet_ids \u003d [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]"},{"line_number":110,"context_line":"        router_ids \u003d self.get_dvr_routers_by_subnet_ids(context, subnet_ids)"},{"line_number":111,"context_line":"        agent_port_host_match \u003d False"},{"line_number":112,"context_line":"        if unbound_migrate:"},{"line_number":113,"context_line":"            # This might be a case were it is migrating from unbound"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f515b1d_6f906f4f","line":110,"updated":"2017-09-27 17:53:59.000000000","message":"So if not router_ids there is nothing to do here.  I would just return early here:\n\nif not router_ids:\n    return\n\nThen you don\u0027t need to check it at all below.","commit_id":"427e395f17dc2df916f8eee55e73fcf425397d10"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ae7cf8f54b038987567e1099fbb75c174634e09c","unresolved":false,"context_lines":[{"line_number":107,"context_line":"                check_for_fip_and_create_agent_gw_port_on_host_if_not_exists("},{"line_number":108,"context_line":"                    context, port, dest_host))"},{"line_number":109,"context_line":"        subnet_ids \u003d [ip[\u0027subnet_id\u0027] for ip in port[\u0027fixed_ips\u0027]]"},{"line_number":110,"context_line":"        router_ids \u003d self.get_dvr_routers_by_subnet_ids(context, subnet_ids)"},{"line_number":111,"context_line":"        agent_port_host_match \u003d False"},{"line_number":112,"context_line":"        if unbound_migrate:"},{"line_number":113,"context_line":"            # This might be a case were it is migrating from unbound"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f515b1d_a44d45c5","line":110,"in_reply_to":"7f515b1d_6f906f4f","updated":"2017-09-27 18:25:17.000000000","message":"sure will fix it.","commit_id":"427e395f17dc2df916f8eee55e73fcf425397d10"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"223e50e952aeb2fb4fd6749d6da7ec944e7e8bb4","unresolved":false,"context_lines":[{"line_number":450,"context_line":"                    original_port[portbindings.HOST_ID])"},{"line_number":451,"context_line":"        is_new_port_binding_changed \u003d ("},{"line_number":452,"context_line":"            new_port[portbindings.HOST_ID] and"},{"line_number":453,"context_line":"            (original_port[portbindings.HOST_ID] is not None and"},{"line_number":454,"context_line":"             original_port[portbindings.HOST_ID] !\u003d"},{"line_number":455,"context_line":"             new_port[portbindings.HOST_ID]))"},{"line_number":456,"context_line":"        # This is the case for unbound port migration."}],"source_content_type":"text/x-python","patch_set":10,"id":"7f515b1d_6fd62fc6","line":453,"updated":"2017-09-27 17:53:59.000000000","message":"If it\u0027s None they won\u0027t match, right?  Wasn\u0027t the old code ok?","commit_id":"427e395f17dc2df916f8eee55e73fcf425397d10"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ae7cf8f54b038987567e1099fbb75c174634e09c","unresolved":false,"context_lines":[{"line_number":450,"context_line":"                    original_port[portbindings.HOST_ID])"},{"line_number":451,"context_line":"        is_new_port_binding_changed \u003d ("},{"line_number":452,"context_line":"            new_port[portbindings.HOST_ID] and"},{"line_number":453,"context_line":"            (original_port[portbindings.HOST_ID] is not None and"},{"line_number":454,"context_line":"             original_port[portbindings.HOST_ID] !\u003d"},{"line_number":455,"context_line":"             new_port[portbindings.HOST_ID]))"},{"line_number":456,"context_line":"        # This is the case for unbound port migration."}],"source_content_type":"text/x-python","patch_set":10,"id":"7f515b1d_a4e2e59e","line":453,"in_reply_to":"7f515b1d_6fd62fc6","updated":"2017-09-27 18:25:17.000000000","message":"I think we need to explicitly check if the binding is None or not.","commit_id":"427e395f17dc2df916f8eee55e73fcf425397d10"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"223e50e952aeb2fb4fd6749d6da7ec944e7e8bb4","unresolved":false,"context_lines":[{"line_number":458,"context_line":"            new_port[portbindings.HOST_ID] and"},{"line_number":459,"context_line":"            (original_port[portbindings.HOST_ID] is None and"},{"line_number":460,"context_line":"             original_port[portbindings.HOST_ID] !\u003d"},{"line_number":461,"context_line":"             new_port[portbindings.HOST_ID]))"},{"line_number":462,"context_line":"        dest_host \u003d None"},{"line_number":463,"context_line":"        new_port_profile \u003d new_port.get(portbindings.PROFILE)"},{"line_number":464,"context_line":"        if new_port_profile:"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f515b1d_2fa71752","line":461,"updated":"2017-09-27 17:53:59.000000000","message":"All these checks seem overkill.  L458 verifies the new_port has a host binding.  And L459 verifies the original port doesn\u0027t.  You shouldn\u0027t need L460-461 since they can\u0027t ever be equal in that case.\n\nUnless I\u0027m missing something.","commit_id":"427e395f17dc2df916f8eee55e73fcf425397d10"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ae7cf8f54b038987567e1099fbb75c174634e09c","unresolved":false,"context_lines":[{"line_number":458,"context_line":"            new_port[portbindings.HOST_ID] and"},{"line_number":459,"context_line":"            (original_port[portbindings.HOST_ID] is None and"},{"line_number":460,"context_line":"             original_port[portbindings.HOST_ID] !\u003d"},{"line_number":461,"context_line":"             new_port[portbindings.HOST_ID]))"},{"line_number":462,"context_line":"        dest_host \u003d None"},{"line_number":463,"context_line":"        new_port_profile \u003d new_port.get(portbindings.PROFILE)"},{"line_number":464,"context_line":"        if new_port_profile:"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f515b1d_df148e46","line":461,"in_reply_to":"7f515b1d_2fa71752","updated":"2017-09-27 18:25:17.000000000","message":"The check to make if it is a port migration or just an unbound to bound port, we need this overkill check.\nOtherwise, we can\u0027t distinguish in #L477.","commit_id":"427e395f17dc2df916f8eee55e73fcf425397d10"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"223e50e952aeb2fb4fd6749d6da7ec944e7e8bb4","unresolved":false,"context_lines":[{"line_number":474,"context_line":"        # the routers without checking for device_owner."},{"line_number":475,"context_line":"        if (is_new_port_binding_changed or is_unbound_port_binding_changed or"},{"line_number":476,"context_line":"            dest_host):"},{"line_number":477,"context_line":"            if is_unbound_port_binding_changed:"},{"line_number":478,"context_line":"                l3plugin.dvr_handle_new_service_port(context, new_port,"},{"line_number":479,"context_line":"                                                     unbound_migrate\u003dTrue)"},{"line_number":480,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f515b1d_1a293b89","line":477,"updated":"2017-09-27 17:53:59.000000000","message":"You might not even need the check on L457 above, you only really have to check if the original_port host binding is None here, right?","commit_id":"427e395f17dc2df916f8eee55e73fcf425397d10"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ae7cf8f54b038987567e1099fbb75c174634e09c","unresolved":false,"context_lines":[{"line_number":474,"context_line":"        # the routers without checking for device_owner."},{"line_number":475,"context_line":"        if (is_new_port_binding_changed or is_unbound_port_binding_changed or"},{"line_number":476,"context_line":"            dest_host):"},{"line_number":477,"context_line":"            if is_unbound_port_binding_changed:"},{"line_number":478,"context_line":"                l3plugin.dvr_handle_new_service_port(context, new_port,"},{"line_number":479,"context_line":"                                                     unbound_migrate\u003dTrue)"},{"line_number":480,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f515b1d_9f33b6f6","line":477,"in_reply_to":"7f515b1d_1a293b89","updated":"2017-09-27 18:25:17.000000000","message":"Yes we can also do as you suggest, which would simplify.\nBut give me sometime, I need to think through.\nI don\u0027t want to mess up the logic again.","commit_id":"427e395f17dc2df916f8eee55e73fcf425397d10"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"bd65750929f951841081deb4660671a13a9901dc","unresolved":false,"context_lines":[{"line_number":128,"context_line":"                        context, router_ids, agent.host)"},{"line_number":129,"context_line":"                    if agent.host \u003d\u003d port_host:"},{"line_number":130,"context_line":"                        agent_port_host_match \u003d True"},{"line_number":131,"context_line":"        if router_ids and not agent_port_host_match:"},{"line_number":132,"context_line":"            LOG.debug(\u0027DVR: Handle new service port, host %(host)s, \u0027"},{"line_number":133,"context_line":"                      \u0027router ids %(router_ids)s\u0027,"},{"line_number":134,"context_line":"                {\u0027host\u0027: port_host, \u0027router_ids\u0027: router_ids})"}],"source_content_type":"text/x-python","patch_set":12,"id":"7f515b1d_c237f8fe","line":131,"updated":"2017-09-28 15:25:44.000000000","message":"Don\u0027t need to check router_ids here, must be valid after L112","commit_id":"f47d6bb19966c925bca290454dc4e214b9461b91"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"5716dee9146b05e22162dd40f9d14b3636527d23","unresolved":false,"context_lines":[{"line_number":128,"context_line":"                        context, router_ids, agent.host)"},{"line_number":129,"context_line":"                    if agent.host \u003d\u003d port_host:"},{"line_number":130,"context_line":"                        agent_port_host_match \u003d True"},{"line_number":131,"context_line":"        if router_ids and not agent_port_host_match:"},{"line_number":132,"context_line":"            LOG.debug(\u0027DVR: Handle new service port, host %(host)s, \u0027"},{"line_number":133,"context_line":"                      \u0027router ids %(router_ids)s\u0027,"},{"line_number":134,"context_line":"                {\u0027host\u0027: port_host, \u0027router_ids\u0027: router_ids})"}],"source_content_type":"text/x-python","patch_set":12,"id":"7f515b1d_fbba85be","line":131,"in_reply_to":"7f515b1d_c237f8fe","updated":"2017-09-29 21:50:17.000000000","message":"ok will fix it.","commit_id":"f47d6bb19966c925bca290454dc4e214b9461b91"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"c17788b3d170b99da2a84c3e7c593e571db56d28","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        if unbound_migrate:"},{"line_number":116,"context_line":"            # This might be a case were it is migrating from unbound"},{"line_number":117,"context_line":"            # to a bound port."},{"line_number":118,"context_line":"            # In that case please forward the notification to the"},{"line_number":119,"context_line":"            # snat_nodes hosting the routers."},{"line_number":120,"context_line":"            # Make a call here to notify the snat nodes."},{"line_number":121,"context_line":"            snat_agent_list \u003d self.get_dvr_snat_agent_list(context)"}],"source_content_type":"text/x-python","patch_set":13,"id":"7f515b1d_1b0c0f3a","line":118,"range":{"start_line":118,"start_character":27,"end_line":118,"end_character":33},"updated":"2017-10-03 19:52:38.000000000","message":"very polite comment :-)","commit_id":"c443539f1e4b315941878f6ce48e81a39a8c9070"}],"neutron/tests/unit/agent/l3/test_router_info.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"223e50e952aeb2fb4fd6749d6da7ec944e7e8bb4","unresolved":false,"context_lines":[{"line_number":404,"context_line":"        device.addr.list.return_value \u003d [{\u0027cidr\u0027: \u002715.1.2.3/32\u0027}]"},{"line_number":405,"context_line":"        ri \u003d self._create_router()"},{"line_number":406,"context_line":"        ri.get_floating_ips \u003d mock.Mock(return_value\u003d[fip])"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        fip_statuses \u003d ri.process_floating_ip_addresses("},{"line_number":409,"context_line":"            mock.sentinel.interface_name)"},{"line_number":410,"context_line":"        self.assertEqual({fip_id: lib_constants.FLOATINGIP_STATUS_ACTIVE},"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f515b1d_ba7347b1","side":"PARENT","line":407,"updated":"2017-09-27 17:53:59.000000000","message":"whitespace change, and below","commit_id":"581f7716112b53d9b6d7f06387e3811e71f0c62e"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ae7cf8f54b038987567e1099fbb75c174634e09c","unresolved":false,"context_lines":[{"line_number":404,"context_line":"        device.addr.list.return_value \u003d [{\u0027cidr\u0027: \u002715.1.2.3/32\u0027}]"},{"line_number":405,"context_line":"        ri \u003d self._create_router()"},{"line_number":406,"context_line":"        ri.get_floating_ips \u003d mock.Mock(return_value\u003d[fip])"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        fip_statuses \u003d ri.process_floating_ip_addresses("},{"line_number":409,"context_line":"            mock.sentinel.interface_name)"},{"line_number":410,"context_line":"        self.assertEqual({fip_id: lib_constants.FLOATINGIP_STATUS_ACTIVE},"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f515b1d_ff598a34","side":"PARENT","line":407,"in_reply_to":"7f515b1d_ba7347b1","updated":"2017-09-27 18:25:17.000000000","message":"will fix it.","commit_id":"581f7716112b53d9b6d7f06387e3811e71f0c62e"}]}
