)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"f23836a28d52031b56316a7c154559c8dc85024e","unresolved":false,"context_lines":[{"line_number":11,"context_line":"doesn\u0027t apply to distributed router."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This patch extract a method named _delete_stale_external_devices from"},{"line_number":14,"context_line":"RouterInfo and override it in DvrEdgeRouter."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I2602efd5be92ec57410e54cf9c26641330a52ee6"},{"line_number":17,"context_line":"Closes-Bug: #1651813"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ba5201f7_1aec888e","line":14,"updated":"2017-01-03 23:57:38.000000000","message":"The bug states that the csnat ports are not created when the router is being updated. But the fix that is in place or the commit message says that is deleting the stale \u0027qg-\u0027 ports in the snat-namespace. \nIs this a partial fix?","commit_id":"b0e0fd503ad5cabb382c653e628783bea29f072e"},{"author":{"_account_id":12860,"name":"Dongcan Ye","email":"yedongcan@yeah.net","username":"yedongcan"},"change_message_id":"6d45532210c33563d5e5d2bd3b897e26e5e22530","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2017-01-04 10:13:24 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"DVR: delete stale devices after router update"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"After the external network change of router gateway, the l3 agent"},{"line_number":10,"context_line":"deletes stale external devices in the qrouter namespace only. This"},{"line_number":11,"context_line":"doesn\u0027t apply to distributed router."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba5201f7_bc67bc4b","line":8,"updated":"2017-01-05 09:05:24.000000000","message":"\"DVR: delete stale external devices after router gateway update\" would be better.","commit_id":"73acf35ee88bb6b31136efcb048433644d746358"},{"author":{"_account_id":21249,"name":"Quan Tian","email":"qtian@vmware.com","username":"tianquan"},"change_message_id":"e01d8cdc3ee86e6b26a04e89585943f91b92217e","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2017-01-04 10:13:24 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"DVR: delete stale devices after router update"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"After the external network change of router gateway, the l3 agent"},{"line_number":10,"context_line":"deletes stale external devices in the qrouter namespace only. This"},{"line_number":11,"context_line":"doesn\u0027t apply to distributed router."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba5201f7_f0c3ee35","line":8,"in_reply_to":"ba5201f7_bc67bc4b","updated":"2017-01-06 15:55:31.000000000","message":"Thanks. It would be better but exceeds 50 characters  :(","commit_id":"73acf35ee88bb6b31136efcb048433644d746358"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"3325f865be78930082a869c7477137fbb9282e5c","unresolved":false,"context_lines":[{"line_number":14,"context_line":"RouterInfo and override it in DvrEdgeRouter."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I2602efd5be92ec57410e54cf9c26641330a52ee6"},{"line_number":17,"context_line":"Partial-Bug: #1651813"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a57fde8_8ddb26ed","line":17,"updated":"2017-01-12 16:11:54.000000000","message":"Two comments:\n\n1) https://review.openstack.org/#/c/413721/ also needs to go in with this, is one based on the other?\n\n2) One of these two needs to say \"Closes-Bug\", they both say \"Partial-Bug\".","commit_id":"e6d229cc0f5142ca9a6126ccac87f6f909521387"}],"neutron/agent/l3/dvr_edge_router.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9ad25f05aef2440504321a8391a7df87509e1e42","unresolved":false,"context_lines":[{"line_number":244,"context_line":"                self.snat_iptables_manager, ports_scopemark)"},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"    def _delete_stale_external_devices(self, interface_name, pd):"},{"line_number":247,"context_line":"        ns_ip \u003d ip_lib.IPWrapper(namespace\u003dself.snat_namespace.name)"},{"line_number":248,"context_line":"        for d in ns_ip.get_devices(exclude_loopback\u003dTrue):"},{"line_number":249,"context_line":"            if (d.name.startswith(router.EXTERNAL_DEV_PREFIX) and"},{"line_number":250,"context_line":"                    d.name !\u003d interface_name):"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba5201f7_436f1dc5","line":247,"updated":"2017-01-03 16:09:02.000000000","message":"nit: not sure if it\u0027s better to be just like the router_info version and build the list here, stale_devs \u003d [...], just from a code review standpoint so it looks identical.  It still works the same but something to be said for symmetry.\n\nRealize we can\u0027t get rid of most of the duplicate due to the namespace difference and PD :(","commit_id":"b0e0fd503ad5cabb382c653e628783bea29f072e"},{"author":{"_account_id":21249,"name":"Quan Tian","email":"qtian@vmware.com","username":"tianquan"},"change_message_id":"ea52ac6b6ca4d367a4bb80045cd004147385d096","unresolved":false,"context_lines":[{"line_number":244,"context_line":"                self.snat_iptables_manager, ports_scopemark)"},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"    def _delete_stale_external_devices(self, interface_name, pd):"},{"line_number":247,"context_line":"        ns_ip \u003d ip_lib.IPWrapper(namespace\u003dself.snat_namespace.name)"},{"line_number":248,"context_line":"        for d in ns_ip.get_devices(exclude_loopback\u003dTrue):"},{"line_number":249,"context_line":"            if (d.name.startswith(router.EXTERNAL_DEV_PREFIX) and"},{"line_number":250,"context_line":"                    d.name !\u003d interface_name):"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba5201f7_5a643e21","line":247,"in_reply_to":"ba5201f7_436f1dc5","updated":"2017-01-04 10:43:26.000000000","message":"Yes, maybe we can add a method like _get_external_namespace to solve the namespace difference, but I\u0027m not sure if it\u0027s worth it because self.snat_namespace is already widely used in DvrEdgeRouter.","commit_id":"b0e0fd503ad5cabb382c653e628783bea29f072e"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e5dc73bcede04a03974fd712e8a2ba28a1b67145","unresolved":false,"context_lines":[{"line_number":249,"context_line":"            if (d.name.startswith(router.EXTERNAL_DEV_PREFIX) and"},{"line_number":250,"context_line":"                    d.name !\u003d interface_name):"},{"line_number":251,"context_line":"                LOG.debug(\u0027Deleting stale external router device: %s\u0027, d.name)"},{"line_number":252,"context_line":"                self.driver.unplug("},{"line_number":253,"context_line":"                    d.name,"},{"line_number":254,"context_line":"                    bridge\u003dself.agent_conf.external_network_bridge,"},{"line_number":255,"context_line":"                    namespace\u003dself.snat_namespace.name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_30c5d95a","line":252,"updated":"2017-01-04 11:25:23.000000000","message":"if the unplug fails do we want to proceed and try the next?\nwhy not do a try and exception handling here","commit_id":"73acf35ee88bb6b31136efcb048433644d746358"},{"author":{"_account_id":21249,"name":"Quan Tian","email":"qtian@vmware.com","username":"tianquan"},"change_message_id":"90db523959770589928abc2e9279ea42a2462fb9","unresolved":false,"context_lines":[{"line_number":249,"context_line":"            if (d.name.startswith(router.EXTERNAL_DEV_PREFIX) and"},{"line_number":250,"context_line":"                    d.name !\u003d interface_name):"},{"line_number":251,"context_line":"                LOG.debug(\u0027Deleting stale external router device: %s\u0027, d.name)"},{"line_number":252,"context_line":"                self.driver.unplug("},{"line_number":253,"context_line":"                    d.name,"},{"line_number":254,"context_line":"                    bridge\u003dself.agent_conf.external_network_bridge,"},{"line_number":255,"context_line":"                    namespace\u003dself.snat_namespace.name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_7642fa11","line":252,"in_reply_to":"ba5201f7_30c5d95a","updated":"2017-01-04 11:50:52.000000000","message":"The unplug method has already caught the RuntimeError exception which is the only exception could be raised by the utils.execute method. So I think it\u0027s no need to catch exceptions anymore.","commit_id":"73acf35ee88bb6b31136efcb048433644d746358"},{"author":{"_account_id":12860,"name":"Dongcan Ye","email":"yedongcan@yeah.net","username":"yedongcan"},"change_message_id":"4fa984e02e2b82acf4bf4cae46279cfea4026f91","unresolved":false,"context_lines":[{"line_number":249,"context_line":"            if (d.name.startswith(router.EXTERNAL_DEV_PREFIX) and"},{"line_number":250,"context_line":"                    d.name !\u003d interface_name):"},{"line_number":251,"context_line":"                LOG.debug(\u0027Deleting stale external router device: %s\u0027, d.name)"},{"line_number":252,"context_line":"                self.driver.unplug("},{"line_number":253,"context_line":"                    d.name,"},{"line_number":254,"context_line":"                    bridge\u003dself.agent_conf.external_network_bridge,"},{"line_number":255,"context_line":"                    namespace\u003dself.snat_namespace.name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_7cf8f449","line":252,"in_reply_to":"ba5201f7_7642fa11","updated":"2017-01-05 09:07:14.000000000","message":"Agree with Quan Tian.","commit_id":"73acf35ee88bb6b31136efcb048433644d746358"}],"neutron/agent/l3/router_info.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e5dc73bcede04a03974fd712e8a2ba28a1b67145","unresolved":false,"context_lines":[{"line_number":716,"context_line":"        for stale_dev in stale_devs:"},{"line_number":717,"context_line":"            LOG.debug(\u0027Deleting stale external router device: %s\u0027, stale_dev)"},{"line_number":718,"context_line":"            pd.remove_gw_interface(self.router[\u0027id\u0027])"},{"line_number":719,"context_line":"            self.driver.unplug(stale_dev,"},{"line_number":720,"context_line":"                               bridge\u003dself.agent_conf.external_network_bridge,"},{"line_number":721,"context_line":"                               namespace\u003dself.ns_name,"},{"line_number":722,"context_line":"                               prefix\u003dEXTERNAL_DEV_PREFIX)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_f0919153","line":719,"updated":"2017-01-04 11:25:23.000000000","message":"same point here","commit_id":"73acf35ee88bb6b31136efcb048433644d746358"}]}
