)]}'
{"neutron/plugins/ml2/drivers/type_flat.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c9f16a6d65cd47b21a072b6d2a11afcac04dde55","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027*\u0027 in self.flat_networks:"},{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif len(\"\".join(self.flat_networks.split())) \u003d\u003d 0:"},{"line_number":71,"context_line":"            msg \u003d (\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_1fa95e25","line":70,"updated":"2014-06-24 17:45:33.000000000","message":"according to config option definition, self.flat_networks is a list not a string","commit_id":"4985ef7307da366c4b8ef92747e9ca8e8f0a8913"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"584ae5167243d1bca9c7a1cd0e46f0787127c6ae","unresolved":false,"context_lines":[{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        else:"},{"line_number":71,"context_line":"            for phynet in self.flat_networks:"},{"line_number":72,"context_line":"                if len(\"\".join(phynet.split())) \u003d\u003d 0:"},{"line_number":73,"context_line":"                    msg \u003d (\"physical network name is empty\")"},{"line_number":74,"context_line":"                    raise exc.InvalidInput(error_message\u003dmsg)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_5074b535","line":71,"updated":"2014-06-24 18:56:12.000000000","message":"* phynet \u003d\u003d\u003e physnet\n* \"\".join(phynet.split()) \u003d\u003d phynet except if phynet contains whitespaces","commit_id":"c502fbf6b21d8ede0616ed4f2b803a6b6a5d8b1c"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"fd03dac3c98af0cd06d783becc4c8e4f0979714a","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027*\u0027 in self.flat_networks:"},{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        else:"},{"line_number":71,"context_line":"            for physnet in self.flat_networks:"},{"line_number":72,"context_line":"                if len(physnet) \u003d\u003d 0:"},{"line_number":73,"context_line":"                    msg \u003d (\"physical network name is empty\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_2b3a5cc4","line":70,"updated":"2014-06-24 19:13:13.000000000","message":"elif not all(self.flat_networks):\n  raise ...\nelse\n  LOG ...\n\nseems more pythonic","commit_id":"1527065955cda8d62ce89b3b65f13f83c7a0ef88"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"577ead6f2d1561485186fc18338f6121ebc4b273","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027*\u0027 in self.flat_networks:"},{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif not all(self.flat_networks):"},{"line_number":71,"context_line":"            msg \u003d (\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_e500a0ad","line":70,"updated":"2014-06-24 20:59:25.000000000","message":"I\u0027d argue with a comment on previous patchset: can we add a method that would validate names one by one?\nJust for code clarity sake","commit_id":"f0f14593859da26e8bde1526e64a73c1e6595dfe"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"1ea3a455a081a0ac57bdfc1ceb1f65a9c11cca59","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027*\u0027 in self.flat_networks:"},{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif not all(self.flat_networks):"},{"line_number":71,"context_line":"            msg \u003d (\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_eba78f4e","line":70,"in_reply_to":"1ae5cdf2_2b9fb766","updated":"2014-06-24 22:08:32.000000000","message":"The normal pattern for validation is to iterate over the list and apply a validation method to each element like enikanorov said.  In this case, you\u0027ve said that validation is merely just evaluating each element in boolean context.  If that is really all it is then I wouldn\u0027t object to this implementation too strongly.\n\nHowever, if validation is anything more than just evaluating with bool(...) then this breaks down.  The comment from rkukura suggests that it might be more.","commit_id":"f0f14593859da26e8bde1526e64a73c1e6595dfe"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"35643e1b1b177e02d7989c33f7ebc5143e836f12","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027*\u0027 in self.flat_networks:"},{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif not all(self.flat_networks):"},{"line_number":71,"context_line":"            msg \u003d (\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_2b9fb766","line":70,"in_reply_to":"1ae5cdf2_e500a0ad","updated":"2014-06-24 21:58:13.000000000","message":"I personally feel this is very clear to any python developer.  I\u0027ll get some feedback on iirc.","commit_id":"f0f14593859da26e8bde1526e64a73c1e6595dfe"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"fa621c5a07db7372958739f1539a21d5af98db8a","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027*\u0027 in self.flat_networks:"},{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif not all(self.flat_networks):"},{"line_number":71,"context_line":"            msg \u003d (\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_07490760","line":70,"in_reply_to":"1ae5cdf2_eba78f4e","updated":"2014-06-25 04:41:42.000000000","message":"Hi Carl, are you aware of any specific way to validate max len against column size?  I don\u0027t see anything and none of the other models do that.  So my conclusion is that it is not required.  Since underlying db will throw an error in that case.","commit_id":"f0f14593859da26e8bde1526e64a73c1e6595dfe"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"577ead6f2d1561485186fc18338f6121ebc4b273","unresolved":false,"context_lines":[{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif not all(self.flat_networks):"},{"line_number":71,"context_line":"            msg \u003d (\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"},{"line_number":74,"context_line":"            LOG.info(_(\"Allowable flat physical_network names: %s\"),"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_e55260dd","line":71,"updated":"2014-06-24 20:59:25.000000000","message":"i18n is missing","commit_id":"f0f14593859da26e8bde1526e64a73c1e6595dfe"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"35643e1b1b177e02d7989c33f7ebc5143e836f12","unresolved":false,"context_lines":[{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif not all(self.flat_networks):"},{"line_number":71,"context_line":"            msg \u003d (\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"},{"line_number":74,"context_line":"            LOG.info(_(\"Allowable flat physical_network names: %s\"),"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_6ba9bf8f","line":71,"in_reply_to":"1ae5cdf2_e55260dd","updated":"2014-06-24 21:58:13.000000000","message":"thanks!  will take care of it.","commit_id":"f0f14593859da26e8bde1526e64a73c1e6595dfe"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"577ead6f2d1561485186fc18338f6121ebc4b273","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif not all(self.flat_networks):"},{"line_number":71,"context_line":"            msg \u003d (\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"},{"line_number":74,"context_line":"            LOG.info(_(\"Allowable flat physical_network names: %s\"),"},{"line_number":75,"context_line":"                     self.flat_networks)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_85ac3ca1","line":72,"updated":"2014-06-24 20:59:25.000000000","message":"I\u0027m not sure it\u0027s the correct exception. We usually use it returning  http 400 error for the rest request, while this is an error in configuration.\nHowever I don\u0027t have strong opinion on what exception should be thrown here.","commit_id":"f0f14593859da26e8bde1526e64a73c1e6595dfe"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"35643e1b1b177e02d7989c33f7ebc5143e836f12","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif not all(self.flat_networks):"},{"line_number":71,"context_line":"            msg \u003d (\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"},{"line_number":74,"context_line":"            LOG.info(_(\"Allowable flat physical_network names: %s\"),"},{"line_number":75,"context_line":"                     self.flat_networks)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_0bd4bbe7","line":72,"in_reply_to":"1ae5cdf2_85ac3ca1","updated":"2014-06-24 21:58:13.000000000","message":"This is at startup and neutron won\u0027t come up.  So I think this is not a REST error.  What do you think?","commit_id":"f0f14593859da26e8bde1526e64a73c1e6595dfe"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"64febaf8185ab918d3bd8dff5332e0848760cdcf","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027*\u0027 in self.flat_networks:"},{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif not all(self.flat_networks):"},{"line_number":71,"context_line":"            msg \u003d _(\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":7,"id":"1ae5cdf2_5538f93a","line":70,"updated":"2014-06-25 18:53:20.000000000","message":"We only need to check the zero-len here (as per iirc chat with carl_baldwin, marun). not maxlen, etc. \n\nNote: input is from ml2 conf file and not REST.","commit_id":"8f3301cb2792cf05dd29a79506719b0141bf029f"},{"author":{"_account_id":704,"name":"Edgar Magana","email":"emagana@gmail.com","username":"emagana"},"change_message_id":"e7ad616fdd9fe90318224c987489fb8148c8d6f4","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027*\u0027 in self.flat_networks:"},{"line_number":68,"context_line":"            LOG.info(_(\"Arbitrary flat physical_network names allowed\"))"},{"line_number":69,"context_line":"            self.flat_networks \u003d None"},{"line_number":70,"context_line":"        elif not all(self.flat_networks):"},{"line_number":71,"context_line":"            msg \u003d _(\"physical network name is empty\")"},{"line_number":72,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":73,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":7,"id":"1ae5cdf2_153636e7","line":70,"in_reply_to":"1ae5cdf2_5538f93a","updated":"2014-06-27 04:02:23.000000000","message":"I agree with Manish!","commit_id":"8f3301cb2792cf05dd29a79506719b0141bf029f"}],"neutron/tests/unit/ml2/test_type_flat.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c9f16a6d65cd47b21a072b6d2a11afcac04dde55","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from oslo.config import cfg"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"FLAT_NETWORKS \u003d \u0027flat_net1, flat_net2\u0027"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"class FlatTypeTest(base.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_9f4bae85","line":25,"updated":"2014-06-24 17:45:33.000000000","message":"should be a list of strings","commit_id":"4985ef7307da366c4b8ef92747e9ca8e8f0a8913"}]}
