)]}'
{"neutron/common/exceptions.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"634eb2cbc6f49f0ae209aa0195f3d2f997a7bec4","unresolved":false,"context_lines":[{"line_number":313,"context_line":""},{"line_number":314,"context_line":"class NetworkSegmentRangeError(NeutronException):"},{"line_number":315,"context_line":"    message \u003d _(\"Invalid network Segment range: \u0027%(segment_range)s\u0027 - \""},{"line_number":316,"context_line":"                \" \u0027%(error)s\u0027\")"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"    def __init__(self, **kwargs):"},{"line_number":319,"context_line":"        # Convert segment_range tuple to \u0027start:end\u0027 format for display"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_daa2c799","line":316,"updated":"2014-09-01 06:16:49.000000000","message":"nit: extra space","commit_id":"8a122487e17c92bbda8d9b81255c5ef905d1309d"},{"author":{"_account_id":11241,"name":"Padmanabhan Krish","email":"kprad1@yahoo.com","username":"padkrish"},"change_message_id":"42ecc97d521d51ae29ad77b57b6bc021138f7733","unresolved":false,"context_lines":[{"line_number":313,"context_line":""},{"line_number":314,"context_line":"class NetworkSegmentRangeError(NeutronException):"},{"line_number":315,"context_line":"    message \u003d _(\"Invalid network Segment range: \u0027%(segment_range)s\u0027 - \""},{"line_number":316,"context_line":"                \" \u0027%(error)s\u0027\")"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"    def __init__(self, **kwargs):"},{"line_number":319,"context_line":"        # Convert segment_range tuple to \u0027start:end\u0027 format for display"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_27f29a6f","line":316,"in_reply_to":"fa98f980_daa2c799","updated":"2014-09-02 05:35:29.000000000","message":"Will take care.","commit_id":"8a122487e17c92bbda8d9b81255c5ef905d1309d"}],"neutron/plugins/common/utils.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"634eb2cbc6f49f0ae209aa0195f3d2f997a7bec4","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                    \"segment range\"))"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"def parse_network_segment_range(network_segment_range):"},{"line_number":80,"context_line":"    \"\"\"Interpret a string as network[:segid_begin:segid_end].\"\"\""},{"line_number":81,"context_line":"    entry \u003d network_segment_range.strip()"},{"line_number":82,"context_line":"    if \u0027:\u0027 in entry:"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_dad007fa","line":79,"updated":"2014-09-01 06:16:49.000000000","message":"i feel this could be somehow refactored to avoid duplication with other functions doing exactly the same with vlan ranges, but I would not insist","commit_id":"8a122487e17c92bbda8d9b81255c5ef905d1309d"},{"author":{"_account_id":11241,"name":"Padmanabhan Krish","email":"kprad1@yahoo.com","username":"padkrish"},"change_message_id":"42ecc97d521d51ae29ad77b57b6bc021138f7733","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                    \"segment range\"))"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"def parse_network_segment_range(network_segment_range):"},{"line_number":80,"context_line":"    \"\"\"Interpret a string as network[:segid_begin:segid_end].\"\"\""},{"line_number":81,"context_line":"    entry \u003d network_segment_range.strip()"},{"line_number":82,"context_line":"    if \u0027:\u0027 in entry:"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_87db46ec","line":79,"in_reply_to":"fa98f980_dad007fa","updated":"2014-09-02 05:35:29.000000000","message":"I agree with you. But, like other comment related to refactor, this is certainly in the pipeline.","commit_id":"8a122487e17c92bbda8d9b81255c5ef905d1309d"}],"neutron/plugins/ml2/drivers/cisco/dfa/constants.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4f3517b74f06606e46ff3678d4ccab19c3eefdd8","unresolved":false,"context_lines":[{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Padmanabhan Krishnan, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"TYPE_CISCO_DFA_OVERLAY \u003d \u0027cisco_dfa_overlay\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_b5a54aa3","line":18,"updated":"2014-08-23 14:33:34.000000000","message":"I wonder why it is used. It is only used in the test code. It means the definition is unnecessary.","commit_id":"0e0e707360377ab85c013b4495cad049df358afc"},{"author":{"_account_id":11241,"name":"Padmanabhan Krish","email":"kprad1@yahoo.com","username":"padkrish"},"change_message_id":"6475ff49440f8aa2be2d690c70e19d0ac07a0a30","unresolved":false,"context_lines":[{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Padmanabhan Krishnan, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"TYPE_CISCO_DFA_OVERLAY \u003d \u0027cisco_dfa_overlay\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_92168d54","line":18,"in_reply_to":"1abeadc6_b5a54aa3","updated":"2014-08-25 08:07:48.000000000","message":"Yes, this constant is used only in test code after the previous patch. Thought, it\u0027s better to have a holder for a type driver constant.","commit_id":"0e0e707360377ab85c013b4495cad049df358afc"}],"neutron/plugins/ml2/drivers/cisco/dfa/type_cisco_dfa_overlay.py":[{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"cbbe81dc7de8e53140be234cf48da563119fc6e8","unresolved":false,"context_lines":[{"line_number":33,"context_line":"from neutron.plugins.common import constants as p_const"},{"line_number":34,"context_line":"from neutron.plugins.common import utils as plugin_utils"},{"line_number":35,"context_line":"from neutron.plugins.ml2 import driver_api as api"},{"line_number":36,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import constants as dfa_const"},{"line_number":37,"context_line":"from neutron.plugins.ml2.drivers import helpers"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"LOG \u003d log.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_b0de8a6b","line":36,"updated":"2014-08-21 08:44:29.000000000","message":"unused import","commit_id":"5a4c6bbd62b7a99f045233b67f39e2f10c65061f"},{"author":{"_account_id":11241,"name":"Padmanabhan Krish","email":"kprad1@yahoo.com","username":"padkrish"},"change_message_id":"c266b0d9e4cad929158fcdc5bf3d8b3b3001bfc7","unresolved":false,"context_lines":[{"line_number":33,"context_line":"from neutron.plugins.common import constants as p_const"},{"line_number":34,"context_line":"from neutron.plugins.common import utils as plugin_utils"},{"line_number":35,"context_line":"from neutron.plugins.ml2 import driver_api as api"},{"line_number":36,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import constants as dfa_const"},{"line_number":37,"context_line":"from neutron.plugins.ml2.drivers import helpers"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"LOG \u003d log.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_ae245960","line":36,"in_reply_to":"1abeadc6_b0de8a6b","updated":"2014-08-21 17:35:50.000000000","message":"Done","commit_id":"5a4c6bbd62b7a99f045233b67f39e2f10c65061f"},{"author":{"_account_id":8645,"name":"Trinath Somanchi","email":"trinath.somanchi@freescale.com","username":"trinaths"},"change_message_id":"241a6f96fd73d174be207d854cb7620f1958f30b","unresolved":false,"context_lines":[{"line_number":258,"context_line":"                               \u0027physical_network\u0027: physical_network})"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"        if not count:"},{"line_number":261,"context_line":"                LOG.warning(_(\"No segment_id %(seg_id)s found on physical \""},{"line_number":262,"context_line":"                              \"network %(physical_network)s\"),"},{"line_number":263,"context_line":"                            {\u0027seg_id\u0027: segment_id,"},{"line_number":264,"context_line":"                             \u0027physical_network\u0027: physical_network})"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_6a1ec360","line":261,"updated":"2014-08-21 06:59:15.000000000","message":"you might want to use _LW for this. Can you check this once.","commit_id":"5a4c6bbd62b7a99f045233b67f39e2f10c65061f"},{"author":{"_account_id":11241,"name":"Padmanabhan Krish","email":"kprad1@yahoo.com","username":"padkrish"},"change_message_id":"c266b0d9e4cad929158fcdc5bf3d8b3b3001bfc7","unresolved":false,"context_lines":[{"line_number":258,"context_line":"                               \u0027physical_network\u0027: physical_network})"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"        if not count:"},{"line_number":261,"context_line":"                LOG.warning(_(\"No segment_id %(seg_id)s found on physical \""},{"line_number":262,"context_line":"                              \"network %(physical_network)s\"),"},{"line_number":263,"context_line":"                            {\u0027seg_id\u0027: segment_id,"},{"line_number":264,"context_line":"                             \u0027physical_network\u0027: physical_network})"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_ee96514b","line":261,"in_reply_to":"1abeadc6_6a1ec360","updated":"2014-08-21 17:35:50.000000000","message":"Sure. The current TD\u0027s do not use _LW. I see a handful of files using this in neutron today. Can you pls point me to some guideline or e-mails on this so that i can get updated on the correct usage?  If it was discussed in the ML, probably i missed it, can go back and check.","commit_id":"5a4c6bbd62b7a99f045233b67f39e2f10c65061f"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4f3517b74f06606e46ff3678d4ccab19c3eefdd8","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                                                 opt_value\u003dcfg_range)"},{"line_number":101,"context_line":"        imsg \u003d (_(\"DFA segment ranges: %s\") %"},{"line_number":102,"context_line":"                self.cisco_dfa_segment_ranges)"},{"line_number":103,"context_line":"        LOG.info(imsg)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def _sync_cisco_dfa_segment_allocations(self):"},{"line_number":106,"context_line":"        session \u003d db_api.get_session()"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_b5d0ea1f","line":103,"updated":"2014-08-23 14:33:34.000000000","message":"Use a comma instead of %.","commit_id":"0e0e707360377ab85c013b4495cad049df358afc"},{"author":{"_account_id":11241,"name":"Padmanabhan Krish","email":"kprad1@yahoo.com","username":"padkrish"},"change_message_id":"6475ff49440f8aa2be2d690c70e19d0ac07a0a30","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                                                 opt_value\u003dcfg_range)"},{"line_number":101,"context_line":"        imsg \u003d (_(\"DFA segment ranges: %s\") %"},{"line_number":102,"context_line":"                self.cisco_dfa_segment_ranges)"},{"line_number":103,"context_line":"        LOG.info(imsg)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def _sync_cisco_dfa_segment_allocations(self):"},{"line_number":106,"context_line":"        session \u003d db_api.get_session()"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_12027d0b","line":103,"in_reply_to":"1abeadc6_b5d0ea1f","updated":"2014-08-25 08:07:48.000000000","message":"Done","commit_id":"0e0e707360377ab85c013b4495cad049df358afc"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4f3517b74f06606e46ff3678d4ccab19c3eefdd8","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        session \u003d db_api.get_session()"},{"line_number":107,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":108,"context_line":"            # get existing allocations for all physical networks"},{"line_number":109,"context_line":"            allocations \u003d dict()"},{"line_number":110,"context_line":"            allocs \u003d (session.query(CiscoDfaSegmentAllocation)."},{"line_number":111,"context_line":"                      with_lockmode(\u0027update\u0027))"},{"line_number":112,"context_line":"            for alloc in allocs:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_f5c6e266","line":109,"updated":"2014-08-23 14:33:34.000000000","message":"dict() -\u003e {}","commit_id":"0e0e707360377ab85c013b4495cad049df358afc"},{"author":{"_account_id":11241,"name":"Padmanabhan Krish","email":"kprad1@yahoo.com","username":"padkrish"},"change_message_id":"6475ff49440f8aa2be2d690c70e19d0ac07a0a30","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        session \u003d db_api.get_session()"},{"line_number":107,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":108,"context_line":"            # get existing allocations for all physical networks"},{"line_number":109,"context_line":"            allocations \u003d dict()"},{"line_number":110,"context_line":"            allocs \u003d (session.query(CiscoDfaSegmentAllocation)."},{"line_number":111,"context_line":"                      with_lockmode(\u0027update\u0027))"},{"line_number":112,"context_line":"            for alloc in allocs:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_95ce77b3","line":109,"in_reply_to":"1abeadc6_f5c6e266","updated":"2014-08-25 08:07:48.000000000","message":"ok.","commit_id":"0e0e707360377ab85c013b4495cad049df358afc"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"634eb2cbc6f49f0ae209aa0195f3d2f997a7bec4","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        imsg \u003d (_(\"DFA segment ranges: %s\"), self.cisco_dfa_segment_ranges)"},{"line_number":99,"context_line":"        LOG.info(imsg)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def _sync_cisco_dfa_segment_allocations(self):"},{"line_number":102,"context_line":"        session \u003d db_api.get_session()"},{"line_number":103,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":104,"context_line":"            # get existing allocations for all physical networks"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_9ae83f7e","line":101,"updated":"2014-09-01 06:16:49.000000000","message":"this method looks like gre/vxlan synchronization.\nDid you consider doing something similar to what is done there? Those methods look simpler, and also are more optimal.","commit_id":"8a122487e17c92bbda8d9b81255c5ef905d1309d"},{"author":{"_account_id":11241,"name":"Padmanabhan Krish","email":"kprad1@yahoo.com","username":"padkrish"},"change_message_id":"42ecc97d521d51ae29ad77b57b6bc021138f7733","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        imsg \u003d (_(\"DFA segment ranges: %s\"), self.cisco_dfa_segment_ranges)"},{"line_number":99,"context_line":"        LOG.info(imsg)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def _sync_cisco_dfa_segment_allocations(self):"},{"line_number":102,"context_line":"        session \u003d db_api.get_session()"},{"line_number":103,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":104,"context_line":"            # get existing allocations for all physical networks"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_e7b97216","line":101,"in_reply_to":"fa98f980_9ae83f7e","updated":"2014-09-02 05:35:29.000000000","message":"Actually these are based on VLAN synchronization :). Even Akihiro and others have made the comment to reuse portions of the other type drivers. With the current state, it isn\u0027t possible unless i also make changes to other type drivers. I am aware of others who are planning to provide a base class for such type drivers and my plan is to integrate with it.","commit_id":"8a122487e17c92bbda8d9b81255c5ef905d1309d"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"634eb2cbc6f49f0ae209aa0195f3d2f997a7bec4","unresolved":false,"context_lines":[{"line_number":204,"context_line":"            alloc \u003d self.allocate_partially_specified_segment("},{"line_number":205,"context_line":"                session, **filters)"},{"line_number":206,"context_line":"            if not alloc:"},{"line_number":207,"context_line":"                raise exc.NoNetworkAvailable"},{"line_number":208,"context_line":"        else:"},{"line_number":209,"context_line":"            alloc \u003d self.allocate_fully_specified_segment("},{"line_number":210,"context_line":"                session, **filters)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_1aaa8f19","line":207,"updated":"2014-09-01 06:16:49.000000000","message":"missing constructor?","commit_id":"8a122487e17c92bbda8d9b81255c5ef905d1309d"},{"author":{"_account_id":11241,"name":"Padmanabhan Krish","email":"kprad1@yahoo.com","username":"padkrish"},"change_message_id":"42ecc97d521d51ae29ad77b57b6bc021138f7733","unresolved":false,"context_lines":[{"line_number":204,"context_line":"            alloc \u003d self.allocate_partially_specified_segment("},{"line_number":205,"context_line":"                session, **filters)"},{"line_number":206,"context_line":"            if not alloc:"},{"line_number":207,"context_line":"                raise exc.NoNetworkAvailable"},{"line_number":208,"context_line":"        else:"},{"line_number":209,"context_line":"            alloc \u003d self.allocate_fully_specified_segment("},{"line_number":210,"context_line":"                session, **filters)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_47ff9e67","line":207,"in_reply_to":"fa98f980_1aaa8f19","updated":"2014-09-02 05:35:29.000000000","message":"ok, other type drivers also may require a change, i may not do those as a part of this.","commit_id":"8a122487e17c92bbda8d9b81255c5ef905d1309d"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"e831175759ee56f75467db31a431e731e3dcce27","unresolved":false,"context_lines":[{"line_number":204,"context_line":"            alloc \u003d self.allocate_partially_specified_segment("},{"line_number":205,"context_line":"                session, **filters)"},{"line_number":206,"context_line":"            if not alloc:"},{"line_number":207,"context_line":"                raise exc.NoNetworkAvailable"},{"line_number":208,"context_line":"        else:"},{"line_number":209,"context_line":"            alloc \u003d self.allocate_fully_specified_segment("},{"line_number":210,"context_line":"                session, **filters)"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_2317d952","line":207,"updated":"2014-09-02 13:52:12.000000000","message":"I\u0027ve pushed a change for other drivers: https://review.openstack.org/118338\n\nI think this needs to be fixed here.\nThrowing class instead of an instance is also not py3-friendly.","commit_id":"633f5780c9fdedf61551bab78ff71f618ac4771e"},{"author":{"_account_id":11241,"name":"Padmanabhan Krish","email":"kprad1@yahoo.com","username":"padkrish"},"change_message_id":"2bf7b9a28ba4869b29e2059642593228a7194238","unresolved":false,"context_lines":[{"line_number":204,"context_line":"            alloc \u003d self.allocate_partially_specified_segment("},{"line_number":205,"context_line":"                session, **filters)"},{"line_number":206,"context_line":"            if not alloc:"},{"line_number":207,"context_line":"                raise exc.NoNetworkAvailable"},{"line_number":208,"context_line":"        else:"},{"line_number":209,"context_line":"            alloc \u003d self.allocate_fully_specified_segment("},{"line_number":210,"context_line":"                session, **filters)"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_237d0e1d","line":207,"in_reply_to":"fa98f980_2317d952","updated":"2014-09-02 18:03:32.000000000","message":"I actually did  note to make the change. It slipped. Sorry about that.\nAnyways, decision was made to push this out of Juno. Thanks for your review. Appreciated.","commit_id":"633f5780c9fdedf61551bab78ff71f618ac4771e"}]}
