)]}'
{"neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/br_int.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a0bcc9ee35ac5f65e0deab071d5f48861e2eb080","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        mac_addresses \u003d {netaddr.EUI(mac) for mac in mac_addresses}"},{"line_number":192,"context_line":"        flows \u003d self.dump_flows(constants.MAC_SPOOF_TABLE)"},{"line_number":193,"context_line":"        for flow in flows:"},{"line_number":194,"context_line":"            if flow.table_id !\u003d constants.MAC_SPOOF_TABLE:"},{"line_number":195,"context_line":"                continue"},{"line_number":196,"context_line":"            matches \u003d dict(flow.match.items())"},{"line_number":197,"context_line":"            if matches.get(\u0027in_port\u0027) !\u003d port:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_9d954c8a","line":194,"updated":"2016-04-21 21:18:49.000000000","message":"why do we need to check for that? it\u0027s not present in master, and it does not seem like a useful check due to line 192 explicitly passing the table to dump.\n\nI believe this came from an old version of master patch.","commit_id":"76797c8106331785dd5d42c8cd757be7f34d2017"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"521d646853e19ff7d582ab4c28761800894c5c21","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        mac_addresses \u003d {netaddr.EUI(mac) for mac in mac_addresses}"},{"line_number":192,"context_line":"        flows \u003d self.dump_flows(constants.MAC_SPOOF_TABLE)"},{"line_number":193,"context_line":"        for flow in flows:"},{"line_number":194,"context_line":"            if flow.table_id !\u003d constants.MAC_SPOOF_TABLE:"},{"line_number":195,"context_line":"                continue"},{"line_number":196,"context_line":"            matches \u003d dict(flow.match.items())"},{"line_number":197,"context_line":"            if matches.get(\u0027in_port\u0027) !\u003d port:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_b747841c","line":194,"in_reply_to":"1a122d0e_9d954c8a","updated":"2016-04-21 22:31:30.000000000","message":"Yes, not necessary.","commit_id":"76797c8106331785dd5d42c8cd757be7f34d2017"}],"neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a0bcc9ee35ac5f65e0deab071d5f48861e2eb080","unresolved":false,"context_lines":[{"line_number":1172,"context_line":"        ofports_deleted \u003d set(previous.values()) - set(current.values())"},{"line_number":1173,"context_line":"        for ofport in ofports_deleted:"},{"line_number":1174,"context_line":"            self.int_br.delete_arp_spoofing_protection(port\u003dofport)"},{"line_number":1175,"context_line":"            self.int_br.set_allowed_macs_for_port(port\u003dofport, allow_all\u003dTrue)"},{"line_number":1176,"context_line":""},{"line_number":1177,"context_line":"        # store map for next iteration"},{"line_number":1178,"context_line":"        self.vifname_to_ofport_map \u003d current"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_1dd2dc34","line":1175,"updated":"2016-04-21 21:18:49.000000000","message":"this is not present in master. is there a reason for the difference?","commit_id":"76797c8106331785dd5d42c8cd757be7f34d2017"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"521d646853e19ff7d582ab4c28761800894c5c21","unresolved":false,"context_lines":[{"line_number":1172,"context_line":"        ofports_deleted \u003d set(previous.values()) - set(current.values())"},{"line_number":1173,"context_line":"        for ofport in ofports_deleted:"},{"line_number":1174,"context_line":"            self.int_br.delete_arp_spoofing_protection(port\u003dofport)"},{"line_number":1175,"context_line":"            self.int_br.set_allowed_macs_for_port(port\u003dofport, allow_all\u003dTrue)"},{"line_number":1176,"context_line":""},{"line_number":1177,"context_line":"        # store map for next iteration"},{"line_number":1178,"context_line":"        self.vifname_to_ofport_map \u003d current"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_b76e6494","line":1175,"in_reply_to":"1a122d0e_1dd2dc34","updated":"2016-04-21 22:31:30.000000000","message":"Yes, in master the cleanup automatically eliminates all rules based on ofport. https://github.com/openstack/neutron/blob/97074e5543ae15827511f6a413451d8cbad66fca/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py#L1188\n\nThat\u0027s not present here so we must explicitly do it.","commit_id":"76797c8106331785dd5d42c8cd757be7f34d2017"}]}
