)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d96c9dcbbdf4b933a1c210748835c149aa0b7e55","unresolved":false,"context_lines":[{"line_number":20,"context_line":"The end goal of this patch is to separate the two into different classes"},{"line_number":21,"context_line":"which will also help maintaining it and also help projects that want"},{"line_number":22,"context_line":"to use one but not the other (for example only use the centralized"},{"line_number":23,"context_line":"SNAT behaviour with there own DVR implementation)"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Next steps:"},{"line_number":26,"context_line":"1) Remove is_snat_host validations and change dvr_router file name"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7a016987_1c8ec227","line":23,"updated":"2015-05-26 06:30:12.000000000","message":"is it necessary for dragonflow?","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"431f533100cb0bfe97a973b421ba8c54af30bad4","unresolved":false,"context_lines":[{"line_number":20,"context_line":"The end goal of this patch is to separate the two into different classes"},{"line_number":21,"context_line":"which will also help maintaining it and also help projects that want"},{"line_number":22,"context_line":"to use one but not the other (for example only use the centralized"},{"line_number":23,"context_line":"SNAT behaviour with there own DVR implementation)"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Next steps:"},{"line_number":26,"context_line":"1) Remove is_snat_host validations and change dvr_router file name"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7a016987_32a9a57c","line":23,"in_reply_to":"7a016987_1c8ec227","updated":"2015-05-26 07:54:00.000000000","message":"No, Dragonflow uses the \"legacy\" implementation and add DVR functionality on top of it using openflow flows, this means it can fall back to the legacy implementation and still work in case of controller failure.\n\nHowever it might help in future releases, and i personally think that it makes sense to separate the classes","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"d7bc7ff612fddf84ff6c16bcf06f42d748643b79","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The above means that we have one class of DVR router which is used"},{"line_number":17,"context_line":"for two jobs (the virtual router namespace wiring and the fips wiring"},{"line_number":18,"context_line":"in the compute node in one hand and the centralized snat wiring in the other)"},{"line_number":19,"context_line":"The end goal of this patch is to separate the two into different classes"},{"line_number":20,"context_line":"which will also help maintaining it and also help projects that want"},{"line_number":21,"context_line":"to use one but not the other (for example only use the centralized"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7a016987_5e0bf97d","line":18,"updated":"2015-05-26 17:17:43.000000000","message":"I don\u0027t like the idea of splitting a class based on the where the routers are created.\nRight now you have the fip handled by the DVRCompute and snat handled by DVRnetworknode.\nBut in an all in one node, they both reside on the same node.\nSo this is kind of confusing.\n\nBecausing right the agent behaves totally on the agent_type and not on the Node type.\n\nHope this helps.","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"37e6b6729bbd0ddde3608ba086456bb6784f8a40","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The above means that we have one class of DVR router which is used"},{"line_number":17,"context_line":"for two jobs (the virtual router namespace wiring and the fips wiring"},{"line_number":18,"context_line":"in the compute node in one hand and the centralized snat wiring in the other)"},{"line_number":19,"context_line":"The end goal of this patch is to separate the two into different classes"},{"line_number":20,"context_line":"which will also help maintaining it and also help projects that want"},{"line_number":21,"context_line":"to use one but not the other (for example only use the centralized"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7a016987_f9787f2d","line":18,"in_reply_to":"7a016987_5e0bf97d","updated":"2015-05-26 17:44:58.000000000","message":"Thanks for the feedback,\n\nI agree with you on some point, basically every node (even the network node) will have DVRCompute because we can\u0027t distinguish if this is a Network Node that might also be used as a compute node (or can we?).\n\nThe single node is one case, but it can also happen in multi node setup where the network node is used as a compute as well.\n\nThis is the reason why i picked inheritance for the first stage.\n\nHowever, i do think that the functionality done in the two classes is different (one is touching the virtual router namespace and fips namespace and the other in the SNAT namespace which is using as an \"external gateway\" functionality)\n\nI believe maintaining the code that way is better and with the inheritance model right now we won\u0027t actually create two instances.\nI do think however that we should think how to add functionality to a router in a composition way (example of other functionality is HA, and when routing protocols come into play we might have more..)\nI do believe this is one step in this direction... it help us map and extract the different functionalities into different classes.\n\nAnd also as i mentioned, this separation can potentially help other projects that want to take only parts of the DVR implementation","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9bc7d7d2e49d996b91f9187c21039da47bf5d561","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The above means that we have one class of DVR router which is used"},{"line_number":17,"context_line":"for two jobs (the virtual router namespace wiring and the fips wiring"},{"line_number":18,"context_line":"in the compute node in one hand and the centralized snat wiring in the other)"},{"line_number":19,"context_line":"The end goal of this patch is to separate the two into different classes"},{"line_number":20,"context_line":"which will also help maintaining it and also help projects that want"},{"line_number":21,"context_line":"to use one but not the other (for example only use the centralized"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7a016987_9e5f3175","line":18,"in_reply_to":"7a016987_5e0bf97d","updated":"2015-05-26 17:18:45.000000000","message":"This will be also true when you distribute the snat to all compute nodes. Then there is no meaning in splitting those classes.","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"37e6b6729bbd0ddde3608ba086456bb6784f8a40","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The above means that we have one class of DVR router which is used"},{"line_number":17,"context_line":"for two jobs (the virtual router namespace wiring and the fips wiring"},{"line_number":18,"context_line":"in the compute node in one hand and the centralized snat wiring in the other)"},{"line_number":19,"context_line":"The end goal of this patch is to separate the two into different classes"},{"line_number":20,"context_line":"which will also help maintaining it and also help projects that want"},{"line_number":21,"context_line":"to use one but not the other (for example only use the centralized"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7a016987_39d5f7b8","line":18,"in_reply_to":"7a016987_9e5f3175","updated":"2015-05-26 17:44:58.000000000","message":"Distributing SNAT is a different story and i am not sure that full distribution to all compute nodes is actually a real world use case (Even that everyone are chasing for it...)\n\nThere are all sorts of different solutions for this problem and not every one involve using full distribution.\nEven if this is the picked solution, i still see benefits for maintaining this code in two different classes.","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"135ddfbbebbed71bbdac331d8e395f8cfb3be5a6","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The above means that we have one class of DVR router which is used"},{"line_number":17,"context_line":"for two jobs (the virtual router namespace wiring and the fips wiring"},{"line_number":18,"context_line":"in the compute node in one hand and the centralized snat wiring in the other)"},{"line_number":19,"context_line":"The end goal of this patch is to separate the two into different classes"},{"line_number":20,"context_line":"which will also help maintaining it and also help projects that want"},{"line_number":21,"context_line":"to use one but not the other (for example only use the centralized"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7a016987_ff217fb5","line":18,"in_reply_to":"7a016987_f9787f2d","updated":"2015-05-26 18:39:26.000000000","message":"\u003e I believe maintaining the code that way is better.\n\nThis is the right thing to do. Please do march on.","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"123c58c6060161b5f46d2285c271fe3f9933dd90","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The above means that we have one class of DVR router which is used"},{"line_number":17,"context_line":"for two jobs (the virtual router namespace wiring and the fips wiring"},{"line_number":18,"context_line":"in the compute node in one hand and the centralized snat wiring in the other)"},{"line_number":19,"context_line":"The end goal of this patch is to separate the two into different classes"},{"line_number":20,"context_line":"which will also help maintaining it and also help projects that want"},{"line_number":21,"context_line":"to use one but not the other (for example only use the centralized"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7a016987_f5fe06ad","line":18,"in_reply_to":"7a016987_ff217fb5","updated":"2015-05-27 23:46:30.000000000","message":"Regardless of what node we\u0027re on, there are two distinct functions built in to this class that have nothing to do with each other except that they happen to relate to a DvrRouter.  On nodes that happen to host both, we\u0027ll load both.  This isn\u0027t a sufficient reason to continue to conflate the two, IMO.  \n\n@Gal is correct that we don\u0027t have a distinguisher for a node that is only a network node and cannot be a compute node\n\nSplitting the classes should help reusability for at least the dragonflow project.  I am all for continuing with this patch.  I still think it is the right thing to do.","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"123c58c6060161b5f46d2285c271fe3f9933dd90","unresolved":false,"context_lines":[{"line_number":25,"context_line":"1) Remove is_snat_host validations and change dvr_router file name"},{"line_number":26,"context_line":"2) Align unit/functional tests"},{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"},{"line_number":30,"context_line":"5) Consider non inheritance model"},{"line_number":31,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7a016987_f846fd4d","line":28,"updated":"2015-05-27 23:46:30.000000000","message":"depending on \"host address\"?  I\u0027m not sure what this means but maybe we\u0027re on the same page.  Let me clarify and see if you agree...\n\nWe do need logic in the L3 agent though.  It needs to be based on the current L3 agent mode, and the logic that is currently embedded _is_this_snat_host.","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"c46966d6bb2e3737a780b959c95bbab636c0a38b","unresolved":false,"context_lines":[{"line_number":25,"context_line":"1) Remove is_snat_host validations and change dvr_router file name"},{"line_number":26,"context_line":"2) Align unit/functional tests"},{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"},{"line_number":30,"context_line":"5) Consider non inheritance model"},{"line_number":31,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7a016987_b9ee4489","line":28,"in_reply_to":"7a016987_f846fd4d","updated":"2015-05-28 05:45:13.000000000","message":"Yes, thats what i meant","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e8e65306611a92e091f03982bebd10a102b854be","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Gal Sagie \u003cgal.sagie@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-04 14:16:21 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Decomposite DVR CSNAT L3 Agent from Compute Node L3 Agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently the same dvr router class is used both by the L3 Agent"},{"line_number":10,"context_line":"in the compute nodes that is responsible for the virtual routers"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_a6608936","line":7,"updated":"2015-06-07 05:39:40.000000000","message":"Decomposite \u003d\u003e decompose","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"6c0186557db880204d69414bf5dbd43148e5191c","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Gal Sagie \u003cgal.sagie@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-04 14:16:21 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Decomposite DVR CSNAT L3 Agent from Compute Node L3 Agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently the same dvr router class is used both by the L3 Agent"},{"line_number":10,"context_line":"in the compute nodes that is responsible for the virtual routers"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_c6f9454f","line":7,"in_reply_to":"3afb71cf_a6608936","updated":"2015-06-07 05:54:30.000000000","message":"Done","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e8e65306611a92e091f03982bebd10a102b854be","unresolved":false,"context_lines":[{"line_number":10,"context_line":"in the compute nodes that is responsible for the virtual routers"},{"line_number":11,"context_line":"namespace and the fip namespace and also used by the centralized"},{"line_number":12,"context_line":"SNAT L3 Agent in the network node."},{"line_number":13,"context_line":"This is the first step to decomposite the two into different"},{"line_number":14,"context_line":"classes."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The above means that we have one class of DVR router which is used"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_86658d46","line":13,"updated":"2015-06-07 05:39:40.000000000","message":"decomposite \u003d\u003e decompose","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"6c0186557db880204d69414bf5dbd43148e5191c","unresolved":false,"context_lines":[{"line_number":10,"context_line":"in the compute nodes that is responsible for the virtual routers"},{"line_number":11,"context_line":"namespace and the fip namespace and also used by the centralized"},{"line_number":12,"context_line":"SNAT L3 Agent in the network node."},{"line_number":13,"context_line":"This is the first step to decomposite the two into different"},{"line_number":14,"context_line":"classes."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The above means that we have one class of DVR router which is used"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_e6fc4140","line":13,"in_reply_to":"3afb71cf_86658d46","updated":"2015-06-07 05:54:30.000000000","message":"Done","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"c9dfb7e6cbeaf2260afe0cd201559cea474f9dce","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Next steps:"},{"line_number":25,"context_line":"1) Remove is_snat_host validations and change dvr_router file name"},{"line_number":26,"context_line":"2) Align unit/functional tests"},{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_cb496dd2","line":26,"updated":"2015-06-05 14:32:10.000000000","message":"I don\u0027t think it\u0027s possible to review this patch without seeing a patch for step 3, which suggests that you should not split to two patches.","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"f1a675b63e22220df43c4795e32a9c6e0d035c64","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Next steps:"},{"line_number":25,"context_line":"1) Remove is_snat_host validations and change dvr_router file name"},{"line_number":26,"context_line":"2) Align unit/functional tests"},{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_4688b5e7","line":26,"in_reply_to":"3afb71cf_286d9c04","updated":"2015-06-07 05:19:13.000000000","message":"I will just add the changes to this patch and hopefully that will make it more understandable","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"67a80c5984ff0585e337ac80058a97d7bfa88b83","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Next steps:"},{"line_number":25,"context_line":"1) Remove is_snat_host validations and change dvr_router file name"},{"line_number":26,"context_line":"2) Align unit/functional tests"},{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_286d9c04","line":26,"in_reply_to":"3afb71cf_4f7ea2e5","updated":"2015-06-05 18:36:21.000000000","message":"\u003e I\u0027ve reviewed it. Apparently, I\u0027ve done the impossible. :)\n\nIndeed!\n\n\u003e ... the two classes are still joined at the hip\n\u003e A future patch will sever the two\n\nI did not get that from the commit message. That\u0027s an important detail and now I\u0027m actually more convinced that this is the wrong thing to do. I won\u0027t block this patch but I\u0027d love to see the next patch in review (And working) before this merges.","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7ab9027413254b2fec6ad695e8a9fd07b7635b0e","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Next steps:"},{"line_number":25,"context_line":"1) Remove is_snat_host validations and change dvr_router file name"},{"line_number":26,"context_line":"2) Align unit/functional tests"},{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_4f7ea2e5","line":26,"in_reply_to":"3afb71cf_cb496dd2","updated":"2015-06-05 17:15:14.000000000","message":"@Assaf, you need to explain that.  I\u0027ve reviewed it.  Apparently, I\u0027ve done the impossible.  :)\n\nGiven the scope of the patch, I think it is pretty straight-forward.  Code that is meant to operate on the centralize part of the router was moved to a new class.  Admittedly, some loose ends were left to a future patch because the two classes are still joined at the hip.  But, I\u0027m not sure that I mind that so much.\n\nA future patch will sever the two which will require the agent to load the right one(s) for the given context.  This will essentially require moving the _is_this_snat_host logic out to the agent and then sever the inheritance connection.  I don\u0027t think it is necessary to wait for this patch to merge to start on the next patch as a dependency.  But, I can see the vision enough to be reasonably happy with this patch as progress in the right direction.\n\nSo, are you saying that you don\u0027t like the scope of the patch?  Do you think that this patch much take in further?","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e8e65306611a92e091f03982bebd10a102b854be","unresolved":false,"context_lines":[{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"},{"line_number":30,"context_line":"5) Consider non inheritance model"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Change-Id: I581a097b9e7c49f20d0eb0e4ca66a25e90d9511b"},{"line_number":33,"context_line":"Partial-Bug: #1458541"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_2655b94f","line":30,"updated":"2015-06-07 05:39:40.000000000","message":"Maybe if we have these next stpes then at least have a BP that will be able to align everything under one umbrella.","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"6c0186557db880204d69414bf5dbd43148e5191c","unresolved":false,"context_lines":[{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"},{"line_number":30,"context_line":"5) Consider non inheritance model"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Change-Id: I581a097b9e7c49f20d0eb0e4ca66a25e90d9511b"},{"line_number":33,"context_line":"Partial-Bug: #1458541"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_869a2d13","line":30,"in_reply_to":"3afb71cf_2655b94f","updated":"2015-06-07 05:54:30.000000000","message":"will add","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Next steps:"},{"line_number":25,"context_line":"1) Remove is_snat_host validations and change dvr_router file name"},{"line_number":26,"context_line":"2) Align unit/functional tests"},{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"fa32b979_2a31f10b","line":26,"updated":"2015-06-14 15:39:21.000000000","message":"Can you expand on point 2? You mean move the unit tests for edge and local routers to their own files? Also if you feel like splitting up the gigantic L3 functional tests file to legacy/metadata/HA/DVR, feel free :)","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Next steps:"},{"line_number":25,"context_line":"1) Remove is_snat_host validations and change dvr_router file name"},{"line_number":26,"context_line":"2) Align unit/functional tests"},{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"fa32b979_a5c45292","line":26,"in_reply_to":"fa32b979_2a31f10b","updated":"2015-06-14 17:16:17.000000000","message":"The end goal is to split it as you mentioned to two files, and of course if i could help further to split more i will happily do so.","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"},{"line_number":30,"context_line":"5) Consider non inheritance model"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Change-Id: I581a097b9e7c49f20d0eb0e4ca66a25e90d9511b"},{"line_number":33,"context_line":"Partial-Bug: #1458541"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"fa32b979_aa2501c3","line":30,"updated":"2015-06-14 15:39:21.000000000","message":"Step 5 is awfully vague :) Can you share your thoughts?","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":27,"context_line":"3) Create the correct class in the L3 agent depending on the host"},{"line_number":28,"context_line":"   address"},{"line_number":29,"context_line":"4) Align with HA+DVR patch"},{"line_number":30,"context_line":"5) Consider non inheritance model"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Change-Id: I581a097b9e7c49f20d0eb0e4ca66a25e90d9511b"},{"line_number":33,"context_line":"Partial-Bug: #1458541"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"fa32b979_a520d24a","line":30,"in_reply_to":"fa32b979_aa2501c3","updated":"2015-06-14 17:16:17.000000000","message":"Its vague i agree, i don\u0027t have anything specific to write.\nThis needs to be designed, the idea is that i feel router class should have functionality that can be dynamically attached to it (HA/SNAT/FIP/Routing protocols?)\nThis sounds like better treated in a composition model and i will post a detailed proposal once we move forward.","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"}],"neutron/agent/l3/agent.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d96c9dcbbdf4b933a1c210748835c149aa0b7e55","unresolved":false,"context_lines":[{"line_number":297,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":298,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"},{"line_number":299,"context_line":"            kwargs[\u0027host\u0027] \u003d self.host"},{"line_number":300,"context_line":"            return dvr_router.DvrRouter(*args, **kwargs)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"        if router.get(\u0027ha\u0027):"},{"line_number":303,"context_line":"            kwargs[\u0027state_change_callback\u0027] \u003d self.enqueue_state_change"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_5c767a07","line":300,"updated":"2015-05-26 06:30:12.000000000","message":"can\u0027t you use DvrRouterComputeNode here when appropriate\nand kill _is_this_snat_host completely?","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"431f533100cb0bfe97a973b421ba8c54af30bad4","unresolved":false,"context_lines":[{"line_number":297,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":298,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"},{"line_number":299,"context_line":"            kwargs[\u0027host\u0027] \u003d self.host"},{"line_number":300,"context_line":"            return dvr_router.DvrRouter(*args, **kwargs)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"        if router.get(\u0027ha\u0027):"},{"line_number":303,"context_line":"            kwargs[\u0027state_change_callback\u0027] \u003d self.enqueue_state_change"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_f2e0adce","line":300,"in_reply_to":"7a016987_5c767a07","updated":"2015-05-26 07:54:00.000000000","message":"This is exactly the intention, i am trying to do this in \"steps\" as this also means a full alignment of all the unit tests.\n(You can follow the next steps in the commit message, in this point we will create the correct class here depending on the \"is_this_snat_host\" logic)","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e6dac617a90d885b6a7b5e9320525b8d69fd80c6","unresolved":false,"context_lines":[{"line_number":297,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":298,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"},{"line_number":299,"context_line":"            kwargs[\u0027host\u0027] \u003d self.host"},{"line_number":300,"context_line":"            return dvr_router.DvrRouter(*args, **kwargs)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"        if router.get(\u0027ha\u0027):"},{"line_number":303,"context_line":"            kwargs[\u0027state_change_callback\u0027] \u003d self.enqueue_state_change"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_23d27235","line":300,"in_reply_to":"7a016987_f2e0adce","updated":"2015-05-26 10:35:44.000000000","message":"ok.","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"123c58c6060161b5f46d2285c271fe3f9933dd90","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from oslo_utils import timeutils"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"from neutron.agent.l3 import dvr"},{"line_number":26,"context_line":"from neutron.agent.l3 import dvr_router_network_node as dvr_router"},{"line_number":27,"context_line":"from neutron.agent.l3 import ha"},{"line_number":28,"context_line":"from neutron.agent.l3 import ha_router"},{"line_number":29,"context_line":"from neutron.agent.l3 import legacy_router"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a016987_b5bd2ed9","line":26,"updated":"2015-05-27 23:46:30.000000000","message":"It looks like you\u0027re distinguishing with the terms \"network\" and \"compute\".  I\u0027ll have to think about this.  I was thinking \"distributed\" and \"central\" but maybe my terms also have drawbacks.  What do you think?\n\nUpdate:  I just read Adolfo\u0027s comments and I agree.  The \"separation of router classes should be based on functionality (ha, dvr, snat, etc..)\"  Just as he said.  I believe that most of this patch is in harmony with this statement.  There are just a few things like this naming that need some work.","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"c46966d6bb2e3737a780b959c95bbab636c0a38b","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from oslo_utils import timeutils"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"from neutron.agent.l3 import dvr"},{"line_number":26,"context_line":"from neutron.agent.l3 import dvr_router_network_node as dvr_router"},{"line_number":27,"context_line":"from neutron.agent.l3 import ha"},{"line_number":28,"context_line":"from neutron.agent.l3 import ha_router"},{"line_number":29,"context_line":"from neutron.agent.l3 import legacy_router"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a016987_59a2b04c","line":26,"in_reply_to":"7a016987_b5bd2ed9","updated":"2015-05-28 05:45:13.000000000","message":"I agree with this, the problem is that i wanted to keep Dvr in the name, so DistributedDvrRouter sounded funny...\n\nAny suggestions? i will try to think of one myself to reflect that","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"123c58c6060161b5f46d2285c271fe3f9933dd90","unresolved":false,"context_lines":[{"line_number":296,"context_line":""},{"line_number":297,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":298,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"},{"line_number":299,"context_line":"            kwargs[\u0027host\u0027] \u003d self.host"},{"line_number":300,"context_line":"            return dvr_router.DvrRouter(*args, **kwargs)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"        if router.get(\u0027ha\u0027):"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a016987_d58f8a21","line":299,"updated":"2015-05-27 23:46:30.000000000","message":"I think the agent will need to get a little more sophisticated here.  See other comments.","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"c46966d6bb2e3737a780b959c95bbab636c0a38b","unresolved":false,"context_lines":[{"line_number":296,"context_line":""},{"line_number":297,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":298,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"},{"line_number":299,"context_line":"            kwargs[\u0027host\u0027] \u003d self.host"},{"line_number":300,"context_line":"            return dvr_router.DvrRouter(*args, **kwargs)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"        if router.get(\u0027ha\u0027):"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a016987_59b99078","line":299,"in_reply_to":"7a016987_d58f8a21","updated":"2015-05-28 05:45:13.000000000","message":"Yes, thats the intention (the logic of _is_snat_host and agent mode will be here).\n\nHowever i wanted to do this in steps, so that will happen in the next patch (with the unit test alignment and removing all the _is_snat_host questions from the router class)","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"31ad8596bda7bb289e8d8601c4d8945c00f313d2","unresolved":false,"context_lines":[{"line_number":294,"context_line":"            \u0027interface_driver\u0027: self.driver,"},{"line_number":295,"context_line":"        }"},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"        # TODO(gsagie) return here the correct class: DvrInternalRouter"},{"line_number":298,"context_line":"        # or DvrCentralizedRouter based on is_snat_host behaivour"},{"line_number":299,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":300,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"}],"source_content_type":"text/x-python","patch_set":8,"id":"5afe65bd_5a2865e2","line":297,"updated":"2015-06-03 15:16:32.000000000","message":"I think I like these names:  DvrInternalRouter and DvrCentralizedRouter the best.  I know that DvrCentralized sounds like an oxymoron but when you understand what it does, it isn\u0027t really.","commit_id":"41bc4061e010528884e89b2899ee07a23bd32ad5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"04f7692bfba3f42b2c9a1c59b280475e24376442","unresolved":false,"context_lines":[{"line_number":294,"context_line":"            \u0027interface_driver\u0027: self.driver,"},{"line_number":295,"context_line":"        }"},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"        # TODO(gsagie) return here the correct class: DvrInternalRouter"},{"line_number":298,"context_line":"        # or DvrCentralizedRouter based on is_snat_host behaivour"},{"line_number":299,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":300,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"}],"source_content_type":"text/x-python","patch_set":8,"id":"5afe65bd_9e06ac84","line":297,"in_reply_to":"5afe65bd_5a2865e2","updated":"2015-06-04 11:15:48.000000000","message":"Done","commit_id":"41bc4061e010528884e89b2899ee07a23bd32ad5"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"31ad8596bda7bb289e8d8601c4d8945c00f313d2","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        }"},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"        # TODO(gsagie) return here the correct class: DvrInternalRouter"},{"line_number":298,"context_line":"        # or DvrCentralizedRouter based on is_snat_host behaivour"},{"line_number":299,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":300,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"},{"line_number":301,"context_line":"            kwargs[\u0027host\u0027] \u003d self.host"}],"source_content_type":"text/x-python","patch_set":8,"id":"5afe65bd_babe39d2","line":298,"updated":"2015-06-03 15:16:32.000000000","message":"Nit:  Should be behavior or behaviour","commit_id":"41bc4061e010528884e89b2899ee07a23bd32ad5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"04f7692bfba3f42b2c9a1c59b280475e24376442","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        }"},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"        # TODO(gsagie) return here the correct class: DvrInternalRouter"},{"line_number":298,"context_line":"        # or DvrCentralizedRouter based on is_snat_host behaivour"},{"line_number":299,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":300,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"},{"line_number":301,"context_line":"            kwargs[\u0027host\u0027] \u003d self.host"}],"source_content_type":"text/x-python","patch_set":8,"id":"5afe65bd_7e0bf08e","line":298,"in_reply_to":"5afe65bd_babe39d2","updated":"2015-06-04 11:15:48.000000000","message":"Done","commit_id":"41bc4061e010528884e89b2899ee07a23bd32ad5"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e6fbcf7acb19eca1619e0d6731582d54702bfac7","unresolved":false,"context_lines":[{"line_number":297,"context_line":"            \u0027interface_driver\u0027: self.driver,"},{"line_number":298,"context_line":"        }"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"        # TODO(gsagie) create here the correct router class according"},{"line_number":301,"context_line":"        # to is_snat_host : DvrLocalRouter or DvrEdgeRouter"},{"line_number":302,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":303,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_1f79d1fc","line":300,"updated":"2015-06-14 12:59:10.000000000","message":"Consider changing to:\n# TODO(gsagie) create the correct router class according\nto the flag is_snat_host: DvrLocalRouter or DvrEdgeRouter","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":297,"context_line":"            \u0027interface_driver\u0027: self.driver,"},{"line_number":298,"context_line":"        }"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"        # TODO(gsagie) create here the correct router class according"},{"line_number":301,"context_line":"        # to is_snat_host : DvrLocalRouter or DvrEdgeRouter"},{"line_number":302,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":303,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_c51dd610","line":300,"in_reply_to":"fa32b979_1f79d1fc","updated":"2015-06-14 17:16:17.000000000","message":"Done","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e98ace87c6474e9eceb28f1f145f027045f7a23f","unresolved":false,"context_lines":[{"line_number":299,"context_line":"        }"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"        # TODO(gsagie) create the correct router class according to the"},{"line_number":302,"context_line":"        # flag is_snat_host: DvrLocalRouter or DvrEdgeRouter"},{"line_number":303,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":304,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"},{"line_number":305,"context_line":"            kwargs[\u0027host\u0027] \u003d self.host"}],"source_content_type":"text/x-python","patch_set":29,"id":"fa32b979_7d741767","line":302,"updated":"2015-06-17 15:05:19.000000000","message":"_is_this_snat_host?","commit_id":"22e112b56b416898d53c394eb673385c4773f916"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"40f2a65843cbf7d4d5240e870d9ce77bcd05dfc5","unresolved":false,"context_lines":[{"line_number":299,"context_line":"        }"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"        # TODO(gsagie) create the correct router class according to the"},{"line_number":302,"context_line":"        # flag is_snat_host: DvrLocalRouter or DvrEdgeRouter"},{"line_number":303,"context_line":"        if router.get(\u0027distributed\u0027):"},{"line_number":304,"context_line":"            kwargs[\u0027agent\u0027] \u003d self"},{"line_number":305,"context_line":"            kwargs[\u0027host\u0027] \u003d self.host"}],"source_content_type":"text/x-python","patch_set":29,"id":"fa32b979_f5059b10","line":302,"in_reply_to":"fa32b979_7d741767","updated":"2015-06-17 15:33:37.000000000","message":"Done","commit_id":"22e112b56b416898d53c394eb673385c4773f916"}],"neutron/agent/l3/dvr_centralized_router.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"a71531a3bde3e1924a7d00eaee85b84c8e870093","unresolved":false,"context_lines":[{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# TODO(gsagie) change this class to DvrCentralizedRouter"},{"line_number":30,"context_line":"# update tests, then think of composition model instead"},{"line_number":31,"context_line":"# of inheritance"},{"line_number":32,"context_line":"class DvrRouter(dvr_router.DvrInternalRouter):"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a016987_937e55e2","line":29,"updated":"2015-06-01 12:24:31.000000000","message":"DvrNorthboundRouter?","commit_id":"e55cb77f6dfc7e6a7066c0ebb1281f7f15aa979d"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"9f5a4b4255399c0a1af8a778e697b297e22bcc06","unresolved":false,"context_lines":[{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# TODO(gsagie) change this class to DvrCentralizedRouter"},{"line_number":30,"context_line":"# update tests, then think of composition model instead"},{"line_number":31,"context_line":"# of inheritance"},{"line_number":32,"context_line":"class DvrRouter(dvr_router.DvrInternalRouter):"}],"source_content_type":"text/x-python","patch_set":7,"id":"5afe65bd_14d8e21c","line":29,"in_reply_to":"7a016987_937e55e2","updated":"2015-06-01 17:40:47.000000000","message":"Yes, i prefer this name :) thanks for the suggestion","commit_id":"e55cb77f6dfc7e6a7066c0ebb1281f7f15aa979d"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"a71531a3bde3e1924a7d00eaee85b84c8e870093","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        self.snat_namespace \u003d None"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def internal_network_added(self, port):"},{"line_number":72,"context_line":"        super(DvrRouter, self).internal_network_added(port)"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        if not self._is_this_snat_host():"},{"line_number":75,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a016987_3329e1e6","line":72,"updated":"2015-06-01 12:24:31.000000000","message":"The thought I had in PS5 was that the base class method does some checks and returns if not applicable, then here it does same checks. Could you have the base class method return T/F (or return True if gets to end) for whether or not the network added was OK and then use that here:\n\n    if not super(DvrRouter, self).internet_network_added(port):\n        return\n    ns_name \u003d dvr_snat_ns.SnatNamespace.get_snat_ns_name(...)\n    ...\n\nsimilar for network removed method below.","commit_id":"e55cb77f6dfc7e6a7066c0ebb1281f7f15aa979d"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"9f5a4b4255399c0a1af8a778e697b297e22bcc06","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        self.snat_namespace \u003d None"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def internal_network_added(self, port):"},{"line_number":72,"context_line":"        super(DvrRouter, self).internal_network_added(port)"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        if not self._is_this_snat_host():"},{"line_number":75,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":7,"id":"5afe65bd_74027640","line":72,"in_reply_to":"7a016987_3329e1e6","updated":"2015-06-01 17:40:47.000000000","message":"Yeah, i understand your point, the problem it sounds a bit hacky to me, but i will give this some more thought tomorrow","commit_id":"e55cb77f6dfc7e6a7066c0ebb1281f7f15aa979d"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e8e65306611a92e091f03982bebd10a102b854be","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        return self.snat_namespace"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    def _is_this_snat_host(self):"},{"line_number":151,"context_line":"        # TODO(Carl) This is a sign that dvr needs two router classes."},{"line_number":152,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":153,"context_line":"        return (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":154,"context_line":"                and self.get_gw_port_host() \u003d\u003d self.host)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_e6e561a8","line":151,"updated":"2015-06-07 05:39:40.000000000","message":"Does this patch set not create a solution for this?","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"6c0186557db880204d69414bf5dbd43148e5191c","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        return self.snat_namespace"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    def _is_this_snat_host(self):"},{"line_number":151,"context_line":"        # TODO(Carl) This is a sign that dvr needs two router classes."},{"line_number":152,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":153,"context_line":"        return (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":154,"context_line":"                and self.get_gw_port_host() \u003d\u003d self.host)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_669f3104","line":151,"in_reply_to":"3afb71cf_e6e561a8","updated":"2015-06-07 05:54:30.000000000","message":"The start of one, yes.\nI will remove that comment :) but this method is going away anyway in next patch","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"}],"neutron/agent/l3/dvr_edge_router.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e6fbcf7acb19eca1619e0d6731582d54702bfac7","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.agent.linux import iptables_manager"},{"line_number":23,"context_line":"from neutron.common import constants as l3_constants"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_df8289c8","line":25,"updated":"2015-06-14 12:59:10.000000000","message":"one to many new lines","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.agent.linux import iptables_manager"},{"line_number":23,"context_line":"from neutron.common import constants as l3_constants"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_8517ceec","line":25,"in_reply_to":"fa32b979_df8289c8","updated":"2015-06-14 17:16:17.000000000","message":"Done, Miguel i think he meant between the LOG and the imports, there are still 2 lines between the LOG and the class name","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"43c6b3c857df1f183f7a0d09b74f19dd5a4e5bf7","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.agent.linux import iptables_manager"},{"line_number":23,"context_line":"from neutron.common import constants as l3_constants"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_ea56a905","line":25,"in_reply_to":"fa32b979_df8289c8","updated":"2015-06-14 13:48:16.000000000","message":"isn\u0027t two the standard here? :? :)\n/me confused","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6586e465cd21a972dee8203a6065d3e97f2b253a","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.agent.linux import iptables_manager"},{"line_number":23,"context_line":"from neutron.common import constants as l3_constants"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_ca8645b9","line":25,"in_reply_to":"fa32b979_ea56a905","updated":"2015-06-14 15:12:09.000000000","message":"It seems one line is used here according with at least other dvr file(agent/l3/dvr*).","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"43c6b3c857df1f183f7a0d09b74f19dd5a4e5bf7","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            return"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        self.driver.unplug(interface_name,"},{"line_number":62,"context_line":"                           bridge\u003dself.agent_conf.external_network_bridge,"},{"line_number":63,"context_line":"                           namespace\u003dself.snat_namespace.name,"},{"line_number":64,"context_line":"                           prefix\u003drouter.EXTERNAL_DEV_PREFIX)"},{"line_number":65,"context_line":"        self.snat_namespace.delete()"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_2a74919a","line":62,"updated":"2015-06-14 13:48:16.000000000","message":"just a question: ^ I guess this means DVR doesn\u0027t support multiple external networks, right?","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            return"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        self.driver.unplug(interface_name,"},{"line_number":62,"context_line":"                           bridge\u003dself.agent_conf.external_network_bridge,"},{"line_number":63,"context_line":"                           namespace\u003dself.snat_namespace.name,"},{"line_number":64,"context_line":"                           prefix\u003drouter.EXTERNAL_DEV_PREFIX)"},{"line_number":65,"context_line":"        self.snat_namespace.delete()"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_0a498d8b","line":62,"in_reply_to":"fa32b979_2a74919a","updated":"2015-06-14 15:39:21.000000000","message":"It does, see the \u0027test_dvr_router_fips_for_multiple_ext_networks\u0027 functional test.\n\nbridge can be None in plug_new and unplug in the OVSInterfaceDriver. It just picks the integration bridge in that case.","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        sn_port \u003d self._map_internal_interfaces(port, self.snat_ports)"},{"line_number":99,"context_line":"        if not sn_port:"},{"line_number":100,"context_line":"            return"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":103,"context_line":"        is_this_snat_host \u003d (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":104,"context_line":"            and self.ex_gw_port[\u0027binding:host_id\u0027] \u003d\u003d self.host)"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_851a6e6d","line":101,"updated":"2015-06-14 15:39:21.000000000","message":"Unrelated note: I wonder why _is_this_snat_host is not used here?","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        sn_port \u003d self._map_internal_interfaces(port, self.snat_ports)"},{"line_number":99,"context_line":"        if not sn_port:"},{"line_number":100,"context_line":"            return"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":103,"context_line":"        is_this_snat_host \u003d (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":104,"context_line":"            and self.ex_gw_port[\u0027binding:host_id\u0027] \u003d\u003d self.host)"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_05e2de03","line":101,"in_reply_to":"fa32b979_851a6e6d","updated":"2015-06-14 17:16:17.000000000","message":"This is one of the points i am going to check in the next patch and why i didn\u0027t want to introduce a lot of noise in this patch.\n\nI will check it once we get there","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e6fbcf7acb19eca1619e0d6731582d54702bfac7","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        self.snat_namespace.create()"},{"line_number":145,"context_line":"        return self.snat_namespace"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    def _is_this_snat_host(self):"},{"line_number":148,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":149,"context_line":"        return (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":150,"context_line":"                and self.get_gw_port_host() \u003d\u003d self.host)"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_9f6de134","line":147,"updated":"2015-06-14 12:59:10.000000000","message":"consider using _is_snat_host instead","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        self.snat_namespace.create()"},{"line_number":145,"context_line":"        return self.snat_namespace"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    def _is_this_snat_host(self):"},{"line_number":148,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":149,"context_line":"        return (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":150,"context_line":"                and self.get_gw_port_host() \u003d\u003d self.host)"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_a5e77211","line":147,"in_reply_to":"fa32b979_4a79d592","updated":"2015-06-14 17:16:17.000000000","message":"Either one is fine with me, the end goal is to remove this method completely so its not that important (i just copied it the same as it was written in the dvr_router class.","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"43c6b3c857df1f183f7a0d09b74f19dd5a4e5bf7","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        self.snat_namespace.create()"},{"line_number":145,"context_line":"        return self.snat_namespace"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    def _is_this_snat_host(self):"},{"line_number":148,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":149,"context_line":"        return (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":150,"context_line":"                and self.get_gw_port_host() \u003d\u003d self.host)"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_4a79d592","line":147,"in_reply_to":"fa32b979_9f6de134","updated":"2015-06-14 13:48:16.000000000","message":"am_I_the_snat_host? ;)\n\nI personally like _is_this_snat_host more, seems more specific. But function /var naming at some point can become very subjective.","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e98ace87c6474e9eceb28f1f145f027045f7a23f","unresolved":false,"context_lines":[{"line_number":99,"context_line":"            return"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":102,"context_line":"        is_this_snat_host \u003d (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":103,"context_line":"            and self.ex_gw_port[\u0027binding:host_id\u0027] \u003d\u003d self.host)"},{"line_number":104,"context_line":"        if not is_this_snat_host:"},{"line_number":105,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":29,"id":"fa32b979_9d531b6b","line":102,"updated":"2015-06-17 15:05:19.000000000","message":"agent_mode is already checked in agent.py.","commit_id":"22e112b56b416898d53c394eb673385c4773f916"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"40f2a65843cbf7d4d5240e870d9ce77bcd05dfc5","unresolved":false,"context_lines":[{"line_number":99,"context_line":"            return"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":102,"context_line":"        is_this_snat_host \u003d (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":103,"context_line":"            and self.ex_gw_port[\u0027binding:host_id\u0027] \u003d\u003d self.host)"},{"line_number":104,"context_line":"        if not is_this_snat_host:"},{"line_number":105,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":29,"id":"fa32b979_3518e374","line":102,"in_reply_to":"fa32b979_9d531b6b","updated":"2015-06-17 15:33:37.000000000","message":"Done","commit_id":"22e112b56b416898d53c394eb673385c4773f916"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"4536f13780fc4958dc71ca08cbcd3be2f3c90529","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from neutron.agent.l3 import router_info as router"},{"line_number":21,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":22,"context_line":"from neutron.agent.linux import iptables_manager"},{"line_number":23,"context_line":"git"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"fa32b979_a82482c4","line":23,"updated":"2015-06-18 00:07:49.000000000","message":"git!","commit_id":"65f4ec1a684702f09f96d368da04609237261dd7"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"f864976b00c8e65d75939f0ad94f6597dbdb5453","unresolved":false,"context_lines":[{"line_number":12,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"from oslo_log import log as logging"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from neutron.agent.l3 import dvr_local_router"}],"source_content_type":"text/x-python","patch_set":32,"id":"fa32b979_ced532e5","line":15,"updated":"2015-06-18 14:46:46.000000000","message":"very small nit: can remove a line","commit_id":"94eb43edb90a3acbb6c00a90d6c00a631a8d211a"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"cecb2c3f22b462b458d6b1b7a0bf2a9f23943134","unresolved":false,"context_lines":[{"line_number":12,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"from oslo_log import log as logging"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from neutron.agent.l3 import dvr_local_router"}],"source_content_type":"text/x-python","patch_set":32,"id":"fa32b979_c74dd0c5","line":15,"in_reply_to":"fa32b979_ced532e5","updated":"2015-06-19 21:47:43.000000000","message":"Done","commit_id":"94eb43edb90a3acbb6c00a90d6c00a631a8d211a"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"f864976b00c8e65d75939f0ad94f6597dbdb5453","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":22,"context_line":"from neutron.agent.linux import iptables_manager"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"fa32b979_8e8e4a2c","line":24,"updated":"2015-06-18 14:46:46.000000000","message":"very small nit: can remove a line","commit_id":"94eb43edb90a3acbb6c00a90d6c00a631a8d211a"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"cecb2c3f22b462b458d6b1b7a0bf2a9f23943134","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":22,"context_line":"from neutron.agent.linux import iptables_manager"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"fa32b979_e74a54ac","line":24,"in_reply_to":"fa32b979_8e8e4a2c","updated":"2015-06-19 21:47:43.000000000","message":"Done","commit_id":"94eb43edb90a3acbb6c00a90d6c00a631a8d211a"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"f864976b00c8e65d75939f0ad94f6597dbdb5453","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def external_gateway_removed(self, ex_gw_port, interface_name):"},{"line_number":53,"context_line":"        super(DvrEdgeRouter, self).external_gateway_removed(ex_gw_port,"},{"line_number":54,"context_line":"                                                        interface_name)"},{"line_number":55,"context_line":"        if not self._is_this_snat_host():"},{"line_number":56,"context_line":"            # no centralized SNAT gateway for this node/agent"},{"line_number":57,"context_line":"            LOG.debug(\"not hosting snat for router: %s\", self.router[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":32,"id":"fa32b979_6ee0a6cd","line":54,"updated":"2015-06-18 14:46:46.000000000","message":"indent problem?","commit_id":"94eb43edb90a3acbb6c00a90d6c00a631a8d211a"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"cecb2c3f22b462b458d6b1b7a0bf2a9f23943134","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def external_gateway_removed(self, ex_gw_port, interface_name):"},{"line_number":53,"context_line":"        super(DvrEdgeRouter, self).external_gateway_removed(ex_gw_port,"},{"line_number":54,"context_line":"                                                        interface_name)"},{"line_number":55,"context_line":"        if not self._is_this_snat_host():"},{"line_number":56,"context_line":"            # no centralized SNAT gateway for this node/agent"},{"line_number":57,"context_line":"            LOG.debug(\"not hosting snat for router: %s\", self.router[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":32,"id":"fa32b979_67d5e4b7","line":54,"in_reply_to":"fa32b979_6ee0a6cd","updated":"2015-06-19 21:47:43.000000000","message":"Done","commit_id":"94eb43edb90a3acbb6c00a90d6c00a631a8d211a"}],"neutron/agent/l3/dvr_local_router.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        self.host \u003d host"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"        self.floating_ips_dict \u003d {}"},{"line_number":43,"context_line":"        self.snat_iptables_manager \u003d None"},{"line_number":44,"context_line":"        # Linklocal subnet for router and floating IP namespace link"},{"line_number":45,"context_line":"        self.rtr_fip_subnet \u003d None"},{"line_number":46,"context_line":"        self.dist_fip_count \u003d None"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_0a174d52","line":43,"updated":"2015-06-14 15:39:21.000000000","message":"Can you move this?","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        floating_ips \u003d super(DvrLocalRouter, self).get_floating_ips()"},{"line_number":52,"context_line":"        return [i for i in floating_ips if i[\u0027host\u0027] \u003d\u003d self.host]"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def get_snat_interfaces(self):"},{"line_number":55,"context_line":"        return self.router.get(l3_constants.SNAT_ROUTER_INTF_KEY, [])"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def get_snat_int_device_name(self, port_id):"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_aa0c2143","line":54,"updated":"2015-06-14 15:39:21.000000000","message":"Why did you leave these two methods?","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        floating_ips \u003d super(DvrLocalRouter, self).get_floating_ips()"},{"line_number":52,"context_line":"        return [i for i in floating_ips if i[\u0027host\u0027] \u003d\u003d self.host]"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def get_snat_interfaces(self):"},{"line_number":55,"context_line":"        return self.router.get(l3_constants.SNAT_ROUTER_INTF_KEY, [])"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def get_snat_int_device_name(self, port_id):"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_65c88a75","line":54,"in_reply_to":"fa32b979_aa0c2143","updated":"2015-06-14 17:16:17.000000000","message":"get_snat_interfaces is used locally here,\nI will move get_snat_int_device_name()","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":201,"context_line":"                                           p[\u0027mac_address\u0027],"},{"line_number":202,"context_line":"                                           subnet_id,"},{"line_number":203,"context_line":"                                           \u0027add\u0027)"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    def _map_internal_interfaces(self, int_port, snat_ports):"},{"line_number":206,"context_line":"        \"\"\"Return the SNAT port for the given internal interface port.\"\"\""},{"line_number":207,"context_line":"        fixed_ip \u003d int_port[\u0027fixed_ips\u0027][0]"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_25ffe202","line":204,"updated":"2015-06-14 15:39:21.000000000","message":"Can you move this along with get_snat_interfaces?","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":201,"context_line":"                                           p[\u0027mac_address\u0027],"},{"line_number":202,"context_line":"                                           subnet_id,"},{"line_number":203,"context_line":"                                           \u0027add\u0027)"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    def _map_internal_interfaces(self, int_port, snat_ports):"},{"line_number":206,"context_line":"        \"\"\"Return the SNAT port for the given internal interface port.\"\"\""},{"line_number":207,"context_line":"        fixed_ip \u003d int_port[\u0027fixed_ips\u0027][0]"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_c592b657","line":204,"in_reply_to":"fa32b979_25ffe202","updated":"2015-06-14 17:16:17.000000000","message":"No, as this is used internally here","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":213,"context_line":"        else:"},{"line_number":214,"context_line":"            LOG.error(_LE(\u0027DVR: no map match_port found!\u0027))"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    @staticmethod"},{"line_number":217,"context_line":"    def _get_snat_idx(ip_cidr):"},{"line_number":218,"context_line":"        \"\"\"Generate index for DVR snat rules and route tables."},{"line_number":219,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_45046614","line":216,"updated":"2015-06-14 15:39:21.000000000","message":"Since it\u0027s a static method I think it should be trivial to move this one.","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":213,"context_line":"        else:"},{"line_number":214,"context_line":"            LOG.error(_LE(\u0027DVR: no map match_port found!\u0027))"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    @staticmethod"},{"line_number":217,"context_line":"    def _get_snat_idx(ip_cidr):"},{"line_number":218,"context_line":"        \"\"\"Generate index for DVR snat rules and route tables."},{"line_number":219,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_25884222","line":216,"in_reply_to":"fa32b979_45046614","updated":"2015-06-14 17:16:17.000000000","message":"This method is only used here internally","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":311,"context_line":"        if not ex_gw_port:"},{"line_number":312,"context_line":"            return"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"        snat_ports \u003d self.get_snat_interfaces()"},{"line_number":315,"context_line":"        sn_port \u003d self._map_internal_interfaces(port, snat_ports)"},{"line_number":316,"context_line":"        if not sn_port:"},{"line_number":317,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_e5081a2b","line":314,"updated":"2015-06-14 15:39:21.000000000","message":"Still an issue here and with the redirection code below.","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":311,"context_line":"        if not ex_gw_port:"},{"line_number":312,"context_line":"            return"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"        snat_ports \u003d self.get_snat_interfaces()"},{"line_number":315,"context_line":"        sn_port \u003d self._map_internal_interfaces(port, snat_ports)"},{"line_number":316,"context_line":"        if not sn_port:"},{"line_number":317,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_e581fafc","line":314,"in_reply_to":"fa32b979_e5081a2b","updated":"2015-06-14 17:16:17.000000000","message":"I dont understand what you mean, can you clarify?\nThis code refers to the SNAT interface in the virtual router namespace not the SNAT namespace","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":353,"context_line":"        ip_wrapr \u003d ip_lib.IPWrapper(namespace\u003dself.ns_name)"},{"line_number":354,"context_line":"        ip_wrapr.netns.execute([\u0027sysctl\u0027, \u0027-w\u0027,"},{"line_number":355,"context_line":"                               \u0027net.ipv4.conf.all.send_redirects\u003d0\u0027])"},{"line_number":356,"context_line":"        snat_ports \u003d self.get_snat_interfaces()"},{"line_number":357,"context_line":"        for p in self.internal_ports:"},{"line_number":358,"context_line":"            gateway \u003d self._map_internal_interfaces(p, snat_ports)"},{"line_number":359,"context_line":"            id_name \u003d self.get_internal_device_name(p[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_050e5e34","line":356,"updated":"2015-06-14 15:39:21.000000000","message":"?","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":353,"context_line":"        ip_wrapr \u003d ip_lib.IPWrapper(namespace\u003dself.ns_name)"},{"line_number":354,"context_line":"        ip_wrapr.netns.execute([\u0027sysctl\u0027, \u0027-w\u0027,"},{"line_number":355,"context_line":"                               \u0027net.ipv4.conf.all.send_redirects\u003d0\u0027])"},{"line_number":356,"context_line":"        snat_ports \u003d self.get_snat_interfaces()"},{"line_number":357,"context_line":"        for p in self.internal_ports:"},{"line_number":358,"context_line":"            gateway \u003d self._map_internal_interfaces(p, snat_ports)"},{"line_number":359,"context_line":"            id_name \u003d self.get_internal_device_name(p[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_05873e10","line":356,"in_reply_to":"fa32b979_050e5e34","updated":"2015-06-14 17:16:17.000000000","message":"as above, this code refers to the SNAT ports in the virtual router namespace (which are added in the compute node) and not for the SNAT namespace itself, which is what we are trying to extract","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"}],"neutron/agent/l3/dvr_northbound_router.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"31ad8596bda7bb289e8d8601c4d8945c00f313d2","unresolved":false,"context_lines":[{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# TODO(gsagie) change this class to DvrNorthboundRouter"},{"line_number":30,"context_line":"# update tests, then think of composition model instead"},{"line_number":31,"context_line":"# of inheritance"},{"line_number":32,"context_line":"class DvrRouter(dvr_router.DvrInternalRouter):"}],"source_content_type":"text/x-python","patch_set":8,"id":"5afe65bd_7aeb21b1","line":29,"updated":"2015-06-03 15:16:32.000000000","message":"I\u0027m not sure that NorthboundRouter is a good name either.  Both types handle northbound traffic:  one with floating IPs and the other with a shared snat address.","commit_id":"41bc4061e010528884e89b2899ee07a23bd32ad5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"04f7692bfba3f42b2c9a1c59b280475e24376442","unresolved":false,"context_lines":[{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# TODO(gsagie) change this class to DvrNorthboundRouter"},{"line_number":30,"context_line":"# update tests, then think of composition model instead"},{"line_number":31,"context_line":"# of inheritance"},{"line_number":32,"context_line":"class DvrRouter(dvr_router.DvrInternalRouter):"}],"source_content_type":"text/x-python","patch_set":8,"id":"5afe65bd_7e32d060","line":29,"in_reply_to":"5afe65bd_7aeb21b1","updated":"2015-06-04 11:15:48.000000000","message":"Done","commit_id":"41bc4061e010528884e89b2899ee07a23bd32ad5"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"f46ec9780144137b073082e5f105352d16d1fcb3","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        super(DvrRouter, self).internal_network_added(port)"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        # TODO(gsagie) some of this checks are already implemented"},{"line_number":75,"context_line":"        # in the base class, think how to avoid re-doing them"},{"line_number":76,"context_line":"        if not self._is_this_snat_host():"},{"line_number":77,"context_line":"            return"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5afe65bd_a7f98b82","line":75,"updated":"2015-06-03 12:19:08.000000000","message":"Is it possible to test the condition at object creation time, and then avoid the tests during operations?\n\nCould there be a factory to create the router object and it would create a DvrNorthboundRouter, if the condition holds?\n\nIf not, and a test is needed, another way would be to create a method in the base class that does the test, and then call it here, before calling the base class method:\n\n    if not self.snat_ports_on_host():\n        return\n    super(DvrRouter, self).internal_network_added(port)\n    ns_name \u003d dvr_snat_ns.SnatNamespace.get_snat_ns_name(...)\n    ...\n\nThe base class can call the same method. A little cleaner, and removes the duplication.\n\nOverall though, a factory to create the right router type and eliminating the tests would be better, IMHO.","commit_id":"41bc4061e010528884e89b2899ee07a23bd32ad5"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7886b1db0bd349f09fa61dbb7afeaf31e2e04023","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        super(DvrRouter, self).internal_network_added(port)"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        # TODO(gsagie) some of this checks are already implemented"},{"line_number":75,"context_line":"        # in the base class, think how to avoid re-doing them"},{"line_number":76,"context_line":"        if not self._is_this_snat_host():"},{"line_number":77,"context_line":"            return"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5afe65bd_ba38823e","line":75,"in_reply_to":"5afe65bd_7a6e8a97","updated":"2015-06-03 12:32:33.000000000","message":"OK. Makes sense. The TODOs are good place markers for the future work.","commit_id":"41bc4061e010528884e89b2899ee07a23bd32ad5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"a8c4c92a263e8ef42a562857a13a8343714bbcf5","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        super(DvrRouter, self).internal_network_added(port)"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        # TODO(gsagie) some of this checks are already implemented"},{"line_number":75,"context_line":"        # in the base class, think how to avoid re-doing them"},{"line_number":76,"context_line":"        if not self._is_this_snat_host():"},{"line_number":77,"context_line":"            return"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5afe65bd_7a6e8a97","line":75,"in_reply_to":"5afe65bd_a7f98b82","updated":"2015-06-03 12:27:20.000000000","message":"Hi Paul,\n\nIf you read the comments in the previous patches this is going to be done in the next steps.\nThe L3 Agent will create the router according to this condition and i will remove all these checks from the Northbound router class (and align the unit tests accordingly) but as i stated i want to do this in steps.\n\nThe checks i thought you meant in the previous patch are for example:\n\n\"if not self.ex_gw_port\"   or \"if not sn_port\" which are done  both in the parent and child classes (northbound router and internal one)\nI will think how to handle these in the next patch, i am not sure they can be addressed by different class types.","commit_id":"41bc4061e010528884e89b2899ee07a23bd32ad5"}],"neutron/agent/l3/dvr_router.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d96c9dcbbdf4b933a1c210748835c149aa0b7e55","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        self.host \u003d host"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"        self.floating_ips_dict \u003d {}"},{"line_number":43,"context_line":"        self.snat_iptables_manager \u003d None"},{"line_number":44,"context_line":"        # Linklocal subnet for router and floating IP namespace link"},{"line_number":45,"context_line":"        self.rtr_fip_subnet \u003d None"},{"line_number":46,"context_line":"        self.dist_fip_count \u003d None"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_1c036278","line":43,"updated":"2015-05-26 06:30:12.000000000","message":"this should be in the new DvrRouter class?","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"431f533100cb0bfe97a973b421ba8c54af30bad4","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        self.host \u003d host"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"        self.floating_ips_dict \u003d {}"},{"line_number":43,"context_line":"        self.snat_iptables_manager \u003d None"},{"line_number":44,"context_line":"        # Linklocal subnet for router and floating IP namespace link"},{"line_number":45,"context_line":"        self.rtr_fip_subnet \u003d None"},{"line_number":46,"context_line":"        self.dist_fip_count \u003d None"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_9225f90b","line":43,"in_reply_to":"7a016987_1c036278","updated":"2015-05-26 07:54:00.000000000","message":"Yes, however i prefer to do both in next patch.\n\nThe reason i left it here is that this param is actually used also in the \"compute\" part.\nThe way the current code distinct is by checking if its \"None\" or not, which will have to be changed due to the separation but i prefer to do it in another patch to reduce complexion and intrusion in this patch","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d96c9dcbbdf4b933a1c210748835c149aa0b7e55","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        # Linklocal subnet for router and floating IP namespace link"},{"line_number":45,"context_line":"        self.rtr_fip_subnet \u003d None"},{"line_number":46,"context_line":"        self.dist_fip_count \u003d None"},{"line_number":47,"context_line":"        self.snat_namespace \u003d None"},{"line_number":48,"context_line":"        self.fip_ns \u003d None"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def get_floating_ips(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_fc07667f","line":47,"updated":"2015-05-26 06:30:12.000000000","message":"ditto","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e6dac617a90d885b6a7b5e9320525b8d69fd80c6","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        # Linklocal subnet for router and floating IP namespace link"},{"line_number":45,"context_line":"        self.rtr_fip_subnet \u003d None"},{"line_number":46,"context_line":"        self.dist_fip_count \u003d None"},{"line_number":47,"context_line":"        self.snat_namespace \u003d None"},{"line_number":48,"context_line":"        self.fip_ns \u003d None"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def get_floating_ips(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_f4e65aaf","line":47,"in_reply_to":"7a016987_1278e9f7","updated":"2015-05-26 10:35:44.000000000","message":"i have no strong opinion either ways.\nbut having snat_namespace initialization in both classes is a little confusing.","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"4403b0301b254b9407c0cf056075aad65b20f80f","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        # Linklocal subnet for router and floating IP namespace link"},{"line_number":45,"context_line":"        self.rtr_fip_subnet \u003d None"},{"line_number":46,"context_line":"        self.dist_fip_count \u003d None"},{"line_number":47,"context_line":"        self.snat_namespace \u003d None"},{"line_number":48,"context_line":"        self.fip_ns \u003d None"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def get_floating_ips(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_692e0ba7","line":47,"in_reply_to":"7a016987_f4e65aaf","updated":"2015-05-26 12:13:03.000000000","message":"You are right, i currently removed it until handled in the next patch","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"431f533100cb0bfe97a973b421ba8c54af30bad4","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        # Linklocal subnet for router and floating IP namespace link"},{"line_number":45,"context_line":"        self.rtr_fip_subnet \u003d None"},{"line_number":46,"context_line":"        self.dist_fip_count \u003d None"},{"line_number":47,"context_line":"        self.snat_namespace \u003d None"},{"line_number":48,"context_line":"        self.fip_ns \u003d None"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def get_floating_ips(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_1278e9f7","line":47,"in_reply_to":"7a016987_fc07667f","updated":"2015-05-26 07:54:00.000000000","message":"Yes, this will also move as part of the next patch, if you think its important to do it in this patch let me know and i will try to think it over","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d96c9dcbbdf4b933a1c210748835c149aa0b7e55","unresolved":false,"context_lines":[{"line_number":369,"context_line":"                                       \u0027add\u0027)"},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"    def external_gateway_updated(self, ex_gw_port, interface_name):"},{"line_number":372,"context_line":"        return"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"    def external_gateway_removed(self, ex_gw_port, interface_name):"},{"line_number":375,"context_line":"        # TODO(Carl) Should this be calling process_snat_dnat_for_fip?"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_1cb5a2cf","line":372,"updated":"2015-05-26 06:30:12.000000000","message":"pass","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"431f533100cb0bfe97a973b421ba8c54af30bad4","unresolved":false,"context_lines":[{"line_number":369,"context_line":"                                       \u0027add\u0027)"},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"    def external_gateway_updated(self, ex_gw_port, interface_name):"},{"line_number":372,"context_line":"        return"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"    def external_gateway_removed(self, ex_gw_port, interface_name):"},{"line_number":375,"context_line":"        # TODO(Carl) Should this be calling process_snat_dnat_for_fip?"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_d28131c5","line":372,"in_reply_to":"7a016987_1cb5a2cf","updated":"2015-05-26 07:54:00.000000000","message":"Done","commit_id":"a69ab78d6e77904438565a0f44aa2ed5842832ae"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"123c58c6060161b5f46d2285c271fe3f9933dd90","unresolved":false,"context_lines":[{"line_number":313,"context_line":"        # TODO(Carl) This is a sign that dvr needs two router classes."},{"line_number":314,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":315,"context_line":"        return (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":316,"context_line":"                and self.get_gw_port_host() \u003d\u003d self.host)"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"    def internal_network_added(self, port):"},{"line_number":319,"context_line":"        super(DvrRouter, self).internal_network_added(port)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a016987_f88b9d66","side":"PARENT","line":316,"updated":"2015-05-27 23:46:30.000000000","message":"This is the logic I think that the agent will need to use to know if it should instantiate the centralized dvr class (possibly in addition to the distributed part).","commit_id":"4d7f4275f35299e94742c8d259b7e1d7a27a00d3"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"c46966d6bb2e3737a780b959c95bbab636c0a38b","unresolved":false,"context_lines":[{"line_number":313,"context_line":"        # TODO(Carl) This is a sign that dvr needs two router classes."},{"line_number":314,"context_line":"        mode \u003d self.agent_conf.agent_mode"},{"line_number":315,"context_line":"        return (mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":316,"context_line":"                and self.get_gw_port_host() \u003d\u003d self.host)"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"    def internal_network_added(self, port):"},{"line_number":319,"context_line":"        super(DvrRouter, self).internal_network_added(port)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a016987_19ac3834","side":"PARENT","line":316,"in_reply_to":"7a016987_f88b9d66","updated":"2015-05-28 05:45:13.000000000","message":"Yes, this is the intention to put it there (see my comment in agent.py)","commit_id":"4d7f4275f35299e94742c8d259b7e1d7a27a00d3"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"31255b095d910bf61553efb0c3b5615b7ae6e1af","unresolved":false,"context_lines":[{"line_number":32,"context_line":"MASK_30 \u003d 0x3fffffff"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class DvrInternalRouter(router.RouterInfo):"},{"line_number":36,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":37,"context_line":"        super(DvrInternalRouter, self).__init__(*args, **kwargs)"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_ae007fab","line":35,"updated":"2015-06-05 14:47:07.000000000","message":"I\u0027ve noticed the naming discussion. Just want to throw some thoughts in if it\u0027s not too late.\n\nTo me the instance running on the compute node is the \"local\" representation of the neutron router, local to the compute node, which is the essence of the distributed virtual router. While the one on the network node does SNAT for default floatingip. Therefore, I felt that the names DvrLocalRouter(), DvrSNATRouter() reflects the current design perfectly. But it\u0027s just my two cents.","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"f1a675b63e22220df43c4795e32a9c6e0d035c64","unresolved":false,"context_lines":[{"line_number":32,"context_line":"MASK_30 \u003d 0x3fffffff"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class DvrInternalRouter(router.RouterInfo):"},{"line_number":36,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":37,"context_line":"        super(DvrInternalRouter, self).__init__(*args, **kwargs)"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_867eade2","line":35,"in_reply_to":"3afb71cf_2ffec66b","updated":"2015-06-07 05:19:13.000000000","message":"The names i picked are : dvr_local_router and dvr_edge_router \nHope that finally make sense :)","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7ab9027413254b2fec6ad695e8a9fd07b7635b0e","unresolved":false,"context_lines":[{"line_number":32,"context_line":"MASK_30 \u003d 0x3fffffff"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class DvrInternalRouter(router.RouterInfo):"},{"line_number":36,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":37,"context_line":"        super(DvrInternalRouter, self).__init__(*args, **kwargs)"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_2ffec66b","line":35,"in_reply_to":"3afb71cf_ae007fab","updated":"2015-06-05 17:15:14.000000000","message":"@Robert.  You have a good point.  I wouldn\u0027t mind using Local instead of Internal.\n\nI don\u0027t like SNAT in the name because it is not necessarily limited to SNAT.  For example, VPNaaS may also be hosted in the central part.  It is where centralized services are hosted.  So, maybe just DvrRouter and DvrLocalRouter?  Sorry it is so difficult to choose names for these two routers.","commit_id":"2e9bef6c0d5444fb9b851157255924a87a75f0df"}],"neutron/agent/l3/dvr_router_network_node.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"5401de85759cea7146523bfd5e2da205d4bc7375","unresolved":false,"context_lines":[{"line_number":97,"context_line":"            return"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        if not self.ex_gw_port:"},{"line_number":100,"context_line":"            return"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        sn_port \u003d self._map_internal_interfaces(port, self.snat_ports)"},{"line_number":103,"context_line":"        if not sn_port:"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a016987_a3f8a2c5","line":100,"updated":"2015-05-26 10:33:10.000000000","message":"L99-100 should be before L93-97","commit_id":"a9d4245892737678ed5e99ee4f97b3bb5982737a"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"616911699759faa5121b8613da35e50e8f05f590","unresolved":false,"context_lines":[{"line_number":97,"context_line":"            return"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        if not self.ex_gw_port:"},{"line_number":100,"context_line":"            return"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        sn_port \u003d self._map_internal_interfaces(port, self.snat_ports)"},{"line_number":103,"context_line":"        if not sn_port:"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a016987_8378062d","line":100,"in_reply_to":"7a016987_a3f8a2c5","updated":"2015-05-26 10:39:34.000000000","message":"Thanks, good catch!","commit_id":"a9d4245892737678ed5e99ee4f97b3bb5982737a"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"81facd80b6b4b7d3667635d2f8f978fedd159c82","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":32,"context_line":"        super(DvrRouter, self).__init__(agent, host, *args, **kwargs)"},{"line_number":33,"context_line":"        self.snat_namespace \u003d None"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def external_gateway_added(self, ex_gw_port, interface_name):"},{"line_number":36,"context_line":"        super(DvrRouter, self).external_gateway_added("}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_3b673a27","line":33,"updated":"2015-05-26 12:50:40.000000000","message":"Defined in base class.","commit_id":"96c06b6ba21a737fb4c5e8f1802785c40c800f21"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"7a5a770f3615bb30a3637107efc55813549fcd44","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":32,"context_line":"        super(DvrRouter, self).__init__(agent, host, *args, **kwargs)"},{"line_number":33,"context_line":"        self.snat_namespace \u003d None"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def external_gateway_added(self, ex_gw_port, interface_name):"},{"line_number":36,"context_line":"        super(DvrRouter, self).external_gateway_added("}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_74ba5f0c","line":33,"in_reply_to":"7a016987_3b673a27","updated":"2015-05-26 13:40:34.000000000","message":"Its removed in patch set 5, i will also have to bring iptables_manager here but that will be in the next patch as it involve some changes","commit_id":"96c06b6ba21a737fb4c5e8f1802785c40c800f21"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"81facd80b6b4b7d3667635d2f8f978fedd159c82","unresolved":false,"context_lines":[{"line_number":37,"context_line":"            ex_gw_port, interface_name)"},{"line_number":38,"context_line":"        if self._is_this_snat_host():"},{"line_number":39,"context_line":"            snat_ports \u003d self.get_snat_interfaces()"},{"line_number":40,"context_line":"            self._create_dvr_gateway(ex_gw_port, interface_name, snat_ports)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def external_gateway_updated(self, ex_gw_port, interface_name):"},{"line_number":43,"context_line":"        if not self._is_this_snat_host():"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_5e9ae4c6","line":40,"updated":"2015-05-26 12:50:40.000000000","message":"Not knowing the code well... is it OK to create the GW after the ARP entries are updated (just noting a change in the sequence)?","commit_id":"96c06b6ba21a737fb4c5e8f1802785c40c800f21"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"7a5a770f3615bb30a3637107efc55813549fcd44","unresolved":false,"context_lines":[{"line_number":37,"context_line":"            ex_gw_port, interface_name)"},{"line_number":38,"context_line":"        if self._is_this_snat_host():"},{"line_number":39,"context_line":"            snat_ports \u003d self.get_snat_interfaces()"},{"line_number":40,"context_line":"            self._create_dvr_gateway(ex_gw_port, interface_name, snat_ports)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def external_gateway_updated(self, ex_gw_port, interface_name):"},{"line_number":43,"context_line":"        if not self._is_this_snat_host():"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_946b9b85","line":40,"in_reply_to":"7a016987_5e9ae4c6","updated":"2015-05-26 13:40:34.000000000","message":"I noticed that i changed that order here, i dont personally see a problem (short connetivity lose time could be introduced but this could be just for the other order as well i assume)\n\nIf anyone think its important please let me know why","commit_id":"96c06b6ba21a737fb4c5e8f1802785c40c800f21"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"81facd80b6b4b7d3667635d2f8f978fedd159c82","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        if not self._is_this_snat_host():"},{"line_number":72,"context_line":"            return"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        snat_ports \u003d self.get_snat_interfaces()"},{"line_number":75,"context_line":"        sn_port \u003d self._map_internal_interfaces(port, snat_ports)"},{"line_number":76,"context_line":"        if not sn_port:"},{"line_number":77,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_be47981c","line":74,"updated":"2015-05-26 12:50:40.000000000","message":"I\u0027m wondering if base method should return an indication of whether or not there is more to do, so that the tests don\u0027t have to be duplicated here and in other places like L93-98.","commit_id":"96c06b6ba21a737fb4c5e8f1802785c40c800f21"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"7a5a770f3615bb30a3637107efc55813549fcd44","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        if not self._is_this_snat_host():"},{"line_number":72,"context_line":"            return"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        snat_ports \u003d self.get_snat_interfaces()"},{"line_number":75,"context_line":"        sn_port \u003d self._map_internal_interfaces(port, snat_ports)"},{"line_number":76,"context_line":"        if not sn_port:"},{"line_number":77,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_b41c5714","line":74,"in_reply_to":"7a016987_be47981c","updated":"2015-05-26 13:40:34.000000000","message":"Can you please explain or give an example?","commit_id":"96c06b6ba21a737fb4c5e8f1802785c40c800f21"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"123c58c6060161b5f46d2285c271fe3f9933dd90","unresolved":false,"context_lines":[{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"class DvrRouter(dvr_router.DvrRouterComputeNode):"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":32,"context_line":"        super(DvrRouter, self).__init__(agent, host, *args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a016987_d588aa24","line":29,"updated":"2015-05-27 23:46:30.000000000","message":"?  I\u0027m not sure I like this inheritance relationship.  A network node DvrRouter is a compute node DvrRouter?  That doesn\u0027t make sense to me.  I think I\u0027d rather load an instance of each on nodes that need to host both.","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"c46966d6bb2e3737a780b959c95bbab636c0a38b","unresolved":false,"context_lines":[{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"class DvrRouter(dvr_router.DvrRouterComputeNode):"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":32,"context_line":"        super(DvrRouter, self).__init__(agent, host, *args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a016987_79120c64","line":29,"in_reply_to":"7a016987_d588aa24","updated":"2015-05-28 05:45:13.000000000","message":"I have written about it in a previous comment.\n\nI want to support composition of router functionality (HA, centralized SNAT, FIP, distributed router), composition does sound like the right end goal here (and as i mentioned we might have other future functionality like routing protocols and so on..)\n\nHowever right now since we cant distinguish anyway we must support all the \"compute node\" functionality anyway, so i thought that could be a good first step to split the functionality between the two classes.\nThis also make it easier to align the unit tests at this point\n\nAlso using two different instances to reflect the same router sounded strange to me (what needs to happen on the network node).\n\nSo i thought doing this first and then when we have the functionality split, think how we can do it in a composition.\n(The idea is to introduce as minimum noise as possible at each iteration)\n\nBut if you don\u0027t like this approach i can rethink it","commit_id":"2ce0de87eeb6737f1efb7551d9adaa8213cd5ed2"}],"neutron/tests/common/l3_tests_common.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 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":21,"id":"fa32b979_58a385b2","line":1,"updated":"2015-06-16 22:07:24.000000000","message":"nit:  Either put your company or leave it out.  Lately, I just leave out the copyright line.","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"}],"neutron/tests/unit/agent/l3/l3_test_common.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 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":21,"id":"fa32b979_d8979546","line":1,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"}],"neutron/tests/unit/agent/l3/test_agent.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"89ff327d4b9c023e37c4a81f86e6a14418d15c6d","unresolved":false,"context_lines":[{"line_number":855,"context_line":"        ri.external_gateway_updated(ex_gw_port, interface_name)"},{"line_number":856,"context_line":"        # no gateway should be added on dvr node"},{"line_number":857,"context_line":"        self.assertEqual(expected_call_count,"},{"line_number":858,"context_line":"                         ri._external_gateway_added.call_count)"},{"line_number":859,"context_line":""},{"line_number":860,"context_line":"    def test_ext_gw_updated_dvr_agent_mode(self):"},{"line_number":861,"context_line":"        # no gateway should be added on dvr node"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_948cb480","line":858,"updated":"2015-06-15 20:59:17.000000000","message":"This test should should be moved to the local router file. I don\u0027t think it\u0027s possible until agent._create_router actually looks at the agent_mode and knows which router type to create though.","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"fbce5e312182d1008b4cc3e2982205438ed9da33","unresolved":false,"context_lines":[{"line_number":855,"context_line":"        ri.external_gateway_updated(ex_gw_port, interface_name)"},{"line_number":856,"context_line":"        # no gateway should be added on dvr node"},{"line_number":857,"context_line":"        self.assertEqual(expected_call_count,"},{"line_number":858,"context_line":"                         ri._external_gateway_added.call_count)"},{"line_number":859,"context_line":""},{"line_number":860,"context_line":"    def test_ext_gw_updated_dvr_agent_mode(self):"},{"line_number":861,"context_line":"        # no gateway should be added on dvr node"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_3dda4c79","line":858,"in_reply_to":"fa32b979_948cb480","updated":"2015-06-16 13:19:21.000000000","message":"i can\u0027t just move this test, it had to be altered to fit the new model, i done it and put the relevant parts at the correct locations.\n\nAnd also added another case which wasn\u0027t covered (correct HOSTNAME but dvr router)","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"89ff327d4b9c023e37c4a81f86e6a14418d15c6d","unresolved":false,"context_lines":[{"line_number":978,"context_line":"        res_ip \u003d ri._map_internal_interfaces(internal_ports[0], [test_port])"},{"line_number":979,"context_line":"        self.assertNotEqual(test_port, res_ip)"},{"line_number":980,"context_line":"        self.assertIsNone(res_ip)"},{"line_number":981,"context_line":""},{"line_number":982,"context_line":"    def test__set_subnet_arp_info(self):"},{"line_number":983,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":984,"context_line":"        router \u003d prepare_router_data(num_internal_ports\u003d2)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_9416f4ef","line":981,"updated":"2015-06-15 20:59:17.000000000","message":"All of the tests involving set_subnet_arp_info should be moved to the local router tests file.","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"fbce5e312182d1008b4cc3e2982205438ed9da33","unresolved":false,"context_lines":[{"line_number":978,"context_line":"        res_ip \u003d ri._map_internal_interfaces(internal_ports[0], [test_port])"},{"line_number":979,"context_line":"        self.assertNotEqual(test_port, res_ip)"},{"line_number":980,"context_line":"        self.assertIsNone(res_ip)"},{"line_number":981,"context_line":""},{"line_number":982,"context_line":"    def test__set_subnet_arp_info(self):"},{"line_number":983,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":984,"context_line":"        router \u003d prepare_router_data(num_internal_ports\u003d2)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_b9f3da09","line":981,"in_reply_to":"fa32b979_9416f4ef","updated":"2015-06-16 13:19:21.000000000","message":"Done","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"89ff327d4b9c023e37c4a81f86e6a14418d15c6d","unresolved":false,"context_lines":[{"line_number":1177,"context_line":"        self.assertEqual({fip_id: l3_constants.FLOATINGIP_STATUS_ACTIVE},"},{"line_number":1178,"context_line":"                         fip_statuses)"},{"line_number":1179,"context_line":"        ri.add_floating_ip.assert_called_once_with("},{"line_number":1180,"context_line":"            floating_ips[0], mock.sentinel.interface_name, device)"},{"line_number":1181,"context_line":""},{"line_number":1182,"context_line":"    def test_get_floating_agent_gw_interfaces(self):"},{"line_number":1183,"context_line":"        fake_network_id \u003d _uuid()"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_747810f3","line":1180,"updated":"2015-06-15 20:59:17.000000000","message":"This test should be moved to the local DVR router tests file, and line 1203 should be to create a local router instance.","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"fbce5e312182d1008b4cc3e2982205438ed9da33","unresolved":false,"context_lines":[{"line_number":1177,"context_line":"        self.assertEqual({fip_id: l3_constants.FLOATINGIP_STATUS_ACTIVE},"},{"line_number":1178,"context_line":"                         fip_statuses)"},{"line_number":1179,"context_line":"        ri.add_floating_ip.assert_called_once_with("},{"line_number":1180,"context_line":"            floating_ips[0], mock.sentinel.interface_name, device)"},{"line_number":1181,"context_line":""},{"line_number":1182,"context_line":"    def test_get_floating_agent_gw_interfaces(self):"},{"line_number":1183,"context_line":"        fake_network_id \u003d _uuid()"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_1c03d110","line":1180,"in_reply_to":"fa32b979_747810f3","updated":"2015-06-16 13:19:21.000000000","message":"Done","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"89ff327d4b9c023e37c4a81f86e6a14418d15c6d","unresolved":false,"context_lines":[{"line_number":1321,"context_line":"        ri \u003d l3router.RouterInfo(router[\u0027id\u0027], router, **self.ri_kwargs)"},{"line_number":1322,"context_line":"        ri.iptables_manager.ipv4[\u0027nat\u0027] \u003d mock.MagicMock()"},{"line_number":1323,"context_line":"        ri.get_external_device_name \u003d mock.Mock(return_value\u003d\u0027exgw\u0027)"},{"line_number":1324,"context_line":"        self._test_process_floating_ip_addresses_add(ri, agent)"},{"line_number":1325,"context_line":""},{"line_number":1326,"context_line":"    def test_process_router_dist_floating_ip_add(self):"},{"line_number":1327,"context_line":"        fake_floatingips \u003d {\u0027floatingips\u0027: ["}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_8feeddb2","line":1324,"updated":"2015-06-15 20:59:17.000000000","message":"Umm, I can\u0027t say I understand what this test is trying to test, but I think it can be moved to the local tests file, with line 1345 changed to create a DvrLocalRouter instance.","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"fbce5e312182d1008b4cc3e2982205438ed9da33","unresolved":false,"context_lines":[{"line_number":1321,"context_line":"        ri \u003d l3router.RouterInfo(router[\u0027id\u0027], router, **self.ri_kwargs)"},{"line_number":1322,"context_line":"        ri.iptables_manager.ipv4[\u0027nat\u0027] \u003d mock.MagicMock()"},{"line_number":1323,"context_line":"        ri.get_external_device_name \u003d mock.Mock(return_value\u003d\u0027exgw\u0027)"},{"line_number":1324,"context_line":"        self._test_process_floating_ip_addresses_add(ri, agent)"},{"line_number":1325,"context_line":""},{"line_number":1326,"context_line":"    def test_process_router_dist_floating_ip_add(self):"},{"line_number":1327,"context_line":"        fake_floatingips \u003d {\u0027floatingips\u0027: ["}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_1f1ae36e","line":1324,"in_reply_to":"fa32b979_8feeddb2","updated":"2015-06-16 13:19:21.000000000","message":"Done","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"89ff327d4b9c023e37c4a81f86e6a14418d15c6d","unresolved":false,"context_lines":[{"line_number":1950,"context_line":"            stale_devnames[0],"},{"line_number":1951,"context_line":"            bridge\u003d\"br-ex\","},{"line_number":1952,"context_line":"            namespace\u003dri.ns_name,"},{"line_number":1953,"context_line":"            prefix\u003dl3_agent.EXTERNAL_DEV_PREFIX)"},{"line_number":1954,"context_line":""},{"line_number":1955,"context_line":"    def test_router_deleted(self):"},{"line_number":1956,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_cf914554","line":1953,"updated":"2015-06-15 20:59:17.000000000","message":"(No action required) All of these tests that target the _queue should be moved off to another test class, probably in another file.","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"fbce5e312182d1008b4cc3e2982205438ed9da33","unresolved":false,"context_lines":[{"line_number":1950,"context_line":"            stale_devnames[0],"},{"line_number":1951,"context_line":"            bridge\u003d\"br-ex\","},{"line_number":1952,"context_line":"            namespace\u003dri.ns_name,"},{"line_number":1953,"context_line":"            prefix\u003dl3_agent.EXTERNAL_DEV_PREFIX)"},{"line_number":1954,"context_line":""},{"line_number":1955,"context_line":"    def test_router_deleted(self):"},{"line_number":1956,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_ea7dfbe7","line":1953,"in_reply_to":"fa32b979_cf914554","updated":"2015-06-16 13:19:21.000000000","message":"i will do this in another patch","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"89ff327d4b9c023e37c4a81f86e6a14418d15c6d","unresolved":false,"context_lines":[{"line_number":2149,"context_line":"        self.assertRaises(n_exc.TooManyExternalNetworks,"},{"line_number":2150,"context_line":"                          agent._process_router_if_compatible,"},{"line_number":2151,"context_line":"                          router)"},{"line_number":2152,"context_line":"        self.assertNotIn(router[\u0027id\u0027], agent.router_info)"},{"line_number":2153,"context_line":""},{"line_number":2154,"context_line":"    def test_process_router_if_compatible_with_ext_net_in_conf(self):"},{"line_number":2155,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_efdd2943","line":2152,"updated":"2015-06-15 20:59:17.000000000","message":"(No action required) Wow this tests file is fun :) All of these tests that check the agent conf validity should be in a different test class.","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"fbce5e312182d1008b4cc3e2982205438ed9da33","unresolved":false,"context_lines":[{"line_number":2149,"context_line":"        self.assertRaises(n_exc.TooManyExternalNetworks,"},{"line_number":2150,"context_line":"                          agent._process_router_if_compatible,"},{"line_number":2151,"context_line":"                          router)"},{"line_number":2152,"context_line":"        self.assertNotIn(router[\u0027id\u0027], agent.router_info)"},{"line_number":2153,"context_line":""},{"line_number":2154,"context_line":"    def test_process_router_if_compatible_with_ext_net_in_conf(self):"},{"line_number":2155,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_8a846fd4","line":2152,"in_reply_to":"fa32b979_efdd2943","updated":"2015-06-16 13:19:21.000000000","message":"i will do this in another patch","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"89ff327d4b9c023e37c4a81f86e6a14418d15c6d","unresolved":false,"context_lines":[{"line_number":2331,"context_line":"            (raise_timeout, ) * 5"},{"line_number":2332,"context_line":"        )"},{"line_number":2333,"context_line":"        self.assertRaises(oslo_messaging.MessagingTimeout, l3_agent.L3NATAgent,"},{"line_number":2334,"context_line":"                          HOSTNAME, self.conf)"},{"line_number":2335,"context_line":""},{"line_number":2336,"context_line":"    def _test_external_gateway_removed_ext_gw_port_and_fip(self, fip_ns\u003dFalse):"},{"line_number":2337,"context_line":"        self.conf.set_override(\u0027state_path\u0027, \u0027/tmp\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_0f5c0dec","line":2334,"updated":"2015-06-15 20:59:17.000000000","message":"I think we should split this test up differently. I mean it\u0027s basically two tests in one with some shared setup code (I guess up to line 2356). The test with fip_ns\u003dTrue should be moved to the local router tests file.","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"fbce5e312182d1008b4cc3e2982205438ed9da33","unresolved":false,"context_lines":[{"line_number":2331,"context_line":"            (raise_timeout, ) * 5"},{"line_number":2332,"context_line":"        )"},{"line_number":2333,"context_line":"        self.assertRaises(oslo_messaging.MessagingTimeout, l3_agent.L3NATAgent,"},{"line_number":2334,"context_line":"                          HOSTNAME, self.conf)"},{"line_number":2335,"context_line":""},{"line_number":2336,"context_line":"    def _test_external_gateway_removed_ext_gw_port_and_fip(self, fip_ns\u003dFalse):"},{"line_number":2337,"context_line":"        self.conf.set_override(\u0027state_path\u0027, \u0027/tmp\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_a0c86f23","line":2334,"in_reply_to":"fa32b979_0f5c0dec","updated":"2015-06-16 13:19:21.000000000","message":"Done","commit_id":"b5fc73263d4a9f4f4e4f45a00897c089532d2913"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2012 VMware, Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"#    not use this file except in compliance with the License. You may obtain"},{"line_number":6,"context_line":"#    a copy of the License at"},{"line_number":7,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_b89ad16c","line":4,"updated":"2015-06-16 22:07:24.000000000","message":"Please don\u0027t change whitespace outside of the scope of the patch.","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2012 VMware, Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"#    not use this file except in compliance with the License. You may obtain"},{"line_number":6,"context_line":"#    a copy of the License at"},{"line_number":7,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_3b855b06","line":4,"in_reply_to":"fa32b979_b89ad16c","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        self.snat_ports \u003d [{\u0027subnets\u0027: [{\u0027cidr\u0027: \u0027152.2.0.0/16\u0027,"},{"line_number":143,"context_line":"                                         \u0027gateway_ip\u0027: \u0027152.2.0.1\u0027,"},{"line_number":144,"context_line":"                                         \u0027id\u0027: subnet_id_1}],"},{"line_number":145,"context_line":"                            \u0027network_id\u0027: _uuid(),"},{"line_number":146,"context_line":"                            \u0027device_owner\u0027: \u0027network:router_centralized_snat\u0027,"},{"line_number":147,"context_line":"                            \u0027mac_address\u0027: \u0027fa:16:3e:80:8d:80\u0027,"},{"line_number":148,"context_line":"                            \u0027fixed_ips\u0027: [{\u0027subnet_id\u0027: subnet_id_1,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_98ab4d75","line":145,"updated":"2015-06-16 22:07:24.000000000","message":"Restore original whitespace.","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        self.snat_ports \u003d [{\u0027subnets\u0027: [{\u0027cidr\u0027: \u0027152.2.0.0/16\u0027,"},{"line_number":143,"context_line":"                                         \u0027gateway_ip\u0027: \u0027152.2.0.1\u0027,"},{"line_number":144,"context_line":"                                         \u0027id\u0027: subnet_id_1}],"},{"line_number":145,"context_line":"                            \u0027network_id\u0027: _uuid(),"},{"line_number":146,"context_line":"                            \u0027device_owner\u0027: \u0027network:router_centralized_snat\u0027,"},{"line_number":147,"context_line":"                            \u0027mac_address\u0027: \u0027fa:16:3e:80:8d:80\u0027,"},{"line_number":148,"context_line":"                            \u0027fixed_ips\u0027: [{\u0027subnet_id\u0027: subnet_id_1,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_9b74a736","line":145,"in_reply_to":"fa32b979_98ab4d75","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    def test_l3_initial_report_state_done(self):"},{"line_number":203,"context_line":"        with mock.patch.object(l3_agent.L3NATAgentWithStateReport,"},{"line_number":204,"context_line":"                               \u0027periodic_sync_routers_task\u0027), \\"},{"line_number":205,"context_line":"             mock.patch.object(agent_rpc.PluginReportStateAPI,"},{"line_number":206,"context_line":"                               \u0027report_state\u0027) as report_state, \\"},{"line_number":207,"context_line":"                mock.patch.object(eventlet, \u0027spawn_n\u0027):"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_3b5a3b2b","line":204,"updated":"2015-06-16 22:07:24.000000000","message":"Ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    def test_l3_initial_report_state_done(self):"},{"line_number":203,"context_line":"        with mock.patch.object(l3_agent.L3NATAgentWithStateReport,"},{"line_number":204,"context_line":"                               \u0027periodic_sync_routers_task\u0027), \\"},{"line_number":205,"context_line":"             mock.patch.object(agent_rpc.PluginReportStateAPI,"},{"line_number":206,"context_line":"                               \u0027report_state\u0027) as report_state, \\"},{"line_number":207,"context_line":"                mock.patch.object(eventlet, \u0027spawn_n\u0027):"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_dba54fa2","line":204,"in_reply_to":"fa32b979_3b5a3b2b","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":322,"context_line":"        agent.host \u003d HOSTNAME"},{"line_number":323,"context_line":"        agent.conf.agent_mode \u003d \u0027dvr_snat\u0027"},{"line_number":324,"context_line":"        sn_port \u003d {\u0027fixed_ips\u0027: [{\u0027ip_address\u0027: \u002720.0.0.31\u0027,"},{"line_number":325,"context_line":"                                  \u0027subnet_id\u0027: _uuid()}],"},{"line_number":326,"context_line":"                   \u0027subnets\u0027: [{\u0027gateway_ip\u0027: \u002720.0.0.1\u0027}],"},{"line_number":327,"context_line":"                   \u0027extra_subnets\u0027: [{\u0027cidr\u0027: \u0027172.16.0.0/24\u0027}],"},{"line_number":328,"context_line":"                   \u0027id\u0027: _uuid(),"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_bb464b4d","line":325,"updated":"2015-06-16 22:07:24.000000000","message":"Ditto.","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":322,"context_line":"        agent.host \u003d HOSTNAME"},{"line_number":323,"context_line":"        agent.conf.agent_mode \u003d \u0027dvr_snat\u0027"},{"line_number":324,"context_line":"        sn_port \u003d {\u0027fixed_ips\u0027: [{\u0027ip_address\u0027: \u002720.0.0.31\u0027,"},{"line_number":325,"context_line":"                                  \u0027subnet_id\u0027: _uuid()}],"},{"line_number":326,"context_line":"                   \u0027subnets\u0027: [{\u0027gateway_ip\u0027: \u002720.0.0.1\u0027}],"},{"line_number":327,"context_line":"                   \u0027extra_subnets\u0027: [{\u0027cidr\u0027: \u0027172.16.0.0/24\u0027}],"},{"line_number":328,"context_line":"                   \u0027id\u0027: _uuid(),"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_7bbd23b6","line":325,"in_reply_to":"fa32b979_bb464b4d","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":719,"context_line":"            \u0027mac_address\u0027: \u002700:12:23:34:45:56\u0027,"},{"line_number":720,"context_line":"            \u0027fixed_ips\u0027: [{\u0027subnet_id\u0027: l3_test_common.get_subnet_id("},{"line_number":721,"context_line":"                router[l3_constants.INTERFACE_KEY][0]),"},{"line_number":722,"context_line":"                           \u0027ip_address\u0027: \u0027101.12.13.14\u0027}]}"},{"line_number":723,"context_line":"        internal_ports \u003d ri.router.get(l3_constants.INTERFACE_KEY, [])"},{"line_number":724,"context_line":"        # test valid case"},{"line_number":725,"context_line":"        res_port \u003d ri._map_internal_interfaces(internal_ports[0], [test_port])"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_fb67f3e6","line":722,"updated":"2015-06-16 22:07:24.000000000","message":"Ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":719,"context_line":"            \u0027mac_address\u0027: \u002700:12:23:34:45:56\u0027,"},{"line_number":720,"context_line":"            \u0027fixed_ips\u0027: [{\u0027subnet_id\u0027: l3_test_common.get_subnet_id("},{"line_number":721,"context_line":"                router[l3_constants.INTERFACE_KEY][0]),"},{"line_number":722,"context_line":"                           \u0027ip_address\u0027: \u0027101.12.13.14\u0027}]}"},{"line_number":723,"context_line":"        internal_ports \u003d ri.router.get(l3_constants.INTERFACE_KEY, [])"},{"line_number":724,"context_line":"        # test valid case"},{"line_number":725,"context_line":"        res_port \u003d ri._map_internal_interfaces(internal_ports[0], [test_port])"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_dbcc6f6c","line":722,"in_reply_to":"fa32b979_fb67f3e6","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":747,"context_line":"        subnet_id \u003d l3_test_common.get_subnet_id("},{"line_number":748,"context_line":"            router[l3_constants.INTERFACE_KEY][0])"},{"line_number":749,"context_line":"        ri.router[\u0027distributed\u0027] \u003d True"},{"line_number":750,"context_line":"        ri.router[\u0027_snat_router_interfaces\u0027] \u003d [{\u0027fixed_ips\u0027: ["},{"line_number":751,"context_line":"            {\u0027subnet_id\u0027: subnet_id, \u0027ip_address\u0027: \u00271.2.3.4\u0027}]}]"},{"line_number":752,"context_line":"        ri.router[\u0027gw_port_host\u0027] \u003d None"},{"line_number":753,"context_line":"        self._test_process_router(ri, agent)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_5b9dbfba","line":750,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":747,"context_line":"        subnet_id \u003d l3_test_common.get_subnet_id("},{"line_number":748,"context_line":"            router[l3_constants.INTERFACE_KEY][0])"},{"line_number":749,"context_line":"        ri.router[\u0027distributed\u0027] \u003d True"},{"line_number":750,"context_line":"        ri.router[\u0027_snat_router_interfaces\u0027] \u003d [{\u0027fixed_ips\u0027: ["},{"line_number":751,"context_line":"            {\u0027subnet_id\u0027: subnet_id, \u0027ip_address\u0027: \u00271.2.3.4\u0027}]}]"},{"line_number":752,"context_line":"        ri.router[\u0027gw_port_host\u0027] \u003d None"},{"line_number":753,"context_line":"        self._test_process_router(ri, agent)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_fbc9335a","line":750,"in_reply_to":"fa32b979_5b9dbfba","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":795,"context_line":"        new_gw_port \u003d copy.deepcopy(ri.router[\u0027gw_port\u0027])"},{"line_number":796,"context_line":"        ri.router[\u0027gw_port\u0027] \u003d new_gw_port"},{"line_number":797,"context_line":"        old_ip \u003d (netaddr.IPAddress(ri.router[\u0027gw_port\u0027]"},{"line_number":798,"context_line":"        [\u0027fixed_ips\u0027][0][\u0027ip_address\u0027]))"},{"line_number":799,"context_line":"        ri.router[\u0027gw_port\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027] \u003d str(old_ip + 1)"},{"line_number":800,"context_line":""},{"line_number":801,"context_line":"        ri.process(agent)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_1b7ad777","line":798,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":795,"context_line":"        new_gw_port \u003d copy.deepcopy(ri.router[\u0027gw_port\u0027])"},{"line_number":796,"context_line":"        ri.router[\u0027gw_port\u0027] \u003d new_gw_port"},{"line_number":797,"context_line":"        old_ip \u003d (netaddr.IPAddress(ri.router[\u0027gw_port\u0027]"},{"line_number":798,"context_line":"        [\u0027fixed_ips\u0027][0][\u0027ip_address\u0027]))"},{"line_number":799,"context_line":"        ri.router[\u0027gw_port\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027] \u003d str(old_ip + 1)"},{"line_number":800,"context_line":""},{"line_number":801,"context_line":"        ri.process(agent)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_3bea3bad","line":798,"in_reply_to":"fa32b979_1b7ad777","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":861,"context_line":"                {\u0027ip_address\u0027: \u002720.0.0.30\u0027,"},{"line_number":862,"context_line":"                 \u0027prefixlen\u0027: 24,"},{"line_number":863,"context_line":"                 \u0027subnet_id\u0027: subnet_id}],"},{"line_number":864,"context_line":"              \u0027subnets\u0027: ["},{"line_number":865,"context_line":"                  {\u0027id\u0027: subnet_id,"},{"line_number":866,"context_line":"                   \u0027gateway_ip\u0027: \u002720.0.0.1\u0027}],"},{"line_number":867,"context_line":"              \u0027id\u0027: _uuid(),"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_db98efc2","line":864,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":861,"context_line":"                {\u0027ip_address\u0027: \u002720.0.0.30\u0027,"},{"line_number":862,"context_line":"                 \u0027prefixlen\u0027: 24,"},{"line_number":863,"context_line":"                 \u0027subnet_id\u0027: subnet_id}],"},{"line_number":864,"context_line":"              \u0027subnets\u0027: ["},{"line_number":865,"context_line":"                  {\u0027id\u0027: subnet_id,"},{"line_number":866,"context_line":"                   \u0027gateway_ip\u0027: \u002720.0.0.1\u0027}],"},{"line_number":867,"context_line":"              \u0027id\u0027: _uuid(),"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_dbd30f03","line":864,"in_reply_to":"fa32b979_db98efc2","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":910,"context_line":"                {\u0027ip_address\u0027: \u002720.0.0.30\u0027,"},{"line_number":911,"context_line":"                 \u0027prefixlen\u0027: 24,"},{"line_number":912,"context_line":"                 \u0027subnet_id\u0027: \u0027subnet_id\u0027}],"},{"line_number":913,"context_line":"              \u0027subnets\u0027: ["},{"line_number":914,"context_line":"                  {\u0027id\u0027: \u0027subnet_id\u0027,"},{"line_number":915,"context_line":"                   \u0027gateway_ip\u0027: \u002720.0.0.1\u0027}],"},{"line_number":916,"context_line":"              \u0027id\u0027: _uuid(),"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_9b8ee777","line":913,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":910,"context_line":"                {\u0027ip_address\u0027: \u002720.0.0.30\u0027,"},{"line_number":911,"context_line":"                 \u0027prefixlen\u0027: 24,"},{"line_number":912,"context_line":"                 \u0027subnet_id\u0027: \u0027subnet_id\u0027}],"},{"line_number":913,"context_line":"              \u0027subnets\u0027: ["},{"line_number":914,"context_line":"                  {\u0027id\u0027: \u0027subnet_id\u0027,"},{"line_number":915,"context_line":"                   \u0027gateway_ip\u0027: \u002720.0.0.1\u0027}],"},{"line_number":916,"context_line":"              \u0027id\u0027: _uuid(),"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_9bd90725","line":913,"in_reply_to":"fa32b979_9b8ee777","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":932,"context_line":"        ri.rtr_fip_subnet \u003d None"},{"line_number":933,"context_line":"        ri.dist_fip_count \u003d 1"},{"line_number":934,"context_line":""},{"line_number":935,"context_line":"        with mock.patch.object(ri, \u0027get_floating_ips\u0027) as fips, \\"},{"line_number":936,"context_line":"                mock.patch.object(ri, \u0027get_floating_agent_gw_interface\u0027"},{"line_number":937,"context_line":"                                  ) as fip_gw_port:"},{"line_number":938,"context_line":"            fips.return_value \u003d fake_floatingips"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_3bf6bbf9","line":935,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":932,"context_line":"        ri.rtr_fip_subnet \u003d None"},{"line_number":933,"context_line":"        ri.dist_fip_count \u003d 1"},{"line_number":934,"context_line":""},{"line_number":935,"context_line":"        with mock.patch.object(ri, \u0027get_floating_ips\u0027) as fips, \\"},{"line_number":936,"context_line":"                mock.patch.object(ri, \u0027get_floating_agent_gw_interface\u0027"},{"line_number":937,"context_line":"                                  ) as fip_gw_port:"},{"line_number":938,"context_line":"            fips.return_value \u003d fake_floatingips"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_bbd64bef","line":935,"in_reply_to":"fa32b979_3bf6bbf9","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1340,"context_line":"    def test_process_router_floatingip_nochange(self):"},{"line_number":1341,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":1342,"context_line":"        with mock.patch.object("},{"line_number":1343,"context_line":"                agent.plugin_rpc, \u0027update_floatingip_statuses\u0027"},{"line_number":1344,"context_line":"        ) as mock_update_fip_status:"},{"line_number":1345,"context_line":"            router \u003d l3_test_common.prepare_router_data(num_internal_ports\u003d1)"},{"line_number":1346,"context_line":"            fip1 \u003d {\u0027id\u0027: _uuid(), \u0027floating_ip_address\u0027: \u00278.8.8.8\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_3b447b19","line":1343,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":1340,"context_line":"    def test_process_router_floatingip_nochange(self):"},{"line_number":1341,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":1342,"context_line":"        with mock.patch.object("},{"line_number":1343,"context_line":"                agent.plugin_rpc, \u0027update_floatingip_statuses\u0027"},{"line_number":1344,"context_line":"        ) as mock_update_fip_status:"},{"line_number":1345,"context_line":"            router \u003d l3_test_common.prepare_router_data(num_internal_ports\u003d1)"},{"line_number":1346,"context_line":"            fip1 \u003d {\u0027id\u0027: _uuid(), \u0027floating_ip_address\u0027: \u00278.8.8.8\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_5b2dbffc","line":1343,"in_reply_to":"fa32b979_3b447b19","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1361,"context_line":"    def test_process_router_floatingip_disabled(self):"},{"line_number":1362,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":1363,"context_line":"        with mock.patch.object("},{"line_number":1364,"context_line":"                agent.plugin_rpc,"},{"line_number":1365,"context_line":"                \u0027update_floatingip_statuses\u0027) as mock_update_fip_status:"},{"line_number":1366,"context_line":"            fip_id \u003d _uuid()"},{"line_number":1367,"context_line":"            router \u003d l3_test_common.prepare_router_data(num_internal_ports\u003d1)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_db4d4f3f","line":1364,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":1361,"context_line":"    def test_process_router_floatingip_disabled(self):"},{"line_number":1362,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":1363,"context_line":"        with mock.patch.object("},{"line_number":1364,"context_line":"                agent.plugin_rpc,"},{"line_number":1365,"context_line":"                \u0027update_floatingip_statuses\u0027) as mock_update_fip_status:"},{"line_number":1366,"context_line":"            fip_id \u003d _uuid()"},{"line_number":1367,"context_line":"            router \u003d l3_test_common.prepare_router_data(num_internal_ports\u003d1)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_fb3e1327","line":1364,"in_reply_to":"fa32b979_db4d4f3f","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1394,"context_line":"    def test_process_router_floatingip_exception(self):"},{"line_number":1395,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":1396,"context_line":"        with mock.patch.object("},{"line_number":1397,"context_line":"                agent.plugin_rpc,"},{"line_number":1398,"context_line":"                \u0027update_floatingip_statuses\u0027) as mock_update_fip_status:"},{"line_number":1399,"context_line":"            fip_id \u003d _uuid()"},{"line_number":1400,"context_line":"            router \u003d l3_test_common.prepare_router_data(num_internal_ports\u003d1)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_bb508bd5","line":1397,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":1394,"context_line":"    def test_process_router_floatingip_exception(self):"},{"line_number":1395,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":1396,"context_line":"        with mock.patch.object("},{"line_number":1397,"context_line":"                agent.plugin_rpc,"},{"line_number":1398,"context_line":"                \u0027update_floatingip_statuses\u0027) as mock_update_fip_status:"},{"line_number":1399,"context_line":"            fip_id \u003d _uuid()"},{"line_number":1400,"context_line":"            router \u003d l3_test_common.prepare_router_data(num_internal_ports\u003d1)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_9b47c7bb","line":1397,"in_reply_to":"fa32b979_bb508bd5","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1418,"context_line":"    def test_process_external_iptables_exception(self):"},{"line_number":1419,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":1420,"context_line":"        with mock.patch.object("},{"line_number":1421,"context_line":"                agent.plugin_rpc,"},{"line_number":1422,"context_line":"                \u0027update_floatingip_statuses\u0027) as mock_update_fip_status:"},{"line_number":1423,"context_line":"            fip_id \u003d _uuid()"},{"line_number":1424,"context_line":"            router \u003d l3_test_common.prepare_router_data(num_internal_ports\u003d1)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_1b5657ce","line":1421,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":1418,"context_line":"    def test_process_external_iptables_exception(self):"},{"line_number":1419,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":1420,"context_line":"        with mock.patch.object("},{"line_number":1421,"context_line":"                agent.plugin_rpc,"},{"line_number":1422,"context_line":"                \u0027update_floatingip_statuses\u0027) as mock_update_fip_status:"},{"line_number":1423,"context_line":"            fip_id \u003d _uuid()"},{"line_number":1424,"context_line":"            router \u003d l3_test_common.prepare_router_data(num_internal_ports\u003d1)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_7b19a3d6","line":1421,"in_reply_to":"fa32b979_1b5657ce","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1522,"context_line":"        internal_port \u003d internal_ports[0]"},{"line_number":1523,"context_line":""},{"line_number":1524,"context_line":"        with mock.patch.object(ri, \u0027internal_network_removed\u0027"},{"line_number":1525,"context_line":"                               ) as internal_network_removed, \\"},{"line_number":1526,"context_line":"                mock.patch.object(ri, \u0027internal_network_added\u0027"},{"line_number":1527,"context_line":"                                  ) as internal_network_added, \\"},{"line_number":1528,"context_line":"                mock.patch.object(ri, \u0027external_gateway_removed\u0027"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_3b5b1bf8","line":1525,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":1522,"context_line":"        internal_port \u003d internal_ports[0]"},{"line_number":1523,"context_line":""},{"line_number":1524,"context_line":"        with mock.patch.object(ri, \u0027internal_network_removed\u0027"},{"line_number":1525,"context_line":"                               ) as internal_network_removed, \\"},{"line_number":1526,"context_line":"                mock.patch.object(ri, \u0027internal_network_added\u0027"},{"line_number":1527,"context_line":"                                  ) as internal_network_added, \\"},{"line_number":1528,"context_line":"                mock.patch.object(ri, \u0027external_gateway_removed\u0027"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_db28efe4","line":1525,"in_reply_to":"fa32b979_3b5b1bf8","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1636,"context_line":"                  \u0027distributed\u0027: False}"},{"line_number":1637,"context_line":"        driver \u003d metadata_driver.MetadataDriver"},{"line_number":1638,"context_line":"        with mock.patch.object("},{"line_number":1639,"context_line":"                driver, \u0027destroy_monitored_metadata_proxy\u0027) as destroy_proxy:"},{"line_number":1640,"context_line":"            with mock.patch.object("},{"line_number":1641,"context_line":"                    driver, \u0027spawn_monitored_metadata_proxy\u0027) as spawn_proxy:"},{"line_number":1642,"context_line":"                agent._process_added_router(router)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_5b07ffc9","line":1639,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":1636,"context_line":"                  \u0027distributed\u0027: False}"},{"line_number":1637,"context_line":"        driver \u003d metadata_driver.MetadataDriver"},{"line_number":1638,"context_line":"        with mock.patch.object("},{"line_number":1639,"context_line":"                driver, \u0027destroy_monitored_metadata_proxy\u0027) as destroy_proxy:"},{"line_number":1640,"context_line":"            with mock.patch.object("},{"line_number":1641,"context_line":"                    driver, \u0027spawn_monitored_metadata_proxy\u0027) as spawn_proxy:"},{"line_number":1642,"context_line":"                agent._process_added_router(router)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_fb25b308","line":1639,"in_reply_to":"fa32b979_5b07ffc9","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1839,"context_line":"                    if n.startswith(namespaces.NS_PREFIX)]"},{"line_number":1840,"context_line":"        self.assertEqual(mock_router_ns.call_count, len(qrouters))"},{"line_number":1841,"context_line":"        self.assertEqual(mock_snat_ns.call_count,"},{"line_number":1842,"context_line":"                         len(stale_namespace_list) - len(qrouters))"},{"line_number":1843,"context_line":""},{"line_number":1844,"context_line":"        self.assertFalse(agent.namespaces_manager._clean_stale)"},{"line_number":1845,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_1b0df7e7","line":1842,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":1839,"context_line":"                    if n.startswith(namespaces.NS_PREFIX)]"},{"line_number":1840,"context_line":"        self.assertEqual(mock_router_ns.call_count, len(qrouters))"},{"line_number":1841,"context_line":"        self.assertEqual(mock_snat_ns.call_count,"},{"line_number":1842,"context_line":"                         len(stale_namespace_list) - len(qrouters))"},{"line_number":1843,"context_line":""},{"line_number":1844,"context_line":"        self.assertFalse(agent.namespaces_manager._clean_stale)"},{"line_number":1845,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_7b80c3c0","line":1842,"in_reply_to":"fa32b979_1b0df7e7","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":1851,"context_line":"        other_namespaces \u003d [\u0027unknown\u0027]"},{"line_number":1852,"context_line":""},{"line_number":1853,"context_line":"        self._cleanup_namespace_test(stale_namespaces,"},{"line_number":1854,"context_line":"            [],"},{"line_number":1855,"context_line":"                                     other_namespaces)"},{"line_number":1856,"context_line":""},{"line_number":1857,"context_line":"    def test_cleanup_namespace_with_registered_router_ids(self):"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_3b123b0a","line":1854,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":1851,"context_line":"        other_namespaces \u003d [\u0027unknown\u0027]"},{"line_number":1852,"context_line":""},{"line_number":1853,"context_line":"        self._cleanup_namespace_test(stale_namespaces,"},{"line_number":1854,"context_line":"            [],"},{"line_number":1855,"context_line":"                                     other_namespaces)"},{"line_number":1856,"context_line":""},{"line_number":1857,"context_line":"    def test_cleanup_namespace_with_registered_router_ids(self):"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_bb72cb0f","line":1854,"in_reply_to":"fa32b979_3b123b0a","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":2023,"context_line":"        modes \u003d [l3_constants.IPV6_SLAAC, l3_constants.DHCPV6_STATELESS,"},{"line_number":2024,"context_line":"                 l3_constants.DHCPV6_STATEFUL]"},{"line_number":2025,"context_line":"        mode_combos \u003d list(iter_chain(*[[list(combo) for combo in"},{"line_number":2026,"context_line":"                                         iter_combinations(modes, i)]"},{"line_number":2027,"context_line":"                                        for i in range(1, len(modes) + 1)]))"},{"line_number":2028,"context_line":""},{"line_number":2029,"context_line":"        for mode_list in mode_combos:"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_bbfe4bac","line":2026,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"833a69ecb6ee4c94381c4c540bf59df610edd0d6","unresolved":false,"context_lines":[{"line_number":2023,"context_line":"        modes \u003d [l3_constants.IPV6_SLAAC, l3_constants.DHCPV6_STATELESS,"},{"line_number":2024,"context_line":"                 l3_constants.DHCPV6_STATEFUL]"},{"line_number":2025,"context_line":"        mode_combos \u003d list(iter_chain(*[[list(combo) for combo in"},{"line_number":2026,"context_line":"                                         iter_combinations(modes, i)]"},{"line_number":2027,"context_line":"                                        for i in range(1, len(modes) + 1)]))"},{"line_number":2028,"context_line":""},{"line_number":2029,"context_line":"        for mode_list in mode_combos:"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_9be347a4","line":2026,"in_reply_to":"fa32b979_bbfe4bac","updated":"2015-06-16 22:16:33.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2d6f1a0e11ff842c0caba82a382e6b930ece10f6","unresolved":false,"context_lines":[{"line_number":2039,"context_line":"                return (self.assertIn if flag else self.assertNotIn)"},{"line_number":2040,"context_line":""},{"line_number":2041,"context_line":"            other_flag, managed_flag \u003d ("},{"line_number":2042,"context_line":"                any(expected[mode][0] for mode in mode_list),"},{"line_number":2043,"context_line":"                any(expected[mode][1] for mode in mode_list))"},{"line_number":2044,"context_line":""},{"line_number":2045,"context_line":"            assertFlag(other_flag)(\u0027AdvOtherConfigFlag on;\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_3b29db37","line":2042,"updated":"2015-06-16 22:07:24.000000000","message":"ditto","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7c704ddf04916aa24a622fd7ccf761a756389820","unresolved":false,"context_lines":[{"line_number":2039,"context_line":"                return (self.assertIn if flag else self.assertNotIn)"},{"line_number":2040,"context_line":""},{"line_number":2041,"context_line":"            other_flag, managed_flag \u003d ("},{"line_number":2042,"context_line":"                any(expected[mode][0] for mode in mode_list),"},{"line_number":2043,"context_line":"                any(expected[mode][1] for mode in mode_list))"},{"line_number":2044,"context_line":""},{"line_number":2045,"context_line":"            assertFlag(other_flag)(\u0027AdvOtherConfigFlag on;\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_5bc93f25","line":2042,"in_reply_to":"fa32b979_3b29db37","updated":"2015-06-16 22:15:50.000000000","message":"Done","commit_id":"fc97512a1f7610685da450a8d4b2eddaed95ab59"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0f4d82cadb1219aef6a7b89862757c65065e85f8","unresolved":false,"context_lines":[{"line_number":885,"context_line":"        ri.fip_ns.subscribe \u003d mock.Mock()"},{"line_number":886,"context_line":"        ri.fip_ns.agent_router_gateway \u003d mock.Mock()"},{"line_number":887,"context_line":""},{"line_number":888,"context_line":"        with mock.patch.object(ri, \u0027get_floating_ips\u0027) as fips, \\"},{"line_number":889,"context_line":"                mock.patch.object(ri, \u0027get_floating_agent_gw_interface\u0027"},{"line_number":890,"context_line":"                                  ) as fip_gw_port:"},{"line_number":891,"context_line":"            fips.return_value \u003d fake_floatingips"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa32b979_46a882db","line":888,"updated":"2015-06-16 22:34:17.000000000","message":"I missed one in the last patch.  Please revert this whitespace change too.","commit_id":"515c865b4792c9b8c0649f1ee3966aaffdb668fa"}],"neutron/tests/unit/agent/l3/test_dvr_edge_router.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f93aa9bf865aaf96c99aa3271dfebc2a860ab266","unresolved":false,"context_lines":[{"line_number":189,"context_line":"        port \u003d {\u0027fixed_ips\u0027: [{\u0027subnet_id\u0027: mock.sentinel.subnet_id}]}"},{"line_number":190,"context_line":"        router_ports \u003d [port]"},{"line_number":191,"context_line":"        ri.router.get.return_value \u003d router_ports"},{"line_number":192,"context_line":"        self.assertEqual(None, ri._get_internal_port(mock.sentinel.subnet_id2))"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"    def test__get_snat_idx_ipv4(self):"},{"line_number":195,"context_line":"        ip_cidr \u003d \u0027101.12.13.00/24\u0027"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_6a2ff9a1","line":192,"updated":"2015-06-14 15:39:21.000000000","message":"These 3 tests should not be here. Is there a reason to move these in a follow up as you pointed out in the commit message and not in this patch?","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"5be37b2ce630fd9b5c448fbb18e0b4c3fbc931cd","unresolved":false,"context_lines":[{"line_number":189,"context_line":"        port \u003d {\u0027fixed_ips\u0027: [{\u0027subnet_id\u0027: mock.sentinel.subnet_id}]}"},{"line_number":190,"context_line":"        router_ports \u003d [port]"},{"line_number":191,"context_line":"        ri.router.get.return_value \u003d router_ports"},{"line_number":192,"context_line":"        self.assertEqual(None, ri._get_internal_port(mock.sentinel.subnet_id2))"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"    def test__get_snat_idx_ipv4(self):"},{"line_number":195,"context_line":"        ip_cidr \u003d \u0027101.12.13.00/24\u0027"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa32b979_85734e4d","line":192,"in_reply_to":"fa32b979_6a2ff9a1","updated":"2015-06-14 17:16:17.000000000","message":"I really prefer to not deal with this in this patch, i will do all the alignments needed in next patches.\nThis patch changes file names and merging complexity starting to increase.\nAlso as i talked with Carl there are points that need to be thought and its really not a good idea to insert everything to this patch.\n\nThis patch is \"pretty safe\" and its logically correct so i don\u0027t think there are is a problem with this approach","commit_id":"cfcb206d2d5f4e92e62dc206571d56186f9f94f5"}],"neutron/tests/unit/agent/l3/test_dvr_local_router.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e98ace87c6474e9eceb28f1f145f027045f7a23f","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self.conf \u003d None"},{"line_number":46,"context_line":"        self.ri_kwargs \u003d None"},{"line_number":47,"context_line":"        self.device_exists \u003d None"},{"line_number":48,"context_line":"        self.device_exists_p \u003d None"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def setUp(self):"},{"line_number":51,"context_line":"        super(TestDvrRouterOperations, self).setUp()"}],"source_content_type":"text/x-python","patch_set":29,"id":"fa32b979_c3a8e08e","line":48,"updated":"2015-06-17 15:05:19.000000000","message":"you should not override __init__ of TestCase.","commit_id":"22e112b56b416898d53c394eb673385c4773f916"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"40f2a65843cbf7d4d5240e870d9ce77bcd05dfc5","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self.conf \u003d None"},{"line_number":46,"context_line":"        self.ri_kwargs \u003d None"},{"line_number":47,"context_line":"        self.device_exists \u003d None"},{"line_number":48,"context_line":"        self.device_exists_p \u003d None"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def setUp(self):"},{"line_number":51,"context_line":"        super(TestDvrRouterOperations, self).setUp()"}],"source_content_type":"text/x-python","patch_set":29,"id":"fa32b979_95576f59","line":48,"in_reply_to":"fa32b979_c3a8e08e","updated":"2015-06-17 15:33:37.000000000","message":"Done","commit_id":"22e112b56b416898d53c394eb673385c4773f916"}]}
