)]}'
{"etc/neutron/plugins/ml2/ml2_conf.ini":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b49237b1a1299eeba1568fd41103b16cb0124ffd","unresolved":false,"context_lines":[{"line_number":21,"context_line":"# (BoolOpt) Allow to partially specify provider network attributes"},{"line_number":22,"context_line":"# and delegate the choice of remaining attributes to neutron."},{"line_number":23,"context_line":"# Currently only available for VLAN networks."},{"line_number":24,"context_line":"# allow_partial_specs \u003d False"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"[ml2_type_flat]"},{"line_number":27,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":6,"id":"AAAAU3%2F%2FuDk%3D","line":24,"updated":"2014-02-25 04:13:12.000000000","message":"I\u0027m wondering if it makes sense to define separate allow_partial_specs config variables for each applicable type driver, rather than this global one? It seems to me that use cases for this feature might apply only to certain network types and not necessarily to others.","commit_id":"d4a2eefd0e4ae099f7f3cd60dab7d1332393eabb"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5980f36a5eda55769f3b7cfed81f7c2e589f5967","unresolved":false,"context_lines":[{"line_number":21,"context_line":"# (BoolOpt) Allow to partially specify provider network attributes"},{"line_number":22,"context_line":"# and delegate the choice of remaining attributes to neutron."},{"line_number":23,"context_line":"# Currently only available for VLAN networks."},{"line_number":24,"context_line":"# allow_partial_specs \u003d False"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"[ml2_type_flat]"},{"line_number":27,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":6,"id":"AAAAU3%2F%2Fj78%3D","line":24,"in_reply_to":"AAAAU3%2F%2FuDk%3D","updated":"2014-02-25 22:35:35.000000000","message":"Done","commit_id":"d4a2eefd0e4ae099f7f3cd60dab7d1332393eabb"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"aae39d27db5f9537a770aac5b725e65650fb24a4","unresolved":false,"context_lines":[{"line_number":21,"context_line":"# (BoolOpt) Allow to partially specify provider network attributes"},{"line_number":22,"context_line":"# and delegate the choice of remaining attributes to neutron."},{"line_number":23,"context_line":"# Currently only available for VLAN networks."},{"line_number":24,"context_line":"# allow_partial_specs \u003d False"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"[ml2_type_flat]"},{"line_number":27,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":6,"id":"AAAAU3%2F%2FkN0%3D","line":24,"in_reply_to":"AAAAU3%2F%2FuDk%3D","updated":"2014-02-25 21:59:57.000000000","message":"Good remark, \ni will replace the ml2.allow_partial_specs option by an allow_partial_specs per network_type section","commit_id":"d4a2eefd0e4ae099f7f3cd60dab7d1332393eabb"}],"neutron/plugins/ml2/config.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"7be2639ef5d03c6feed224697b63e96f94790b9e","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                help\u003d_(\"Allow to partially specify provider network \""},{"line_number":36,"context_line":"                       \"attributes and delegate the choice of remaining \""},{"line_number":37,"context_line":"                       \"attributes to neutron. Currently only available for \""},{"line_number":38,"context_line":"                       \"VLAN networks\")),"},{"line_number":39,"context_line":"]"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FtLk%3D","line":38,"updated":"2014-03-04 15:35:35.000000000","message":"This option is no longer needed now that its configured separately for each type driver.","commit_id":"c1754270f985387d32bb12ee7baf23779d5fbd83"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"b338815a8bc0e78725e6de66556ddd15ce9f680a","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                help\u003d_(\"Allow to partially specify provider network \""},{"line_number":36,"context_line":"                       \"attributes and delegate the choice of remaining \""},{"line_number":37,"context_line":"                       \"attributes to neutron. Currently only available for \""},{"line_number":38,"context_line":"                       \"VLAN networks\")),"},{"line_number":39,"context_line":"]"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fi9U%3D","line":38,"in_reply_to":"AAAAVn%2F%2FtLk%3D","updated":"2014-03-05 13:54:01.000000000","message":"Done","commit_id":"c1754270f985387d32bb12ee7baf23779d5fbd83"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"59f74a29ca0835313ca7e1cfc0cd8a7c303d9943","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                help\u003d_(\"Allow to partially specify provider network \""},{"line_number":36,"context_line":"                       \"attributes and delegate the choice of remaining \""},{"line_number":37,"context_line":"                       \"attributes to neutron. Currently only available for \""},{"line_number":38,"context_line":"                       \"VLAN networks\")),"},{"line_number":39,"context_line":"]"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FqA0%3D","line":38,"in_reply_to":"AAAAVn%2F%2FtLk%3D","updated":"2014-03-04 20:36:48.000000000","message":"my mistake :s, I will remove it","commit_id":"c1754270f985387d32bb12ee7baf23779d5fbd83"}],"neutron/plugins/ml2/driver_api.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"abcfe8e16c989028938df418764241f704089a68","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        :param session: database session"},{"line_number":91,"context_line":"        :param segment: segment dictionary using keys defined above"},{"line_number":92,"context_line":"        :returns: segment dictionary using keys defined above"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        Called inside transaction context on session to reserve the"},{"line_number":95,"context_line":"        type-specific resource for a provider network segment. The"}],"source_content_type":"text/x-python","patch_set":14,"id":"1ae5cdf2_a636074f","line":92,"updated":"2014-06-13 19:43:46.000000000","message":"\"using keys defined above\" does not have any meaning","commit_id":"37202635230c7cdbeb500f366cb7f74eff504786"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"56639718ef9a6624cd1904ccc9856834609ea072","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        :param session: database session"},{"line_number":91,"context_line":"        :param segment: segment dictionary using keys defined above"},{"line_number":92,"context_line":"        :returns: segment dictionary using keys defined above"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        Called inside transaction context on session to reserve the"},{"line_number":95,"context_line":"        type-specific resource for a provider network segment. The"}],"source_content_type":"text/x-python","patch_set":14,"id":"1ae5cdf2_d521f34d","line":92,"in_reply_to":"1ae5cdf2_a636074f","updated":"2014-06-13 22:53:11.000000000","message":"Will do","commit_id":"37202635230c7cdbeb500f366cb7f74eff504786"}],"neutron/plugins/ml2/drivers/helpers.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fdf2cc23d4fa0b706449e6d892ecbaac9c7dd146","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                              network_type, raw_segment)"},{"line_number":73,"context_line":"                    return alloc"},{"line_number":74,"context_line":"                LOG.debug(\"Allocating %s segment from pool (%s) failed\","},{"line_number":75,"context_line":"                          network_type, raw_segment)"},{"line_number":76,"context_line":"            return None"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def allocate_partially_specified_segment(self, session, **filters):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_cf739fb2","line":75,"updated":"2014-06-18 04:07:11.000000000","message":"can this be due to a race with delete?\nif so, isn\u0027t it more consistent to try to create in this case too?","commit_id":"64a0ec8569a75de26e4764056ca81e10ea7768c6"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"0393de9e09b547b428adf26bf271469d7084a2f2","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                              network_type, raw_segment)"},{"line_number":73,"context_line":"                    return alloc"},{"line_number":74,"context_line":"                LOG.debug(\"Allocating %s segment from pool (%s) failed\","},{"line_number":75,"context_line":"                          network_type, raw_segment)"},{"line_number":76,"context_line":"            return None"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def allocate_partially_specified_segment(self, session, **filters):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_1cc3f68a","line":75,"in_reply_to":"1ae5cdf2_cf739fb2","updated":"2014-06-18 13:47:28.000000000","message":"Indeed but it\u0027s not really a race condition ... more an opportunity. I will see if doesn\u0027t not reduce readibility","commit_id":"64a0ec8569a75de26e4764056ca81e10ea7768c6"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"4e9fbca780ad2272a29ee734fa51ff2ac6e5e804","unresolved":false,"context_lines":[{"line_number":76,"context_line":"            return None"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def allocate_partially_specified_segment(self, session, **filters):"},{"line_number":79,"context_line":"        \"\"\" Allocate model segment from pool partially specified by filters"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        Return allocated db object or None."},{"line_number":82,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_173e7129","line":79,"updated":"2014-06-18 11:36:50.000000000","message":"Nit: remove leading space on line and add period at end of line.","commit_id":"64a0ec8569a75de26e4764056ca81e10ea7768c6"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"0393de9e09b547b428adf26bf271469d7084a2f2","unresolved":false,"context_lines":[{"line_number":76,"context_line":"            return None"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def allocate_partially_specified_segment(self, session, **filters):"},{"line_number":79,"context_line":"        \"\"\" Allocate model segment from pool partially specified by filters"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        Return allocated db object or None."},{"line_number":82,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_ba7e7de2","line":79,"in_reply_to":"1ae5cdf2_173e7129","updated":"2014-06-18 13:47:28.000000000","message":"Done","commit_id":"64a0ec8569a75de26e4764056ca81e10ea7768c6"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"4e9fbca780ad2272a29ee734fa51ff2ac6e5e804","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                    # Segment allocated"},{"line_number":103,"context_line":"                    LOG.debug("},{"line_number":104,"context_line":"                        \"Allocate %s segment from pool (try %s, %s) done\","},{"line_number":105,"context_line":"                        network_type, i, raw_segment)"},{"line_number":106,"context_line":"                    return alloc"},{"line_number":107,"context_line":"                LOG.debug(\"Allocate %s segment from pool (try %s, %s) failed\","},{"line_number":108,"context_line":"                          network_type, i, raw_segment)"}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_f78585cf","line":105,"updated":"2014-06-18 11:36:50.000000000","message":"Nit: could do i+1 here and in L108 so one based counting displayed.","commit_id":"64a0ec8569a75de26e4764056ca81e10ea7768c6"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"0393de9e09b547b428adf26bf271469d7084a2f2","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                    # Segment allocated"},{"line_number":103,"context_line":"                    LOG.debug("},{"line_number":104,"context_line":"                        \"Allocate %s segment from pool (try %s, %s) done\","},{"line_number":105,"context_line":"                        network_type, i, raw_segment)"},{"line_number":106,"context_line":"                    return alloc"},{"line_number":107,"context_line":"                LOG.debug(\"Allocate %s segment from pool (try %s, %s) failed\","},{"line_number":108,"context_line":"                          network_type, i, raw_segment)"}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_da7fc9dd","line":105,"in_reply_to":"1ae5cdf2_f78585cf","updated":"2014-06-18 13:47:28.000000000","message":"Done","commit_id":"64a0ec8569a75de26e4764056ca81e10ea7768c6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"f2b40bb3b14e237b46f3a6634dd26c3a39e9bf6b","unresolved":false,"context_lines":[{"line_number":105,"context_line":"                    # No resource available"},{"line_number":106,"context_line":"                    return"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"                raw_segment \u003d dict((k, alloc[k]) for k in self.primary_keys)"},{"line_number":109,"context_line":"                LOG.debug(\"Allocate %s segment from pool (try %s, %s) started\","},{"line_number":110,"context_line":"                          network_type, i, raw_segment)"},{"line_number":111,"context_line":"                count \u003d (session.query(self.model)."}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_8e634f19","line":108,"updated":"2014-07-18 10:02:33.000000000","message":"why is this segment \"raw\"? In an other module you used raw for a tuple which was then built into a dict.\n\nanyway this is just a curiosity. Not important at all.","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c0937539f16f050859a730c9553d63253d44ad1c","unresolved":false,"context_lines":[{"line_number":105,"context_line":"                    # No resource available"},{"line_number":106,"context_line":"                    return"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"                raw_segment \u003d dict((k, alloc[k]) for k in self.primary_keys)"},{"line_number":109,"context_line":"                LOG.debug(\"Allocate %s segment from pool (try %s, %s) started\","},{"line_number":110,"context_line":"                          network_type, i, raw_segment)"},{"line_number":111,"context_line":"                count \u003d (session.query(self.model)."}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_85b7a520","line":108,"in_reply_to":"baada198_8e634f19","updated":"2014-07-18 13:38:18.000000000","message":"raw_segment is a dict using db keys (like vlan_id, tunnel_id) where segment uses driver_api keys (driver_api.SEGMENTATION_ID, ...). Normally i respected the convention everywhere in the change.\n\nraw_filters has been removed","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"f2b40bb3b14e237b46f3a6634dd26c3a39e9bf6b","unresolved":false,"context_lines":[{"line_number":106,"context_line":"                    return"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"                raw_segment \u003d dict((k, alloc[k]) for k in self.primary_keys)"},{"line_number":109,"context_line":"                LOG.debug(\"Allocate %s segment from pool (try %s, %s) started\","},{"line_number":110,"context_line":"                          network_type, i, raw_segment)"},{"line_number":111,"context_line":"                count \u003d (session.query(self.model)."},{"line_number":112,"context_line":"                         filter_by(allocated\u003dFalse, **raw_segment)."}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_ee45ab6f","line":109,"updated":"2014-07-18 10:02:33.000000000","message":"pedantry s/try/attempt\n\nJust because otherwise it will look like a rugby match ;)","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c0937539f16f050859a730c9553d63253d44ad1c","unresolved":false,"context_lines":[{"line_number":106,"context_line":"                    return"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"                raw_segment \u003d dict((k, alloc[k]) for k in self.primary_keys)"},{"line_number":109,"context_line":"                LOG.debug(\"Allocate %s segment from pool (try %s, %s) started\","},{"line_number":110,"context_line":"                          network_type, i, raw_segment)"},{"line_number":111,"context_line":"                count \u003d (session.query(self.model)."},{"line_number":112,"context_line":"                         filter_by(allocated\u003dFalse, **raw_segment)."}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_9298c976","line":109,"in_reply_to":"baada198_ee45ab6f","updated":"2014-07-18 13:38:18.000000000","message":"Done","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"f2b40bb3b14e237b46f3a6634dd26c3a39e9bf6b","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"                raw_segment \u003d dict((k, alloc[k]) for k in self.primary_keys)"},{"line_number":109,"context_line":"                LOG.debug(\"Allocate %s segment from pool (try %s, %s) started\","},{"line_number":110,"context_line":"                          network_type, i, raw_segment)"},{"line_number":111,"context_line":"                count \u003d (session.query(self.model)."},{"line_number":112,"context_line":"                         filter_by(allocated\u003dFalse, **raw_segment)."},{"line_number":113,"context_line":"                         update({\"allocated\": True}))"}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_ae4f3391","line":110,"updated":"2014-07-18 10:02:33.000000000","message":"while the _(...) on log.debug statements is not required, I think the convention is still to use dicts when multiple mappings to variable are needed.\n\neg.: allocate %(type)s segment from pool (try %(i)d, %(segment)s) started\n\nanyway since this should be enforced by automatic checking and is not part of any officially sanctioned policy I know of I\u0027m not going to downvote your patch for this.\n\nThis comment also applies to other places in this module","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c0937539f16f050859a730c9553d63253d44ad1c","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"                raw_segment \u003d dict((k, alloc[k]) for k in self.primary_keys)"},{"line_number":109,"context_line":"                LOG.debug(\"Allocate %s segment from pool (try %s, %s) started\","},{"line_number":110,"context_line":"                          network_type, i, raw_segment)"},{"line_number":111,"context_line":"                count \u003d (session.query(self.model)."},{"line_number":112,"context_line":"                         filter_by(allocated\u003dFalse, **raw_segment)."},{"line_number":113,"context_line":"                         update({\"allocated\": True}))"}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_68ba680c","line":110,"in_reply_to":"baada198_ae4f3391","updated":"2014-07-18 13:38:18.000000000","message":"Done","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"f2b40bb3b14e237b46f3a6634dd26c3a39e9bf6b","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                          network_type, i, raw_segment)"},{"line_number":111,"context_line":"                count \u003d (session.query(self.model)."},{"line_number":112,"context_line":"                         filter_by(allocated\u003dFalse, **raw_segment)."},{"line_number":113,"context_line":"                         update({\"allocated\": True}))"},{"line_number":114,"context_line":"                if count:"},{"line_number":115,"context_line":"                    LOG.debug("},{"line_number":116,"context_line":"                        \"Allocate %s segment from pool (try %s, %s) done\","}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_fca00144","line":113,"updated":"2014-07-18 10:02:33.000000000","message":"I\u0027m not sure how to interpret this query. I think the outcome might be subject to db isolation levels.\nI think this won\u0027t work with mysql by default as it uses REPEATABLE READ: http://dev.mysql.com/doc/refman/5.1/en/innodb-consistent-read.html\n\nFrom what I gather postgresql instead by default uses READ UNCOMMITTED and therefore for postgresql this should work.\n\nI don\u0027t think we want to put requirements on backend isolation levels and therefore we probably need to find an alternative.\nI appreciate you tried to avoid the lock_for_update here, but perhaps we need a third way.","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"65440b882f312cebe524bf239e19564209ae0755","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                          network_type, i, raw_segment)"},{"line_number":111,"context_line":"                count \u003d (session.query(self.model)."},{"line_number":112,"context_line":"                         filter_by(allocated\u003dFalse, **raw_segment)."},{"line_number":113,"context_line":"                         update({\"allocated\": True}))"},{"line_number":114,"context_line":"                if count:"},{"line_number":115,"context_line":"                    LOG.debug("},{"line_number":116,"context_line":"                        \"Allocate %s segment from pool (try %s, %s) done\","}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_44f021fd","line":113,"in_reply_to":"baada198_ded5ea43","updated":"2014-07-18 19:04:19.000000000","message":"Done. nothing to do :)","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"812ccd63488d3f0bfeda0d87c2e9f7e6b3b5aae0","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                          network_type, i, raw_segment)"},{"line_number":111,"context_line":"                count \u003d (session.query(self.model)."},{"line_number":112,"context_line":"                         filter_by(allocated\u003dFalse, **raw_segment)."},{"line_number":113,"context_line":"                         update({\"allocated\": True}))"},{"line_number":114,"context_line":"                if count:"},{"line_number":115,"context_line":"                    LOG.debug("},{"line_number":116,"context_line":"                        \"Allocate %s segment from pool (try %s, %s) done\","}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_ded5ea43","line":113,"in_reply_to":"baada198_fca00144","updated":"2014-07-18 13:41:48.000000000","message":"The matter has been discussed and solved on IRC.\n\nsee log http://eavesdrop.openstack.org/irclogs/%23openstack-neutron/%23openstack-neutron.2014-07-18.log from 2014-07-18T13:05:26 to 2014-07-18T13:38:38","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d382666e0771f775461a76a19330b9d843567647","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                          network_type, i, raw_segment)"},{"line_number":111,"context_line":"                count \u003d (session.query(self.model)."},{"line_number":112,"context_line":"                         filter_by(allocated\u003dFalse, **raw_segment)."},{"line_number":113,"context_line":"                         update({\"allocated\": True}))"},{"line_number":114,"context_line":"                if count:"},{"line_number":115,"context_line":"                    LOG.debug("},{"line_number":116,"context_line":"                        \"Allocate %s segment from pool (try %s, %s) done\","}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_8b5dda4a","line":113,"in_reply_to":"baada198_fca00144","updated":"2014-07-19 15:05:13.000000000","message":"just FYI, postgresql\u0027s default is read committed.\n\nhttp://www.postgresql.org/docs/9.3/static/transaction-iso.html","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"f2b40bb3b14e237b46f3a6634dd26c3a39e9bf6b","unresolved":false,"context_lines":[{"line_number":119,"context_line":""},{"line_number":120,"context_line":"                # Segment allocated since select"},{"line_number":121,"context_line":"                LOG.debug(\"Allocate %s segment from pool (try %s, %s) failed\","},{"line_number":122,"context_line":"                          network_type, i, raw_segment)"}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_d11c0669","line":122,"updated":"2014-07-18 10:02:33.000000000","message":"if max attempts are done an no success was achieved then a LOG.warn statement might be helpful","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"65440b882f312cebe524bf239e19564209ae0755","unresolved":false,"context_lines":[{"line_number":119,"context_line":""},{"line_number":120,"context_line":"                # Segment allocated since select"},{"line_number":121,"context_line":"                LOG.debug(\"Allocate %s segment from pool (try %s, %s) failed\","},{"line_number":122,"context_line":"                          network_type, i, raw_segment)"}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_8496b992","line":122,"in_reply_to":"baada198_d11c0669","updated":"2014-07-18 19:04:19.000000000","message":"Done\n\na new exception has been defined also, otherwise the max attempts case is transformed into a Vlan/Gre/VxlanInUse or NoNetworkAvailable exception.","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"}],"neutron/plugins/ml2/drivers/type_flat.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"abcfe8e16c989028938df418764241f704089a68","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                            \"network %s\"), physical_network)"},{"line_number":111,"context_line":"                alloc \u003d FlatAllocation(physical_network\u003dphysical_network)"},{"line_number":112,"context_line":"                session.add(alloc)"},{"line_number":113,"context_line":"        return segment"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def allocate_tenant_segment(self, session):"},{"line_number":116,"context_line":"        # Tenant flat networks are not supported."}],"source_content_type":"text/x-python","patch_set":14,"id":"1ae5cdf2_66179fa3","line":113,"updated":"2014-06-13 19:43:46.000000000","message":"The value is passed in, why does this need to be returned?","commit_id":"37202635230c7cdbeb500f366cb7f74eff504786"}],"neutron/plugins/ml2/drivers/type_gre.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"ddaaa7a2dec7441ec4932d4b450a4c0b0e295d18","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                alloc \u003d GreAllocation(gre_id\u003dsegmentation_id)"},{"line_number":92,"context_line":"                alloc.allocated \u003d True"},{"line_number":93,"context_line":"                session.add(alloc)"},{"line_number":94,"context_line":"        return segment"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def allocate_tenant_segment(self, session):"},{"line_number":97,"context_line":"        with session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_2867beb8","line":94,"updated":"2014-07-10 13:39:18.000000000","message":"why are you returning this?","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"3a335e5fadf98c3332b0ac93a45b56e9288f8776","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                alloc \u003d GreAllocation(gre_id\u003dsegmentation_id)"},{"line_number":92,"context_line":"                alloc.allocated \u003d True"},{"line_number":93,"context_line":"                session.add(alloc)"},{"line_number":94,"context_line":"        return segment"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def allocate_tenant_segment(self, session):"},{"line_number":97,"context_line":"        with session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_88444a75","line":94,"in_reply_to":"baada198_2867beb8","updated":"2014-07-10 13:51:14.000000000","message":"ML2 plugin has been updated and it expects reserve_provider_segment to return reserved segment.","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"}],"neutron/plugins/ml2/drivers/type_vlan.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"4e9fbca780ad2272a29ee734fa51ff2ac6e5e804","unresolved":false,"context_lines":[{"line_number":231,"context_line":"                inside \u003d False"},{"line_number":232,"context_line":"                for vlan_min, vlan_max in self.network_vlan_ranges.get("},{"line_number":233,"context_line":"                    physical_network, []):"},{"line_number":234,"context_line":"                    if vlan_min \u003c\u003d vlan_id \u003c\u003d vlan_max:"},{"line_number":235,"context_line":"                        inside \u003d True"},{"line_number":236,"context_line":"                        break"},{"line_number":237,"context_line":"                if not inside:"}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_371fed71","line":234,"updated":"2014-06-18 11:36:50.000000000","message":"Instead of L231-247, could use else on for clause and combine log messages, as in:\n\n    for vlan_min, vlan_max in self.network_vlan_range.get(\n        physical_netork, []):\n        if vlan_min \u003c\u003d vlan_id \u003c\u003d vlan_max:\n            direction \u003d \"inside\"\n            break\n    else:\n        direction \u003d \"outside\"\n        session.delete(alloc)\n    LOG.debug(\"Releasing vlan %(vlan_id)s on physical \"\n              \"network %(physical_network)s %(direction)s pool\",\n              {\u0027vlan_id\u0027: vlan_id,\n               \u0027physical_network\u0027: physical_network,\n               \u0027direction\u0027: direction})","commit_id":"64a0ec8569a75de26e4764056ca81e10ea7768c6"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"53c3636a2d8695d05807414930916917f83f7d6c","unresolved":false,"context_lines":[{"line_number":231,"context_line":"                inside \u003d False"},{"line_number":232,"context_line":"                for vlan_min, vlan_max in self.network_vlan_ranges.get("},{"line_number":233,"context_line":"                    physical_network, []):"},{"line_number":234,"context_line":"                    if vlan_min \u003c\u003d vlan_id \u003c\u003d vlan_max:"},{"line_number":235,"context_line":"                        inside \u003d True"},{"line_number":236,"context_line":"                        break"},{"line_number":237,"context_line":"                if not inside:"}],"source_content_type":"text/x-python","patch_set":19,"id":"1ae5cdf2_4bba150c","line":234,"in_reply_to":"1ae5cdf2_371fed71","updated":"2014-06-18 11:37:53.000000000","message":"Ignore, I was comparing to earlier rev and this is not part of change set.","commit_id":"64a0ec8569a75de26e4764056ca81e10ea7768c6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"f2b40bb3b14e237b46f3a6634dd26c3a39e9bf6b","unresolved":false,"context_lines":[{"line_number":194,"context_line":""},{"line_number":195,"context_line":"    def reserve_provider_segment(self, session, segment):"},{"line_number":196,"context_line":"        raw_filters \u003d ((\u0027physical_network\u0027, segment.get(api.PHYSICAL_NETWORK)),"},{"line_number":197,"context_line":"                       (\u0027vlan_id\u0027, segment.get(api.SEGMENTATION_ID)))"},{"line_number":198,"context_line":"        filters \u003d dict((k, v) for k, v in raw_filters if v)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"        if self.is_partial_segment(segment):"}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_ae657346","line":197,"updated":"2014-07-18 10:02:33.000000000","message":"why did you feel the need to define this as tuple and build a dict out of it rather than just building a dict?","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c0937539f16f050859a730c9553d63253d44ad1c","unresolved":false,"context_lines":[{"line_number":194,"context_line":""},{"line_number":195,"context_line":"    def reserve_provider_segment(self, session, segment):"},{"line_number":196,"context_line":"        raw_filters \u003d ((\u0027physical_network\u0027, segment.get(api.PHYSICAL_NETWORK)),"},{"line_number":197,"context_line":"                       (\u0027vlan_id\u0027, segment.get(api.SEGMENTATION_ID)))"},{"line_number":198,"context_line":"        filters \u003d dict((k, v) for k, v in raw_filters if v)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"        if self.is_partial_segment(segment):"}],"source_content_type":"text/x-python","patch_set":21,"id":"baada198_f222e552","line":197,"in_reply_to":"baada198_ae657346","updated":"2014-07-18 13:38:18.000000000","message":"Done","commit_id":"71ef9e71d38684c0c61e4d2629fc11b3abcffc0d"}],"neutron/plugins/ml2/managers.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"7be2639ef5d03c6feed224697b63e96f94790b9e","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def reserve_provider_segment(self, session, segment):"},{"line_number":86,"context_line":"        network_type \u003d segment.get(api.NETWORK_TYPE)"},{"line_number":87,"context_line":"        driver \u003d self.drivers.get(network_type)"},{"line_number":88,"context_line":"        return driver.obj.reserve_provider_segment(session, segment)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    def allocate_tenant_segment(self, session):"},{"line_number":91,"context_line":"        for network_type in self.tenant_network_types:"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FtTo%3D","line":88,"updated":"2014-03-04 15:35:35.000000000","message":"If you want backwards compatibility with drivers whose reserve_provider_segment() returns None, I\u0027d prefer you handle that here rather than in plugin.py. Or you could just update all the type drivers to return a segment. Either way, the driver_api.py doc string for the reserve_provider_segment() method needs to be updated to describe returning the complete segment.","commit_id":"c1754270f985387d32bb12ee7baf23779d5fbd83"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"b338815a8bc0e78725e6de66556ddd15ce9f680a","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def reserve_provider_segment(self, session, segment):"},{"line_number":86,"context_line":"        network_type \u003d segment.get(api.NETWORK_TYPE)"},{"line_number":87,"context_line":"        driver \u003d self.drivers.get(network_type)"},{"line_number":88,"context_line":"        return driver.obj.reserve_provider_segment(session, segment)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    def allocate_tenant_segment(self, session):"},{"line_number":91,"context_line":"        for network_type in self.tenant_network_types:"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fi9E%3D","line":88,"in_reply_to":"AAAAVn%2F%2Fp4o%3D","updated":"2014-03-05 13:54:01.000000000","message":"Done","commit_id":"c1754270f985387d32bb12ee7baf23779d5fbd83"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"59f74a29ca0835313ca7e1cfc0cd8a7c303d9943","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def reserve_provider_segment(self, session, segment):"},{"line_number":86,"context_line":"        network_type \u003d segment.get(api.NETWORK_TYPE)"},{"line_number":87,"context_line":"        driver \u003d self.drivers.get(network_type)"},{"line_number":88,"context_line":"        return driver.obj.reserve_provider_segment(session, segment)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    def allocate_tenant_segment(self, session):"},{"line_number":91,"context_line":"        for network_type in self.tenant_network_types:"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fp4o%3D","line":88,"in_reply_to":"AAAAVn%2F%2FtTo%3D","updated":"2014-03-04 20:36:48.000000000","message":"IMHO, it makes more sense that type_manager.reserve_provider_segment and type drivers share the same interface (always return the provided segment) so let\u0027s got for the 2nd option !","commit_id":"c1754270f985387d32bb12ee7baf23779d5fbd83"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"7be2639ef5d03c6feed224697b63e96f94790b9e","unresolved":false,"context_lines":[{"line_number":361,"context_line":"            if segments:"},{"line_number":362,"context_line":"                for segment in segments:"},{"line_number":363,"context_line":"                    segment \u003d self.type_manager.reserve_provider_segment("},{"line_number":364,"context_line":"                        session, segment) or segment"},{"line_number":365,"context_line":"                    db.add_network_segment(session, network_id, segment)"},{"line_number":366,"context_line":"            else:"},{"line_number":367,"context_line":"                segment \u003d self.type_manager.allocate_tenant_segment(session)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2FtVw%3D","line":364,"updated":"2014-03-04 15:35:35.000000000","message":"Is the \"or segment\" needed here? If we want to support type drivers that return None instead of the segment, I\u0027d prefer to see that handled in TypeManager.reserve_provider_segment().","commit_id":"c1754270f985387d32bb12ee7baf23779d5fbd83"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"b338815a8bc0e78725e6de66556ddd15ce9f680a","unresolved":false,"context_lines":[{"line_number":361,"context_line":"            if segments:"},{"line_number":362,"context_line":"                for segment in segments:"},{"line_number":363,"context_line":"                    segment \u003d self.type_manager.reserve_provider_segment("},{"line_number":364,"context_line":"                        session, segment) or segment"},{"line_number":365,"context_line":"                    db.add_network_segment(session, network_id, segment)"},{"line_number":366,"context_line":"            else:"},{"line_number":367,"context_line":"                segment \u003d self.type_manager.allocate_tenant_segment(session)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fi80%3D","line":364,"in_reply_to":"AAAAVn%2F%2Fp38%3D","updated":"2014-03-05 13:54:01.000000000","message":"Done","commit_id":"c1754270f985387d32bb12ee7baf23779d5fbd83"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"59f74a29ca0835313ca7e1cfc0cd8a7c303d9943","unresolved":false,"context_lines":[{"line_number":361,"context_line":"            if segments:"},{"line_number":362,"context_line":"                for segment in segments:"},{"line_number":363,"context_line":"                    segment \u003d self.type_manager.reserve_provider_segment("},{"line_number":364,"context_line":"                        session, segment) or segment"},{"line_number":365,"context_line":"                    db.add_network_segment(session, network_id, segment)"},{"line_number":366,"context_line":"            else:"},{"line_number":367,"context_line":"                segment \u003d self.type_manager.allocate_tenant_segment(session)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAVn%2F%2Fp38%3D","line":364,"in_reply_to":"AAAAVn%2F%2FtVw%3D","updated":"2014-03-04 20:36:48.000000000","message":"i will remove \"or segment\" and handle it in type manager/drivers","commit_id":"c1754270f985387d32bb12ee7baf23779d5fbd83"}],"neutron/tests/unit/ml2/test_type_vlan.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"0784f8d04ceeb951ae3b5e4a0a400752653801d2","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            with testtools.ExpectedException(exc.InvalidInput):"},{"line_number":85,"context_line":"                self.driver.validate_provider_segment(invalid)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def test_validate_provider_segment_with_allow_partial_specs(self):"},{"line_number":88,"context_line":"        self.config(allow_partial_specs\u003dTrue, group\u003d\u0027ml2\u0027)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        valids \u003d ["}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUX%2F%2FMvQ%3D","line":87,"updated":"2014-02-14 22:51:58.000000000","message":"Is there a test anywhere for allow partial specs, but not using VLAN type (since only VLAN is supported currently)?","commit_id":"f67f68ac8ccfc6b558ae6971a570913ad9570b65"},{"author":{"_account_id":7141,"name":"Sylvain Afchain","email":"safchain@redhat.com","username":"sylvainA"},"change_message_id":"65e6cb7e58a31fb30ce517ca2415ff2af1daf83f","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        self.driver.network_vlan_ranges \u003d UPDATED_VLAN_RANGES"},{"line_number":133,"context_line":"        self.driver._sync_vlan_allocations()"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        segment[api.SEGMENTATION_ID] \u003d VLAN_MIN"},{"line_number":136,"context_line":"        self.assertIsNone(self._get_allocation(self.session, segment))"},{"line_number":137,"context_line":"        segment[api.SEGMENTATION_ID] \u003d VLAN_MIN + 5 - 1"},{"line_number":138,"context_line":"        self.assertIsNone(self._get_allocation(self.session, segment))"}],"source_content_type":"text/x-python","patch_set":10,"id":"7adec928_7e02d8b4","line":135,"updated":"2014-05-19 10:04:24.000000000","message":"It seems you are testing the same thing for the  UPDATED_VLAN_RANGES and NETWORK_VLAN_RANGES, so there is some redundant code here, what about introducing a function/loop two test both of them ?","commit_id":"31ec97ada5bd30b3b0a20e0a085ac764671940dc"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6332eedefcbc752e5d0f8760904a4fd47a847f32","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        self.driver.network_vlan_ranges \u003d UPDATED_VLAN_RANGES"},{"line_number":133,"context_line":"        self.driver._sync_vlan_allocations()"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        segment[api.SEGMENTATION_ID] \u003d VLAN_MIN"},{"line_number":136,"context_line":"        self.assertIsNone(self._get_allocation(self.session, segment))"},{"line_number":137,"context_line":"        segment[api.SEGMENTATION_ID] \u003d VLAN_MIN + 5 - 1"},{"line_number":138,"context_line":"        self.assertIsNone(self._get_allocation(self.session, segment))"}],"source_content_type":"text/x-python","patch_set":10,"id":"7adec928_a89bfb70","line":135,"in_reply_to":"7adec928_7e02d8b4","updated":"2014-05-21 15:20:16.000000000","message":"Done","commit_id":"31ec97ada5bd30b3b0a20e0a085ac764671940dc"},{"author":{"_account_id":7141,"name":"Sylvain Afchain","email":"safchain@redhat.com","username":"sylvainA"},"change_message_id":"65e6cb7e58a31fb30ce517ca2415ff2af1daf83f","unresolved":false,"context_lines":[{"line_number":193,"context_line":"            self.assertEqual(p_const.TYPE_VLAN, segment[api.NETWORK_TYPE])"},{"line_number":194,"context_line":"            self.assertEqual(TENANT_NET, segment[api.PHYSICAL_NETWORK])"},{"line_number":195,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":196,"context_line":"            self.assertThat(vlan_id, matchers.GreaterThan(VLAN_MIN - 1))"},{"line_number":197,"context_line":"            self.assertThat(vlan_id, matchers.LessThan(VLAN_MAX + 1))"},{"line_number":198,"context_line":"            alloc \u003d self._get_allocation(self.session, segment)"},{"line_number":199,"context_line":"            self.assertTrue(alloc.allocated)"}],"source_content_type":"text/x-python","patch_set":10,"id":"7adec928_3ed13023","line":196,"updated":"2014-05-19 10:04:24.000000000","message":"Why not : self.assertGreaterEqual(vlan_id, VLAN_MIN)","commit_id":"31ec97ada5bd30b3b0a20e0a085ac764671940dc"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6332eedefcbc752e5d0f8760904a4fd47a847f32","unresolved":false,"context_lines":[{"line_number":193,"context_line":"            self.assertEqual(p_const.TYPE_VLAN, segment[api.NETWORK_TYPE])"},{"line_number":194,"context_line":"            self.assertEqual(TENANT_NET, segment[api.PHYSICAL_NETWORK])"},{"line_number":195,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":196,"context_line":"            self.assertThat(vlan_id, matchers.GreaterThan(VLAN_MIN - 1))"},{"line_number":197,"context_line":"            self.assertThat(vlan_id, matchers.LessThan(VLAN_MAX + 1))"},{"line_number":198,"context_line":"            alloc \u003d self._get_allocation(self.session, segment)"},{"line_number":199,"context_line":"            self.assertTrue(alloc.allocated)"}],"source_content_type":"text/x-python","patch_set":10,"id":"7adec928_88c71f64","line":196,"in_reply_to":"7adec928_3ed13023","updated":"2014-05-21 15:20:16.000000000","message":"I remember why ... because python2.6 does not support it :) ... arf","commit_id":"31ec97ada5bd30b3b0a20e0a085ac764671940dc"},{"author":{"_account_id":7141,"name":"Sylvain Afchain","email":"safchain@redhat.com","username":"sylvainA"},"change_message_id":"65e6cb7e58a31fb30ce517ca2415ff2af1daf83f","unresolved":false,"context_lines":[{"line_number":194,"context_line":"            self.assertEqual(TENANT_NET, segment[api.PHYSICAL_NETWORK])"},{"line_number":195,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":196,"context_line":"            self.assertThat(vlan_id, matchers.GreaterThan(VLAN_MIN - 1))"},{"line_number":197,"context_line":"            self.assertThat(vlan_id, matchers.LessThan(VLAN_MAX + 1))"},{"line_number":198,"context_line":"            alloc \u003d self._get_allocation(self.session, segment)"},{"line_number":199,"context_line":"            self.assertTrue(alloc.allocated)"},{"line_number":200,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"7adec928_feaa6883","line":197,"updated":"2014-05-19 10:04:24.000000000","message":"ditto","commit_id":"31ec97ada5bd30b3b0a20e0a085ac764671940dc"},{"author":{"_account_id":7141,"name":"Sylvain Afchain","email":"safchain@redhat.com","username":"sylvainA"},"change_message_id":"65e6cb7e58a31fb30ce517ca2415ff2af1daf83f","unresolved":false,"context_lines":[{"line_number":221,"context_line":"        self.driver.release_segment(self.session, segment)"},{"line_number":222,"context_line":"        segment \u003d self.driver.allocate_tenant_segment(self.session)"},{"line_number":223,"context_line":"        vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":224,"context_line":"        self.assertThat(vlan_id, matchers.GreaterThan(VLAN_MIN - 1))"},{"line_number":225,"context_line":"        self.assertThat(vlan_id, matchers.LessThan(VLAN_MAX + 1))"},{"line_number":226,"context_line":"        vlan_ids.append(vlan_id)"},{"line_number":227,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"7adec928_1eae3498","line":224,"updated":"2014-05-19 10:04:24.000000000","message":"ditto","commit_id":"31ec97ada5bd30b3b0a20e0a085ac764671940dc"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"abcfe8e16c989028938df418764241f704089a68","unresolved":false,"context_lines":[{"line_number":187,"context_line":"            self.assertEqual(p_const.TYPE_VLAN, segment[api.NETWORK_TYPE])"},{"line_number":188,"context_line":"            self.assertEqual(TENANT_NET, segment[api.PHYSICAL_NETWORK])"},{"line_number":189,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":190,"context_line":"            self.assertTrue(vlan_id \u003e\u003d VLAN_MIN)"},{"line_number":191,"context_line":"            self.assertTrue(vlan_id \u003c\u003d VLAN_MAX)"},{"line_number":192,"context_line":"            alloc \u003d self._get_allocation(self.session, segment)"},{"line_number":193,"context_line":"            self.assertTrue(alloc.allocated)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1ae5cdf2_e6500f60","line":190,"updated":"2014-06-13 19:43:46.000000000","message":"self.assertThat(vlan_id, matchers.GreaterThan(VLAN_MIN-1))","commit_id":"37202635230c7cdbeb500f366cb7f74eff504786"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"56639718ef9a6624cd1904ccc9856834609ea072","unresolved":false,"context_lines":[{"line_number":187,"context_line":"            self.assertEqual(p_const.TYPE_VLAN, segment[api.NETWORK_TYPE])"},{"line_number":188,"context_line":"            self.assertEqual(TENANT_NET, segment[api.PHYSICAL_NETWORK])"},{"line_number":189,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":190,"context_line":"            self.assertTrue(vlan_id \u003e\u003d VLAN_MIN)"},{"line_number":191,"context_line":"            self.assertTrue(vlan_id \u003c\u003d VLAN_MAX)"},{"line_number":192,"context_line":"            alloc \u003d self._get_allocation(self.session, segment)"},{"line_number":193,"context_line":"            self.assertTrue(alloc.allocated)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1ae5cdf2_15751bf9","line":190,"in_reply_to":"1ae5cdf2_e6500f60","updated":"2014-06-13 22:53:11.000000000","message":"Will do","commit_id":"37202635230c7cdbeb500f366cb7f74eff504786"}]}
