)]}'
{"neutron/plugins/ml2/drivers/l2pop/mech_driver.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"be9917e539af27a0fe0218af61ee2cfb2f16e7da","unresolved":false,"context_lines":[{"line_number":206,"context_line":"                                                                 network_id)"},{"line_number":207,"context_line":"            self._create_agent_port_list(nondvr_network_ports,"},{"line_number":208,"context_line":"                                         agent_host,"},{"line_number":209,"context_line":"                                         ports,"},{"line_number":210,"context_line":"                                         True)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"            dvr_network_ports \u003d self.get_dvr_network_ports(session, network_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_4a3838ef","line":209,"updated":"2014-12-11 21:01:08.000000000","message":"I like setting add_fdb_entries\u003dTrue/False in the call for readability. Obviously a preference thing.","commit_id":"7c031396a5ac440f5149f087dd202850b51d99a5"},{"author":{"_account_id":2888,"name":"Mathieu Rohon","email":"mathieu.rohon@gmail.com","username":"mathieu-rohon"},"change_message_id":"82ac0faf2a3b2a13217bdc3d359bc6c45578ade2","unresolved":false,"context_lines":[{"line_number":206,"context_line":"                                                                 network_id)"},{"line_number":207,"context_line":"            self._create_agent_port_list(nondvr_network_ports,"},{"line_number":208,"context_line":"                                         agent_host,"},{"line_number":209,"context_line":"                                         ports,"},{"line_number":210,"context_line":"                                         True)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"            dvr_network_ports \u003d self.get_dvr_network_ports(session, network_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_d4a4b4bb","line":209,"in_reply_to":"3a961159_4a3838ef","updated":"2014-12-12 13:47:02.000000000","message":"+1","commit_id":"7c031396a5ac440f5149f087dd202850b51d99a5"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"be9917e539af27a0fe0218af61ee2cfb2f16e7da","unresolved":false,"context_lines":[{"line_number":227,"context_line":""},{"line_number":228,"context_line":"        self.L2populationAgentNotify.add_fdb_entries(self.rpc_ctx,"},{"line_number":229,"context_line":"                                                     other_fdb_entries)"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def _create_agent_port_list(self, network_ports, agent_host, ports,"},{"line_number":232,"context_line":"                                add_fdb_entries\u003dFalse):"},{"line_number":233,"context_line":"        for network_port in network_ports:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_0a01d005","line":230,"updated":"2014-12-11 21:01:08.000000000","message":"I think it makes more sense for this method to return a dict instead of receive the ports argument. It\u0027ll be more testable as a bonus. Speaking of which... It makes sense to test this function now that it is its own unit, it should be quick and easy.\n\nAbout the name, how about: _get_agent_to_ports_map? I would also consider renaming agent_host to excluded_host.","commit_id":"7c031396a5ac440f5149f087dd202850b51d99a5"},{"author":{"_account_id":2888,"name":"Mathieu Rohon","email":"mathieu.rohon@gmail.com","username":"mathieu-rohon"},"change_message_id":"82ac0faf2a3b2a13217bdc3d359bc6c45578ade2","unresolved":false,"context_lines":[{"line_number":227,"context_line":""},{"line_number":228,"context_line":"        self.L2populationAgentNotify.add_fdb_entries(self.rpc_ctx,"},{"line_number":229,"context_line":"                                                     other_fdb_entries)"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def _create_agent_port_list(self, network_ports, agent_host, ports,"},{"line_number":232,"context_line":"                                add_fdb_entries\u003dFalse):"},{"line_number":233,"context_line":"        for network_port in network_ports:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_b4700841","line":230,"in_reply_to":"3a961159_0a01d005","updated":"2014-12-12 13:47:02.000000000","message":"+1 for excluded_host","commit_id":"7c031396a5ac440f5149f087dd202850b51d99a5"},{"author":{"_account_id":2888,"name":"Mathieu Rohon","email":"mathieu.rohon@gmail.com","username":"mathieu-rohon"},"change_message_id":"82ac0faf2a3b2a13217bdc3d359bc6c45578ade2","unresolved":false,"context_lines":[{"line_number":242,"context_line":"                          {\u0027agent_host\u0027: agent.host})"},{"line_number":243,"context_line":"                continue"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"            agent_ports \u003d ports.get(ip, [const.FLOODING_ENTRY])"},{"line_number":246,"context_line":"            if add_fdb_entries:"},{"line_number":247,"context_line":"                agent_ports +\u003d self._get_port_fdb_entries(binding.port)"},{"line_number":248,"context_line":"            ports[ip] \u003d agent_ports"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_ba6631b9","line":245,"updated":"2014-12-12 13:47:02.000000000","message":"@assaf : the ports argument is needed here to see if an entry is already provisionned for the ip of the host. then the ports dict gets updated","commit_id":"7c031396a5ac440f5149f087dd202850b51d99a5"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"62fce6a72c6e4150217f89d83710a9a11d004299","unresolved":false,"context_lines":[{"line_number":242,"context_line":"                          {\u0027agent_host\u0027: agent.host})"},{"line_number":243,"context_line":"                continue"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"            agent_ports \u003d ports.get(ip, [const.FLOODING_ENTRY])"},{"line_number":246,"context_line":"            if add_fdb_entries:"},{"line_number":247,"context_line":"                agent_ports +\u003d self._get_port_fdb_entries(binding.port)"},{"line_number":248,"context_line":"            ports[ip] \u003d agent_ports"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_1d573f03","line":245,"in_reply_to":"3a961159_ba6631b9","updated":"2014-12-12 14:08:42.000000000","message":"You\u0027re correct. I really don\u0027t like the complexity of the code... Maybe we could pre-populate with agent IPs, before calling this method twice?\n\nSomething like:\ndvr_ports \u003d ...\nnon_dvr_ports \u003d ...\nports \u003d {}\nfor ip in get_agent_ips(dvr_ports + non_dvr_ports):\n    ports[ip] \u003d flood_entry\nports.update(_create_agent_port_list(dvr_ports, don\u0027t add fdb)\nports.update(_create_agent_port_list(non_dvr_ports, add fdb)\n\nLess efficient, more straight forward, IMO. Also out of scope for this patch. I\u0027ll let Mike decide.","commit_id":"7c031396a5ac440f5149f087dd202850b51d99a5"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"7df79037d7edf2716fdb72f98231d1b80f34216b","unresolved":false,"context_lines":[{"line_number":202,"context_line":"            ip \u003d self.get_agent_ip(agent)"},{"line_number":203,"context_line":"            if not ip:"},{"line_number":204,"context_line":"                LOG.debug(\"Unable to retrieve the agent ip, check \""},{"line_number":205,"context_line":"                          \"the agent %(agent_host)s configuration.\","},{"line_number":206,"context_line":"                          {\u0027agent_host\u0027: agent.host})"},{"line_number":207,"context_line":"                continue"},{"line_number":208,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a930d6b_6c19f287","line":205,"updated":"2015-01-22 14:45:40.000000000","message":"when there is one parameter we do not need a dictionary","commit_id":"af49e8c26b643f678db30e7c5cac1da658b4a0c7"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"a9b304f46bb7f4ca64f19a6bcf5f5342a244c3f5","unresolved":false,"context_lines":[{"line_number":202,"context_line":"            ip \u003d self.get_agent_ip(agent)"},{"line_number":203,"context_line":"            if not ip:"},{"line_number":204,"context_line":"                LOG.debug(\"Unable to retrieve the agent ip, check \""},{"line_number":205,"context_line":"                          \"the agent %(agent_host)s configuration.\","},{"line_number":206,"context_line":"                          {\u0027agent_host\u0027: agent.host})"},{"line_number":207,"context_line":"                continue"},{"line_number":208,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a930d6b_9cf0bf92","line":205,"in_reply_to":"1a930d6b_6c19f287","updated":"2015-01-26 11:59:42.000000000","message":"Was just moving it but, Done","commit_id":"af49e8c26b643f678db30e7c5cac1da658b4a0c7"}]}
