)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"adf3e4a28d47f4de4513e82b9c11d7df6c4b3e6b","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Install arp spoofing protection flow after setting port tag"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when ovs-agent set tag for a port, if will firstly remove all"},{"line_number":10,"context_line":"flows on this port, because it should guarantee no drop_port"},{"line_number":11,"context_line":"flow installed by port_dead remains, so arp spoofing protection"},{"line_number":12,"context_line":"flow must installs after it."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a50d1a3_3f90fc4d","line":9,"updated":"2015-07-31 19:51:19.000000000","message":"sets a tag for a port, it will first remove","commit_id":"d1a60727b0d200206b3c58b909ebeb67bed83b2b"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"c62f260467526b05584150629ce58eb6e0d5f4bd","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Install arp spoofing protection flow after setting port tag"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when ovs-agent set tag for a port, if will firstly remove all"},{"line_number":10,"context_line":"flows on this port, because it should guarantee no drop_port"},{"line_number":11,"context_line":"flow installed by port_dead remains, so arp spoofing protection"},{"line_number":12,"context_line":"flow must installs after it."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a50d1a3_221e7f0c","line":9,"in_reply_to":"3a50d1a3_3f90fc4d","updated":"2015-08-03 04:28:01.000000000","message":"agree","commit_id":"d1a60727b0d200206b3c58b909ebeb67bed83b2b"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"adf3e4a28d47f4de4513e82b9c11d7df6c4b3e6b","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Install arp spoofing protection flow after setting port tag"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when ovs-agent set tag for a port, if will firstly remove all"},{"line_number":10,"context_line":"flows on this port, because it should guarantee no drop_port"},{"line_number":11,"context_line":"flow installed by port_dead remains, so arp spoofing protection"},{"line_number":12,"context_line":"flow must installs after it."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a50d1a3_df9eb862","line":10,"updated":"2015-07-31 19:51:19.000000000","message":"guarantee that","commit_id":"d1a60727b0d200206b3c58b909ebeb67bed83b2b"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"c62f260467526b05584150629ce58eb6e0d5f4bd","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Install arp spoofing protection flow after setting port tag"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when ovs-agent set tag for a port, if will firstly remove all"},{"line_number":10,"context_line":"flows on this port, because it should guarantee no drop_port"},{"line_number":11,"context_line":"flow installed by port_dead remains, so arp spoofing protection"},{"line_number":12,"context_line":"flow must installs after it."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a50d1a3_c216bbf1","line":10,"in_reply_to":"3a50d1a3_df9eb862","updated":"2015-08-03 04:28:01.000000000","message":"Done","commit_id":"d1a60727b0d200206b3c58b909ebeb67bed83b2b"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"adf3e4a28d47f4de4513e82b9c11d7df6c4b3e6b","unresolved":false,"context_lines":[{"line_number":9,"context_line":"when ovs-agent set tag for a port, if will firstly remove all"},{"line_number":10,"context_line":"flows on this port, because it should guarantee no drop_port"},{"line_number":11,"context_line":"flow installed by port_dead remains, so arp spoofing protection"},{"line_number":12,"context_line":"flow must installs after it."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Closes-Bug: #1472452"},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a50d1a3_ff99347a","line":12,"updated":"2015-07-31 19:51:19.000000000","message":"must be installed after it","commit_id":"d1a60727b0d200206b3c58b909ebeb67bed83b2b"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"c62f260467526b05584150629ce58eb6e0d5f4bd","unresolved":false,"context_lines":[{"line_number":9,"context_line":"when ovs-agent set tag for a port, if will firstly remove all"},{"line_number":10,"context_line":"flows on this port, because it should guarantee no drop_port"},{"line_number":11,"context_line":"flow installed by port_dead remains, so arp spoofing protection"},{"line_number":12,"context_line":"flow must installs after it."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Closes-Bug: #1472452"},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a50d1a3_e213b7ff","line":12,"in_reply_to":"3a50d1a3_ff99347a","updated":"2015-08-03 04:28:01.000000000","message":"Done","commit_id":"d1a60727b0d200206b3c58b909ebeb67bed83b2b"}],"neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fd44ca2ac114c95c990336c5803d4ad6bd2746d9","unresolved":false,"context_lines":[{"line_number":759,"context_line":"                    self.int_br.delete_flows(in_port\u003dport.ofport)"},{"line_number":760,"context_line":"                if self.prevent_arp_spoofing:"},{"line_number":761,"context_line":"                    self.setup_arp_spoofing_protection(self.int_br,"},{"line_number":762,"context_line":"                                                       port, port_detail)"},{"line_number":763,"context_line":""},{"line_number":764,"context_line":"            # update plugin about port status"},{"line_number":765,"context_line":"            # FIXME(salv-orlando): Failures while updating device status"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_6659ff34","line":762,"updated":"2015-07-08 07:37:16.000000000","message":"it\u0027s safer to update tag after setting up spoofing protection.","commit_id":"0859c08c8b89827f8ac35b85bda560a6a7fa86b8"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"f64558a0c9d47304f41b09df2354fb904f9328fb","unresolved":false,"context_lines":[{"line_number":759,"context_line":"                    self.int_br.delete_flows(in_port\u003dport.ofport)"},{"line_number":760,"context_line":"                if self.prevent_arp_spoofing:"},{"line_number":761,"context_line":"                    self.setup_arp_spoofing_protection(self.int_br,"},{"line_number":762,"context_line":"                                                       port, port_detail)"},{"line_number":763,"context_line":""},{"line_number":764,"context_line":"            # update plugin about port status"},{"line_number":765,"context_line":"            # FIXME(salv-orlando): Failures while updating device status"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_e1ec19bd","line":762,"in_reply_to":"ba3cc151_6659ff34","updated":"2015-07-08 08:30:16.000000000","message":"agree","commit_id":"0859c08c8b89827f8ac35b85bda560a6a7fa86b8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"1ec6d2785dc053838de5a646d719ad23cdcfbbb8","unresolved":false,"context_lines":[{"line_number":753,"context_line":"            device \u003d port_detail[\u0027device\u0027]"},{"line_number":754,"context_line":"            # Do not bind a port if it\u0027s already bound"},{"line_number":755,"context_line":"            cur_tag \u003d tags_by_name.get(port.port_name)"},{"line_number":756,"context_line":"            if cur_tag !\u003d lvm.vlan:"},{"line_number":757,"context_line":"                if port.ofport !\u003d -1:"},{"line_number":758,"context_line":"                    # NOTE(yamamoto): Remove possible drop_port flow"},{"line_number":759,"context_line":"                    # installed by port_dead."}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_4057b9c9","line":756,"updated":"2015-07-23 08:58:06.000000000","message":"when a port is updated, it can have the right vlan tag already, but even in that case, it might be necessary to update spoofing flows.","commit_id":"ba40a260f10ec70676c4418f483942e89a458622"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"20d928bcb916b0c74ce37852520443bdece792f2","unresolved":false,"context_lines":[{"line_number":753,"context_line":"            device \u003d port_detail[\u0027device\u0027]"},{"line_number":754,"context_line":"            # Do not bind a port if it\u0027s already bound"},{"line_number":755,"context_line":"            cur_tag \u003d tags_by_name.get(port.port_name)"},{"line_number":756,"context_line":"            if cur_tag !\u003d lvm.vlan:"},{"line_number":757,"context_line":"                if port.ofport !\u003d -1:"},{"line_number":758,"context_line":"                    # NOTE(yamamoto): Remove possible drop_port flow"},{"line_number":759,"context_line":"                    # installed by port_dead."}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_c0a98925","line":756,"in_reply_to":"3a50d1a3_4057b9c9","updated":"2015-07-23 09:04:03.000000000","message":"I think you are right, if a port which has right vlan tag is updated, it also need to setup arp spoofing flows","commit_id":"ba40a260f10ec70676c4418f483942e89a458622"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"8f7b9c6657adf6e55de80f68fdc101fdbdc17f71","unresolved":false,"context_lines":[{"line_number":1439,"context_line":"                port_info.get(\u0027removed\u0027) or"},{"line_number":1440,"context_line":"                port_info.get(\u0027updated\u0027))"},{"line_number":1441,"context_line":""},{"line_number":1442,"context_line":"    def _process_ofport_changed_ports(self, port_info, changed_ports):"},{"line_number":1443,"context_line":"        if not changed_ports:"},{"line_number":1444,"context_line":"            return"},{"line_number":1445,"context_line":"        for port in changed_ports:"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a50d1a3_14877ad8","line":1442,"updated":"2015-07-24 05:54:24.000000000","message":"1. How about renaming it as \"_process_changed_ofports\"?\n\n2. I am not sure why we have to define a separate function for doing this work. This API just appends the port info and is only called from one place. AFAIK, function call has performance penalty. (for details request you to go through \"Data Aggregation\" section mentioned in https://wiki.python.org/moin/PythonSpeed/PerformanceTips)","commit_id":"b745691fdd3f159b98c3e227dad290b03ff29470"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"77a918d8ee80b7920bb595463f85bab35dd8e552","unresolved":false,"context_lines":[{"line_number":1031,"context_line":"        # ofport-based rules, so make arp_spoofing protection a conditional"},{"line_number":1032,"context_line":"        # until something else uses ofport"},{"line_number":1033,"context_line":"        if not self.prevent_arp_spoofing:"},{"line_number":1034,"context_line":"            return"},{"line_number":1035,"context_line":"        previous \u003d self.vifname_to_ofport_map"},{"line_number":1036,"context_line":"        current \u003d self.int_br.get_vif_port_to_ofport_map()"},{"line_number":1037,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_8a77ac01","line":1034,"updated":"2015-07-26 07:10:05.000000000","message":"Since you are already adjusting one of the possible return values of this function, please adjust this one to return an empty iterable so we can always count on the function returning an iterable. Then get rid of the logic at 1433 and 1444.","commit_id":"35d74b47b95e0e267c3a849acdf6d0a772bdb56a"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"815d1fdb6c1f83555483c2d1988f6ac0580b86f0","unresolved":false,"context_lines":[{"line_number":1031,"context_line":"        # ofport-based rules, so make arp_spoofing protection a conditional"},{"line_number":1032,"context_line":"        # until something else uses ofport"},{"line_number":1033,"context_line":"        if not self.prevent_arp_spoofing:"},{"line_number":1034,"context_line":"            return"},{"line_number":1035,"context_line":"        previous \u003d self.vifname_to_ofport_map"},{"line_number":1036,"context_line":"        current \u003d self.int_br.get_vif_port_to_ofport_map()"},{"line_number":1037,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_759eb855","line":1034,"in_reply_to":"3a50d1a3_8a77ac01","updated":"2015-07-27 01:18:35.000000000","message":"agree","commit_id":"35d74b47b95e0e267c3a849acdf6d0a772bdb56a"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"77a918d8ee80b7920bb595463f85bab35dd8e552","unresolved":false,"context_lines":[{"line_number":1440,"context_line":"                port_info.get(\u0027updated\u0027))"},{"line_number":1441,"context_line":""},{"line_number":1442,"context_line":"    def _process_changed_ofports(self, port_info, changed_ports):"},{"line_number":1443,"context_line":"        if not changed_ports:"},{"line_number":1444,"context_line":"            return"},{"line_number":1445,"context_line":"        for port in changed_ports:"},{"line_number":1446,"context_line":"            port_info[\u0027updated\u0027].append(port)"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_2a8698db","line":1443,"updated":"2015-07-26 07:10:05.000000000","message":"get rid of this","commit_id":"35d74b47b95e0e267c3a849acdf6d0a772bdb56a"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"815d1fdb6c1f83555483c2d1988f6ac0580b86f0","unresolved":false,"context_lines":[{"line_number":1440,"context_line":"                port_info.get(\u0027updated\u0027))"},{"line_number":1441,"context_line":""},{"line_number":1442,"context_line":"    def _process_changed_ofports(self, port_info, changed_ports):"},{"line_number":1443,"context_line":"        if not changed_ports:"},{"line_number":1444,"context_line":"            return"},{"line_number":1445,"context_line":"        for port in changed_ports:"},{"line_number":1446,"context_line":"            port_info[\u0027updated\u0027].append(port)"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_75e23803","line":1443,"in_reply_to":"3a50d1a3_2a8698db","updated":"2015-07-27 01:18:35.000000000","message":"agree","commit_id":"35d74b47b95e0e267c3a849acdf6d0a772bdb56a"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c562b1134b4b56bca4e5c0c895ea86f23b809bcc","unresolved":false,"context_lines":[{"line_number":1441,"context_line":""},{"line_number":1442,"context_line":"    def _process_changed_ofports(self, port_info, changed_ports):"},{"line_number":1443,"context_line":"        for port in changed_ports:"},{"line_number":1444,"context_line":"            port_info[\u0027updated\u0027].append(port)"},{"line_number":1445,"context_line":""},{"line_number":1446,"context_line":"    def check_ovs_status(self):"},{"line_number":1447,"context_line":"        # Check for the canary flow"}],"source_content_type":"text/x-python","patch_set":15,"id":"3a50d1a3_580f292e","line":1444,"updated":"2015-07-27 08:52:29.000000000","message":"port_info[\u0027updated\u0027] is a set.","commit_id":"5bf6c64a165c246d98492b5d6ad9c60078b81435"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"83b8abb416bf82f8e93eed6773b6d312138b6c64","unresolved":false,"context_lines":[{"line_number":1441,"context_line":""},{"line_number":1442,"context_line":"    def _process_changed_ofports(self, port_info, changed_ports):"},{"line_number":1443,"context_line":"        for port in changed_ports:"},{"line_number":1444,"context_line":"            port_info[\u0027updated\u0027].append(port)"},{"line_number":1445,"context_line":""},{"line_number":1446,"context_line":"    def check_ovs_status(self):"},{"line_number":1447,"context_line":"        # Check for the canary flow"}],"source_content_type":"text/x-python","patch_set":15,"id":"3a50d1a3_bbd3c737","line":1444,"in_reply_to":"3a50d1a3_580f292e","updated":"2015-07-27 09:29:57.000000000","message":"sorry, you are right, I ignore this","commit_id":"5bf6c64a165c246d98492b5d6ad9c60078b81435"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"b11c4d2aa174479d28901a84dbee7567a019219b","unresolved":false,"context_lines":[{"line_number":1464,"context_line":""},{"line_number":1465,"context_line":"    def _process_changed_ofports(self, port_info, changed_ports):"},{"line_number":1466,"context_line":"        for port in changed_ports:"},{"line_number":1467,"context_line":"            port_info[\u0027updated\u0027].add(port)"},{"line_number":1468,"context_line":""},{"line_number":1469,"context_line":"    def check_ovs_status(self):"},{"line_number":1470,"context_line":"        # Check for the canary flow"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_4112a658","line":1467,"updated":"2015-07-28 04:35:13.000000000","message":"port_info[\u0027updated\u0027].update(changed_port)","commit_id":"09cab1c7ab3c2d04c2ea75c680d9af50e6cdd5b0"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"0e3132923a31f5e52c9d4a75afa3c42eb2811563","unresolved":false,"context_lines":[{"line_number":1464,"context_line":""},{"line_number":1465,"context_line":"    def _process_changed_ofports(self, port_info, changed_ports):"},{"line_number":1466,"context_line":"        for port in changed_ports:"},{"line_number":1467,"context_line":"            port_info[\u0027updated\u0027].add(port)"},{"line_number":1468,"context_line":""},{"line_number":1469,"context_line":"    def check_ovs_status(self):"},{"line_number":1470,"context_line":"        # Check for the canary flow"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_e41d00bf","line":1467,"in_reply_to":"3a50d1a3_4112a658","updated":"2015-07-28 06:15:18.000000000","message":"this is more better","commit_id":"09cab1c7ab3c2d04c2ea75c680d9af50e6cdd5b0"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f81317f54d7d42f7d5758d11d77b267757db1c97","unresolved":false,"context_lines":[{"line_number":1571,"context_line":"                    port_info \u003d self.scan_ports(reg_ports, updated_ports_copy)"},{"line_number":1572,"context_line":"                    self.process_deleted_ports(port_info)"},{"line_number":1573,"context_line":"                    ofport_changed_ports \u003d self.update_stale_ofport_rules()"},{"line_number":1574,"context_line":"                    if ofport_changed_ports:"},{"line_number":1575,"context_line":"                        port_info[\u0027updated\u0027].update(ofport_changed_ports)"},{"line_number":1576,"context_line":"                    LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1577,"context_line":"                              \"port information retrieved. \""}],"source_content_type":"text/x-python","patch_set":18,"id":"3a50d1a3_84a19c48","line":1574,"updated":"2015-07-28 06:24:13.000000000","message":"this conditional is unnecessary.","commit_id":"e8c3f969b2ba0b44ea152ba3845187aa4e8e9fc0"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"d07efcc741965efb0806527efd58f2729da92749","unresolved":false,"context_lines":[{"line_number":1571,"context_line":"                    port_info \u003d self.scan_ports(reg_ports, updated_ports_copy)"},{"line_number":1572,"context_line":"                    self.process_deleted_ports(port_info)"},{"line_number":1573,"context_line":"                    ofport_changed_ports \u003d self.update_stale_ofport_rules()"},{"line_number":1574,"context_line":"                    if ofport_changed_ports:"},{"line_number":1575,"context_line":"                        port_info[\u0027updated\u0027].update(ofport_changed_ports)"},{"line_number":1576,"context_line":"                    LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1577,"context_line":"                              \"port information retrieved. \""}],"source_content_type":"text/x-python","patch_set":18,"id":"3a50d1a3_44af142a","line":1574,"in_reply_to":"3a50d1a3_84a19c48","updated":"2015-07-28 06:26:39.000000000","message":"Done","commit_id":"e8c3f969b2ba0b44ea152ba3845187aa4e8e9fc0"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ec0d3a6507fe4f75d3eedee54e33b0b614994aa1","unresolved":false,"context_lines":[{"line_number":765,"context_line":"            if self.prevent_arp_spoofing:"},{"line_number":766,"context_line":"                self.setup_arp_spoofing_protection(self.int_br,"},{"line_number":767,"context_line":"                                                   port, port_detail)"},{"line_number":768,"context_line":""},{"line_number":769,"context_line":"            # update plugin about port status"},{"line_number":770,"context_line":"            # FIXME(salv-orlando): Failures while updating device status"},{"line_number":771,"context_line":"            # must be handled appropriately. Otherwise this might prevent"}],"source_content_type":"text/x-python","patch_set":21,"id":"3a50d1a3_f784570c","line":768,"updated":"2015-07-30 07:15:27.000000000","message":"i think the ideal order would be:\n\nif cur_tag !\u003d lvm.vlan\n    delete_flows\nsetup_arp_spoofing_protection\nif cur_tag !\u003d lvm.vlan\n    set_db_attribute\n\nhow do you thinnk?","commit_id":"664d6d2231139eb74c4e8c6aa49c558912594022"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"b01633896614eff718620a2c36b63fa011536f28","unresolved":false,"context_lines":[{"line_number":754,"context_line":"            device \u003d port_detail[\u0027device\u0027]"},{"line_number":755,"context_line":"            # Do not bind a port if it\u0027s already bound"},{"line_number":756,"context_line":"            cur_tag \u003d tags_by_name.get(port.port_name)"},{"line_number":757,"context_line":"            if cur_tag !\u003d lvm.vlan and port.ofport !\u003d -1:"},{"line_number":758,"context_line":"                # NOTE(yamamoto): Remove possible drop_port flow"},{"line_number":759,"context_line":"                # installed by port_dead."},{"line_number":760,"context_line":"                self.int_br.delete_flows(in_port\u003dport.ofport)"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a50d1a3_9e9ffc64","line":757,"updated":"2015-07-31 04:54:27.000000000","message":"ofport !\u003d -1 check does not seem necessary anymore.\nit isn\u0027t a fault of this patch though.","commit_id":"307d650494068936368d040c85bab0966f4b467a"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"d1b29e3ab42f33488f45792e04bd12800ca870a3","unresolved":false,"context_lines":[{"line_number":754,"context_line":"            device \u003d port_detail[\u0027device\u0027]"},{"line_number":755,"context_line":"            # Do not bind a port if it\u0027s already bound"},{"line_number":756,"context_line":"            cur_tag \u003d tags_by_name.get(port.port_name)"},{"line_number":757,"context_line":"            if cur_tag !\u003d lvm.vlan and port.ofport !\u003d -1:"},{"line_number":758,"context_line":"                # NOTE(yamamoto): Remove possible drop_port flow"},{"line_number":759,"context_line":"                # installed by port_dead."},{"line_number":760,"context_line":"                self.int_br.delete_flows(in_port\u003dport.ofport)"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a50d1a3_b7453a16","line":757,"in_reply_to":"3a50d1a3_9e9ffc64","updated":"2015-07-31 06:17:33.000000000","message":"got it","commit_id":"307d650494068936368d040c85bab0966f4b467a"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"b01633896614eff718620a2c36b63fa011536f28","unresolved":false,"context_lines":[{"line_number":1572,"context_line":"                    ofport_changed_ports \u003d self.update_stale_ofport_rules()"},{"line_number":1573,"context_line":"                    if ofport_changed_ports:"},{"line_number":1574,"context_line":"                        port_info.setdefault(\u0027updated\u0027, set())"},{"line_number":1575,"context_line":"                        port_info[\u0027updated\u0027].update(ofport_changed_ports)"},{"line_number":1576,"context_line":"                    LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1577,"context_line":"                              \"port information retrieved. \""},{"line_number":1578,"context_line":"                              \"Elapsed:%(elapsed).3f\","}],"source_content_type":"text/x-python","patch_set":22,"id":"3a50d1a3_be92f849","line":1575,"updated":"2015-07-31 04:54:27.000000000","message":"port_info.setdefault(\u0027updated\u0027, set()).update(ofport_changed_ports)","commit_id":"307d650494068936368d040c85bab0966f4b467a"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"d1b29e3ab42f33488f45792e04bd12800ca870a3","unresolved":false,"context_lines":[{"line_number":1572,"context_line":"                    ofport_changed_ports \u003d self.update_stale_ofport_rules()"},{"line_number":1573,"context_line":"                    if ofport_changed_ports:"},{"line_number":1574,"context_line":"                        port_info.setdefault(\u0027updated\u0027, set())"},{"line_number":1575,"context_line":"                        port_info[\u0027updated\u0027].update(ofport_changed_ports)"},{"line_number":1576,"context_line":"                    LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1577,"context_line":"                              \"port information retrieved. \""},{"line_number":1578,"context_line":"                              \"Elapsed:%(elapsed).3f\","}],"source_content_type":"text/x-python","patch_set":22,"id":"3a50d1a3_37d28a5c","line":1575,"in_reply_to":"3a50d1a3_be92f849","updated":"2015-07-31 06:17:33.000000000","message":"Done","commit_id":"307d650494068936368d040c85bab0966f4b467a"}],"neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"21792e9840763aba3d2a1c3e1fed348d6463924f","unresolved":false,"context_lines":[{"line_number":1054,"context_line":"            self.agent.setup_arp_spoofing_protection \u003d mock.Mock()"},{"line_number":1055,"context_line":"            self.agent._bind_devices(need_binding_ports)"},{"line_number":1056,"context_line":"            if enable_prevent_arp_spoofing:"},{"line_number":1057,"context_line":"                self.assertTrue("},{"line_number":1058,"context_line":"                    self.agent.setup_arp_spoofing_protection.called)"},{"line_number":1059,"context_line":"            else:"},{"line_number":1060,"context_line":"                self.assertFalse("}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_6b53d639","line":1057,"updated":"2015-07-15 13:35:53.000000000","message":"you can use directly:\n\n  self.assertEqual(enable_prevent_apr_spoofing,self.agent....called)","commit_id":"a31cb591eac5972f4b0d48b6a58acd4d9fbb0dcc"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"21792e9840763aba3d2a1c3e1fed348d6463924f","unresolved":false,"context_lines":[{"line_number":1060,"context_line":"                self.assertFalse("},{"line_number":1061,"context_line":"                    self.agent.setup_arp_spoofing_protection.called)"},{"line_number":1062,"context_line":""},{"line_number":1063,"context_line":"    def test_setup_arp_spoofing_protection(self):"},{"line_number":1064,"context_line":"        for enble in [True, False]:"},{"line_number":1065,"context_line":"            self._test_arp_spoofing(enble)"},{"line_number":1066,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_471fe65a","line":1063,"updated":"2015-07-15 13:35:53.000000000","message":"You should define a method for each test (so 2 methods)","commit_id":"a31cb591eac5972f4b0d48b6a58acd4d9fbb0dcc"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"21792e9840763aba3d2a1c3e1fed348d6463924f","unresolved":false,"context_lines":[{"line_number":1061,"context_line":"                    self.agent.setup_arp_spoofing_protection.called)"},{"line_number":1062,"context_line":""},{"line_number":1063,"context_line":"    def test_setup_arp_spoofing_protection(self):"},{"line_number":1064,"context_line":"        for enble in [True, False]:"},{"line_number":1065,"context_line":"            self._test_arp_spoofing(enble)"},{"line_number":1066,"context_line":""},{"line_number":1067,"context_line":"    def test_arp_spoofing_port_security_disabled(self):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_0b656a1c","line":1064,"updated":"2015-07-15 13:35:53.000000000","message":"enble \u003d\u003e enable","commit_id":"a31cb591eac5972f4b0d48b6a58acd4d9fbb0dcc"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"49460878212c0c346f86fc1fa47a6d4e64ae3276","unresolved":false,"context_lines":[{"line_number":1056,"context_line":""},{"line_number":1057,"context_line":"    def test_setup_arp_spoofing_protection(self):"},{"line_number":1058,"context_line":"        for enable in [True, False]:"},{"line_number":1059,"context_line":"            self._test_arp_spoofing(enable)"},{"line_number":1060,"context_line":""},{"line_number":1061,"context_line":"    def test_arp_spoofing_port_security_disabled(self):"},{"line_number":1062,"context_line":"        int_br \u003d mock.create_autospec(self.agent.int_br)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_327c3aeb","line":1059,"updated":"2015-07-16 05:11:49.000000000","message":"i prefer to make this two separate test cases.","commit_id":"351eafc350ac04ef27ce7b1529e594262862dcb5"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"a70c88f7383964fed8f23796095d34cfe8b3d3f4","unresolved":false,"context_lines":[{"line_number":1056,"context_line":""},{"line_number":1057,"context_line":"    def test_setup_arp_spoofing_protection(self):"},{"line_number":1058,"context_line":"        for enable in [True, False]:"},{"line_number":1059,"context_line":"            self._test_arp_spoofing(enable)"},{"line_number":1060,"context_line":""},{"line_number":1061,"context_line":"    def test_arp_spoofing_port_security_disabled(self):"},{"line_number":1062,"context_line":"        int_br \u003d mock.create_autospec(self.agent.int_br)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_58647db7","line":1059,"in_reply_to":"9a41bdd9_327c3aeb","updated":"2015-07-16 06:05:17.000000000","message":"ok, I will address it","commit_id":"351eafc350ac04ef27ce7b1529e594262862dcb5"}]}
