)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"32b19f7e2c09d94739488591fb4833cffb72d7a4","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix deletion of vlan interfaces"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Make sure thatlinuxbridge agent doesn\u0027t delete vlan interfaces"},{"line_number":10,"context_line":"if they are specified in the physical_interface_mappings."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I182a1142b65435bb509c62f1c17db683ae5a7457"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1ae5cdf2_b2adaaec","line":9,"updated":"2014-06-26 16:22:54.000000000","message":"nit: thatlinuxbridge -\u003e that linuxbridge","commit_id":"d17fe3cb2c347f8d6ead4ef96b9987d86d318acc"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"d249584fe4e7c333a3dd3c0d8df14595491c1e5d","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix deletion of vlan interfaces"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Make sure thatlinuxbridge agent doesn\u0027t delete vlan interfaces"},{"line_number":10,"context_line":"if they are specified in the physical_interface_mappings."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I182a1142b65435bb509c62f1c17db683ae5a7457"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1ae5cdf2_deadc6eb","line":9,"in_reply_to":"1ae5cdf2_b2adaaec","updated":"2014-06-27 09:32:35.000000000","message":"Done","commit_id":"d17fe3cb2c347f8d6ead4ef96b9987d86d318acc"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"c2d25bf1079bd4ea9884574a62d1f966b942b1bb","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Mouad Benchchaoui \u003cm.benchchaoui@x-ion.de\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-06-27 11:43:37 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix deletion of vlan interfaces"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Refactor the deletion of the bridge by making it explicit that we"},{"line_number":10,"context_line":"deal with two types of interfaces that can be attached to a bridge, a tap"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"dab895d6_66ef69b1","line":7,"updated":"2014-07-02 12:32:31.000000000","message":"lb-agent: fix deletion of vlan interfaces\n\nThis helps reviewers if they are interested (or not) about lb-agent.","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"a7449f02ec7d8dc36850aaccc2a7cb2fbde0cc3d","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Mouad Benchchaoui \u003cm.benchchaoui@x-ion.de\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-06-27 11:43:37 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix deletion of vlan interfaces"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Refactor the deletion of the bridge by making it explicit that we"},{"line_number":10,"context_line":"deal with two types of interfaces that can be attached to a bridge, a tap"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_8c39c543","line":7,"in_reply_to":"dab895d6_66ef69b1","updated":"2014-07-02 13:24:08.000000000","message":"Done","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"c2d25bf1079bd4ea9884574a62d1f966b942b1bb","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Refactor the deletion of the bridge by making it explicit that we"},{"line_number":10,"context_line":"deal with two types of interfaces that can be attached to a bridge, a tap"},{"line_number":11,"context_line":"and no tap interface, tap interfaces are always to be deleted and no tap"},{"line_number":12,"context_line":"interfaces, that can be a vlan or flat interface, should only be delete if"},{"line_number":13,"context_line":"they were created by the agent. Make also sure that linuxbridge agent"},{"line_number":14,"context_line":"doesn\u0027t delete no tap interfaces if they are specified in the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"dab895d6_2692d157","line":11,"updated":"2014-07-02 12:32:31.000000000","message":"s/no tap interface/non-tap interface/g","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"a7449f02ec7d8dc36850aaccc2a7cb2fbde0cc3d","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Refactor the deletion of the bridge by making it explicit that we"},{"line_number":10,"context_line":"deal with two types of interfaces that can be attached to a bridge, a tap"},{"line_number":11,"context_line":"and no tap interface, tap interfaces are always to be deleted and no tap"},{"line_number":12,"context_line":"interfaces, that can be a vlan or flat interface, should only be delete if"},{"line_number":13,"context_line":"they were created by the agent. Make also sure that linuxbridge agent"},{"line_number":14,"context_line":"doesn\u0027t delete no tap interfaces if they are specified in the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_ec4961d1","line":11,"in_reply_to":"dab895d6_2692d157","updated":"2014-07-02 13:24:08.000000000","message":"Done :)","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"}],"neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6870255e055df2186fc8394a7317175e2a3c2f54","unresolved":false,"context_lines":[{"line_number":442,"context_line":"                                                             bridge_name,"},{"line_number":443,"context_line":"                                                             ips, gateway)"},{"line_number":444,"context_line":"                        elif interface not in physical_interfaces:"},{"line_number":445,"context_line":"                            self.delete_vlan(interface)"},{"line_number":446,"context_line":""},{"line_number":447,"context_line":"            LOG.debug(_(\"Deleting bridge %s\"), bridge_name)"},{"line_number":448,"context_line":"            if utils.execute([\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, bridge_name, \u0027down\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_388c1435","line":445,"updated":"2014-06-26 19:59:38.000000000","message":"the following seems to do the same (the for loop content does not depend on physical_interface) but cleaner and avoid multiple useless iterations:\n\n  if any(interface.startswith(phy_if) for phy_if in physical_interfaces):\n    ips, gateway \u003d self.get_interface_details(bridge_name)\n    if ips:\n      ...\n    elif interface not in physical_interfaces:\n      self.delete_vlan(interface)","commit_id":"d17fe3cb2c347f8d6ead4ef96b9987d86d318acc"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"d249584fe4e7c333a3dd3c0d8df14595491c1e5d","unresolved":false,"context_lines":[{"line_number":442,"context_line":"                                                             bridge_name,"},{"line_number":443,"context_line":"                                                             ips, gateway)"},{"line_number":444,"context_line":"                        elif interface not in physical_interfaces:"},{"line_number":445,"context_line":"                            self.delete_vlan(interface)"},{"line_number":446,"context_line":""},{"line_number":447,"context_line":"            LOG.debug(_(\"Deleting bridge %s\"), bridge_name)"},{"line_number":448,"context_line":"            if utils.execute([\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, bridge_name, \u0027down\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_9ea09ef4","line":445,"in_reply_to":"1ae5cdf2_388c1435","updated":"2014-06-27 09:32:35.000000000","message":"I didn\u0027t like that code either, is it safe to assume that bridge can only contain interfaces that are either a tap or flat/vlan interface ?","commit_id":"d17fe3cb2c347f8d6ead4ef96b9987d86d318acc"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"c2d25bf1079bd4ea9884574a62d1f966b942b1bb","unresolved":false,"context_lines":[{"line_number":435,"context_line":"                # Interfaces in the bridge are either a tap or a vlan/flat"},{"line_number":436,"context_line":"                # interface."},{"line_number":437,"context_line":"                if interface.startswith(TAP_INTERFACE_PREFIX):"},{"line_number":438,"context_line":"                    self.delete_vlan(interface)"},{"line_number":439,"context_line":"                else:"},{"line_number":440,"context_line":"                    # If the bridge have an IP, it mean that this IP was moved"},{"line_number":441,"context_line":"                    # from the current interface, which also mean that this"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab895d6_d05aaf82","line":438,"updated":"2014-07-02 12:32:31.000000000","message":"Normally the VIF driver\u0027s unplug() running under the l3-agent, dhcp-agent, nova etc should have deleted the tap interfaces by the time we get here. Maybe a comment.","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"a7449f02ec7d8dc36850aaccc2a7cb2fbde0cc3d","unresolved":false,"context_lines":[{"line_number":435,"context_line":"                # Interfaces in the bridge are either a tap or a vlan/flat"},{"line_number":436,"context_line":"                # interface."},{"line_number":437,"context_line":"                if interface.startswith(TAP_INTERFACE_PREFIX):"},{"line_number":438,"context_line":"                    self.delete_vlan(interface)"},{"line_number":439,"context_line":"                else:"},{"line_number":440,"context_line":"                    # If the bridge have an IP, it mean that this IP was moved"},{"line_number":441,"context_line":"                    # from the current interface, which also mean that this"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_acd129fd","line":438,"in_reply_to":"dab895d6_d05aaf82","updated":"2014-07-02 13:24:08.000000000","message":"This is outside the scope of this method, and i think a comment like that may be confusing for future readers, this method is not called delete_vlan_bridge_if_no_tap so that\u0027s why I re-wrote it in more general way that make more sense, at least for me, instead of relaying on the context when this method should be called, so I think a comment is not meant to be here but maybe in the commit msg (if it\u0027s not already there) to explain the change !\n\nThoughts ?","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"c2d25bf1079bd4ea9884574a62d1f966b942b1bb","unresolved":false,"context_lines":[{"line_number":437,"context_line":"                if interface.startswith(TAP_INTERFACE_PREFIX):"},{"line_number":438,"context_line":"                    self.delete_vlan(interface)"},{"line_number":439,"context_line":"                else:"},{"line_number":440,"context_line":"                    # If the bridge have an IP, it mean that this IP was moved"},{"line_number":441,"context_line":"                    # from the current interface, which also mean that this"},{"line_number":442,"context_line":"                    # interface was not created by the agent."},{"line_number":443,"context_line":"                    ips, gateway \u003d self.get_interface_details(bridge_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab895d6_30ff6b36","line":440,"updated":"2014-07-02 12:32:31.000000000","message":"nit: s/have an IP, it mean/has an IP, it means/","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"a7449f02ec7d8dc36850aaccc2a7cb2fbde0cc3d","unresolved":false,"context_lines":[{"line_number":437,"context_line":"                if interface.startswith(TAP_INTERFACE_PREFIX):"},{"line_number":438,"context_line":"                    self.delete_vlan(interface)"},{"line_number":439,"context_line":"                else:"},{"line_number":440,"context_line":"                    # If the bridge have an IP, it mean that this IP was moved"},{"line_number":441,"context_line":"                    # from the current interface, which also mean that this"},{"line_number":442,"context_line":"                    # interface was not created by the agent."},{"line_number":443,"context_line":"                    ips, gateway \u003d self.get_interface_details(bridge_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_6c363154","line":440,"in_reply_to":"dab895d6_30ff6b36","updated":"2014-07-02 13:24:08.000000000","message":"Done","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"708062b4cfe8bc6850f4b2d5487a8029a5721f5f","unresolved":false,"context_lines":[{"line_number":440,"context_line":"                    # If the bridge have an IP, it mean that this IP was moved"},{"line_number":441,"context_line":"                    # from the current interface, which also mean that this"},{"line_number":442,"context_line":"                    # interface was not created by the agent."},{"line_number":443,"context_line":"                    ips, gateway \u003d self.get_interface_details(bridge_name)"},{"line_number":444,"context_line":"                    if ips:"},{"line_number":445,"context_line":"                        self.update_interface_ip_details(interface,"},{"line_number":446,"context_line":"                                                         bridge_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_0c99be1e","line":443,"updated":"2014-06-27 15:17:42.000000000","message":"I think this line can be outside the for loop, right?\nI know it\u0027s not your code but it could be nice if you could address this too.","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"cf57bda531f8a9a81dc050933995257a4dff6235","unresolved":false,"context_lines":[{"line_number":440,"context_line":"                    # If the bridge have an IP, it mean that this IP was moved"},{"line_number":441,"context_line":"                    # from the current interface, which also mean that this"},{"line_number":442,"context_line":"                    # interface was not created by the agent."},{"line_number":443,"context_line":"                    ips, gateway \u003d self.get_interface_details(bridge_name)"},{"line_number":444,"context_line":"                    if ips:"},{"line_number":445,"context_line":"                        self.update_interface_ip_details(interface,"},{"line_number":446,"context_line":"                                                         bridge_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab895d6_c85a1750","line":443,"in_reply_to":"1ae5cdf2_0c99be1e","updated":"2014-06-29 10:29:47.000000000","message":"Actually the get_interface_details is only called once for **the** no tap interface in the bridge if it\u0027s exist.\n\nI am not totally sure if there is a case where more than one no-tap interface is in a bridge, but if it\u0027s there, then this code need more refactoring that i have anticipated because the result of this function will depends then on the order of which interfaces are returned from get_interfaces_on_bridge which arbitrary https://docs.python.org/2/library/os.html#os.listdir.","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"9f029c37c1d4f30b931af93a5f01cb35b07cb6be","unresolved":false,"context_lines":[{"line_number":440,"context_line":"                    # If the bridge have an IP, it mean that this IP was moved"},{"line_number":441,"context_line":"                    # from the current interface, which also mean that this"},{"line_number":442,"context_line":"                    # interface was not created by the agent."},{"line_number":443,"context_line":"                    ips, gateway \u003d self.get_interface_details(bridge_name)"},{"line_number":444,"context_line":"                    if ips:"},{"line_number":445,"context_line":"                        self.update_interface_ip_details(interface,"},{"line_number":446,"context_line":"                                                         bridge_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_ffcfe57c","line":443,"in_reply_to":"baada198_430693cf","updated":"2014-07-04 14:03:12.000000000","message":"No I mean this function should be called when it\u0027s need to be called because it\u0027s not cheap (multiple subprocess calls are made to get the ip + gateway), that\u0027s why IMHO it should be when we decide wether a VLAN interface should be deleted or no.","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"aa19c2219719bad6763054d94c29299802996ad9","unresolved":false,"context_lines":[{"line_number":440,"context_line":"                    # If the bridge have an IP, it mean that this IP was moved"},{"line_number":441,"context_line":"                    # from the current interface, which also mean that this"},{"line_number":442,"context_line":"                    # interface was not created by the agent."},{"line_number":443,"context_line":"                    ips, gateway \u003d self.get_interface_details(bridge_name)"},{"line_number":444,"context_line":"                    if ips:"},{"line_number":445,"context_line":"                        self.update_interface_ip_details(interface,"},{"line_number":446,"context_line":"                                                         bridge_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_430693cf","line":443,"in_reply_to":"baada198_8748be88","updated":"2014-07-02 15:33:25.000000000","message":"I am not sure I understand what you mean. You are saying that this function is called only once even if it\u0027s inside the \u0027for\u0027 cycle, that\u0027s why there\u0027s no gain in moving it outside, correct?\nI think it\u0027s cleaner to put it outside. Anyway it was not introduced by your change, I don\u0027t feel strongly about it, let\u0027s see what other people think","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"a7449f02ec7d8dc36850aaccc2a7cb2fbde0cc3d","unresolved":false,"context_lines":[{"line_number":440,"context_line":"                    # If the bridge have an IP, it mean that this IP was moved"},{"line_number":441,"context_line":"                    # from the current interface, which also mean that this"},{"line_number":442,"context_line":"                    # interface was not created by the agent."},{"line_number":443,"context_line":"                    ips, gateway \u003d self.get_interface_details(bridge_name)"},{"line_number":444,"context_line":"                    if ips:"},{"line_number":445,"context_line":"                        self.update_interface_ip_details(interface,"},{"line_number":446,"context_line":"                                                         bridge_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_8748be88","line":443,"in_reply_to":"baada198_c76d569b","updated":"2014-07-02 13:24:08.000000000","message":"Yeah but it all depend on when you want to call this function, think performance wise ? i.e. you don\u0027t want to do multiple subprocess call unless you need to, micro-optimization maybe ? but we have it already !\n\nThoughts ?","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"fe771e97d56ab6aa1d8c94d5afe434589abd282e","unresolved":false,"context_lines":[{"line_number":440,"context_line":"                    # If the bridge have an IP, it mean that this IP was moved"},{"line_number":441,"context_line":"                    # from the current interface, which also mean that this"},{"line_number":442,"context_line":"                    # interface was not created by the agent."},{"line_number":443,"context_line":"                    ips, gateway \u003d self.get_interface_details(bridge_name)"},{"line_number":444,"context_line":"                    if ips:"},{"line_number":445,"context_line":"                        self.update_interface_ip_details(interface,"},{"line_number":446,"context_line":"                                                         bridge_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_c76d569b","line":443,"in_reply_to":"dab895d6_c85a1750","updated":"2014-07-02 13:01:28.000000000","message":"I am just saying that the call can be outside of the \u0027for\u0027 loop because it doesn\u0027t depend on the variable of the loop (interface). I mean the result of calling this line here or before the \u0027for\u0027 loop should be the same, right?","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"b77abdeaa80b6160106c55e508cdb445a8d13c7c","unresolved":false,"context_lines":[{"line_number":445,"context_line":"                        self.update_interface_ip_details(interface,"},{"line_number":446,"context_line":"                                                         bridge_name,"},{"line_number":447,"context_line":"                                                         ips, gateway)"},{"line_number":448,"context_line":"                    elif interface not in physical_interfaces:"},{"line_number":449,"context_line":"                        self.delete_vlan(interface)"},{"line_number":450,"context_line":""},{"line_number":451,"context_line":"            LOG.debug(_(\"Deleting bridge %s\"), bridge_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_2999116d","line":448,"updated":"2014-06-27 12:48:04.000000000","message":"can you comment why is this changed?","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"d99843209b8d736af3ad648ce9d4b7cc50bcc451","unresolved":false,"context_lines":[{"line_number":445,"context_line":"                        self.update_interface_ip_details(interface,"},{"line_number":446,"context_line":"                                                         bridge_name,"},{"line_number":447,"context_line":"                                                         ips, gateway)"},{"line_number":448,"context_line":"                    elif interface not in physical_interfaces:"},{"line_number":449,"context_line":"                        self.delete_vlan(interface)"},{"line_number":450,"context_line":""},{"line_number":451,"context_line":"            LOG.debug(_(\"Deleting bridge %s\"), bridge_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_a9f3616b","line":448,"in_reply_to":"1ae5cdf2_2999116d","updated":"2014-06-27 12:53:56.000000000","message":"Isn\u0027t that obvious from the code ? if interface is not a physical one delete it b/c it\u0027s a physical one !\n\nI really don\u0027t mind adding a comment, I just one to make sure that maybe you want to rethink this :)\n\nThoughts ?","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"1faf42dcb2a7aa3547486a548022798a39f44624","unresolved":false,"context_lines":[{"line_number":488,"context_line":""},{"line_number":489,"context_line":"    def delete_interface(self, interface):"},{"line_number":490,"context_line":"        if ip_lib.device_exists(interface):"},{"line_number":491,"context_line":"            LOG.debug(_(\"Deleting subinterface %s\"), interface)"},{"line_number":492,"context_line":"            if utils.execute([\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, interface, \u0027down\u0027],"},{"line_number":493,"context_line":"                             root_helper\u003dself.root_helper):"},{"line_number":494,"context_line":"                return"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_0b953b86","line":491,"updated":"2014-07-04 15:59:00.000000000","message":"s/Deleting subinterface/Deleting interface/","commit_id":"cf336bf307d592799b14d158a013d3a78ff40f64"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"19dc71443c57f41461228ece31bb987d85d2959d","unresolved":false,"context_lines":[{"line_number":488,"context_line":""},{"line_number":489,"context_line":"    def delete_interface(self, interface):"},{"line_number":490,"context_line":"        if ip_lib.device_exists(interface):"},{"line_number":491,"context_line":"            LOG.debug(_(\"Deleting subinterface %s\"), interface)"},{"line_number":492,"context_line":"            if utils.execute([\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, interface, \u0027down\u0027],"},{"line_number":493,"context_line":"                             root_helper\u003dself.root_helper):"},{"line_number":494,"context_line":"                return"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_a2bd38da","line":491,"in_reply_to":"baada198_0b953b86","updated":"2014-07-07 08:19:57.000000000","message":"Done","commit_id":"cf336bf307d592799b14d158a013d3a78ff40f64"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"83e321b52b3e10bbca43a045302165152d6b6b93","unresolved":false,"context_lines":[{"line_number":428,"context_line":"                self.remove_interface(bridge_name, interface)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"                if interface.startswith(TAP_INTERFACE_PREFIX):"},{"line_number":431,"context_line":"                    self.delete_interface(interface)"},{"line_number":432,"context_line":"                elif interface.startswith(VXLAN_INTERFACE_PREFIX):"},{"line_number":433,"context_line":"                    self.delete_vxlan(interface)"},{"line_number":434,"context_line":"                else:  # Match the vlan/flat interface in the bridge."}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_eb859dcf","line":431,"updated":"2014-07-11 08:05:42.000000000","message":"I don\u0027t know if the original version intended to delete tap interfaces. I\u0027m not even sure it is the right thing to do. Removing them from the bridge is enough in order to delete the bridge.","commit_id":"297c75871f3e18f2ac64d685e4aa40a32bd9e795"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"8a5130400d44e2a495dc7155fc942980a2b18dbf","unresolved":false,"context_lines":[{"line_number":428,"context_line":"                self.remove_interface(bridge_name, interface)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"                if interface.startswith(TAP_INTERFACE_PREFIX):"},{"line_number":431,"context_line":"                    self.delete_interface(interface)"},{"line_number":432,"context_line":"                elif interface.startswith(VXLAN_INTERFACE_PREFIX):"},{"line_number":433,"context_line":"                    self.delete_vxlan(interface)"},{"line_number":434,"context_line":"                else:  # Match the vlan/flat interface in the bridge."}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_5c480d5c","line":431,"in_reply_to":"baada198_eb859dcf","updated":"2014-07-11 09:18:06.000000000","message":"I think you may have a point, the linux bridge doesn\u0027t create them so he must not delete them SRP.","commit_id":"297c75871f3e18f2ac64d685e4aa40a32bd9e795"},{"author":{"_account_id":9423,"name":"Roey Chen","email":"roeyc@vmware.com","username":"roeyc"},"change_message_id":"46cf8814815ecef6d3afcef7c781bc28befa309d","unresolved":false,"context_lines":[{"line_number":486,"context_line":"                       \u0027bridge_name\u0027: bridge_name})"},{"line_number":487,"context_line":"            return False"},{"line_number":488,"context_line":""},{"line_number":489,"context_line":"    def delete_interface(self, interface):"},{"line_number":490,"context_line":"        if ip_lib.device_exists(interface):"},{"line_number":491,"context_line":"            LOG.debug(_(\"Deleting interface %s\"), interface)"},{"line_number":492,"context_line":"            if utils.execute([\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, interface, \u0027down\u0027],"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_57562c2b","line":489,"updated":"2014-08-20 15:01:35.000000000","message":"You might as well combine the \u0027delete_vxlan\u0027 method with this one.\nthey both implement the same functionality and it will serve the purpose of this change.","commit_id":"ed19d04deda4ff2e6aa8758db0594a738e08983a"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c0617508ad5f0eb41fcda2c1c218521371a133e7","unresolved":false,"context_lines":[{"line_number":488,"context_line":""},{"line_number":489,"context_line":"    def delete_interface(self, interface):"},{"line_number":490,"context_line":"        if ip_lib.device_exists(interface):"},{"line_number":491,"context_line":"            LOG.debug(_(\"Deleting interface %s\"), interface)"},{"line_number":492,"context_line":"            if utils.execute([\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, interface, \u0027down\u0027],"},{"line_number":493,"context_line":"                             root_helper\u003dself.root_helper):"},{"line_number":494,"context_line":"                return"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_e57e33ae","line":491,"updated":"2014-07-15 13:43:33.000000000","message":"as you changed the message, better to remove _() to avoid increasing translators\u0027 load","commit_id":"ed19d04deda4ff2e6aa8758db0594a738e08983a"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c0617508ad5f0eb41fcda2c1c218521371a133e7","unresolved":false,"context_lines":[{"line_number":495,"context_line":"            if utils.execute([\u0027ip\u0027, \u0027link\u0027, \u0027delete\u0027, interface],"},{"line_number":496,"context_line":"                             root_helper\u003dself.root_helper):"},{"line_number":497,"context_line":"                return"},{"line_number":498,"context_line":"            LOG.debug(_(\"Done deleting interface %s\"), interface)"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"    def delete_vxlan(self, interface):"},{"line_number":501,"context_line":"        if ip_lib.device_exists(interface):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_c80f862c","line":498,"updated":"2014-07-15 13:43:33.000000000","message":"ditto","commit_id":"ed19d04deda4ff2e6aa8758db0594a738e08983a"}],"neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py":[{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"c2d25bf1079bd4ea9884574a62d1f966b942b1bb","unresolved":false,"context_lines":[{"line_number":744,"context_line":"            if_det_fn.return_value \u003d ([], None)"},{"line_number":745,"context_line":""},{"line_number":746,"context_line":"            self.lbm.delete_vlan_bridge(\"br0\")"},{"line_number":747,"context_line":"            del_vlan.assert_called_with(\"eth1.1\")"},{"line_number":748,"context_line":""},{"line_number":749,"context_line":"    def test_delete_vxlan_bridge_no_int_mappings(self):"},{"line_number":750,"context_line":"        interface_mappings \u003d {}"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab895d6_e946ea22","line":747,"updated":"2014-07-02 12:32:31.000000000","message":"Is there some way to ensure it was not called with \"eth1.4000\"? Maybe assert_called_once_with(\"eth1.1\")","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"},{"author":{"_account_id":7073,"name":"mouad benchchaoui","email":"m.benchchaoui@x-ion.de","username":"mouad"},"change_message_id":"a7449f02ec7d8dc36850aaccc2a7cb2fbde0cc3d","unresolved":false,"context_lines":[{"line_number":744,"context_line":"            if_det_fn.return_value \u003d ([], None)"},{"line_number":745,"context_line":""},{"line_number":746,"context_line":"            self.lbm.delete_vlan_bridge(\"br0\")"},{"line_number":747,"context_line":"            del_vlan.assert_called_with(\"eth1.1\")"},{"line_number":748,"context_line":""},{"line_number":749,"context_line":"    def test_delete_vxlan_bridge_no_int_mappings(self):"},{"line_number":750,"context_line":"        interface_mappings \u003d {}"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_9942e20e","line":747,"in_reply_to":"dab895d6_e946ea22","updated":"2014-07-02 13:24:08.000000000","message":"Done","commit_id":"2d16c2c20bc3a944b23a77cba3691f410baaf8e7"}]}
