)]}'
{".gitignore":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"96f1f204ab0def1b3b65b074cbf40392ff894004","unresolved":false,"context_lines":[{"line_number":25,"context_line":".venv/"},{"line_number":26,"context_line":"*.mo"},{"line_number":27,"context_line":"*.sw?"},{"line_number":28,"context_line":".idea/"}],"source_content_type":"application/octet-stream","patch_set":9,"id":"7adec928_3a04587d","line":28,"updated":"2014-05-23 07:36:51.000000000","message":"What is this folder from? The only things that should be added to .gitignore for the project are things created by the unit tests/installation/etc. Nothing editor specific.","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"cff2e683841c62ce14e572b10ea0ed9eeb06c831","unresolved":false,"context_lines":[{"line_number":25,"context_line":".venv/"},{"line_number":26,"context_line":"*.mo"},{"line_number":27,"context_line":"*.sw?"},{"line_number":28,"context_line":".idea/"}],"source_content_type":"application/octet-stream","patch_set":9,"id":"1ae5cdf2_846e47c8","line":28,"in_reply_to":"7adec928_3a04587d","updated":"2014-05-30 01:31:51.000000000","message":"thanks, I will make it right.","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":1935,"name":"Tomoe Sugihara","email":"tomoe.sugihara@gmail.com","username":"tomoe"},"change_message_id":"d55af1c3e68d4114fbde7f42e98f4f64c4b2c89e","unresolved":false,"context_lines":[{"line_number":25,"context_line":".venv/"},{"line_number":26,"context_line":"*.mo"},{"line_number":27,"context_line":"*.sw?"},{"line_number":28,"context_line":".idea/"}],"source_content_type":"application/octet-stream","patch_set":13,"id":"1ae5cdf2_551ff06b","line":28,"updated":"2014-06-04 08:03:02.000000000","message":"I\u0027d recommend this to be in a separate commit, since it\u0027s nothing to do with  the main objective of this patch.","commit_id":"30f17fe86f17467eda310624f2a32931ee1a1efc"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"270c3b9cdfba00ba656b0f298f5792b3ed06ebb9","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":15,"id":"1ae5cdf2_dfce6d59","line":29,"updated":"2014-06-06 07:16:54.000000000","message":"+1 tomoe\nthis seems unrelated.","commit_id":"acb9a15de5c4c7df0acc97670139024ce666d86d"}],"/COMMIT_MSG":[{"author":{"_account_id":9423,"name":"Roey Chen","email":"roeyc@vmware.com","username":"roeyc"},"change_message_id":"38e05833783e0373148256695fc0f2a565f2dd44","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This driver proxy neutron request to huawei sdn controller"},{"line_number":10,"context_line":"which can provide vxlan network provision. Huawei controller"},{"line_number":11,"context_line":"can communicate with ovs based on openflow protocal, flow"},{"line_number":12,"context_line":"table route info which can conduct vm traffic will be posted."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Implements: blueprint huawei-ml2-mechanism-driver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"5adbc538_890f3ce1","line":11,"updated":"2014-05-25 14:09:54.000000000","message":"typo: should be \"protocol\"","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"cff2e683841c62ce14e572b10ea0ed9eeb06c831","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This driver proxy neutron request to huawei sdn controller"},{"line_number":10,"context_line":"which can provide vxlan network provision. Huawei controller"},{"line_number":11,"context_line":"can communicate with ovs based on openflow protocal, flow"},{"line_number":12,"context_line":"table route info which can conduct vm traffic will be posted."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Implements: blueprint huawei-ml2-mechanism-driver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"1ae5cdf2_e4362be7","line":11,"in_reply_to":"5adbc538_890f3ce1","updated":"2014-05-30 01:31:51.000000000","message":"thank you, my mistake, I will make it right","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"}],"neutron/plugins/ml2/drivers/huawei/clients.py":[{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"02b184a338259173407d31ac6b613a0ae9ef656b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2012 Big Switch Networks, Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2By04%3D","line":1,"updated":"2014-01-22 03:29:29.000000000","message":"Incorrect Vendor name","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"75fb7ab8aeb874b0396b06ed52969bc9b6fceaeb","unresolved":false,"context_lines":[{"line_number":36,"context_line":"restproxy_opts \u003d ["},{"line_number":37,"context_line":"    cfg.StrOpt(\u0027servers\u0027, default\u003d\u0027localhost:8800\u0027,"},{"line_number":38,"context_line":"               help\u003d_(\"A comma separated server and port number \")),"},{"line_number":39,"context_line":"    cfg.StrOpt(\u0027server_auth\u0027, default\u003d\u0027username:password\u0027, secret\u003dTrue,"},{"line_number":40,"context_line":"               help\u003d_(\"The username and password for authenticating \""},{"line_number":41,"context_line":"                      \"against the Huawei sdn controller.\")),"},{"line_number":42,"context_line":"    cfg.BoolOpt(\u0027server_ssl\u0027, default\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2B1Iw%3D","line":39,"updated":"2014-01-21 16:49:03.000000000","message":"duplicated with config.py?  need merge?","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"b7b8bb57458059f97a8de573ead22bf390f7e35d","unresolved":false,"context_lines":[{"line_number":36,"context_line":"restproxy_opts \u003d ["},{"line_number":37,"context_line":"    cfg.StrOpt(\u0027servers\u0027, default\u003d\u0027localhost:8800\u0027,"},{"line_number":38,"context_line":"               help\u003d_(\"A comma separated server and port number \")),"},{"line_number":39,"context_line":"    cfg.StrOpt(\u0027server_auth\u0027, default\u003d\u0027username:password\u0027, secret\u003dTrue,"},{"line_number":40,"context_line":"               help\u003d_(\"The username and password for authenticating \""},{"line_number":41,"context_line":"                      \"against the Huawei sdn controller.\")),"},{"line_number":42,"context_line":"    cfg.BoolOpt(\u0027server_ssl\u0027, default\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bx2A%3D","line":39,"in_reply_to":"AAAAUH%2F%2B1Iw%3D","updated":"2014-01-22 09:52:15.000000000","message":"I will check","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"cefc50f4deb5d3e3e3537a6a54bb27c4388955aa","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        \"\"\""},{"line_number":192,"context_line":"        return resp[0] in SUCCESS_CODES"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"    @utils.synchronized(\u0027bsn-rest-call\u0027, external\u003dTrue)"},{"line_number":195,"context_line":"    def rest_call(self, action, resource, data, headers, ignore_codes):"},{"line_number":196,"context_line":"        good_first \u003d sorted(self.servers, key\u003dlambda x: x.failed)"},{"line_number":197,"context_line":"        for active_server in good_first:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Byhw%3D","line":194,"updated":"2014-01-22 05:19:02.000000000","message":"Incorrect vendor name. \u0027bsn\u0027 is short for big switch network","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"b7b8bb57458059f97a8de573ead22bf390f7e35d","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        \"\"\""},{"line_number":192,"context_line":"        return resp[0] in SUCCESS_CODES"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"    @utils.synchronized(\u0027bsn-rest-call\u0027, external\u003dTrue)"},{"line_number":195,"context_line":"    def rest_call(self, action, resource, data, headers, ignore_codes):"},{"line_number":196,"context_line":"        good_first \u003d sorted(self.servers, key\u003dlambda x: x.failed)"},{"line_number":197,"context_line":"        for active_server in good_first:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bx1s%3D","line":194,"in_reply_to":"AAAAUH%2F%2Byhw%3D","updated":"2014-01-22 09:52:15.000000000","message":"Done","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"471a35c184b1b4ab744289621c04cfc1946066de","unresolved":false,"context_lines":[{"line_number":133,"context_line":""},{"line_number":134,"context_line":"class SdnClient(object):"},{"line_number":135,"context_line":"    def __init__(self, server, port, ssl\u003dNone, auth\u003dNone, neutron_id\u003dNone,"},{"line_number":136,"context_line":"                 timeout\u003d10, base_uri\u003d\u0027/networkService/v1.1\u0027,"},{"line_number":137,"context_line":"                 name\u003d\u0027NeutronRestProxy\u0027):"},{"line_number":138,"context_line":"        self.base_uri \u003d base_uri"},{"line_number":139,"context_line":"        self.timeout \u003d timeout"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAUH%2F%2BaSM%3D","line":136,"updated":"2014-01-27 08:38:03.000000000","message":"why not use the constant BASE_URI defined above by yourself ?","commit_id":"eecf2471f432b80fb320afb1b4aea1eba2d5f63c"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"3661c8a79f2ea2c81d6472b0dce33275771eb267","unresolved":false,"context_lines":[{"line_number":133,"context_line":""},{"line_number":134,"context_line":"class SdnClient(object):"},{"line_number":135,"context_line":"    def __init__(self, server, port, ssl\u003dNone, auth\u003dNone, neutron_id\u003dNone,"},{"line_number":136,"context_line":"                 timeout\u003d10, base_uri\u003d\u0027/networkService/v1.1\u0027,"},{"line_number":137,"context_line":"                 name\u003d\u0027NeutronRestProxy\u0027):"},{"line_number":138,"context_line":"        self.base_uri \u003d base_uri"},{"line_number":139,"context_line":"        self.timeout \u003d timeout"}],"source_content_type":"text/x-python","patch_set":7,"id":"7adec928_8e555c1f","line":136,"in_reply_to":"AAAAUH%2F%2BaSM%3D","updated":"2014-05-08 23:04:33.000000000","message":"ok, I will use BASE_URI","commit_id":"eecf2471f432b80fb320afb1b4aea1eba2d5f63c"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"fadb8f839de198a63ca55f2a426685e5e1bfc332","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2012 Big Switch Networks, Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":9,"id":"1ae5cdf2_600031ab","line":1,"updated":"2014-05-30 15:20:53.000000000","message":"Need to remove the above?","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":9423,"name":"Roey Chen","email":"roeyc@vmware.com","username":"roeyc"},"change_message_id":"38e05833783e0373148256695fc0f2a565f2dd44","unresolved":false,"context_lines":[{"line_number":134,"context_line":"                LOG.error(_(\u0027ServerProxy: Could not establish HTTP \u0027"},{"line_number":135,"context_line":"                            \u0027connection\u0027))"},{"line_number":136,"context_line":"                return 0, None, None, None"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        try:"},{"line_number":139,"context_line":"            conn.request(action, uri, body, headers)"},{"line_number":140,"context_line":"            response \u003d conn.getresponse()"}],"source_content_type":"text/x-python","patch_set":9,"id":"5adbc538_e9d9a084","line":137,"updated":"2014-05-25 14:09:54.000000000","message":"Generally, IMHO, it\u0027s a good guideline to keep the try-except clause scope to the minimum.\n\nThe try-except-else statement may help here, for style and readability.\n\ne.g - \n\ntry:\n    conn.request(action, uri, body, headers)\n    response \u003d conn.getresponse()\nexcept (socket.timeout, socket.error) as e:\n    LOG.error(_(\u0027ServerProxy: %(action)s failure, %(e)r\u0027),\n                      {\u0027action\u0027: action, \u0027e\u0027: e})\n    ret \u003d 0, None, None, None\nelse:\n    respdata \u003d respstr \u003d response.read()\n    if response.status in self.success_codes:\n        try:\n             respdata \u003d json.loads(respstr)\n        except ValueError:\n             #response was not JSON, ignore the exception\n             pass\n    ret \u003d (response.status, response.reason, respstr, respdata)\nfinally:\n    conn.close()\n    LOG.debug(_(\"ServerProxy: status\u003d%(status)d, reason\u003d%(reason)r, \"\n    \"ret\u003d%(ret)s, data\u003d%(data)r\"), {\u0027status\u0027: ret[0],\n                                                  \u0027reason\u0027: ret[1],\n                                                  \u0027ret\u0027: ret[2],\n                                                  \u0027data\u0027: ret[3]})\n    return ret","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"cff2e683841c62ce14e572b10ea0ed9eeb06c831","unresolved":false,"context_lines":[{"line_number":134,"context_line":"                LOG.error(_(\u0027ServerProxy: Could not establish HTTP \u0027"},{"line_number":135,"context_line":"                            \u0027connection\u0027))"},{"line_number":136,"context_line":"                return 0, None, None, None"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        try:"},{"line_number":139,"context_line":"            conn.request(action, uri, body, headers)"},{"line_number":140,"context_line":"            response \u003d conn.getresponse()"}],"source_content_type":"text/x-python","patch_set":9,"id":"1ae5cdf2_24e4933a","line":137,"in_reply_to":"5adbc538_e9d9a084","updated":"2014-05-30 01:31:51.000000000","message":"thanks, I will make it right.","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"}],"neutron/plugins/ml2/drivers/huawei/config.py":[{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"c0826fc5ddec8e52f17d97b49959098edcb8193f","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                   \u0027will fail\u0027)),"},{"line_number":53,"context_line":"    cfg.IntOpt(\u0027sync_interval\u0027,"},{"line_number":54,"context_line":"               default\u003d180,"},{"line_number":55,"context_line":"               help\u003d_(\u0027Sync interval in seconds between Neutron plugin and\u0027"},{"line_number":56,"context_line":"                      \u0027sdn controller. This interval defines how often the\u0027"},{"line_number":57,"context_line":"                      \u0027synchronization is performed. This is an optional\u0027"},{"line_number":58,"context_line":"                      \u0027field. If not set, a value of 180 seconds is assumed\u0027))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2ByEQ%3D","line":55,"updated":"2014-01-22 07:28:31.000000000","message":"missing white spaces when help message breaks to the next line","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"b7b8bb57458059f97a8de573ead22bf390f7e35d","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                   \u0027will fail\u0027)),"},{"line_number":53,"context_line":"    cfg.IntOpt(\u0027sync_interval\u0027,"},{"line_number":54,"context_line":"               default\u003d180,"},{"line_number":55,"context_line":"               help\u003d_(\u0027Sync interval in seconds between Neutron plugin and\u0027"},{"line_number":56,"context_line":"                      \u0027sdn controller. This interval defines how often the\u0027"},{"line_number":57,"context_line":"                      \u0027synchronization is performed. This is an optional\u0027"},{"line_number":58,"context_line":"                      \u0027field. If not set, a value of 180 seconds is assumed\u0027))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bx2U%3D","line":55,"in_reply_to":"AAAAUH%2F%2ByEQ%3D","updated":"2014-01-22 09:52:15.000000000","message":"Done","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"}],"neutron/plugins/ml2/drivers/huawei/exceptions.py":[{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"234917628cab32e21e7584506611860381ed045c","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"\"\"\"Exceptions used by Arista ML2 Mechanism Driver.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.common import exceptions"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2B1LI%3D","line":17,"updated":"2014-01-21 16:42:07.000000000","message":"Incorrect vendor name","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"b7b8bb57458059f97a8de573ead22bf390f7e35d","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"\"\"\"Exceptions used by Arista ML2 Mechanism Driver.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.common import exceptions"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bx24%3D","line":17,"in_reply_to":"AAAAUH%2F%2B1LI%3D","updated":"2014-01-22 09:52:15.000000000","message":"Done","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"bc3e40b67dad8ee380b9cc4cdea80d98e63c67c7","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"\"\"\"Exceptions used by Arista ML2 Mechanism Driver.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.common import exceptions"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"class MechanismDriverError(exceptions.NeutronException):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2ByOQ%3D","line":19,"updated":"2014-01-22 06:42:25.000000000","message":"duplicated exception definition.\nthe same class MechanismDriverError is defined in ml2/common/exceptions.py\nConsider moving RemoteRestError to this file, and may extend more vendor specific exceptions here in future","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"b7b8bb57458059f97a8de573ead22bf390f7e35d","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"\"\"\"Exceptions used by Arista ML2 Mechanism Driver.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.common import exceptions"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"class MechanismDriverError(exceptions.NeutronException):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bx3A%3D","line":19,"in_reply_to":"AAAAUH%2F%2ByOQ%3D","updated":"2014-01-22 09:52:15.000000000","message":"ok","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"96f1f204ab0def1b3b65b074cbf40392ff894004","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"\"\"\"Exceptions used by Arista ML2 Mechanism Driver.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.common import exceptions"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"7adec928_1a723c11","line":17,"updated":"2014-05-23 07:36:51.000000000","message":"I suspect the Arista ML2 driver isn\u0027t using these. :-)","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"cff2e683841c62ce14e572b10ea0ed9eeb06c831","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"\"\"\"Exceptions used by Arista ML2 Mechanism Driver.\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.common import exceptions"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"1ae5cdf2_c4712f79","line":17,"in_reply_to":"7adec928_1a723c11","updated":"2014-05-30 01:31:51.000000000","message":"my fault, I will make it right.","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"}],"neutron/plugins/ml2/drivers/huawei/mech_huawei.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"96f1f204ab0def1b3b65b074cbf40392ff894004","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"sdn_UNREACHABLE_MSG \u003d \"Unable to reach sdn\""},{"line_number":36,"context_line":"VXLAN_SEGMENTATION \u003d \"vxlan\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"7adec928_ba53086b","line":35,"updated":"2014-05-23 07:36:51.000000000","message":"All caps for globals","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"96f1f204ab0def1b3b65b074cbf40392ff894004","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":68,"context_line":"        LOG.info(\"network_id \u003d [%s] tenant_id \u003d [%s]\""},{"line_number":69,"context_line":"                 % (network_id, tenant_id))"},{"line_number":70,"context_line":"        with self.sdn_sync_lock:"},{"line_number":71,"context_line":"            try:"},{"line_number":72,"context_line":"                mapped_network \u003d self._get_mapped_network_with_subnets("},{"line_number":73,"context_line":"                    network)"}],"source_content_type":"text/x-python","patch_set":9,"id":"7adec928_1a495cb7","line":70,"updated":"2014-05-23 07:36:51.000000000","message":"Why not use the included lockutils.lock method?","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"cff2e683841c62ce14e572b10ea0ed9eeb06c831","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        tenant_id \u003d network[\u0027tenant_id\u0027]"},{"line_number":68,"context_line":"        LOG.info(\"network_id \u003d [%s] tenant_id \u003d [%s]\""},{"line_number":69,"context_line":"                 % (network_id, tenant_id))"},{"line_number":70,"context_line":"        with self.sdn_sync_lock:"},{"line_number":71,"context_line":"            try:"},{"line_number":72,"context_line":"                mapped_network \u003d self._get_mapped_network_with_subnets("},{"line_number":73,"context_line":"                    network)"}],"source_content_type":"text/x-python","patch_set":9,"id":"1ae5cdf2_e4f46b89","line":70,"in_reply_to":"7adec928_1a495cb7","updated":"2014-05-30 01:31:51.000000000","message":"good idea.","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"96f1f204ab0def1b3b65b074cbf40392ff894004","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        orig_network \u003d context.original"},{"line_number":106,"context_line":"        if new_network[\u0027name\u0027] !\u003d orig_network[\u0027name\u0027]:"},{"line_number":107,"context_line":"            network_id \u003d new_network[\u0027id\u0027]"},{"line_number":108,"context_line":"            with self.sdn_sync_lock:"},{"line_number":109,"context_line":"                try:"},{"line_number":110,"context_line":"                    self._send_update_network(new_network, context)"},{"line_number":111,"context_line":"                except clients.RemoteRestError:"}],"source_content_type":"text/x-python","patch_set":9,"id":"7adec928_dad534b8","line":108,"updated":"2014-05-23 07:36:51.000000000","message":"use lockutils","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"cff2e683841c62ce14e572b10ea0ed9eeb06c831","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        orig_network \u003d context.original"},{"line_number":106,"context_line":"        if new_network[\u0027name\u0027] !\u003d orig_network[\u0027name\u0027]:"},{"line_number":107,"context_line":"            network_id \u003d new_network[\u0027id\u0027]"},{"line_number":108,"context_line":"            with self.sdn_sync_lock:"},{"line_number":109,"context_line":"                try:"},{"line_number":110,"context_line":"                    self._send_update_network(new_network, context)"},{"line_number":111,"context_line":"                except clients.RemoteRestError:"}],"source_content_type":"text/x-python","patch_set":9,"id":"1ae5cdf2_c4f76f8b","line":108,"in_reply_to":"7adec928_dad534b8","updated":"2014-05-30 01:31:51.000000000","message":"ok, good suggestion.","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"96f1f204ab0def1b3b65b074cbf40392ff894004","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":148,"context_line":"        if host and is_vm_boot:"},{"line_number":149,"context_line":"            network_id \u003d port[\u0027network_id\u0027]"},{"line_number":150,"context_line":"            net \u003d self.db_base_plugin_v2._get_network(self.cxt, network_id)"},{"line_number":151,"context_line":"            try:"},{"line_number":152,"context_line":"                self.client_sdn.rest_create_port(net, port)"},{"line_number":153,"context_line":"            except clients.RemoteRestError:"}],"source_content_type":"text/x-python","patch_set":9,"id":"7adec928_7ae8a07c","line":150,"updated":"2014-05-23 07:36:51.000000000","message":"You should be able to get the network out of the context object so another db lookup isn\u0027t required.\n\nnet \u003d context.network.current","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0501040dc9fd4e2c910d6f00b7c21d7819e758b6","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":148,"context_line":"        if host and is_vm_boot:"},{"line_number":149,"context_line":"            network_id \u003d port[\u0027network_id\u0027]"},{"line_number":150,"context_line":"            net \u003d self.db_base_plugin_v2._get_network(self.cxt, network_id)"},{"line_number":151,"context_line":"            try:"},{"line_number":152,"context_line":"                self.client_sdn.rest_create_port(net, port)"},{"line_number":153,"context_line":"            except clients.RemoteRestError:"}],"source_content_type":"text/x-python","patch_set":9,"id":"1ae5cdf2_38bbd00f","line":150,"in_reply_to":"1ae5cdf2_04db171c","updated":"2014-05-30 05:15:03.000000000","message":"There is network info in context.network.current","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"cff2e683841c62ce14e572b10ea0ed9eeb06c831","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":148,"context_line":"        if host and is_vm_boot:"},{"line_number":149,"context_line":"            network_id \u003d port[\u0027network_id\u0027]"},{"line_number":150,"context_line":"            net \u003d self.db_base_plugin_v2._get_network(self.cxt, network_id)"},{"line_number":151,"context_line":"            try:"},{"line_number":152,"context_line":"                self.client_sdn.rest_create_port(net, port)"},{"line_number":153,"context_line":"            except clients.RemoteRestError:"}],"source_content_type":"text/x-python","patch_set":9,"id":"1ae5cdf2_04db171c","line":150,"in_reply_to":"7adec928_7ae8a07c","updated":"2014-05-30 01:31:51.000000000","message":"network info not included in context, there is only port info.","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"96f1f204ab0def1b3b65b074cbf40392ff894004","unresolved":false,"context_lines":[{"line_number":176,"context_line":"        Any other change to port is not supported at this time."},{"line_number":177,"context_line":"        We do not store the port names, therefore, no DB store"},{"line_number":178,"context_line":"        action is performed here."},{"line_number":179,"context_line":"        \"\"\""},{"line_number":180,"context_line":"        new_port \u003d context.current"},{"line_number":181,"context_line":"        orig_port \u003d context.original"},{"line_number":182,"context_line":"        if new_port[\u0027name\u0027] !\u003d orig_port[\u0027name\u0027]:"}],"source_content_type":"text/x-python","patch_set":9,"id":"7adec928_5a98441b","line":179,"updated":"2014-05-23 07:36:51.000000000","message":"I don\u0027t see where you send any update to the controller in this method or the update_port_postcommit method. Since you don\u0027t do anything with the update, why not just pass?","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"cff2e683841c62ce14e572b10ea0ed9eeb06c831","unresolved":false,"context_lines":[{"line_number":176,"context_line":"        Any other change to port is not supported at this time."},{"line_number":177,"context_line":"        We do not store the port names, therefore, no DB store"},{"line_number":178,"context_line":"        action is performed here."},{"line_number":179,"context_line":"        \"\"\""},{"line_number":180,"context_line":"        new_port \u003d context.current"},{"line_number":181,"context_line":"        orig_port \u003d context.original"},{"line_number":182,"context_line":"        if new_port[\u0027name\u0027] !\u003d orig_port[\u0027name\u0027]:"}],"source_content_type":"text/x-python","patch_set":9,"id":"1ae5cdf2_44b6ffdd","line":179,"in_reply_to":"7adec928_5a98441b","updated":"2014-05-30 01:31:51.000000000","message":"ok, this function is reserved for future since our controller is not release yet. make it pass is better way, thank you.","commit_id":"f5621e27b170fb988ef2b52b023490d0dc0d6c45"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"7c80285caed8f4bcc79d2f924834ae8f84c41614","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"sdn_UNREACHABLE_MSG \u003d \"Unable to reach sdn\""},{"line_number":36,"context_line":"VXLAN_SEGMENTATION \u003d \"vxlan\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_e1d067cb","line":35,"updated":"2014-06-18 10:59:45.000000000","message":"I would suggest to keep all uppercase","commit_id":"df8dc21d59b43f5c918b4c8fc1d73dfd56c5cada"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"7c80285caed8f4bcc79d2f924834ae8f84c41614","unresolved":false,"context_lines":[{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"sdn_UNREACHABLE_MSG \u003d \"Unable to reach sdn\""},{"line_number":36,"context_line":"VXLAN_SEGMENTATION \u003d \"vxlan\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"class HuaweiDriver(driver_api.MechanismDriver):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_3c8fd22f","line":36,"updated":"2014-06-18 10:59:45.000000000","message":"Can you consider to use TYPE_VXLAN in https://github.com/openstack/neutron/blob/master/neutron/plugins/common/constants.py","commit_id":"df8dc21d59b43f5c918b4c8fc1d73dfd56c5cada"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"2005325b4a84e09cde8fd7af71dfa2b6e212e39e","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        self.timer \u003d None"},{"line_number":51,"context_line":"        self.db_base_plugin_v2 \u003d db_base_plugin_v2.NeutronDbPluginV2()"},{"line_number":52,"context_line":"        self.external_net_db \u003d external_net_db.External_net_db_mixin()"},{"line_number":53,"context_line":"        #         self.sdn \u003d SyncService(self.rpc, self.ndb)"},{"line_number":54,"context_line":"        self.sync_timeout \u003d confg[\u0027sync_interval\u0027]"},{"line_number":55,"context_line":"        self.cxt \u003d qcontext.get_admin_context()"},{"line_number":56,"context_line":"        self.sdn_sync_lock \u003d threading.Lock()"}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_cb70c60a","line":53,"updated":"2014-06-19 00:30:02.000000000","message":"Remove or specify why this needs to remain.","commit_id":"df8dc21d59b43f5c918b4c8fc1d73dfd56c5cada"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"2005325b4a84e09cde8fd7af71dfa2b6e212e39e","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        \"\"\"Update the name of a given port in sdn."},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"        At the moment we only support port name change"},{"line_number":194,"context_line":"        Any other change to port is not supported at this time."},{"line_number":195,"context_line":"        \"\"\""},{"line_number":196,"context_line":"        port \u003d context.current"},{"line_number":197,"context_line":"        orig_port \u003d context.original"}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_6bb0928b","line":194,"updated":"2014-06-19 00:30:02.000000000","message":"Updating the name is not covered here. either cover or remove the whole method as it does not do anything right now.","commit_id":"df8dc21d59b43f5c918b4c8fc1d73dfd56c5cada"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"2005325b4a84e09cde8fd7af71dfa2b6e212e39e","unresolved":false,"context_lines":[{"line_number":195,"context_line":"        \"\"\""},{"line_number":196,"context_line":"        port \u003d context.current"},{"line_number":197,"context_line":"        orig_port \u003d context.original"},{"line_number":198,"context_line":"        if port[\u0027name\u0027] \u003d\u003d orig_port[\u0027name\u0027]:"},{"line_number":199,"context_line":"            # nothing to do"},{"line_number":200,"context_line":"            return"},{"line_number":201,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_8b86beb7","line":198,"updated":"2014-06-19 00:30:02.000000000","message":"not necessary. remove.","commit_id":"df8dc21d59b43f5c918b4c8fc1d73dfd56c5cada"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"2005325b4a84e09cde8fd7af71dfa2b6e212e39e","unresolved":false,"context_lines":[{"line_number":334,"context_line":"        mapped_network \u003d self._get_mapped_network_with_subnets(network,"},{"line_number":335,"context_line":"                                                               context)"},{"line_number":336,"context_line":"        mapped_network[\u0027floatingips\u0027] \u003d []"},{"line_number":337,"context_line":"        self.client_sdn.rest_update_network(tenant_id, net_id, mapped_network)"}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_2b384aed","line":337,"updated":"2014-06-19 00:30:02.000000000","message":"Should also use a try block here like other places where you use client_sdn.","commit_id":"df8dc21d59b43f5c918b4c8fc1d73dfd56c5cada"}],"neutron/plugins/ml2/drivers/huawei/mechanism_huawei.py":[{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"c0826fc5ddec8e52f17d97b49959098edcb8193f","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"sdn_UNREACHABLE_MSG \u003d \"Unable to reach sdn\""},{"line_number":35,"context_line":"VXLAN_SEGMENTATION \u003d \"vxlan\""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2ByE0%3D","line":34,"updated":"2014-01-22 07:28:31.000000000","message":"suggesting to avoid mixing lower and upper case","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"b7b8bb57458059f97a8de573ead22bf390f7e35d","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"sdn_UNREACHABLE_MSG \u003d \"Unable to reach sdn\""},{"line_number":35,"context_line":"VXLAN_SEGMENTATION \u003d \"vxlan\""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bx5s%3D","line":34,"in_reply_to":"AAAAUH%2F%2ByE0%3D","updated":"2014-01-22 09:52:15.000000000","message":"thanks Irena","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"c0826fc5ddec8e52f17d97b49959098edcb8193f","unresolved":false,"context_lines":[{"line_number":32,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"sdn_UNREACHABLE_MSG \u003d \"Unable to reach sdn\""},{"line_number":35,"context_line":"VXLAN_SEGMENTATION \u003d \"vxlan\""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class HuaweiDriver(driver_api.MechanismDriver):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2ByFM%3D","line":35,"updated":"2014-01-22 07:28:31.000000000","message":"please consider using common constant TYPE_VXLAN","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"b7b8bb57458059f97a8de573ead22bf390f7e35d","unresolved":false,"context_lines":[{"line_number":32,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"sdn_UNREACHABLE_MSG \u003d \"Unable to reach sdn\""},{"line_number":35,"context_line":"VXLAN_SEGMENTATION \u003d \"vxlan\""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class HuaweiDriver(driver_api.MechanismDriver):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bx5Q%3D","line":35,"in_reply_to":"AAAAUH%2F%2ByFM%3D","updated":"2014-01-22 09:52:15.000000000","message":"ok, good suggestion.","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"234917628cab32e21e7584506611860381ed045c","unresolved":false,"context_lines":[{"line_number":38,"context_line":"class HuaweiDriver(driver_api.MechanismDriver):"},{"line_number":39,"context_line":"    \"\"\"Ml2 Mechanism driver for Huawei networking hardware."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    Remebers all networks and VMs that are provisioned on Arista Hardware."},{"line_number":42,"context_line":"    Does not send network provisioning request if the network has already been"},{"line_number":43,"context_line":"    provisioned before for the given port."},{"line_number":44,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2B1KY%3D","line":41,"updated":"2014-01-21 16:42:07.000000000","message":"Incorrect Vendor Name","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"b7b8bb57458059f97a8de573ead22bf390f7e35d","unresolved":false,"context_lines":[{"line_number":38,"context_line":"class HuaweiDriver(driver_api.MechanismDriver):"},{"line_number":39,"context_line":"    \"\"\"Ml2 Mechanism driver for Huawei networking hardware."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    Remebers all networks and VMs that are provisioned on Arista Hardware."},{"line_number":42,"context_line":"    Does not send network provisioning request if the network has already been"},{"line_number":43,"context_line":"    provisioned before for the given port."},{"line_number":44,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bx5E%3D","line":41,"in_reply_to":"AAAAUH%2F%2B1KY%3D","updated":"2014-01-22 09:52:15.000000000","message":"ok, low .level mistake","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":10069,"name":"Zhou Yu","email":"vitas.yuzhou@huawei.com","username":"vitas.yuzhou"},"change_message_id":"df92643fc2084a4416cdacf94aeb7ba8295aff07","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        #         self.sdn \u003d SyncService(self.rpc, self.ndb)"},{"line_number":53,"context_line":"        self.sync_timeout \u003d confg[\u0027sync_interval\u0027]"},{"line_number":54,"context_line":"        self.cxt \u003d qcontext.get_admin_context()"},{"line_number":55,"context_line":"        self.sdn_sync_lock \u003d threading.Lock()"},{"line_number":56,"context_line":"        self.client_sdn \u003d clients.SdnClient(confg.nos_host, confg.nos_port)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def initialize(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bxw4%3D","line":55,"updated":"2014-01-22 08:52:20.000000000","message":"you have locked with @utils.synchronized(\u0027bsn-rest-call\u0027, external\u003dTrue) when call rest api of sdn controller,why need\r\nto use threading.Lock(),here?","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"471a35c184b1b4ab744289621c04cfc1946066de","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# implied."},{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import copy"},{"line_number":17,"context_line":"import threading"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAUH%2F%2BaRg%3D","line":15,"updated":"2014-01-27 08:38:03.000000000","message":"suggest using the file name \u0027mech_huawei.py\u0027 to bring into correspondence with other existing mech drivers.","commit_id":"eecf2471f432b80fb320afb1b4aea1eba2d5f63c"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"3661c8a79f2ea2c81d6472b0dce33275771eb267","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# implied."},{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import copy"},{"line_number":17,"context_line":"import threading"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAUH%2F9a8E%3D","line":15,"in_reply_to":"AAAAUH%2F%2BaRg%3D","updated":"2014-05-08 23:04:33.000000000","message":"good suggestion, thks","commit_id":"eecf2471f432b80fb320afb1b4aea1eba2d5f63c"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"471a35c184b1b4ab744289621c04cfc1946066de","unresolved":false,"context_lines":[{"line_number":232,"context_line":"            raise ml2_exc.HuaweiDriverError("},{"line_number":233,"context_line":"                method\u003d\"create_subnet_postcommit\")"},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"    def update_subnet_postcommit(self, context):"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"        subnet \u003d context.current"},{"line_number":238,"context_line":"        net_id \u003d subnet[\u0027network_id\u0027]"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAUH%2F%2BaO0%3D","line":235,"updated":"2014-01-27 08:38:03.000000000","message":"I think those methods (update_port_precommit, update_port_postcommit, create_subnet_postcommit, update_subnet_postcommit, delete_subnet_postcommit) seems is not necessary just as bigswitch mech driver did,\nhttps://review.openstack.org/#/c/64944/12/neutron/plugins/ml2/drivers/mech_bigswitch/driver.py","commit_id":"eecf2471f432b80fb320afb1b4aea1eba2d5f63c"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"3661c8a79f2ea2c81d6472b0dce33275771eb267","unresolved":false,"context_lines":[{"line_number":232,"context_line":"            raise ml2_exc.HuaweiDriverError("},{"line_number":233,"context_line":"                method\u003d\"create_subnet_postcommit\")"},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"    def update_subnet_postcommit(self, context):"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"        subnet \u003d context.current"},{"line_number":238,"context_line":"        net_id \u003d subnet[\u0027network_id\u0027]"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAUH%2F9a5Q%3D","line":235,"in_reply_to":"AAAAUH%2F%2BaO0%3D","updated":"2014-05-08 23:04:33.000000000","message":"actually, the netork controller is not release yet, we still have a long way to make it better. This function is reserved for compatibility of future design.","commit_id":"eecf2471f432b80fb320afb1b4aea1eba2d5f63c"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"471a35c184b1b4ab744289621c04cfc1946066de","unresolved":false,"context_lines":[{"line_number":289,"context_line":"            else:"},{"line_number":290,"context_line":"                network[\u0027gateway\u0027] \u003d \u0027\u0027"},{"line_number":291,"context_line":"        network["},{"line_number":292,"context_line":"            external_net.EXTERNAL] \u003d self.external_net_db. \\"},{"line_number":293,"context_line":"            _network_is_external(context, network[\u0027id\u0027])"},{"line_number":294,"context_line":"        return network"},{"line_number":295,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAUH%2F%2BaQ0%3D","line":292,"updated":"2014-01-27 08:38:03.000000000","message":"the coding specification require not using \\ as the line break.","commit_id":"eecf2471f432b80fb320afb1b4aea1eba2d5f63c"},{"author":{"_account_id":9832,"name":"mayu","email":"mayu0101@huawei.com","username":"mayu"},"change_message_id":"3661c8a79f2ea2c81d6472b0dce33275771eb267","unresolved":false,"context_lines":[{"line_number":289,"context_line":"            else:"},{"line_number":290,"context_line":"                network[\u0027gateway\u0027] \u003d \u0027\u0027"},{"line_number":291,"context_line":"        network["},{"line_number":292,"context_line":"            external_net.EXTERNAL] \u003d self.external_net_db. \\"},{"line_number":293,"context_line":"            _network_is_external(context, network[\u0027id\u0027])"},{"line_number":294,"context_line":"        return network"},{"line_number":295,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAUH%2F9a5A%3D","line":292,"in_reply_to":"AAAAUH%2F%2BaQ0%3D","updated":"2014-05-08 23:04:33.000000000","message":"Done","commit_id":"eecf2471f432b80fb320afb1b4aea1eba2d5f63c"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"70e9c4e24d16e1596420b9ce2b15ebd9568c7a6c","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":143,"context_line":"        if host and is_vm_boot:"},{"line_number":144,"context_line":"            network_id \u003d port[\u0027network_id\u0027]"},{"line_number":145,"context_line":"            net \u003d self.db_base_plugin_v2._get_network(self.cxt, network_id)"},{"line_number":146,"context_line":"            try:"},{"line_number":147,"context_line":"                self.client_sdn.rest_create_port(net, port)"},{"line_number":148,"context_line":"            except RemoteRestError:"}],"source_content_type":"text/x-python","patch_set":10,"id":"1ae5cdf2_0c7e756b","line":145,"updated":"2014-06-03 04:14:53.000000000","message":"Don\u0027t perform a database call here. Use the network property that is already attached to the port context.\n\nhttps://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/driver_context.py#L98","commit_id":"9e3a16935c1cd726cfa4bd71da66c02b9e014add"}],"neutron/tests/unit/ml2/drivers/test_huawei_mech.py":[{"author":{"_account_id":9776,"name":"Xitong Zhang","email":"zhangxitong@huawei.com","username":"ddd"},"change_message_id":"5ede0ff4b26448d52567e29ab1f2b7e876b89239","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        self.drv._get_mapped_network_with_subnets \u003d mock.MagicMock()"},{"line_number":51,"context_line":"        self.drv._get_mapped_network_with_subnets.return_value \u003d net_info"},{"line_number":52,"context_line":"        self.drv.client_sdn.rest_create_network"},{"line_number":53,"context_line":"        self.drv.create_network_postcommit(network_context)"},{"line_number":54,"context_line":"        self.drv.client_sdn.rest_create_network. \\"},{"line_number":55,"context_line":"            assert_called_once_with(tenant_id, net_info)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BrXA%3D","line":52,"updated":"2014-01-23 09:54:21.000000000","message":"What is this line want to do? It seems to do nothing!","commit_id":"8eb70749cc79a56b9e113ed10e37e768cc98763a"}],"setup.cfg":[{"author":{"_account_id":1935,"name":"Tomoe Sugihara","email":"tomoe.sugihara@gmail.com","username":"tomoe"},"change_message_id":"d55af1c3e68d4114fbde7f42e98f4f64c4b2c89e","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_arista.ini"},{"line_number":67,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_brocade.ini"},{"line_number":68,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_cisco.ini"},{"line_number":69,"context_line":"\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD"},{"line_number":70,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_mlnx.ini"},{"line_number":71,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_ncs.ini"},{"line_number":72,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_odl.ini"}],"source_content_type":"text/x-ttcn-cfg","patch_set":13,"id":"1ae5cdf2_f57e3cae","line":69,"updated":"2014-06-04 08:03:02.000000000","message":"Unresolved conflict?","commit_id":"30f17fe86f17467eda310624f2a32931ee1a1efc"}]}
