)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"e70c6dacdc4f5d44c9e61482beb39b14bc7240d8","unresolved":false,"context_lines":[{"line_number":29,"context_line":"In _handle_segment_change, _notify_mechanism_driver_for_segment_change"},{"line_number":30,"context_line":"is triggered and the orignal network is passed to md\u0027s update_network_precommit"},{"line_number":31,"context_line":"and update_network_postcommit here."},{"line_number":32,"context_line":"Besides, the events.PRECOMMIT_DELETE is moved to be sended before the"},{"line_number":33,"context_line":"segment deletion."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"Change-Id: Ib3eedad6b6dd34537bfecb9a00cdf778e8c3f04e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_44086e90","line":32,"updated":"2017-11-08 09:12:43.000000000","message":"s/sended/send","commit_id":"6428248d0d8191d195bb7216da2f0d0f21f3c228"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"eef04f0d324fc70c1db816caf3fd62605f1dc1d6","unresolved":false,"context_lines":[{"line_number":1909,"context_line":"        if hasattr(context, \u0027_mech_context\u0027):"},{"line_number":1910,"context_line":"            original_network_with_segments \u003d context._mech_context.current"},{"line_number":1911,"context_line":"        else:"},{"line_number":1912,"context_line":"            original_network_with_segments \u003d network_with_segments"},{"line_number":1913,"context_line":""},{"line_number":1914,"context_line":"        mech_context \u003d driver_context.NetworkContext("},{"line_number":1915,"context_line":"            self, context, network_with_segments,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_7811c9af","line":1912,"updated":"2017-11-08 13:16:03.000000000","message":"why You just don\u0027t do it like:\n\n    if hasattr():\n        network_with_segments \u003d context._mech_context.current\n    else:\n        network_with_segments \u003d self.get_network(context, network_id)\n\nThen You will not need additional variable and change in line 1911","commit_id":"428d9d579b81de01a96130791e78325c9ecfa4fa"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5cf6536ce5ec955761c0ae881778d34682577615","unresolved":false,"context_lines":[{"line_number":1909,"context_line":"        if hasattr(context, \u0027_mech_context\u0027):"},{"line_number":1910,"context_line":"            original_network_with_segments \u003d context._mech_context.current"},{"line_number":1911,"context_line":"        else:"},{"line_number":1912,"context_line":"            original_network_with_segments \u003d network_with_segments"},{"line_number":1913,"context_line":""},{"line_number":1914,"context_line":"        mech_context \u003d driver_context.NetworkContext("},{"line_number":1915,"context_line":"            self, context, network_with_segments,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_699461e9","line":1912,"in_reply_to":"3f4b6375_363eb6b9","updated":"2017-11-09 09:13:13.000000000","message":"ok, I missed that You are passing both variables to NetworkContext","commit_id":"428d9d579b81de01a96130791e78325c9ecfa4fa"},{"author":{"_account_id":23430,"name":"sunzuohua","email":"zuohuasun@gmail.com","username":"ZuohuaSun"},"change_message_id":"40bac5ee18d39c781c20d6d46101907d823a5954","unresolved":false,"context_lines":[{"line_number":1909,"context_line":"        if hasattr(context, \u0027_mech_context\u0027):"},{"line_number":1910,"context_line":"            original_network_with_segments \u003d context._mech_context.current"},{"line_number":1911,"context_line":"        else:"},{"line_number":1912,"context_line":"            original_network_with_segments \u003d network_with_segments"},{"line_number":1913,"context_line":""},{"line_number":1914,"context_line":"        mech_context \u003d driver_context.NetworkContext("},{"line_number":1915,"context_line":"            self, context, network_with_segments,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_363eb6b9","line":1912,"in_reply_to":"3f4b6375_7811c9af","updated":"2017-11-09 00:56:08.000000000","message":"I want to pass both original network and current network to mechanism drivers, so mechanism drivers can find out the specific changes.On the event events.PRECOMMIT_DELETE of resources.SEGMENT,the original network is stored in _mech_context, and on the event events.POSTCOMMIT_DELETE of resources.SEGMENT,the original network is get from _mech_context and passed to mechanism drivers together with current network.","commit_id":"428d9d579b81de01a96130791e78325c9ecfa4fa"}]}
