)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2d5928ffb520cdfc62411585102153f7343a50c5","unresolved":false,"context_lines":[{"line_number":3,"context_line":"AuthorDate: 2014-12-22 21:01:45 +0000"},{"line_number":4,"context_line":"Commit:     Carl Baldwin \u003ccarl.baldwin@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-01-08 23:20:41 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Create DvrRouter and HaRouter as a sub-class of Router"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This commit creates them as simple sub-classes and instantiates them"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_20d4991e","line":6,"updated":"2015-01-09 10:32:15.000000000","message":"I\u0027ll be honest it\u0027s *very* hard to know if this design fullfils the requirements on HEAD, and in Michael\u0027s patch. Will it be possible to start moving stuff into the Router classes and have everything still nice and clean? I don\u0027t know. I\u0027d like to see a dependent patch that moves 3 pieces of code, as examples, to prove that we\u0027re on the right path, *before* this patch is merged:\n\n  1) Something that happens if the router is not distributed nor HA.\n  2) Something that happens if the router is only HA.\n  3) Something that happens if the router is only distributed.\n  4) Something that happens if the router is both distributed and HA (This will happen in Michael\u0027s patch, separate from the above mentioned follow up).\n\nMy second point, which I wrote on Michael\u0027s patch as well here: https://review.openstack.org/#/c/139686/5//COMMIT_MSG (Second paragraph)\n\nFirst get Micahel\u0027s patch working functionallity, so we understand what we *need* (Basically additional requirements), then we make the necessary changes (Hopefully none) to this patch, then depend on it.","commit_id":"a3c0c23b808ecc86f184e707f247808bf8ad1a6f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"98e60988022314c0ae3da25e1a11b182e26a8f5c","unresolved":false,"context_lines":[{"line_number":3,"context_line":"AuthorDate: 2014-12-22 21:01:45 +0000"},{"line_number":4,"context_line":"Commit:     Carl Baldwin \u003ccarl.baldwin@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-01-08 23:20:41 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Create DvrRouter and HaRouter as a sub-class of Router"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This commit creates them as simple sub-classes and instantiates them"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_c61f66b7","line":6,"in_reply_to":"3a961159_20d4991e","updated":"2015-01-09 17:21:13.000000000","message":"If we insist on getting Michael\u0027s patch working before this can merge then we must put refactoring on hold for weeks or months (please, let\u0027s not be overly optimistic here).  Making it a dependency of this refactoring effort will stall this effort to beyond what we can accomplish in the Kilo timeframe.\n\nMichael\u0027s patch is *new* functionality.  While I understand the desire to be sure that this will support the new functionality, I\u0027m not concerned enough to change direction like this.  The priority for this cycle is paying down technical debt over adding new functionality.","commit_id":"a3c0c23b808ecc86f184e707f247808bf8ad1a6f"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"e5128a3b7b9a8766925164c59a8d2478832cfef7","unresolved":false,"context_lines":[{"line_number":3,"context_line":"AuthorDate: 2014-12-22 21:01:45 +0000"},{"line_number":4,"context_line":"Commit:     Carl Baldwin \u003ccarl.baldwin@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-01-08 23:20:41 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Create DvrRouter and HaRouter as a sub-class of Router"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This commit creates them as simple sub-classes and instantiates them"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_6ad47b1f","line":6,"in_reply_to":"3a961159_37dbc450","updated":"2015-01-13 00:46:32.000000000","message":"I did not mean for this patch to depend on Michael\u0027s patch. I meant that, if an additional 1 or 2 weeks will make a different, we should wait until Michael has something that\u0027s working (Not perfect, not mergeable, without tests, but working). The alternative is for Michael to depend on this patch and just see if it\u0027s workable.","commit_id":"a3c0c23b808ecc86f184e707f247808bf8ad1a6f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"f001256aedb3270ede2bdbf6d97e2d7de7d30487","unresolved":false,"context_lines":[{"line_number":3,"context_line":"AuthorDate: 2014-12-22 21:01:45 +0000"},{"line_number":4,"context_line":"Commit:     Carl Baldwin \u003ccarl.baldwin@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-01-08 23:20:41 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Create DvrRouter and HaRouter as a sub-class of Router"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This commit creates them as simple sub-classes and instantiates them"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_37dbc450","line":6,"in_reply_to":"3a961159_c61f66b7","updated":"2015-01-12 18:39:10.000000000","message":"I might have gone a little overboard with the weeks or months thing.  However, I still say it doesn\u0027t make sense to hold off the refactoring until we\u0027ve added the functionality.  Debt payment is a priority.\n\nIf you are concerned with how something will work specifically then let\u0027s discuss it.  However, I\u0027m not concerned that we\u0027re going to paint ourselves in to a corner here.  We\u0027ll figure out how to make it work.","commit_id":"a3c0c23b808ecc86f184e707f247808bf8ad1a6f"}],"neutron/agent/l3/agent.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2c3633de8b69e18ded37c8de2fab3454e5bb01d2","unresolved":false,"context_lines":[{"line_number":404,"context_line":"                    raise Exception(msg)"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"    def _create_router(self, router_id, router):"},{"line_number":407,"context_line":"        if router.get(\u0027distributed\u0027) and router.get(\u0027ha\u0027):"},{"line_number":408,"context_line":"            raise n_exc.DvrHaRouterNotSupported(router_id\u003drouter_id)"},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_35f50e51","line":407,"updated":"2015-01-06 19:40:54.000000000","message":"Hopefully, this will be implemented.  Are there any concerns about implementing an HaDvrRouter given the direction this patch takes?","commit_id":"ea20dcccdf002191ad72e2a2f292506205e16423"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2c3633de8b69e18ded37c8de2fab3454e5bb01d2","unresolved":false,"context_lines":[{"line_number":409,"context_line":""},{"line_number":410,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":411,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":412,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":413,"context_line":"            return dvr_router.DvrRouter(router_id\u003drouter_id,"},{"line_number":414,"context_line":"                                        root_helper\u003dself.root_helper,"},{"line_number":415,"context_line":"                                        router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_7565d643","line":412,"updated":"2015-01-06 19:40:54.000000000","message":"I\u0027m concerned about how a migration from legacy -\u003e DVR will be handled now that each is a specific class.  Adding Mike Smith to help me figure out the impact.","commit_id":"ea20dcccdf002191ad72e2a2f292506205e16423"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"a17c96ca58b933e358d36536653f84ff2343a34b","unresolved":false,"context_lines":[{"line_number":409,"context_line":""},{"line_number":410,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":411,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":412,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":413,"context_line":"            return dvr_router.DvrRouter(router_id\u003drouter_id,"},{"line_number":414,"context_line":"                                        root_helper\u003dself.root_helper,"},{"line_number":415,"context_line":"                                        router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_7b40645f","line":412,"in_reply_to":"3a961159_7565d643","updated":"2015-01-06 22:41:18.000000000","message":"I checked out the patch and ran some tests for migration - seemed fine.  Since we require the router to be disabled via admin_state_up\u003dTrue prior to the router update to distributed, what the agent sees is a \"router removed\" then \"router added\" so this path would work.","commit_id":"ea20dcccdf002191ad72e2a2f292506205e16423"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2c3633de8b69e18ded37c8de2fab3454e5bb01d2","unresolved":false,"context_lines":[{"line_number":416,"context_line":"                                        use_ipv6\u003dself.use_ipv6,"},{"line_number":417,"context_line":"                                        ns_name\u003dns_name)"},{"line_number":418,"context_line":""},{"line_number":419,"context_line":"        if router.get(\u0027ha\u0027):"},{"line_number":420,"context_line":"            return ha_router.HaRouter(router_id\u003drouter_id,"},{"line_number":421,"context_line":"                                      root_helper\u003dself.root_helper,"},{"line_number":422,"context_line":"                                      router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_b55bbe84","line":419,"updated":"2015-01-06 19:40:54.000000000","message":"Do we also need to worry about migration from legacy to HA?","commit_id":"ea20dcccdf002191ad72e2a2f292506205e16423"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"4d13fbcc952909efefd3f07c1d32ca1a09a71afc","unresolved":false,"context_lines":[{"line_number":422,"context_line":"                                      router\u003drouter,"},{"line_number":423,"context_line":"                                      use_ipv6\u003dself.use_ipv6,"},{"line_number":424,"context_line":"                                      ns_name\u003dns_name,"},{"line_number":425,"context_line":"                                      host\u003dself.host)"},{"line_number":426,"context_line":""},{"line_number":427,"context_line":"        return router_info.RouterInfo(router_id\u003drouter_id,"},{"line_number":428,"context_line":"                                      root_helper\u003dself.root_helper,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_96588532","line":425,"updated":"2015-01-06 22:24:56.000000000","message":"host isn\u0027t supposed to be here in this change.","commit_id":"ea20dcccdf002191ad72e2a2f292506205e16423"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2c3633de8b69e18ded37c8de2fab3454e5bb01d2","unresolved":false,"context_lines":[{"line_number":424,"context_line":"                                      ns_name\u003dns_name,"},{"line_number":425,"context_line":"                                      host\u003dself.host)"},{"line_number":426,"context_line":""},{"line_number":427,"context_line":"        return router_info.RouterInfo(router_id\u003drouter_id,"},{"line_number":428,"context_line":"                                      root_helper\u003dself.root_helper,"},{"line_number":429,"context_line":"                                      router\u003drouter,"},{"line_number":430,"context_line":"                                      use_ipv6\u003dself.use_ipv6,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_35a34e44","line":427,"updated":"2015-01-06 19:40:54.000000000","message":"I think my original plan was to create a LegacyRouter too.  My thinking is that having Dvr and Ha inherit from a legacy router is wrong.  I think that the base router class and legacy router should be distinct classes.  I will address this with a future patch set.","commit_id":"ea20dcccdf002191ad72e2a2f292506205e16423"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"9fd4a276c067566f41e267a34891449df7cbd6de","unresolved":false,"context_lines":[{"line_number":404,"context_line":"                    raise Exception(msg)"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"    def _create_router(self, router_id, router):"},{"line_number":407,"context_line":"        if router.get(\u0027distributed\u0027) and router.get(\u0027ha\u0027):"},{"line_number":408,"context_line":"            raise n_exc.DvrHaRouterNotSupported(router_id\u003drouter_id)"},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_b63901da","line":407,"updated":"2015-01-06 22:24:43.000000000","message":"Hopefully, this will be implemented. Are there any concerns about implementing an HaDvrRouter given the direction this patch takes?","commit_id":"61bad9c7d6c09a648096d55c4c8664a1137ccb01"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"9fd4a276c067566f41e267a34891449df7cbd6de","unresolved":false,"context_lines":[{"line_number":416,"context_line":"                                        use_ipv6\u003dself.use_ipv6,"},{"line_number":417,"context_line":"                                        ns_name\u003dns_name)"},{"line_number":418,"context_line":""},{"line_number":419,"context_line":"        if router.get(\u0027ha\u0027):"},{"line_number":420,"context_line":"            return ha_router.HaRouter(router_id\u003drouter_id,"},{"line_number":421,"context_line":"                                      root_helper\u003dself.root_helper,"},{"line_number":422,"context_line":"                                      router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_364d1173","line":419,"updated":"2015-01-06 22:24:43.000000000","message":"Do we also need to worry about migration from legacy to HA?","commit_id":"61bad9c7d6c09a648096d55c4c8664a1137ccb01"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"e76925284cdd10f2e332ae09ccc214e641de6b7c","unresolved":false,"context_lines":[{"line_number":408,"context_line":"    def _create_router(self, router_id, router):"},{"line_number":409,"context_line":"        if router.get(\u0027distributed\u0027) and router.get(\u0027ha\u0027):"},{"line_number":410,"context_line":"            raise n_exc.DvrHaRouterNotSupported(router_id\u003drouter_id)"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":413,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":414,"context_line":"        if router.get(\u0027distributed\u0027):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_a280a3bf","line":411,"updated":"2015-01-08 17:53:36.000000000","message":"This will make it hard to support dvr and ha together no?  I guess it will have to be changed when the dvr+ha support is merged.","commit_id":"781081937ff6b142f5c30f252259e35c3db0ecb8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"4eec1b5daae9135fa167cb66b52ac78908aba477","unresolved":false,"context_lines":[{"line_number":408,"context_line":"    def _create_router(self, router_id, router):"},{"line_number":409,"context_line":"        if router.get(\u0027distributed\u0027) and router.get(\u0027ha\u0027):"},{"line_number":410,"context_line":"            raise n_exc.DvrHaRouterNotSupported(router_id\u003drouter_id)"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":413,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":414,"context_line":"        if router.get(\u0027distributed\u0027):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_b5353b46","line":411,"in_reply_to":"3a961159_a280a3bf","updated":"2015-01-08 17:58:16.000000000","message":"I think that we should coordinate and maybet he dvr+ha patch should get behind this patch as a dependent patch.  If that were the case, that patch could just change this.","commit_id":"781081937ff6b142f5c30f252259e35c3db0ecb8"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"e76925284cdd10f2e332ae09ccc214e641de6b7c","unresolved":false,"context_lines":[{"line_number":430,"context_line":"                                          router\u003drouter,"},{"line_number":431,"context_line":"                                          use_ipv6\u003dself.use_ipv6,"},{"line_number":432,"context_line":"                                          ns_name\u003dns_name)"},{"line_number":433,"context_line":""},{"line_number":434,"context_line":"    def _router_added(self, router_id, router):"},{"line_number":435,"context_line":"        ri \u003d self._create_router(router_id, router)"},{"line_number":436,"context_line":"        self.event_observers.notify("}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_6296bbf1","line":433,"updated":"2015-01-08 17:53:36.000000000","message":"Can we add a \"TODO\": we need to be able to support a router that is both dvr and ha","commit_id":"781081937ff6b142f5c30f252259e35c3db0ecb8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"4eec1b5daae9135fa167cb66b52ac78908aba477","unresolved":false,"context_lines":[{"line_number":430,"context_line":"                                          router\u003drouter,"},{"line_number":431,"context_line":"                                          use_ipv6\u003dself.use_ipv6,"},{"line_number":432,"context_line":"                                          ns_name\u003dns_name)"},{"line_number":433,"context_line":""},{"line_number":434,"context_line":"    def _router_added(self, router_id, router):"},{"line_number":435,"context_line":"        ri \u003d self._create_router(router_id, router)"},{"line_number":436,"context_line":"        self.event_observers.notify("}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_f52183fc","line":433,"in_reply_to":"3a961159_6296bbf1","updated":"2015-01-08 17:58:16.000000000","message":"I\u0027ll add a TODO.","commit_id":"781081937ff6b142f5c30f252259e35c3db0ecb8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"08960dd3ebe0358af8619ba0984d6d59136374ca","unresolved":false,"context_lines":[{"line_number":413,"context_line":""},{"line_number":414,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":415,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":416,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":417,"context_line":"            return dvr_router.DvrRouter(router_id\u003drouter_id,"},{"line_number":418,"context_line":"                                        root_helper\u003dself.root_helper,"},{"line_number":419,"context_line":"                                        router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_91c7fa64","line":416,"updated":"2015-01-13 19:32:26.000000000","message":"easier to read:\n\n if router.get(\u0027distributed\u0027):\n   router_class \u003d dvr_router.DvrRouter\n elif router.get(\u0027ha\u0027):\n   router_class \u003d ha_router.HaRouter\n else:\n   router_class \u003d legacy_router.LegacyRouter\n\n return router_class(...)","commit_id":"f45139efaafbd653ef7eb94696cab6c15069f71d"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0b25da632a87b8f5ca31e6adadaacd5512f4f7df","unresolved":false,"context_lines":[{"line_number":413,"context_line":""},{"line_number":414,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":415,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":416,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":417,"context_line":"            return dvr_router.DvrRouter(router_id\u003drouter_id,"},{"line_number":418,"context_line":"                                        root_helper\u003dself.root_helper,"},{"line_number":419,"context_line":"                                        router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_cf29daf3","line":416,"in_reply_to":"3a961159_91c7fa64","updated":"2015-01-13 22:12:37.000000000","message":"In the near future, they will not all take the same arguments.  For example, a follow-on patch will add a host argument to the Dvr one but not the others.  So, it isn\u0027t just the decision of what class to instantiate here.\n\nI admit though that this could be improved on.  I\u0027m willing to accept this for the first pass and allow others to improve on it later on in the cycle.","commit_id":"f45139efaafbd653ef7eb94696cab6c15069f71d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"8b03e63c2378bf00782dafea32b1ff4f004d77a3","unresolved":false,"context_lines":[{"line_number":346,"context_line":"    def _create_router(self, router_id, router):"},{"line_number":347,"context_line":"        # TODO(Carl) We need to support a router that is both HA and DVR.  The"},{"line_number":348,"context_line":"        # patch that enables it will replace these lines.  See bug #1365473."},{"line_number":349,"context_line":"        if router.get(\u0027distributed\u0027) and router.get(\u0027ha\u0027):"},{"line_number":350,"context_line":"            raise n_exc.DvrHaRouterNotSupported(router_id\u003drouter_id)"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_67e970aa","line":349,"updated":"2015-01-16 20:33:04.000000000","message":"isn\u0027t that odd having this check on the agent side? Wouldn\u0027t the server prevent that? Or at least the best place to put this interim check? I am sure you have a good reason for putting it here.","commit_id":"be7d8c0d197f5a4af9bbfe947361b510b2100fff"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"ff1940e851e8afab84e5ed3b1e7cfec1477ce8b4","unresolved":false,"context_lines":[{"line_number":346,"context_line":"    def _create_router(self, router_id, router):"},{"line_number":347,"context_line":"        # TODO(Carl) We need to support a router that is both HA and DVR.  The"},{"line_number":348,"context_line":"        # patch that enables it will replace these lines.  See bug #1365473."},{"line_number":349,"context_line":"        if router.get(\u0027distributed\u0027) and router.get(\u0027ha\u0027):"},{"line_number":350,"context_line":"            raise n_exc.DvrHaRouterNotSupported(router_id\u003drouter_id)"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_72b04c40","line":349,"in_reply_to":"3a961159_67e970aa","updated":"2015-01-16 20:52:23.000000000","message":"I do believe that the server will prevent this.  However, regardless of the server, I put it in here just because it makes it clear that the rest of this method\u0027s logic will not work correctly in this case and that it must be implemented here when the server-side allows it.  I\u0027d like to leave it here for now and let Michael remove it when that work is done.","commit_id":"be7d8c0d197f5a4af9bbfe947361b510b2100fff"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"8b03e63c2378bf00782dafea32b1ff4f004d77a3","unresolved":false,"context_lines":[{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":353,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":354,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":355,"context_line":"            return dvr_router.DvrRouter(router_id\u003drouter_id,"},{"line_number":356,"context_line":"                                        root_helper\u003dself.root_helper,"},{"line_number":357,"context_line":"                                        router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_67dc10e2","line":354,"updated":"2015-01-16 20:33:04.000000000","message":"it won\u0027t change much, and you don\u0027t have to take action on this if you decide not too...but what about providing a better factory method implementation where you basically do:\n\n  routers_factory \u003d {\n     \u0027distributed\u0027: dvr_router.DvrRouter,\n     \u0027ha\u0027: ha_router.HaRouter,\n     \u0027legacy\u0027: legacy_router.LegacyRouter,\n     \u0027dvr+ha\u0027: NotImplementedError,\n  }\n\nWe could change router to hold a type and then do:\n  \n  return routers_factory.get(router[\u0027type\u0027])(router_id\u003drouter_id, ...)\n\nWouldn\u0027t that be cool? The problem I see with this structure is that it\u0027s hard to keep it when we want to support both.","commit_id":"be7d8c0d197f5a4af9bbfe947361b510b2100fff"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b64515cfadfa0c5bc830d05e2a8170854ed37660","unresolved":false,"context_lines":[{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":353,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":354,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":355,"context_line":"            return dvr_router.DvrRouter(router_id\u003drouter_id,"},{"line_number":356,"context_line":"                                        root_helper\u003dself.root_helper,"},{"line_number":357,"context_line":"                                        router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_d256605d","line":354,"in_reply_to":"3a961159_4702b40c","updated":"2015-01-16 21:06:43.000000000","message":"Got it. I figured that the arglist could change, but if that was the case we could always you yet another never of encapsulation and wrap up the args into another class :)\n\nJokes aside, if you believe the code is going to become uglier or more difficult to read, this works fine for now. I really don\u0027t think we\u0027re gonna have more than 4 types of routers, and so long as the the switch-case logic is limited to a single place (here), than we should be fine.\n\nPerhaps it would make sense to isolate this as a factory method out of the agent.py to make it stand out for clarity.","commit_id":"be7d8c0d197f5a4af9bbfe947361b510b2100fff"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"ff1940e851e8afab84e5ed3b1e7cfec1477ce8b4","unresolved":false,"context_lines":[{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":353,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":354,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":355,"context_line":"            return dvr_router.DvrRouter(router_id\u003drouter_id,"},{"line_number":356,"context_line":"                                        root_helper\u003dself.root_helper,"},{"line_number":357,"context_line":"                                        router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_4702b40c","line":354,"in_reply_to":"3a961159_67dc10e2","updated":"2015-01-16 20:52:23.000000000","message":"A note from @Cedric on PS12 got me thinking along these lines too.  I pushed back on getting it in to this patch but have had it in the back of my mind.  Maybe it is time to just tackle it.\n\nThe issue is that they don\u0027t necessarily want or understand exactly the same arguments.  Example is that dvr wants the host name whereas other types don\u0027t care what the host is (in a follow-on patch).\n\nWould you go for something like setting up the args and kwargs manually, adding the host if it is dvr, and then passing *args, **kwargs to the class returned by the routers_factory?\n\n@Cedric, feel free to chime in here too.","commit_id":"be7d8c0d197f5a4af9bbfe947361b510b2100fff"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"6da2b9105960ebecb1322139419410391df77554","unresolved":false,"context_lines":[{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":353,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":354,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":355,"context_line":"            return dvr_router.DvrRouter(router_id\u003drouter_id,"},{"line_number":356,"context_line":"                                        root_helper\u003dself.root_helper,"},{"line_number":357,"context_line":"                                        router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_df6748e8","line":354,"in_reply_to":"3a961159_d256605d","updated":"2015-01-16 21:47:28.000000000","message":"Would you call this an improvement?\n\n        args \u003d []\n        kwargs \u003d {\n            \u0027router_id\u0027: router_id,\n            \u0027root_helper\u0027: self.root_helper,\n            \u0027router\u0027: router,\n            \u0027use_ipv6\u0027: self.use_ipv6,\n            \u0027ns_name\u0027: ns_name,\n        }\n\n        if router.get(\u0027distributed\u0027):\n            return dvr_router.DvrRouter(*args, **kwargs)\n\n        if router.get(\u0027ha\u0027):\n            return ha_router.HaRouter(*args, **kwargs)\n       \n        return legacy_router.LegacyRouter(*args, **kwargs)","commit_id":"be7d8c0d197f5a4af9bbfe947361b510b2100fff"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"411e064b9edf58b1761a62a264ff956c22070c01","unresolved":false,"context_lines":[{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":353,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":354,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":355,"context_line":"            return dvr_router.DvrRouter(router_id\u003drouter_id,"},{"line_number":356,"context_line":"                                        root_helper\u003dself.root_helper,"},{"line_number":357,"context_line":"                                        router\u003drouter,"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_7fec9429","line":354,"in_reply_to":"3a961159_df6748e8","updated":"2015-01-16 21:49:27.000000000","message":"@Armando also about moving this out to a factory.  I considered doing that down the road.  It is not a difficult structural change and could be done as low-hanging fruit later in the cycle.  That was my thinking.","commit_id":"be7d8c0d197f5a4af9bbfe947361b510b2100fff"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"09aedbbbe6b37b38aa0c850908e78e7980d86f16","unresolved":false,"context_lines":[{"line_number":350,"context_line":"            raise n_exc.DvrHaRouterNotSupported(router_id\u003drouter_id)"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":353,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":354,"context_line":"        args \u003d []"},{"line_number":355,"context_line":"        kwargs \u003d {"},{"line_number":356,"context_line":"            \u0027router_id\u0027: router_id,"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_a52cff02","line":353,"updated":"2015-01-19 22:41:35.000000000","message":"Is it possible to use ha/distributed modes with use_namespace \u003d\u003d False?","commit_id":"522695e9cd959f79a5fab003941cf52aa618821d"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"919a420ca61da7e7c38f47c56c08b49052faf0ef","unresolved":false,"context_lines":[{"line_number":350,"context_line":"            raise n_exc.DvrHaRouterNotSupported(router_id\u003drouter_id)"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":353,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":354,"context_line":"        args \u003d []"},{"line_number":355,"context_line":"        kwargs \u003d {"},{"line_number":356,"context_line":"            \u0027router_id\u0027: router_id,"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_d18c50da","line":353,"in_reply_to":"3a961159_a52cff02","updated":"2015-01-20 16:36:25.000000000","message":"For distributed, no.  For HA, I don\u0027t think so but I\u0027m not 100% positive.  Are you suggesting some change or what?  This patch has changed anything in that regard as far as I can tell.","commit_id":"522695e9cd959f79a5fab003941cf52aa618821d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"9aea912d3e314ed1243ca839572b8f3853e53fbc","unresolved":false,"context_lines":[{"line_number":350,"context_line":"            raise n_exc.DvrHaRouterNotSupported(router_id\u003drouter_id)"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":353,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":354,"context_line":"        args \u003d []"},{"line_number":355,"context_line":"        kwargs \u003d {"},{"line_number":356,"context_line":"            \u0027router_id\u0027: router_id,"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_5c595734","line":353,"in_reply_to":"3a961159_d18c50da","updated":"2015-01-20 16:43:45.000000000","message":"(out of scope) Perhaps we should document such limitations with use_namespace\u003dFalse or/and deprecate use_namespace\u003dFalse?","commit_id":"522695e9cd959f79a5fab003941cf52aa618821d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"09aedbbbe6b37b38aa0c850908e78e7980d86f16","unresolved":false,"context_lines":[{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":353,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":354,"context_line":"        args \u003d []"},{"line_number":355,"context_line":"        kwargs \u003d {"},{"line_number":356,"context_line":"            \u0027router_id\u0027: router_id,"},{"line_number":357,"context_line":"            \u0027root_helper\u0027: self.root_helper,"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_45d7dbee","line":354,"updated":"2015-01-19 22:41:35.000000000","message":"not sure we need args ...","commit_id":"522695e9cd959f79a5fab003941cf52aa618821d"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"919a420ca61da7e7c38f47c56c08b49052faf0ef","unresolved":false,"context_lines":[{"line_number":351,"context_line":""},{"line_number":352,"context_line":"        ns_name \u003d (self.get_ns_name(router_id)"},{"line_number":353,"context_line":"                   if self.conf.use_namespaces else None)"},{"line_number":354,"context_line":"        args \u003d []"},{"line_number":355,"context_line":"        kwargs \u003d {"},{"line_number":356,"context_line":"            \u0027router_id\u0027: router_id,"},{"line_number":357,"context_line":"            \u0027root_helper\u0027: self.root_helper,"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_b14a64ab","line":354,"in_reply_to":"3a961159_45d7dbee","updated":"2015-01-20 16:36:25.000000000","message":"A follow-on patch will append to args.  Also, it is so common to pass *args and **kwargs together that I think more people would question why it was not passed.","commit_id":"522695e9cd959f79a5fab003941cf52aa618821d"}],"neutron/agent/l3/dvr_router.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"d0187c01d9b3dffd522af02615e6ca560fcb38f4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2014 Openstack Foundation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_85bdd8b3","line":1,"updated":"2015-01-05 20:19:08.000000000","message":"now 2015 :)","commit_id":"f3d3ed4649f096411bb15c516dd18fb0843343af"}],"neutron/agent/l3/ha_router.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2d5928ffb520cdfc62411585102153f7343a50c5","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"        self.ha_port \u003d None"},{"line_number":29,"context_line":"        self.keepalived_manager \u003d None"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def _verify_ha(self):"},{"line_number":32,"context_line":"        if not self.is_ha:"},{"line_number":33,"context_line":"            raise ValueError(_(\u0027Router %s is not a HA router\u0027) %"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a961159_e051b1d9","line":30,"updated":"2015-01-09 10:32:15.000000000","message":"Please delete this method.","commit_id":"a3c0c23b808ecc86f184e707f247808bf8ad1a6f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"98e60988022314c0ae3da25e1a11b182e26a8f5c","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"        self.ha_port \u003d None"},{"line_number":29,"context_line":"        self.keepalived_manager \u003d None"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def _verify_ha(self):"},{"line_number":32,"context_line":"        if not self.is_ha:"},{"line_number":33,"context_line":"            raise ValueError(_(\u0027Router %s is not a HA router\u0027) %"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a961159_26ebca7c","line":30,"in_reply_to":"3a961159_e051b1d9","updated":"2015-01-09 17:21:13.000000000","message":"See below.","commit_id":"a3c0c23b808ecc86f184e707f247808bf8ad1a6f"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2d5928ffb520cdfc62411585102153f7343a50c5","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        if not self.is_ha:"},{"line_number":33,"context_line":"            raise ValueError(_(\u0027Router %s is not a HA router\u0027) %"},{"line_number":34,"context_line":"                             self.router_id)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    @property"},{"line_number":37,"context_line":"    def is_ha(self):"},{"line_number":38,"context_line":"        # TODO(Carl) Will this still be needed after refactoring?"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a961159_004ddd3a","line":35,"updated":"2015-01-09 10:32:15.000000000","message":"Please delete this method. We\u0027ll need to deal with any resulting fall out.","commit_id":"a3c0c23b808ecc86f184e707f247808bf8ad1a6f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"98e60988022314c0ae3da25e1a11b182e26a8f5c","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        if not self.is_ha:"},{"line_number":33,"context_line":"            raise ValueError(_(\u0027Router %s is not a HA router\u0027) %"},{"line_number":34,"context_line":"                             self.router_id)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    @property"},{"line_number":37,"context_line":"    def is_ha(self):"},{"line_number":38,"context_line":"        # TODO(Carl) Will this still be needed after refactoring?"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a961159_66a8728d","line":35,"in_reply_to":"3a961159_004ddd3a","updated":"2015-01-09 17:21:13.000000000","message":"The end goal is to delete these methods.  I agree with that end goal.  However, doing that in this first patch and dealing with that fall out will force us to do *all* of this refactoring in a single, very very large patch that will be impossible to review.\n\nThe most I\u0027m willing to do in this patch is to mark it deprecated with a TODO.","commit_id":"a3c0c23b808ecc86f184e707f247808bf8ad1a6f"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"08960dd3ebe0358af8619ba0984d6d59136374ca","unresolved":false,"context_lines":[{"line_number":21,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class HaRouter(router.RouterInfo):"},{"line_number":25,"context_line":"    def __init__(self, *args, **kwargs):"},{"line_number":26,"context_line":"        super(HaRouter, self).__init__(*args, **kwargs)"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_7149ae31","line":24,"updated":"2015-01-13 19:32:26.000000000","message":"I fail to find HaRouter unittest","commit_id":"f45139efaafbd653ef7eb94696cab6c15069f71d"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0b25da632a87b8f5ca31e6adadaacd5512f4f7df","unresolved":false,"context_lines":[{"line_number":21,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class HaRouter(router.RouterInfo):"},{"line_number":25,"context_line":"    def __init__(self, *args, **kwargs):"},{"line_number":26,"context_line":"        super(HaRouter, self).__init__(*args, **kwargs)"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_cf2f1aa6","line":24,"in_reply_to":"3a961159_7149ae31","updated":"2015-01-13 22:12:37.000000000","message":"I was a bit surprised to see that the original code didn\u0027t have any unit tests.  I have not had time to add any yet.  There are some functional tests that cover this area.\n\nAny volunteers?  Otherwise, I may be able to get to it sometime.","commit_id":"f45139efaafbd653ef7eb94696cab6c15069f71d"}]}
