)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"36463e3cc51485e20240bb7f2309993c8539bcda","unresolved":false,"context_lines":[{"line_number":14,"context_line":"associated with the router, we raise an exception"},{"line_number":15,"context_line":"and stop the migration."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Partial-bug: #1348309"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: I65909040a16b022108e481344064d375050d731c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"3a961159_8d7bddf3","line":17,"updated":"2014-12-23 20:31:55.000000000","message":"docImpact?","commit_id":"cfc802d21603eceff3d94d20742e5eebe657dd5f"}],"neutron/db/l3_dvr_db.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2a103790be8fbf0c08b2ab6a2a4828613d64a2da","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                router_db[\u0027status\u0027] \u003d ("},{"line_number":91,"context_line":"                    l3_const.ROUTER_STATUS_LEGACY_TO_DVR)"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def check_if_router_has_firewall(self, context, router_db):"},{"line_number":94,"context_line":"        \"\"\"Check if FWaaS is associated with the legacy router.\"\"\""},{"line_number":95,"context_line":"        fwaas_service \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":96,"context_line":"                constants.FIREWALL)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da9df570_4145f06e","line":93,"updated":"2014-09-23 01:28:59.000000000","message":"These are named the opposite of what they return. I would expect a function checking for a service to return True if present, not if missing like this does.","commit_id":"767bf11f73109778328853fa49fb23b1a4564afb"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"59b13922407091ee8fbb7ffe5547be84a8f12350","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                router_db[\u0027status\u0027] \u003d ("},{"line_number":91,"context_line":"                    l3_const.ROUTER_STATUS_LEGACY_TO_DVR)"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def check_if_router_has_firewall(self, context, router_db):"},{"line_number":94,"context_line":"        \"\"\"Check if FWaaS is associated with the legacy router.\"\"\""},{"line_number":95,"context_line":"        fwaas_service \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":96,"context_line":"                constants.FIREWALL)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da9df570_080f722f","line":93,"in_reply_to":"da9df570_4145f06e","updated":"2014-09-23 16:18:49.000000000","message":"Yes will rename the function name as its functionality","commit_id":"767bf11f73109778328853fa49fb23b1a4564afb"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"1792613bca5db3f4bb75e5db105cfc012375fa23","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                context,"},{"line_number":100,"context_line":"                filters\u003d{\u0027tenant_id\u0027: [router_db[\u0027tenant_id\u0027]]})"},{"line_number":101,"context_line":"            if fw_count:"},{"line_number":102,"context_line":"                raise firewall.FirewallInUse(firewall_id\u003drouter_db[\u0027id\u0027])"},{"line_number":103,"context_line":"            else:"},{"line_number":104,"context_line":"                return True"},{"line_number":105,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da9df570_991008aa","line":102,"updated":"2014-09-24 05:38:07.000000000","message":"The firewall_id should be passed as an argument to the exception, right (not the router id)?","commit_id":"9db0e56248c021498ebddef01f21c414bf82c03c"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"5bddce35ecfd548b251ccddac43781c6afeba4b1","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                context,"},{"line_number":100,"context_line":"                filters\u003d{\u0027tenant_id\u0027: [router_db[\u0027tenant_id\u0027]]})"},{"line_number":101,"context_line":"            if fw_count:"},{"line_number":102,"context_line":"                raise firewall.FirewallInUse(firewall_id\u003drouter_db[\u0027id\u0027])"},{"line_number":103,"context_line":"            else:"},{"line_number":104,"context_line":"                return True"},{"line_number":105,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da9df570_b354f721","line":102,"in_reply_to":"da9df570_991008aa","updated":"2014-09-24 18:39:49.000000000","message":"Addressed your comments, with a new exception for Routermigration.","commit_id":"9db0e56248c021498ebddef01f21c414bf82c03c"},{"author":{"_account_id":6995,"name":"Sridar Kandaswamy","email":"skandasw@yahoo.com","username":"skandasw"},"change_message_id":"3123cc8cd1d66646376ea82f7dcceec532aa41bf","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                raise firewall.FirewallInUse(firewall_id\u003drouter_db[\u0027id\u0027])"},{"line_number":103,"context_line":"            else:"},{"line_number":104,"context_line":"                return True"},{"line_number":105,"context_line":"        else:"},{"line_number":106,"context_line":"            return True"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def check_if_router_has_no_vpnaas(self, context, router_db):"}],"source_content_type":"text/x-python","patch_set":2,"id":"da9df570_660d8637","line":105,"updated":"2014-09-23 21:37:06.000000000","message":"Thanks Swami. Looks good to me. A minor nit - u could eliminate the above 3 lines and fix the indent in the line below to get the same effect. Also applies to the method below.","commit_id":"9db0e56248c021498ebddef01f21c414bf82c03c"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"5bddce35ecfd548b251ccddac43781c6afeba4b1","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                raise firewall.FirewallInUse(firewall_id\u003drouter_db[\u0027id\u0027])"},{"line_number":103,"context_line":"            else:"},{"line_number":104,"context_line":"                return True"},{"line_number":105,"context_line":"        else:"},{"line_number":106,"context_line":"            return True"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def check_if_router_has_no_vpnaas(self, context, router_db):"}],"source_content_type":"text/x-python","patch_set":2,"id":"da9df570_9307f31b","line":105,"in_reply_to":"da9df570_660d8637","updated":"2014-09-24 18:39:49.000000000","message":"Address your comments.","commit_id":"9db0e56248c021498ebddef01f21c414bf82c03c"},{"author":{"_account_id":6995,"name":"Sridar Kandaswamy","email":"skandasw@yahoo.com","username":"skandasw"},"change_message_id":"6317e3bdaee49d8584c0469a3c236782a7d69574","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                raise l3.RouterInUseByServiceMigrationNotAllowed("},{"line_number":101,"context_line":"                    router_id\u003drouter_db[\u0027id\u0027],"},{"line_number":102,"context_line":"                    service_name\u003d\"Firewall\")"},{"line_number":103,"context_line":"            return True"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def check_if_router_has_no_vpnaas(self, context, router_db):"},{"line_number":106,"context_line":"        \"\"\"Check if VPNaaS is associated with the legacy router.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"da9df570_d664084b","line":103,"updated":"2014-09-24 19:34:11.000000000","message":"Hi Swami: Typo - here - ur indent level for this should be out correct ? As u want to return True even when there is no plugin.\n\nSame comment below as well.","commit_id":"5a73be3c533266560aae2bc9a530d179c615d6a8"},{"author":{"_account_id":6995,"name":"Sridar Kandaswamy","email":"skandasw@yahoo.com","username":"skandasw"},"change_message_id":"bed1e93f78a3db47632aeb8fbf41ccf91a123f34","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                raise l3.RouterInUseByServiceMigrationNotAllowed("},{"line_number":101,"context_line":"                    router_id\u003drouter_db[\u0027id\u0027],"},{"line_number":102,"context_line":"                    service_name\u003d\"Firewall\")"},{"line_number":103,"context_line":"            return True"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def check_if_router_has_no_vpnaas(self, context, router_db):"},{"line_number":106,"context_line":"        \"\"\"Check if VPNaaS is associated with the legacy router.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"da9df570_f9e81db6","line":103,"in_reply_to":"da9df570_39e8e5e1","updated":"2014-09-24 19:58:41.000000000","message":"Hi Swami: Perhaps i misunderstood. I was talking more about that u want to return True (L#103)(asserting that there is no FW on the tenant)  even when there is no plugin.","commit_id":"5a73be3c533266560aae2bc9a530d179c615d6a8"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9b0fc6e0c10994f0bc28dacf6b7f4f141b7aca80","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                raise l3.RouterInUseByServiceMigrationNotAllowed("},{"line_number":101,"context_line":"                    router_id\u003drouter_db[\u0027id\u0027],"},{"line_number":102,"context_line":"                    service_name\u003d\"Firewall\")"},{"line_number":103,"context_line":"            return True"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def check_if_router_has_no_vpnaas(self, context, router_db):"},{"line_number":106,"context_line":"        \"\"\"Check if VPNaaS is associated with the legacy router.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"da9df570_39e8e5e1","line":103,"in_reply_to":"da9df570_d664084b","updated":"2014-09-24 19:53:29.000000000","message":"Sridhar: I think the indent is right. I don\u0027t want to raise an error just because there is a service plugin, I only want to raise an error when there is valid firewall configured for the tenant or when there is VPN service configured for the tenant.","commit_id":"5a73be3c533266560aae2bc9a530d179c615d6a8"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"6fa95c50b303ab6dd4a5cbafcd7b3bb2e2cdb039","unresolved":false,"context_lines":[{"line_number":82,"context_line":"            # Add a check for Services FWaaS and VPNaaS"},{"line_number":83,"context_line":"            # This check below ensures that the legacy routers with"},{"line_number":84,"context_line":"            # associated VPNaaS or FWaaS services are not allowed to"},{"line_number":85,"context_line":"            # migrate."},{"line_number":86,"context_line":"            if (self.check_if_router_has_no_vpnaas(context, router_db) and"},{"line_number":87,"context_line":"                self.check_if_router_has_no_firewall(context, router_db)):"},{"line_number":88,"context_line":"                router_db[\u0027status\u0027] \u003d ("}],"source_content_type":"text/x-python","patch_set":7,"id":"baa201ad_673f11b5","line":85,"updated":"2014-10-15 01:28:19.000000000","message":"I think this should be in the same transaction","commit_id":"63b48c6a14a18947e4ffea8b588519544585ac5d"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"c7d42d0c28c01b47bc44ed5dfe19ff7ca9a2d732","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                    service_name\u003d\"Firewall\")"},{"line_number":105,"context_line":"        return True"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    def check_if_router_has_no_vpnaas(self, context, router_db):"},{"line_number":108,"context_line":"        \"\"\"Check if VPNaaS is associated with the legacy router.\"\"\""},{"line_number":109,"context_line":"        vpn_plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":110,"context_line":"            constants.VPN)"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_7c0b527d","line":107,"updated":"2014-12-01 14:23:30.000000000","message":"There is already a method in VPN for testing if in use, check_router_in_use. Wondering if this should be using that method (or push it up somewhere common).  Not sure if there is a similar thing for FW or not.","commit_id":"04659825d787539d4a3a983deb66d19c16cbca75"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"dab7d2eb13e3be0e002d2d41212374977df76b6e","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                    service_name\u003d\"Firewall\")"},{"line_number":105,"context_line":"        return True"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    def check_if_router_has_no_vpnaas(self, context, router_db):"},{"line_number":108,"context_line":"        \"\"\"Check if VPNaaS is associated with the legacy router.\"\"\""},{"line_number":109,"context_line":"        vpn_plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":110,"context_line":"            constants.VPN)"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_5e42a13e","line":107,"in_reply_to":"5a890539_0bb6708a","updated":"2014-12-03 19:42:05.000000000","message":"Gotcha about the exception.","commit_id":"04659825d787539d4a3a983deb66d19c16cbca75"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"3847d7f96501fa4e7c16d9239b5ab0fc880c83c7","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                    service_name\u003d\"Firewall\")"},{"line_number":105,"context_line":"        return True"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    def check_if_router_has_no_vpnaas(self, context, router_db):"},{"line_number":108,"context_line":"        \"\"\"Check if VPNaaS is associated with the legacy router.\"\"\""},{"line_number":109,"context_line":"        vpn_plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":110,"context_line":"            constants.VPN)"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_0bb6708a","line":107,"in_reply_to":"5a890539_7c0b527d","updated":"2014-12-01 23:24:14.000000000","message":"I don\u0027t think FW has a similar function that\u0027s the reason I have used another approach to check the firewall rules.\nAs far as the \"check_router_in_use\" I went on that approach earlier then have to revert back due to some other issues.\nLet me see if that makes sense, otherwise I will live with this check for now.","commit_id":"04659825d787539d4a3a983deb66d19c16cbca75"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"e4d2c75574eb996035c86c9e9dfa320c0db6aa8c","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                         \"is not supported\"), router_db[\u0027id\u0027])"},{"line_number":81,"context_line":"            raise NotImplementedError()"},{"line_number":82,"context_line":"        elif (not router_db.extra_attributes.distributed and"},{"line_number":83,"context_line":"              router_res.get(\u0027distributed\u0027) is True):"},{"line_number":84,"context_line":"            # Add a check for Services FWaaS and VPNaaS"},{"line_number":85,"context_line":"            # This check below ensures that the legacy routers with"},{"line_number":86,"context_line":"            # associated VPNaaS or FWaaS services are not allowed to"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_ad5e7d74","line":83,"updated":"2014-12-09 12:27:54.000000000","message":"nit: is True doesn\u0027t make much sense, just\n not router_db.extra_attributes.distributed and router_res.get(\u0027distributed\u0027)","commit_id":"3b902adfa9484b2c4b961035f43d4f03e769e138"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ab7f9278b942960be7537d19ea2abac52933dab1","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                         \"is not supported\"), router_db[\u0027id\u0027])"},{"line_number":81,"context_line":"            raise NotImplementedError()"},{"line_number":82,"context_line":"        elif (not router_db.extra_attributes.distributed and"},{"line_number":83,"context_line":"              router_res.get(\u0027distributed\u0027) is True):"},{"line_number":84,"context_line":"            # Add a check for Services FWaaS and VPNaaS"},{"line_number":85,"context_line":"            # This check below ensures that the legacy routers with"},{"line_number":86,"context_line":"            # associated VPNaaS or FWaaS services are not allowed to"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_315a5f83","line":83,"in_reply_to":"3a961159_ad5e7d74","updated":"2014-12-12 17:19:16.000000000","message":"Will fix it in the next patch.","commit_id":"3b902adfa9484b2c4b961035f43d4f03e769e138"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"e4d2c75574eb996035c86c9e9dfa320c0db6aa8c","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                LOG.info(_LI(\"No Service associated, so safe to migrate: %s \""},{"line_number":91,"context_line":"                             \"listed\"), router_db[\u0027id\u0027])"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def check_if_router_has_no_firewall(self, context, router_db):"},{"line_number":94,"context_line":"        \"\"\"Check if FWaaS is associated with the legacy router.\"\"\""},{"line_number":95,"context_line":"        fwaas_service \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":96,"context_line":"                constants.FIREWALL)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_add59dba","line":93,"updated":"2014-12-09 12:27:54.000000000","message":"i think \u0027if\u0027 in the name is redundant, the same for the next method.","commit_id":"3b902adfa9484b2c4b961035f43d4f03e769e138"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ab7f9278b942960be7537d19ea2abac52933dab1","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                LOG.info(_LI(\"No Service associated, so safe to migrate: %s \""},{"line_number":91,"context_line":"                             \"listed\"), router_db[\u0027id\u0027])"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def check_if_router_has_no_firewall(self, context, router_db):"},{"line_number":94,"context_line":"        \"\"\"Check if FWaaS is associated with the legacy router.\"\"\""},{"line_number":95,"context_line":"        fwaas_service \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":96,"context_line":"                constants.FIREWALL)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_31e89f7b","line":93,"in_reply_to":"3a961159_add59dba","updated":"2014-12-12 17:19:16.000000000","message":"Will fix this in the next patch.","commit_id":"3b902adfa9484b2c4b961035f43d4f03e769e138"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b1796efa467e68edfe8aa235ff714039178c9670","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                LOG.info(_LI(\"No Service associated, so safe to migrate: %s \""},{"line_number":91,"context_line":"                             \"listed\"), router_db[\u0027id\u0027])"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def check_router_has_no_firewall(self, context, router_db):"},{"line_number":94,"context_line":"        \"\"\"Check if FWaaS is associated with the legacy router.\"\"\""},{"line_number":95,"context_line":"        fwaas_service \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":96,"context_line":"                constants.FIREWALL)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a961159_cd424567","line":93,"updated":"2014-12-23 20:46:19.000000000","message":"I am thinking that this check is too hidden here, and it might turn out to be useful/needed for other purposes. \n\nIf you were to move it to the fwaas repo, then we need to make use of a less specialized exception.\n\nLet\u0027s face it, this exception is not gonna have a very long time span, as how many times would you expect people to migrate routers?","commit_id":"cfc802d21603eceff3d94d20742e5eebe657dd5f"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"4fbb1c48b4f95ba02665c21c3095437d654e1859","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        \"\"\"Check if VPNaaS is associated with the legacy router.\"\"\""},{"line_number":109,"context_line":"        vpn_plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":110,"context_line":"            constants.VPN)"},{"line_number":111,"context_line":"        if vpn_plugin:"},{"line_number":112,"context_line":"            vpnservices \u003d vpn_plugin.get_vpnservices("},{"line_number":113,"context_line":"                context, filters\u003d{\u0027router_id\u0027: [router_db[\u0027id\u0027]]})"},{"line_number":114,"context_line":"            if vpnservices:"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a961159_32ade431","line":111,"updated":"2014-12-23 19:59:19.000000000","message":"have you considered using \u0027check_router_in_use\u0027?\n\nhttps://github.com/openstack/neutron-vpnaas/blob/master/neutron_vpnaas/db/vpn/vpn_db.py#L597\n\nPerhaps a similar check can be added to fw, if no-one exists already.","commit_id":"cfc802d21603eceff3d94d20742e5eebe657dd5f"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b1796efa467e68edfe8aa235ff714039178c9670","unresolved":false,"context_lines":[{"line_number":112,"context_line":"            vpnservices \u003d vpn_plugin.get_vpnservices("},{"line_number":113,"context_line":"                context, filters\u003d{\u0027router_id\u0027: [router_db[\u0027id\u0027]]})"},{"line_number":114,"context_line":"            if vpnservices:"},{"line_number":115,"context_line":"                raise l3.RouterInUseByServiceMigrationNotAllowed("},{"line_number":116,"context_line":"                    router_id\u003drouter_db[\u0027id\u0027],"},{"line_number":117,"context_line":"                    service_name\u003d\"VPN\")"},{"line_number":118,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a961159_2d090931","line":115,"updated":"2014-12-23 20:46:19.000000000","message":"I\u0027d suggest you to use a less specific exception. A router in use by vpn (or fw in case of method above) would suffice IMO. We\u0027d need to release note the procedure to migrate a router, and these, if they document the expected exceptions in case of failures should help the user understand what\u0027s wrong.","commit_id":"cfc802d21603eceff3d94d20742e5eebe657dd5f"}],"neutron/extensions/l3.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"4fbb1c48b4f95ba02665c21c3095437d654e1859","unresolved":false,"context_lines":[{"line_number":71,"context_line":"                \" cannot be deleted directly via the port API.\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"class RouterInUseByServiceMigrationNotAllowed(qexception.InUse):"},{"line_number":75,"context_line":"    message \u003d _(\"Router %(router_id)s in use by %(service_name)s service, \""},{"line_number":76,"context_line":"                \"migration not allowed with services.\")"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"3a961159_122708cb","line":74,"updated":"2014-12-23 19:59:19.000000000","message":"You could reuse:\n\nhttps://github.com/openstack/neutron/blob/master/neutron/extensions/vpnaas.py#L63\n\nand add an equivalent one to the firewall","commit_id":"cfc802d21603eceff3d94d20742e5eebe657dd5f"}],"neutron/tests/unit/db/test_l3_dvr_db.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2a103790be8fbf0c08b2ab6a2a4828613d64a2da","unresolved":false,"context_lines":[{"line_number":311,"context_line":"            self._router_migration_with_services_setup("},{"line_number":312,"context_line":"                vpn\u003dFalse, fw\u003dTrue))"},{"line_number":313,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":314,"context_line":"        self.assertFalse(mock_firewall.called)"},{"line_number":315,"context_line":"        self.assertNotEqual(router[\u0027status\u0027], \u0027LEGACY-TO-DVR\u0027)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"    def test__validate_router_migration_with_fwaas_service(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da9df570_614af481","line":314,"updated":"2014-09-23 01:28:59.000000000","message":"Since this is just checking for vpnaas, I don\u0027t think it makes sense to assert that the firewall wasn\u0027t called. That tightly couples the test to the order of checks, which really doesn\u0027t matter.","commit_id":"767bf11f73109778328853fa49fb23b1a4564afb"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"59b13922407091ee8fbb7ffe5547be84a8f12350","unresolved":false,"context_lines":[{"line_number":311,"context_line":"            self._router_migration_with_services_setup("},{"line_number":312,"context_line":"                vpn\u003dFalse, fw\u003dTrue))"},{"line_number":313,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":314,"context_line":"        self.assertFalse(mock_firewall.called)"},{"line_number":315,"context_line":"        self.assertNotEqual(router[\u0027status\u0027], \u0027LEGACY-TO-DVR\u0027)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"    def test__validate_router_migration_with_fwaas_service(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da9df570_882a827c","line":314,"in_reply_to":"da9df570_614af481","updated":"2014-09-23 16:18:49.000000000","message":"will remove the firewall if not required.","commit_id":"767bf11f73109778328853fa49fb23b1a4564afb"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2a103790be8fbf0c08b2ab6a2a4828613d64a2da","unresolved":false,"context_lines":[{"line_number":319,"context_line":"            self._router_migration_with_services_setup(vpn\u003dTrue,"},{"line_number":320,"context_line":"                                                       fw\u003dFalse))"},{"line_number":321,"context_line":"        self.assertTrue(mock_firewall.called)"},{"line_number":322,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":323,"context_line":"        self.assertNotEqual(router[\u0027status\u0027], \u0027LEGACY-TO-DVR\u0027)"},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"    def test_check_if_router_has_firewall(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da9df570_815ef843","line":322,"updated":"2014-09-23 01:28:59.000000000","message":"Same here. Don\u0027t bother enforcing calls on the mock_vpnaas in case the order changes later.","commit_id":"767bf11f73109778328853fa49fb23b1a4564afb"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"59b13922407091ee8fbb7ffe5547be84a8f12350","unresolved":false,"context_lines":[{"line_number":319,"context_line":"            self._router_migration_with_services_setup(vpn\u003dTrue,"},{"line_number":320,"context_line":"                                                       fw\u003dFalse))"},{"line_number":321,"context_line":"        self.assertTrue(mock_firewall.called)"},{"line_number":322,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":323,"context_line":"        self.assertNotEqual(router[\u0027status\u0027], \u0027LEGACY-TO-DVR\u0027)"},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"    def test_check_if_router_has_firewall(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da9df570_c8248ab1","line":322,"in_reply_to":"da9df570_815ef843","updated":"2014-09-23 16:18:49.000000000","message":"Will remove the vpnaas from here.","commit_id":"767bf11f73109778328853fa49fb23b1a4564afb"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"f08c7f585395d992cb7a6a5178b93906b18fc24a","unresolved":false,"context_lines":[{"line_number":334,"context_line":"            self.assertEqual("},{"line_number":335,"context_line":"                router_db[\u0027status\u0027], l3_const.ROUTER_STATUS_LEGACY_TO_DVR)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"    def _router_migration_with_services_setup(self, vpn\u003dNone, fw\u003dNone):"},{"line_number":338,"context_line":"        router \u003d {\u0027name\u0027: \u0027foo_router\u0027,"},{"line_number":339,"context_line":"                  \u0027admin_state_up\u0027: True}"},{"line_number":340,"context_line":"        router_db \u003d self._create_router(router)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da9df570_80185b1f","line":337,"updated":"2014-09-25 15:02:22.000000000","message":"Should the defaults for these be True?  For readability, it may be better to say no_vpn, no_fw. Otherwise, when a call is made with vpn\u003dTrue, it gives the impression that there IS a VPN service.","commit_id":"5807407671f46e7cd8dcdbace9051668d625787f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"fc2e4143e6bc8937c1736d78568ee2281ec99997","unresolved":false,"context_lines":[{"line_number":334,"context_line":"            self.assertEqual("},{"line_number":335,"context_line":"                router_db[\u0027status\u0027], l3_const.ROUTER_STATUS_LEGACY_TO_DVR)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"    def _router_migration_with_services_setup(self, vpn\u003dNone, fw\u003dNone):"},{"line_number":338,"context_line":"        router \u003d {\u0027name\u0027: \u0027foo_router\u0027,"},{"line_number":339,"context_line":"                  \u0027admin_state_up\u0027: True}"},{"line_number":340,"context_line":"        router_db \u003d self._create_router(router)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da9df570_d9609ea7","line":337,"in_reply_to":"da9df570_80185b1f","updated":"2014-09-25 16:20:57.000000000","message":"Yes the defaults are True, based on the function name.\nYes I will change the argument to \"no_vpn\" and \"no_fw\".","commit_id":"5807407671f46e7cd8dcdbace9051668d625787f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"f08c7f585395d992cb7a6a5178b93906b18fc24a","unresolved":false,"context_lines":[{"line_number":358,"context_line":"                                                       fw\u003dTrue))"},{"line_number":359,"context_line":"        self.assertTrue(mock_firewall.called)"},{"line_number":360,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":361,"context_line":"        self.assertEqual(router[\u0027status\u0027], \u0027LEGACY-TO-DVR\u0027)"},{"line_number":362,"context_line":""},{"line_number":363,"context_line":"    def test__validate_router_migration_with_vpnaas_service(self):"},{"line_number":364,"context_line":"        router, mock_firewall, mock_vpnaas \u003d ("}],"source_content_type":"text/x-python","patch_set":6,"id":"da9df570_00c9cbab","line":361,"updated":"2014-09-25 15:02:22.000000000","message":"nit: for all asserts (here and others below), the argument order should be expected, actual.","commit_id":"5807407671f46e7cd8dcdbace9051668d625787f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"fc2e4143e6bc8937c1736d78568ee2281ec99997","unresolved":false,"context_lines":[{"line_number":358,"context_line":"                                                       fw\u003dTrue))"},{"line_number":359,"context_line":"        self.assertTrue(mock_firewall.called)"},{"line_number":360,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":361,"context_line":"        self.assertEqual(router[\u0027status\u0027], \u0027LEGACY-TO-DVR\u0027)"},{"line_number":362,"context_line":""},{"line_number":363,"context_line":"    def test__validate_router_migration_with_vpnaas_service(self):"},{"line_number":364,"context_line":"        router, mock_firewall, mock_vpnaas \u003d ("}],"source_content_type":"text/x-python","patch_set":6,"id":"da9df570_195786cb","line":361,"in_reply_to":"da9df570_00c9cbab","updated":"2014-09-25 16:20:57.000000000","message":"Will fix this nit.","commit_id":"5807407671f46e7cd8dcdbace9051668d625787f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"f08c7f585395d992cb7a6a5178b93906b18fc24a","unresolved":false,"context_lines":[{"line_number":363,"context_line":"    def test__validate_router_migration_with_vpnaas_service(self):"},{"line_number":364,"context_line":"        router, mock_firewall, mock_vpnaas \u003d ("},{"line_number":365,"context_line":"            self._router_migration_with_services_setup("},{"line_number":366,"context_line":"                vpn\u003dFalse, fw\u003dTrue))"},{"line_number":367,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":368,"context_line":"        self.assertNotEqual(router[\u0027status\u0027], \u0027LEGACY-TO-DVR\u0027)"},{"line_number":369,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da9df570_60e61717","line":366,"updated":"2014-09-25 15:02:22.000000000","message":"When I first saw this, I thought it was indicating a migration WITH FW and without VPN.","commit_id":"5807407671f46e7cd8dcdbace9051668d625787f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"fc2e4143e6bc8937c1736d78568ee2281ec99997","unresolved":false,"context_lines":[{"line_number":363,"context_line":"    def test__validate_router_migration_with_vpnaas_service(self):"},{"line_number":364,"context_line":"        router, mock_firewall, mock_vpnaas \u003d ("},{"line_number":365,"context_line":"            self._router_migration_with_services_setup("},{"line_number":366,"context_line":"                vpn\u003dFalse, fw\u003dTrue))"},{"line_number":367,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":368,"context_line":"        self.assertNotEqual(router[\u0027status\u0027], \u0027LEGACY-TO-DVR\u0027)"},{"line_number":369,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da9df570_5974ae67","line":366,"in_reply_to":"da9df570_60e61717","updated":"2014-09-25 16:20:57.000000000","message":"No it is just testing to make sure what will happen if one service is present and the other missing.","commit_id":"5807407671f46e7cd8dcdbace9051668d625787f"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"28c210a3c0406c16eeb2a3932189961dbe92796f","unresolved":false,"context_lines":[{"line_number":364,"context_line":"        router, mock_firewall, mock_vpnaas \u003d ("},{"line_number":365,"context_line":"            self._router_migration_with_services_setup("},{"line_number":366,"context_line":"                vpn\u003dFalse, fw\u003dTrue))"},{"line_number":367,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":368,"context_line":"        self.assertNotEqual(router[\u0027status\u0027], \u0027LEGACY-TO-DVR\u0027)"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    def test__validate_router_migration_with_fwaas_service(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"da9df570_c438c0f1","line":367,"updated":"2014-09-25 09:42:19.000000000","message":"(no action needed) I\u0027m wondering if we should have asserts for both mocks here and in test__validate_router_migration_with_fwaas_service or not","commit_id":"5807407671f46e7cd8dcdbace9051668d625787f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"fc2e4143e6bc8937c1736d78568ee2281ec99997","unresolved":false,"context_lines":[{"line_number":364,"context_line":"        router, mock_firewall, mock_vpnaas \u003d ("},{"line_number":365,"context_line":"            self._router_migration_with_services_setup("},{"line_number":366,"context_line":"                vpn\u003dFalse, fw\u003dTrue))"},{"line_number":367,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":368,"context_line":"        self.assertNotEqual(router[\u0027status\u0027], \u0027LEGACY-TO-DVR\u0027)"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    def test__validate_router_migration_with_fwaas_service(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"da9df570_59fbcec0","line":367,"in_reply_to":"da9df570_c438c0f1","updated":"2014-09-25 16:20:57.000000000","message":"Jacek Swiderski: In my initial patch I did have the asserts for both and based on review comments, I removed it.","commit_id":"5807407671f46e7cd8dcdbace9051668d625787f"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"f8169a86e67ba24206158a6fc5a70da8f13f81d5","unresolved":false,"context_lines":[{"line_number":324,"context_line":"            mock.patch.object(self.mixin, \u0027_get_router\u0027)"},{"line_number":325,"context_line":"                              ) as (v, f, r):"},{"line_number":326,"context_line":"            r.return_value \u003d router_db"},{"line_number":327,"context_line":"            v.return_value \u003d no_vpn"},{"line_number":328,"context_line":"            f.return_value \u003d no_fw"},{"line_number":329,"context_line":"            router_db[\u0027status\u0027] \u003d \u0027ACTIVE\u0027"},{"line_number":330,"context_line":"            self.mixin._validate_router_migration("}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_ea32a30e","line":327,"updated":"2014-12-03 21:22:01.000000000","message":"if no_vpn is false, the v mock should have a side effect that throws RouterInUseByServiceMigrationNotAllowed . See my next comment please.","commit_id":"04659825d787539d4a3a983deb66d19c16cbca75"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"dbd55847d8ee0d6c1ea1a2dca4daf666b6282855","unresolved":false,"context_lines":[{"line_number":324,"context_line":"            mock.patch.object(self.mixin, \u0027_get_router\u0027)"},{"line_number":325,"context_line":"                              ) as (v, f, r):"},{"line_number":326,"context_line":"            r.return_value \u003d router_db"},{"line_number":327,"context_line":"            v.return_value \u003d no_vpn"},{"line_number":328,"context_line":"            f.return_value \u003d no_fw"},{"line_number":329,"context_line":"            router_db[\u0027status\u0027] \u003d \u0027ACTIVE\u0027"},{"line_number":330,"context_line":"            self.mixin._validate_router_migration("}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_7c0c93ec","line":327,"in_reply_to":"5a890539_ea32a30e","updated":"2014-12-04 21:18:55.000000000","message":"Are you suggesting to add an additional validation of Exception in here.\nI have a test that checks for the Exception below: test_check_if_router_has_vpnaas.","commit_id":"04659825d787539d4a3a983deb66d19c16cbca75"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"f8169a86e67ba24206158a6fc5a70da8f13f81d5","unresolved":false,"context_lines":[{"line_number":343,"context_line":"        router, mock_firewall, mock_vpnaas \u003d ("},{"line_number":344,"context_line":"            self._router_migration_with_services_setup("},{"line_number":345,"context_line":"                no_vpn\u003dFalse, no_fw\u003dTrue))"},{"line_number":346,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"    def test__validate_router_migration_with_fwaas_service(self):"},{"line_number":349,"context_line":"        \u0027\u0027\u0027Test to check router migration fail with fwaas.\u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_9e6404e6","line":346,"updated":"2014-12-03 21:22:01.000000000","message":"If you follow my previous suggestion we can assert here that RouterInUseByServiceMigrationNotAllowed is raised. I know it doesn\u0027t add much but at least we can make sure that the exception is propagated to the caller, which is the expected result. I\u0027d do the same for the firewall service test.","commit_id":"04659825d787539d4a3a983deb66d19c16cbca75"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"dbd55847d8ee0d6c1ea1a2dca4daf666b6282855","unresolved":false,"context_lines":[{"line_number":343,"context_line":"        router, mock_firewall, mock_vpnaas \u003d ("},{"line_number":344,"context_line":"            self._router_migration_with_services_setup("},{"line_number":345,"context_line":"                no_vpn\u003dFalse, no_fw\u003dTrue))"},{"line_number":346,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"    def test__validate_router_migration_with_fwaas_service(self):"},{"line_number":349,"context_line":"        \u0027\u0027\u0027Test to check router migration fail with fwaas.\u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_1cfb8fbe","line":346,"in_reply_to":"5a890539_9e6404e6","updated":"2014-12-04 21:18:55.000000000","message":"Are you suggesting to add an additional validation of Exception in here. I have a test that checks for the Exception below: test_check_if_router_has_fwaas_service.","commit_id":"04659825d787539d4a3a983deb66d19c16cbca75"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"e99e55a47995a657dff681e5996454e04a7f07fd","unresolved":false,"context_lines":[{"line_number":343,"context_line":"        router, mock_firewall, mock_vpnaas \u003d ("},{"line_number":344,"context_line":"            self._router_migration_with_services_setup("},{"line_number":345,"context_line":"                no_vpn\u003dFalse, no_fw\u003dTrue))"},{"line_number":346,"context_line":"        self.assertTrue(mock_vpnaas.called)"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"    def test__validate_router_migration_with_fwaas_service(self):"},{"line_number":349,"context_line":"        \u0027\u0027\u0027Test to check router migration fail with fwaas.\u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_5a340ddf","line":346,"in_reply_to":"5a890539_9e6404e6","updated":"2014-12-05 20:13:52.000000000","message":"I have addressed your comments in the next patch.","commit_id":"04659825d787539d4a3a983deb66d19c16cbca75"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"5cce70aa8c3a1699dc2a590cd0c80da10565d32c","unresolved":false,"context_lines":[{"line_number":345,"context_line":"                    {\u0027distributed\u0027: True})"},{"line_number":346,"context_line":"                return router_db, fw_mock, vpn_mock"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"    def test__validate_router_migration_with_atleast_oneservice(self):"},{"line_number":349,"context_line":"        \u0027\u0027\u0027Test to check router migration with atleast oneservice.\u0027\u0027\u0027"},{"line_number":350,"context_line":"        router_db, mock_firewall, mock_vpnaas \u003d ("},{"line_number":351,"context_line":"            self._router_migration_with_services_setup("}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_ac76b8d6","line":348,"updated":"2014-12-07 23:38:07.000000000","message":"nit: at_least_one_service\n\nNot sure how useful this test case is, as you have ones below when no services, and with VPN and with FW. This is sort of a subset of the last two.","commit_id":"3b902adfa9484b2c4b961035f43d4f03e769e138"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"b3f5f978d22414629b8736b704116b8300685c8d","unresolved":false,"context_lines":[{"line_number":345,"context_line":"                    {\u0027distributed\u0027: True})"},{"line_number":346,"context_line":"                return router_db, fw_mock, vpn_mock"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"    def test__validate_router_migration_with_atleast_oneservice(self):"},{"line_number":349,"context_line":"        \u0027\u0027\u0027Test to check router migration with atleast oneservice.\u0027\u0027\u0027"},{"line_number":350,"context_line":"        router_db, mock_firewall, mock_vpnaas \u003d ("},{"line_number":351,"context_line":"            self._router_migration_with_services_setup("}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_3fce4f84","line":348,"in_reply_to":"3a961159_ac76b8d6","updated":"2014-12-08 17:40:19.000000000","message":"Hi Paul,\nthis was based on a comment from \"Rosella\" to add a side-effect, since I had a side effect it was easier to show a failure scenario.\n\nThis will happend when the first service check fails.\n\nSee the preivous comments from \"Rosella\".","commit_id":"3b902adfa9484b2c4b961035f43d4f03e769e138"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"5cce70aa8c3a1699dc2a590cd0c80da10565d32c","unresolved":false,"context_lines":[{"line_number":353,"context_line":"                    router_id\u003d\u0027fake_id\u0027,"},{"line_number":354,"context_line":"                    service_name\u003d\u0027vpnaas\u0027,"},{"line_number":355,"context_line":"                ),"},{"line_number":356,"context_line":"                no_vpn\u003dTrue,"},{"line_number":357,"context_line":"                no_fw\u003dFalse))"},{"line_number":358,"context_line":"        mock_vpnaas.assert_called_once_with(self.ctx, router_db)"},{"line_number":359,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_4c363405","line":356,"updated":"2014-12-07 23:38:07.000000000","message":"Not sure if I\u0027m jet lagged, but shouldn\u0027t this be no_vpn\u003dFalse? If there IS a VPN, we expect the side effect to be an exception for the VPN service right?","commit_id":"3b902adfa9484b2c4b961035f43d4f03e769e138"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"b3f5f978d22414629b8736b704116b8300685c8d","unresolved":false,"context_lines":[{"line_number":353,"context_line":"                    router_id\u003d\u0027fake_id\u0027,"},{"line_number":354,"context_line":"                    service_name\u003d\u0027vpnaas\u0027,"},{"line_number":355,"context_line":"                ),"},{"line_number":356,"context_line":"                no_vpn\u003dTrue,"},{"line_number":357,"context_line":"                no_fw\u003dFalse))"},{"line_number":358,"context_line":"        mock_vpnaas.assert_called_once_with(self.ctx, router_db)"},{"line_number":359,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_5f923b58","line":356,"in_reply_to":"3a961159_4c363405","updated":"2014-12-08 17:40:19.000000000","message":"This is how it has been from day one.\nNothing has changed.","commit_id":"3b902adfa9484b2c4b961035f43d4f03e769e138"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b1796efa467e68edfe8aa235ff714039178c9670","unresolved":false,"context_lines":[{"line_number":382,"context_line":"        mock_vpnaas.assert_called_once_with(self.ctx, router_db)"},{"line_number":383,"context_line":"        mock_firewall.assert_called_once_with(self.ctx, router_db)"},{"line_number":384,"context_line":""},{"line_number":385,"context_line":"    def test_check_router_has_firewall(self):"},{"line_number":386,"context_line":"        \u0027\u0027\u0027Test to check router migration with fwaas.\u0027\u0027\u0027"},{"line_number":387,"context_line":"        router \u003d {\u0027name\u0027: \u0027foo_router\u0027,"},{"line_number":388,"context_line":"                  \u0027admin_state_up\u0027: True,"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a961159_ff36c4e5","line":385,"updated":"2014-12-23 20:46:19.000000000","message":"if we moved the check for firewall to the firewall project, where it may turn out to be used for other purposes, this test would need to move there.","commit_id":"cfc802d21603eceff3d94d20742e5eebe657dd5f"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b1796efa467e68edfe8aa235ff714039178c9670","unresolved":false,"context_lines":[{"line_number":405,"context_line":"                              self.mixin.check_router_has_no_firewall,"},{"line_number":406,"context_line":"                              self.ctx, router_db)"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"    def test_check_router_has_vpnaas(self):"},{"line_number":409,"context_line":"        \u0027\u0027\u0027Test to check router migration with vpnaas.\u0027\u0027\u0027"},{"line_number":410,"context_line":"        router \u003d {\u0027name\u0027: \u0027foo_router\u0027,"},{"line_number":411,"context_line":"                  \u0027admin_state_up\u0027: True,"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a961159_1f1b9073","line":408,"updated":"2014-12-23 20:46:19.000000000","message":"if you reused the method from vpnaas, you might get away without this test, I suspect coverage is already provided for the check_router...","commit_id":"cfc802d21603eceff3d94d20742e5eebe657dd5f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"1b733343b4c36f6f4acb0cc9965cf45a2fa206e0","unresolved":false,"context_lines":[{"line_number":405,"context_line":"                              self.mixin.check_router_has_no_firewall,"},{"line_number":406,"context_line":"                              self.ctx, router_db)"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"    def test_check_router_has_vpnaas(self):"},{"line_number":409,"context_line":"        \u0027\u0027\u0027Test to check router migration with vpnaas.\u0027\u0027\u0027"},{"line_number":410,"context_line":"        router \u003d {\u0027name\u0027: \u0027foo_router\u0027,"},{"line_number":411,"context_line":"                  \u0027admin_state_up\u0027: True,"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a961159_3fced62d","line":408,"in_reply_to":"3a961159_1f1b9073","updated":"2015-01-06 14:04:30.000000000","message":"I don\u0027t see any tests in VPN code for checking if router in use by VPN.","commit_id":"cfc802d21603eceff3d94d20742e5eebe657dd5f"}]}
