)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"1739b73a697b7eccce2ca4c4e31ee7e8f20699f7","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Removed using DeferredOVSTunnelBridge for non DVR mode"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"We the introduction of this changes:"},{"line_number":10,"context_line":"https://github.com/openstack/neutron/commit/eab71473c3a1d40ec3f1d8a84b839b06b140e4fe"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The tunnels are not getting establish between NN and CN\u0027s in non DVR mode and throws"},{"line_number":13,"context_line":"the AttributeError: add_tunnel_port."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5afe65bd_9251fd38","line":10,"updated":"2015-06-04 12:58:30.000000000","message":"it\u0027s my fault.  sorry for regression.","commit_id":"99ad86a2067455657d8511bc2379e7236bcf8ce1"},{"author":{"_account_id":8645,"name":"Trinath Somanchi","email":"trinath.somanchi@freescale.com","username":"trinaths"},"change_message_id":"72e1beb9bcd5c693a8b00055cf5252d2f650338e","unresolved":false,"context_lines":[{"line_number":9,"context_line":"We the introduction of this changes:"},{"line_number":10,"context_line":"https://github.com/openstack/neutron/commit/eab71473c3a1d40ec3f1d8a84b839b06b140e4fe"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The tunnels are not getting establish between NN and CN\u0027s in non DVR mode and throws"},{"line_number":13,"context_line":"the AttributeError: add_tunnel_port."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I1106fd3dd32f6f827eb25dec4815ff1120af96f0"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5afe65bd_c171e545","line":12,"updated":"2015-06-04 11:37:44.000000000","message":"NN and CN\u0027s ?? for readability can you expand them kindly.","commit_id":"99ad86a2067455657d8511bc2379e7236bcf8ce1"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"a88123026ae48893edfd2207f8ae81cabe45c9eb","unresolved":false,"context_lines":[{"line_number":9,"context_line":"We the introduction of this changes:"},{"line_number":10,"context_line":"https://github.com/openstack/neutron/commit/eab71473c3a1d40ec3f1d8a84b839b06b140e4fe"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The tunnels are not getting establish between NN and CN\u0027s in non DVR mode and throws"},{"line_number":13,"context_line":"the AttributeError: add_tunnel_port."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I1106fd3dd32f6f827eb25dec4815ff1120af96f0"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5afe65bd_97b8cfc9","line":12,"in_reply_to":"5afe65bd_c171e545","updated":"2015-06-04 12:28:28.000000000","message":"Done","commit_id":"99ad86a2067455657d8511bc2379e7236bcf8ce1"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"f75ca4f5137a83fed8b29100869cd1dc7d064dab","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix a regression in \"Separate ovs-ofctl using code as a driver\" change"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The tunnels are not getting establish between Network Node and"},{"line_number":10,"context_line":"Compute Nodes in non DVR mode with l2pop enabled and throws"},{"line_number":11,"context_line":"the AttributeError: add_tunnel_port."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3afb71cf_7bb41181","line":9,"updated":"2015-06-09 15:02:10.000000000","message":"getting established between the network node and the compute nodes","commit_id":"1bfe2e308635dc80a6a5d2d2ac7ff4e82c306d25"}],"neutron/agent/common/ovs_lib.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"484edf84365324592a00692585ad95e357d8798a","unresolved":false,"context_lines":[{"line_number":290,"context_line":"        options[\u0027in_key\u0027] \u003d \u0027flow\u0027"},{"line_number":291,"context_line":"        options[\u0027out_key\u0027] \u003d \u0027flow\u0027"},{"line_number":292,"context_line":"        attrs.append((\u0027options\u0027, options))"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"        return self.add_port(port_name, *attrs)"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    def add_patch_port(self, local_name, remote_name):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_7a91c146","side":"PARENT","line":293,"updated":"2015-06-09 08:10:26.000000000","message":"unrelated change","commit_id":"fca57ab604be701700520c3f758ad9b6b941d6aa"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"b55d92ab828a277ac99b8d49fc99c092ca0f5aa1","unresolved":false,"context_lines":[{"line_number":290,"context_line":"        options[\u0027in_key\u0027] \u003d \u0027flow\u0027"},{"line_number":291,"context_line":"        options[\u0027out_key\u0027] \u003d \u0027flow\u0027"},{"line_number":292,"context_line":"        attrs.append((\u0027options\u0027, options))"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"        return self.add_port(port_name, *attrs)"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    def add_patch_port(self, local_name, remote_name):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_bafa9941","side":"PARENT","line":293,"in_reply_to":"3afb71cf_7a91c146","updated":"2015-06-09 08:18:44.000000000","message":"It\u0027s by mistake, will revert it back","commit_id":"fca57ab604be701700520c3f758ad9b6b941d6aa"}],"neutron/plugins/openvswitch/agent/openflow/ovs_ofctl/br_tun.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"549ba27535bf34627420d7c8ea426522a05e089c","unresolved":false,"context_lines":[{"line_number":207,"context_line":"        self.add_flow(priority\u003d1,"},{"line_number":208,"context_line":"                      in_port\u003dport,"},{"line_number":209,"context_line":"                      actions\u003d\"resubmit(,%s)\" %"},{"line_number":210,"context_line":"                      constants.TUN_TABLE[network_type])"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def cleanup_tunnel_port(self, port, deferred_br\u003dNone):"},{"line_number":213,"context_line":"        self.delete_flows(in_port\u003dport)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_d8922b4b","line":210,"updated":"2015-06-08 11:41:40.000000000","message":"this should be:\n  br \u003d deferred_br if deferred_br else self\n  br.add_flow(...)","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"1a790a9090fddd984b46dbb7845ef7b5be4a8ae7","unresolved":false,"context_lines":[{"line_number":207,"context_line":"        self.add_flow(priority\u003d1,"},{"line_number":208,"context_line":"                      in_port\u003dport,"},{"line_number":209,"context_line":"                      actions\u003d\"resubmit(,%s)\" %"},{"line_number":210,"context_line":"                      constants.TUN_TABLE[network_type])"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def cleanup_tunnel_port(self, port, deferred_br\u003dNone):"},{"line_number":213,"context_line":"        self.delete_flows(in_port\u003dport)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_3e736417","line":210,"in_reply_to":"3afb71cf_d8922b4b","updated":"2015-06-08 13:49:08.000000000","message":"Done","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"549ba27535bf34627420d7c8ea426522a05e089c","unresolved":false,"context_lines":[{"line_number":210,"context_line":"                      constants.TUN_TABLE[network_type])"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def cleanup_tunnel_port(self, port, deferred_br\u003dNone):"},{"line_number":213,"context_line":"        self.delete_flows(in_port\u003dport)"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    def add_dvr_mac_tun(self, mac, port):"},{"line_number":216,"context_line":"        # Table DVR_NOT_LEARN ensures unique dvr macs in the cloud"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_78a457a5","line":213,"updated":"2015-06-08 11:41:40.000000000","message":"this should be:\n  br \u003d deferred_br if deferred_br else self\n  br.delete_flows(...)","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"1a790a9090fddd984b46dbb7845ef7b5be4a8ae7","unresolved":false,"context_lines":[{"line_number":210,"context_line":"                      constants.TUN_TABLE[network_type])"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def cleanup_tunnel_port(self, port, deferred_br\u003dNone):"},{"line_number":213,"context_line":"        self.delete_flows(in_port\u003dport)"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    def add_dvr_mac_tun(self, mac, port):"},{"line_number":216,"context_line":"        # Table DVR_NOT_LEARN ensures unique dvr macs in the cloud"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_1e61c839","line":213,"in_reply_to":"3afb71cf_78a457a5","updated":"2015-06-08 13:49:08.000000000","message":"Done","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"1707b2a8c41c1b96eb25ce3b524f070ccbeb686d","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def add_tunnel_port(self, port_name, remote_ip, local_ip, tunnel_type,"},{"line_number":232,"context_line":"                        vxlan_udp_port, dont_fragment, deferred_br\u003dNone):"},{"line_number":233,"context_line":"        return super(ovs_bridge.OVSAgentBridge, self).add_tunnel_port("},{"line_number":234,"context_line":"            port_name, remote_ip, local_ip, tunnel_type, vxlan_udp_port,"},{"line_number":235,"context_line":"            dont_fragment)"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_2c525e14","line":233,"updated":"2015-06-05 12:46:18.000000000","message":"have a look at yamamoto\u0027s comment on PS1, you need to keep track of the kind of bridge, if it\u0027s deferred or not, to avoid mixing up the two types. See for example line 195 . You don\u0027t need to explicitly invoke the super class method here.","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"e7a01dcf3d8f683a118eeaecf4ebaddd04052357","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def add_tunnel_port(self, port_name, remote_ip, local_ip, tunnel_type,"},{"line_number":232,"context_line":"                        vxlan_udp_port, dont_fragment, deferred_br\u003dNone):"},{"line_number":233,"context_line":"        return super(ovs_bridge.OVSAgentBridge, self).add_tunnel_port("},{"line_number":234,"context_line":"            port_name, remote_ip, local_ip, tunnel_type, vxlan_udp_port,"},{"line_number":235,"context_line":"            dont_fragment)"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_2ca6dec1","line":233,"in_reply_to":"3afb71cf_2c525e14","updated":"2015-06-05 13:01:50.000000000","message":"If I follow this:\n\ndef add_tunnel_port(self, port_name, remote_ip, local_ip, tunnel_type,\n        vxlan_udp_port, dont_fragment, deferrd_br\u003dNone):\n    br \u003d deferred_br if deferred_br else self\n    \nespecially,\n\nreturn br.add_tunnel_port(port_name, remote_ip,\n        local_ip, tunnel_type, vxlan_udp_port, dont_fragment)\n\nI ended having recursion error.\nRuntimeError: maximum recursion depth exceeded while calling a Python object.\n\nIf I don\u0027t invoke super class method here, I may need to copy/paste this much code here.\n\n    def add_tunnel_port(self, port_name, remote_ip, local_ip,\n                        tunnel_type\u003dp_const.TYPE_GRE,\n                        vxlan_udp_port\u003dp_const.VXLAN_UDP_PORT,\n                        dont_fragment\u003dTrue):\n        attrs \u003d [(\u0027type\u0027, tunnel_type)]\n        # TODO(twilson) This is an OrderedDict solely to make a test happy\n        options \u003d collections.OrderedDict()\n        vxlan_uses_custom_udp_port \u003d (\n            tunnel_type \u003d\u003d p_const.TYPE_VXLAN and\n            vxlan_udp_port !\u003d p_const.VXLAN_UDP_PORT\n        )\n        if vxlan_uses_custom_udp_port:\n            options[\u0027dst_port\u0027] \u003d vxlan_udp_port\n        options[\u0027df_default\u0027] \u003d str(dont_fragment).lower()\n        options[\u0027remote_ip\u0027] \u003d remote_ip\n        options[\u0027local_ip\u0027] \u003d local_ip\n        options[\u0027in_key\u0027] \u003d \u0027flow\u0027\n        options[\u0027out_key\u0027] \u003d \u0027flow\u0027\n        attrs.append((\u0027options\u0027, options))\n\n        return self.add_port(port_name, *attrs)\n\nKindly suggest now :)","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"d1fd188f2817577c8f11f5ec915b84d0cd63dcbc","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def add_tunnel_port(self, port_name, remote_ip, local_ip, tunnel_type,"},{"line_number":232,"context_line":"                        vxlan_udp_port, dont_fragment, deferred_br\u003dNone):"},{"line_number":233,"context_line":"        return super(ovs_bridge.OVSAgentBridge, self).add_tunnel_port("},{"line_number":234,"context_line":"            port_name, remote_ip, local_ip, tunnel_type, vxlan_udp_port,"},{"line_number":235,"context_line":"            dont_fragment)"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_87de966b","line":233,"in_reply_to":"3afb71cf_2ca6dec1","updated":"2015-06-08 10:18:42.000000000","message":"@Rossella @YAMAMOTO: Looking forward for your suggestion on these changes.","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"1a790a9090fddd984b46dbb7845ef7b5be4a8ae7","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def add_tunnel_port(self, port_name, remote_ip, local_ip, tunnel_type,"},{"line_number":232,"context_line":"                        vxlan_udp_port, dont_fragment, deferred_br\u003dNone):"},{"line_number":233,"context_line":"        return super(ovs_bridge.OVSAgentBridge, self).add_tunnel_port("},{"line_number":234,"context_line":"            port_name, remote_ip, local_ip, tunnel_type, vxlan_udp_port,"},{"line_number":235,"context_line":"            dont_fragment)"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_de5a1083","line":233,"in_reply_to":"3afb71cf_7821f74c","updated":"2015-06-08 13:49:08.000000000","message":"Nevermind, it happens sometimes.\n\nThanks :)","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"549ba27535bf34627420d7c8ea426522a05e089c","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def add_tunnel_port(self, port_name, remote_ip, local_ip, tunnel_type,"},{"line_number":232,"context_line":"                        vxlan_udp_port, dont_fragment, deferred_br\u003dNone):"},{"line_number":233,"context_line":"        return super(ovs_bridge.OVSAgentBridge, self).add_tunnel_port("},{"line_number":234,"context_line":"            port_name, remote_ip, local_ip, tunnel_type, vxlan_udp_port,"},{"line_number":235,"context_line":"            dont_fragment)"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_7821f74c","line":233,"in_reply_to":"3afb71cf_87de966b","updated":"2015-06-08 11:41:40.000000000","message":"this should be:\n  return super(OVSTunnelBridge, self).add_tunnel_port(....)\n\n(it seems that i didn\u0027t have enough coffee when i made a comment in PS1.  sorry!)","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"1707b2a8c41c1b96eb25ce3b524f070ccbeb686d","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            port_name, remote_ip, local_ip, tunnel_type, vxlan_udp_port,"},{"line_number":235,"context_line":"            dont_fragment)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    def delete_port(self, port_name, deferred_br\u003dNone):"},{"line_number":238,"context_line":"        return super(ovs_bridge.OVSAgentBridge, self).delete_port(port_name)"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_0c57a203","line":237,"updated":"2015-06-05 12:46:18.000000000","message":"ditto","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"549ba27535bf34627420d7c8ea426522a05e089c","unresolved":false,"context_lines":[{"line_number":235,"context_line":"            dont_fragment)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    def delete_port(self, port_name, deferred_br\u003dNone):"},{"line_number":238,"context_line":"        return super(ovs_bridge.OVSAgentBridge, self).delete_port(port_name)"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"class DeferredOVSTunnelBridge(ovs_lib.DeferredOVSBridge):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_18c4435d","line":238,"updated":"2015-06-08 11:41:40.000000000","message":"this should be:\n  return super(OVSTunnelBridge, self).delete_port(port_name)","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"1a790a9090fddd984b46dbb7845ef7b5be4a8ae7","unresolved":false,"context_lines":[{"line_number":235,"context_line":"            dont_fragment)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    def delete_port(self, port_name, deferred_br\u003dNone):"},{"line_number":238,"context_line":"        return super(ovs_bridge.OVSAgentBridge, self).delete_port(port_name)"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"class DeferredOVSTunnelBridge(ovs_lib.DeferredOVSBridge):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_be5d147b","line":238,"in_reply_to":"3afb71cf_18c4435d","updated":"2015-06-08 13:49:08.000000000","message":"Done","commit_id":"00a859ccd8b190995842a87cc0341a524d4be2dd"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"99d799fd9936e076ae54a2f4a53220f09d21672e","unresolved":false,"context_lines":[{"line_number":234,"context_line":"    def deferred(self):"},{"line_number":235,"context_line":"        return DeferredOVSTunnelBridge(self)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    def add_tunnel_port(self, port_name, remote_ip, local_ip, tunnel_type,"},{"line_number":238,"context_line":"                        vxlan_udp_port, dont_fragment, deferred_br\u003dNone):"},{"line_number":239,"context_line":"        LOG.debug(\"Add tunnel port is called for port %s\", port_name)"},{"line_number":240,"context_line":"        return super(OVSTunnelBridge, self).add_tunnel_port("}],"source_content_type":"text/x-python","patch_set":5,"id":"3afb71cf_b8fd083c","line":237,"updated":"2015-06-09 05:43:09.000000000","message":"I would like to suggest a different approach since you don\u0027t need the deferred_br and don\u0027t use it..\n\nYou can alter __getattr__ to act similar to DeferredOVSBridge:\n\n        if name in ovs_lib.DeferredOVSBridge.ALLOWED_PASSTHROUGHS:\n            return getattr(self.br, name)\n\n\nThis saves the need to modify the existing code to support deferred_br which isn\u0027t used.\n\nYou could even extract this code to a separate function on DeferredOVSBridge so that both __getattr__ methods call it, thus facilitating code reuse which is even better.","commit_id":"a9d00fe5bb1ed7485ff3a1fa8e9d336644293f6e"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5aaf49ba696a99799f88bc69fa62b885e78657de","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        if name in self._METHODS:"},{"line_number":248,"context_line":"            m \u003d getattr(self.br, name)"},{"line_number":249,"context_line":"            return functools.partial(m, deferred_br\u003dself)"},{"line_number":250,"context_line":"        return super(DeferredOVSTunnelBridge, self).__getattr__(name)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_1a0cfb3f","line":250,"updated":"2015-06-09 14:17:56.000000000","message":"These changes doesn\u0027t seems to be working. I would suggest kindly revert back to PS8.","commit_id":"1bfe2e308635dc80a6a5d2d2ac7ff4e82c306d25"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fde2a3c7867e5954424959d0b7dbe54093915bde","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        if name in self._METHODS:"},{"line_number":248,"context_line":"            m \u003d getattr(self.br, name)"},{"line_number":249,"context_line":"            return functools.partial(m, deferred_br\u003dself)"},{"line_number":250,"context_line":"        return super(DeferredOVSTunnelBridge, self).__getattr__(name)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_b57bb8f4","line":250,"in_reply_to":"3afb71cf_1a0cfb3f","updated":"2015-06-09 14:22:31.000000000","message":"do you have a backtrace or something?","commit_id":"1bfe2e308635dc80a6a5d2d2ac7ff4e82c306d25"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"e4d306bf14b121e27344b0c8ba606177559397a0","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        if name in self._METHODS:"},{"line_number":248,"context_line":"            m \u003d getattr(self.br, name)"},{"line_number":249,"context_line":"            return functools.partial(m, deferred_br\u003dself)"},{"line_number":250,"context_line":"        return super(DeferredOVSTunnelBridge, self).__getattr__(name)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_e04970b8","line":250,"in_reply_to":"3afb71cf_b57bb8f4","updated":"2015-06-09 14:41:27.000000000","message":"Sorry, for the confusion here.\n\nI didn\u0027t kill the existing q-agt process properly that\u0027s why it was not taking the updated changes. I rechecked it, these changes works fine.\n\nThanks :)","commit_id":"1bfe2e308635dc80a6a5d2d2ac7ff4e82c306d25"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"38527759aaeb98d00cfcde9cefc8b4c1f68e093f","unresolved":false,"context_lines":[{"line_number":441,"context_line":"            agent_ports.pop(self.local_ip, None)"},{"line_number":442,"context_line":"            if len(agent_ports):"},{"line_number":443,"context_line":"                self.fdb_add_tun(context, self.tun_br, lvm,"},{"line_number":444,"context_line":"                                 agent_ports, self._tunnel_port_lookup)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    def fdb_remove(self, context, fdb_entries):"},{"line_number":447,"context_line":"        LOG.debug(\"fdb_remove received\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_d401a5b0","line":444,"updated":"2015-06-04 11:57:17.000000000","message":"For me it looks like this needs to be fixed in br-tun.py.  \r\n\r\nPlease introduce add_port, add_tunnel_port and delete_port into _METHODS available there.\r\n\r\nAlso add unit testcase for br-tun.py to cover these extra _METHODS entries","commit_id":"99ad86a2067455657d8511bc2379e7236bcf8ce1"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"1739b73a697b7eccce2ca4c4e31ee7e8f20699f7","unresolved":false,"context_lines":[{"line_number":441,"context_line":"            agent_ports.pop(self.local_ip, None)"},{"line_number":442,"context_line":"            if len(agent_ports):"},{"line_number":443,"context_line":"                self.fdb_add_tun(context, self.tun_br, lvm,"},{"line_number":444,"context_line":"                                 agent_ports, self._tunnel_port_lookup)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    def fdb_remove(self, context, fdb_entries):"},{"line_number":447,"context_line":"        LOG.debug(\"fdb_remove received\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_72332163","line":444,"in_reply_to":"5afe65bd_57a9378f","updated":"2015-06-04 12:58:30.000000000","message":"i agree with Vivekanandan that this is not a right fix.\nin addition to what Vivekanandan said, you need to add\n\"deferred_br\" variants of methods in OVSTunnelBridge.\n\nuntested example:\n\ndef add_tunnel_port(self, port_name, remote_ip, local_ip, tunnel_type,\n        vxlan_udp_port, dont_fragment, deferrd_br\u003dNone):\n    br \u003d deferred_br if deferred_br else self\n    return br.add_tunnel_port(port_name, remote_ip,\n        local_ip, tunnel_type, vxlan_udp_port, dont_fragment)","commit_id":"99ad86a2067455657d8511bc2379e7236bcf8ce1"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"1c4ce24f12a7bb64d67cb6f54242e5ca10ffc802","unresolved":false,"context_lines":[{"line_number":441,"context_line":"            agent_ports.pop(self.local_ip, None)"},{"line_number":442,"context_line":"            if len(agent_ports):"},{"line_number":443,"context_line":"                self.fdb_add_tun(context, self.tun_br, lvm,"},{"line_number":444,"context_line":"                                 agent_ports, self._tunnel_port_lookup)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    def fdb_remove(self, context, fdb_entries):"},{"line_number":447,"context_line":"        LOG.debug(\"fdb_remove received\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_e87f1ea9","line":444,"in_reply_to":"5afe65bd_72332163","updated":"2015-06-04 13:44:54.000000000","message":"Sure, I will address the comments and post a next patch-set.","commit_id":"99ad86a2067455657d8511bc2379e7236bcf8ce1"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"e7ed63573247ea0ae1ca5a1024b05b92e7b9ccd9","unresolved":false,"context_lines":[{"line_number":441,"context_line":"            agent_ports.pop(self.local_ip, None)"},{"line_number":442,"context_line":"            if len(agent_ports):"},{"line_number":443,"context_line":"                self.fdb_add_tun(context, self.tun_br, lvm,"},{"line_number":444,"context_line":"                                 agent_ports, self._tunnel_port_lookup)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    def fdb_remove(self, context, fdb_entries):"},{"line_number":447,"context_line":"        LOG.debug(\"fdb_remove received\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_57a9378f","line":444,"in_reply_to":"5afe65bd_d401a5b0","updated":"2015-06-04 12:25:10.000000000","message":"@Vivek: The changes you suggested didn\u0027t solve the issue, I tried incorporating your changes and got this error:\n\nTypeError: add_tunnel_port() got an unexpected keyword argument \u0027deferred_br\u0027.","commit_id":"99ad86a2067455657d8511bc2379e7236bcf8ce1"}],"neutron/tests/unit/plugins/openvswitch/agent/openflow/ovs_ofctl/test_br_tun.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"484edf84365324592a00692585ad95e357d8798a","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    def test_delete_port(self):"},{"line_number":278,"context_line":"        port_name \u003d \u0027fake_port\u0027"},{"line_number":279,"context_line":"        with mock.patch.object(self.ovsdb, \u0027del_port\u0027):"},{"line_number":280,"context_line":"            self.assertIsNone(self.br.delete_port(port_name))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_faa5b1a1","line":280,"updated":"2015-06-09 08:10:26.000000000","message":"you are testing OVSTunnelBridge in these tests.\nyou should test DeferredOVSTunnelBridge.","commit_id":"97d4e41d6b3fe8fbb2201a214ca74c3805967807"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e8cb3fb08e2bfb75a7e68dc96769e7b769942476","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    def test_delete_port(self):"},{"line_number":278,"context_line":"        port_name \u003d \u0027fake_port\u0027"},{"line_number":279,"context_line":"        with mock.patch.object(self.ovsdb, \u0027del_port\u0027):"},{"line_number":280,"context_line":"            self.assertIsNone(self.br.delete_port(port_name))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_bdc61366","line":280,"in_reply_to":"3afb71cf_1ad40dbb","updated":"2015-06-09 08:30:55.000000000","message":"can i upload a patchset?\nit\u0027s difficult to paste code as a gerrit comment.","commit_id":"97d4e41d6b3fe8fbb2201a214ca74c3805967807"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"71e2c0b1d2985d58c1a0c039ea95bfb3ec53d950","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    def test_delete_port(self):"},{"line_number":278,"context_line":"        port_name \u003d \u0027fake_port\u0027"},{"line_number":279,"context_line":"        with mock.patch.object(self.ovsdb, \u0027del_port\u0027):"},{"line_number":280,"context_line":"            self.assertIsNone(self.br.delete_port(port_name))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_1d152748","line":280,"in_reply_to":"3afb71cf_bdc61366","updated":"2015-06-09 08:45:04.000000000","message":"Sure, go ahead :)\nAdd this flag Co-Authored-By: \u003cyour name\u003e","commit_id":"97d4e41d6b3fe8fbb2201a214ca74c3805967807"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"b55d92ab828a277ac99b8d49fc99c092ca0f5aa1","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    def test_delete_port(self):"},{"line_number":278,"context_line":"        port_name \u003d \u0027fake_port\u0027"},{"line_number":279,"context_line":"        with mock.patch.object(self.ovsdb, \u0027del_port\u0027):"},{"line_number":280,"context_line":"            self.assertIsNone(self.br.delete_port(port_name))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_1ad40dbb","line":280,"in_reply_to":"3afb71cf_faa5b1a1","updated":"2015-06-09 08:18:44.000000000","message":"Sorry, I didn\u0027t get you. Could you please let me know what we could test here.","commit_id":"97d4e41d6b3fe8fbb2201a214ca74c3805967807"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"cc68ff87eed9f3138678dd7269e6455e9c9484a3","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        ]"},{"line_number":259,"context_line":"        self.assertEqual(expected, self.mock.mock_calls)"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"    def test_add_tunnel_port(self):"},{"line_number":262,"context_line":"        port_name \u003d \u0027fake_port\u0027"},{"line_number":263,"context_line":"        remote_ip \u003d \u0027192.168.1.3\u0027"},{"line_number":264,"context_line":"        local_ip \u003d \u0027192.168.1.2\u0027"}],"source_content_type":"text/x-python","patch_set":10,"id":"3afb71cf_8db794f4","line":261,"updated":"2015-06-09 15:12:54.000000000","message":"this test is very similar to test_deferred_br_add_tunnel_port , you can avoid code duplication factoring out the common part in an helper method that takes for example a Boolean to know if the deferred br should be used or not.","commit_id":"70c013089cb9b384f1e24bfc76fbd5d54cb9fb72"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"4dad9cb6a306b940e6159940bb9f12102b9c4cb3","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        ]"},{"line_number":259,"context_line":"        self.assertEqual(expected, self.mock.mock_calls)"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"    def test_add_tunnel_port(self):"},{"line_number":262,"context_line":"        port_name \u003d \u0027fake_port\u0027"},{"line_number":263,"context_line":"        remote_ip \u003d \u0027192.168.1.3\u0027"},{"line_number":264,"context_line":"        local_ip \u003d \u0027192.168.1.2\u0027"}],"source_content_type":"text/x-python","patch_set":10,"id":"3afb71cf_034a53ac","line":261,"in_reply_to":"3afb71cf_8db794f4","updated":"2015-06-09 15:51:22.000000000","message":"Done","commit_id":"70c013089cb9b384f1e24bfc76fbd5d54cb9fb72"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"cc68ff87eed9f3138678dd7269e6455e9c9484a3","unresolved":false,"context_lines":[{"line_number":274,"context_line":"        self.assertEqual(1, add_port.call_count)"},{"line_number":275,"context_line":"        self.assertEqual(port_name, add_port.call_args[0][0])"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"    def test_delete_port(self):"},{"line_number":278,"context_line":"        port_name \u003d \u0027fake_port\u0027"},{"line_number":279,"context_line":"        with mock.patch(\u0027neutron.agent.common.ovs_lib.OVSBridge.\u0027"},{"line_number":280,"context_line":"                        \u0027delete_port\u0027) as delete_port:"}],"source_content_type":"text/x-python","patch_set":10,"id":"3afb71cf_4dce3c83","line":277,"updated":"2015-06-09 15:12:54.000000000","message":"ditto","commit_id":"70c013089cb9b384f1e24bfc76fbd5d54cb9fb72"}]}
