)]}'
{"neutron/plugins/ml2/drivers/l2pop/mech_driver.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"9910a121e71694c16c9033ec4f0617c6f317e932","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                    continue"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"                if binding.port[\u0027status\u0027] !\u003d const.PORT_STATUS_ACTIVE:"},{"line_number":198,"context_line":"                    continue"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"                ip \u003d self.get_agent_ip(agent)"},{"line_number":201,"context_line":"                if not ip:"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_e26392da","line":198,"updated":"2014-06-21 16:08:06.000000000","message":"how about filtering this in get_network_ports?","commit_id":"e8806866160416a66cc468b151113511307059fe"},{"author":{"_account_id":7439,"name":"Chengli XU","email":"superekcah@gmail.com","username":"superekcah"},"change_message_id":"fe56743c9f1f88cacd85d1783878baf2ffe247ed","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                    continue"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"                if binding.port[\u0027status\u0027] !\u003d const.PORT_STATUS_ACTIVE:"},{"line_number":198,"context_line":"                    continue"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"                ip \u003d self.get_agent_ip(agent)"},{"line_number":201,"context_line":"                if not ip:"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_cc540024","line":198,"in_reply_to":"1ae5cdf2_e26392da","updated":"2014-06-23 02:50:14.000000000","message":"ok","commit_id":"e8806866160416a66cc468b151113511307059fe"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"7a7c9f718c05b6ed66d3d119d59ac3440579d89d","unresolved":false,"context_lines":[{"line_number":512,"context_line":"            self.tun_br_ofports[tunnel_type].clear()"},{"line_number":513,"context_line":"        old_fdb_entries \u003d self.l2_pop_fdb_cache"},{"line_number":514,"context_line":"        self.l2_pop_fdb_cache \u003d {}"},{"line_number":515,"context_line":"        self._do_fdb_add(None, old_fdb_entries)"},{"line_number":516,"context_line":""},{"line_number":517,"context_line":"    def _set_arp_responder(self, action, lvid, mac_str, ip_str):"},{"line_number":518,"context_line":"        \u0027\u0027\u0027Set the ARP respond entry."}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_a768af21","line":515,"updated":"2014-06-23 04:03:38.000000000","message":"i\u0027m not sure if it\u0027s a good idea to believe the local cache when the state is in flux.\nit\u0027s more robust to refetch the info from the server.","commit_id":"3218c768df15a8f4d05ad128a8afe3614985ceb8"},{"author":{"_account_id":7439,"name":"Chengli XU","email":"superekcah@gmail.com","username":"superekcah"},"change_message_id":"0b041d2918859a662932e80b60be35868ffa633f","unresolved":false,"context_lines":[{"line_number":512,"context_line":"            self.tun_br_ofports[tunnel_type].clear()"},{"line_number":513,"context_line":"        old_fdb_entries \u003d self.l2_pop_fdb_cache"},{"line_number":514,"context_line":"        self.l2_pop_fdb_cache \u003d {}"},{"line_number":515,"context_line":"        self._do_fdb_add(None, old_fdb_entries)"},{"line_number":516,"context_line":""},{"line_number":517,"context_line":"    def _set_arp_responder(self, action, lvid, mac_str, ip_str):"},{"line_number":518,"context_line":"        \u0027\u0027\u0027Set the ARP respond entry."}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_d3000a69","line":515,"in_reply_to":"1ae5cdf2_a768af21","updated":"2014-06-23 14:29:04.000000000","message":"Yep, if there is a rpc, we could retrieve fdb entries from server, even more, we could use a periodic_task to sync client with server constantly. However, l2 population is a mechanism driver, I don\u0027t think it\u0027s a good place to add such a rpc, we need move some part of the logic to the plugin","commit_id":"3218c768df15a8f4d05ad128a8afe3614985ceb8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"abf12536e1645e5085508c08d88700fef3789c19","unresolved":false,"context_lines":[{"line_number":512,"context_line":"            self.tun_br_ofports[tunnel_type].clear()"},{"line_number":513,"context_line":"        old_fdb_entries \u003d self.l2_pop_fdb_cache"},{"line_number":514,"context_line":"        self.l2_pop_fdb_cache \u003d {}"},{"line_number":515,"context_line":"        self._do_fdb_add(None, old_fdb_entries)"},{"line_number":516,"context_line":""},{"line_number":517,"context_line":"    def _set_arp_responder(self, action, lvid, mac_str, ip_str):"},{"line_number":518,"context_line":"        \u0027\u0027\u0027Set the ARP respond entry."}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_e404191b","line":515,"in_reply_to":"1ae5cdf2_c4ac7df1","updated":"2014-06-25 04:34:02.000000000","message":"thank you","commit_id":"3218c768df15a8f4d05ad128a8afe3614985ceb8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c7132b71448e98457e8b7a59da5bc8574a999c89","unresolved":false,"context_lines":[{"line_number":512,"context_line":"            self.tun_br_ofports[tunnel_type].clear()"},{"line_number":513,"context_line":"        old_fdb_entries \u003d self.l2_pop_fdb_cache"},{"line_number":514,"context_line":"        self.l2_pop_fdb_cache \u003d {}"},{"line_number":515,"context_line":"        self._do_fdb_add(None, old_fdb_entries)"},{"line_number":516,"context_line":""},{"line_number":517,"context_line":"    def _set_arp_responder(self, action, lvid, mac_str, ip_str):"},{"line_number":518,"context_line":"        \u0027\u0027\u0027Set the ARP respond entry."}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_fabcb3b7","line":515,"in_reply_to":"1ae5cdf2_d3000a69","updated":"2014-06-25 01:41:45.000000000","message":"l2pop sends the whole entries when the first port of the agent is activated.\nit\u0027s entirely possible (and IMO desirable) to have a mechanism to signal l2pop to do that here.\nhave you consulted some of l2pop folks?","commit_id":"3218c768df15a8f4d05ad128a8afe3614985ceb8"},{"author":{"_account_id":7439,"name":"Chengli XU","email":"superekcah@gmail.com","username":"superekcah"},"change_message_id":"461ecb8620e1d284c13febbd26965c36e5a20fb5","unresolved":false,"context_lines":[{"line_number":512,"context_line":"            self.tun_br_ofports[tunnel_type].clear()"},{"line_number":513,"context_line":"        old_fdb_entries \u003d self.l2_pop_fdb_cache"},{"line_number":514,"context_line":"        self.l2_pop_fdb_cache \u003d {}"},{"line_number":515,"context_line":"        self._do_fdb_add(None, old_fdb_entries)"},{"line_number":516,"context_line":""},{"line_number":517,"context_line":"    def _set_arp_responder(self, action, lvid, mac_str, ip_str):"},{"line_number":518,"context_line":"        \u0027\u0027\u0027Set the ARP respond entry."}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_c4ac7df1","line":515,"in_reply_to":"1ae5cdf2_fabcb3b7","updated":"2014-06-25 03:51:29.000000000","message":"I absolutely understand and agree that have such a rrpc/mechanism is better, I mean, all fdb infos are send from server to agent, triggered by mechanism driver hooks (port_update, port_delete, and etc). As you mentioned, when first port of the agent becomes active or the agent is started within last 180 secs, all entries would be sent to agent, it\u0027s still triggered by \"port_update_postcomit\" hook. However in our case, server doesn\u0027t know when openvswitch restarts, so agent must request l2-pop infos and server must add a callback to handle the request. In my opinion, plugin is a more suitable place, instead of mechanism driver. We must refactor and re-organize some part of l2 population.\nI\u0027ll send to the maillist for more suggestion.","commit_id":"3218c768df15a8f4d05ad128a8afe3614985ceb8"},{"author":{"_account_id":2888,"name":"Mathieu Rohon","email":"mathieu.rohon@gmail.com","username":"mathieu-rohon"},"change_message_id":"96522e1f52c7e71ee4d55d6cfc851d626132b1d4","unresolved":false,"context_lines":[{"line_number":354,"context_line":"                            self._add_fdb_flow(port, lvm, ofport)"},{"line_number":355,"context_line":"                            cur_ports.append(port)"},{"line_number":356,"context_line":"                    # Add flooding entry if not exist"},{"line_number":357,"context_line":"                    if (len(cur_ports)"},{"line_number":358,"context_line":"                            and q_const.FLOODING_ENTRY not in cur_ports):"},{"line_number":359,"context_line":"                        self._add_fdb_flow(q_const.FLOODING_ENTRY, lvm, ofport)"},{"line_number":360,"context_line":"                        cur_ports.append(q_const.FLOODING_ENTRY)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_9137eeaf","line":357,"updated":"2014-07-18 09:26:12.000000000","message":"can you eleborate more on use cases where flooding entries are not sent by the l2_pop driver?","commit_id":"e8acfd7c3086198bdc18d76a36ea0a22166c31e5"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f1bd98add3339eff267ca6c75f47fca20264d7db","unresolved":false,"context_lines":[{"line_number":520,"context_line":"        for tunnel_type in self.tunnel_types:"},{"line_number":521,"context_line":"            self.tun_br_ofports[tunnel_type].clear()"},{"line_number":522,"context_line":"        #TODO(chengli Xu): add a new rpc to retrieve fdb entries"},{"line_number":523,"context_line":"        #                  from server will be better"},{"line_number":524,"context_line":"        old_fdb_entries \u003d self.l2_pop_fdb_cache"},{"line_number":525,"context_line":"        self.l2_pop_fdb_cache \u003d {}"},{"line_number":526,"context_line":"        self._do_fdb_add(None, old_fdb_entries)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_be94a8e8","line":523,"updated":"2014-06-26 07:54:01.000000000","message":"indeed.\n\nand IMO this is too complex for a temporary solution.","commit_id":"e8acfd7c3086198bdc18d76a36ea0a22166c31e5"},{"author":{"_account_id":2888,"name":"Mathieu Rohon","email":"mathieu.rohon@gmail.com","username":"mathieu-rohon"},"change_message_id":"96522e1f52c7e71ee4d55d6cfc851d626132b1d4","unresolved":false,"context_lines":[{"line_number":520,"context_line":"        for tunnel_type in self.tunnel_types:"},{"line_number":521,"context_line":"            self.tun_br_ofports[tunnel_type].clear()"},{"line_number":522,"context_line":"        #TODO(chengli Xu): add a new rpc to retrieve fdb entries"},{"line_number":523,"context_line":"        #                  from server will be better"},{"line_number":524,"context_line":"        old_fdb_entries \u003d self.l2_pop_fdb_cache"},{"line_number":525,"context_line":"        self.l2_pop_fdb_cache \u003d {}"},{"line_number":526,"context_line":"        self._do_fdb_add(None, old_fdb_entries)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_b194f237","line":523,"in_reply_to":"1ae5cdf2_be94a8e8","updated":"2014-07-18 09:26:12.000000000","message":"+1","commit_id":"e8acfd7c3086198bdc18d76a36ea0a22166c31e5"},{"author":{"_account_id":7170,"name":"Zang MingJie","email":"zealot0630@gmail.com","username":"zealot"},"change_message_id":"759fc94a552a8fa8812b60001676da48ea365623","unresolved":false,"context_lines":[{"line_number":520,"context_line":"        for tunnel_type in self.tunnel_types:"},{"line_number":521,"context_line":"            self.tun_br_ofports[tunnel_type].clear()"},{"line_number":522,"context_line":"        #TODO(chengli Xu): add a new rpc to retrieve fdb entries"},{"line_number":523,"context_line":"        #                  from server will be better"},{"line_number":524,"context_line":"        old_fdb_entries \u003d self.l2_pop_fdb_cache"},{"line_number":525,"context_line":"        self.l2_pop_fdb_cache \u003d {}"},{"line_number":526,"context_line":"        self._do_fdb_add(None, old_fdb_entries)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_5c164df3","line":523,"in_reply_to":"baada198_b194f237","updated":"2014-07-18 10:59:41.000000000","message":"There is a separate patch on this one\n\nhttps://review.openstack.org/#/c/107409/","commit_id":"e8acfd7c3086198bdc18d76a36ea0a22166c31e5"}]}
