)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Arvind Somya \u003casomya@cisco.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-08-14 18:13:05 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"ML2 Type driver refactor"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This commit refactors the ML2 type driver architecture to allow"},{"line_number":10,"context_line":"dynamic segments."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"7ac7a964_01a65e53","line":7,"updated":"2014-08-15 17:24:55.000000000","message":"This patch should be named something like \"ML2 support for dynamic segments\".","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":7,"context_line":"ML2 Type driver refactor"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This commit refactors the ML2 type driver architecture to allow"},{"line_number":10,"context_line":"dynamic segments."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I5d2075c4d053b689d6d7603b4b191c68d0974cbe"},{"line_number":13,"context_line":"Implements: Blueprint ml2-type-driver-refactor"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"7ac7a964_017d7eb1","line":10,"updated":"2014-08-15 17:24:55.000000000","message":"The point of this patch is to implement dynamic segments. If some refactoring was necessary to do this, it may be worth mentioning here. But keep the focus on the reason for the patch.","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"}],"neutron/db/migration/alembic_migrations/versions/1f729449ce5f_ml2_type_driver_refactor_dynamic_.py":[{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"25025c3c5b9dd98d71be81dbd390f56bf2a83b16","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        return"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    op.add_column(\u0027ml2_network_segments\u0027,"},{"line_number":43,"context_line":"                  sa.Column(\u0027dynamic_segment\u0027, sa.Boolean(), default\u003dFalse,"},{"line_number":44,"context_line":"                  nullable\u003dFalse))"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    op.add_column(\u0027ml2_network_segments\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_c7e757e3","line":43,"updated":"2014-08-18 13:52:12.000000000","message":"\u0027default\u0027 has no meaning in migrations. Use server_default\u003dsa.sql.false() instead.","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"}],"neutron/db/migration/alembic_migrations/versions/5000fdb81ccd_ml2_type_driver_refactor.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"46d696a123de1c871ff6cc4969353e82b913cc5b","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":42,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":43,"context_line":"        return"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    ### commands auto generated by Alembic - please adjust! ###"},{"line_number":46,"context_line":"    op.drop_table(\u0027ml2_gre_allocations\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_839b6f63","line":43,"updated":"2014-08-06 15:44:47.000000000","message":"This migration is completely wrong. I\u0027d try generating it again after rebasing with master, and being sure to follow the current process. \n\nAlso, in addition to the generated code that modifies the schema, you will need to add code by hand to move data from the removed columns of the segment table to the new tables.","commit_id":"87de5e41481b15b202ec531680f5958a9a2cb0f6"}],"neutron/db/migration/alembic_migrations/versions/HEAD":[{"author":{"_account_id":5892,"name":"pritesh","email":"pritesh@romana.io","username":"pritkoth"},"change_message_id":"9ee150b97d052caa42afc6fc1b177990dfa705e1","unresolved":false,"context_lines":[{"line_number":2,"context_line":"37f322991f59"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":"5000fdb81ccd"},{"line_number":5,"context_line":"\u003e\u003e\u003e\u003e\u003e\u003e\u003e 2ee8b89... ML2 Type driver refactor"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"baada198_17117204","line":5,"updated":"2014-07-29 18:40:59.000000000","message":"merge conflict ?, just needs to be id here.","commit_id":"87de5e41481b15b202ec531680f5958a9a2cb0f6"}],"neutron/plugins/ml2/db.py":[{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"2fd4c07d1d9cc3f3a42cddbe05d32f2a625937ff","unresolved":false,"context_lines":[{"line_number":40,"context_line":"            physical_network\u003dsegment.get(api.PHYSICAL_NETWORK),"},{"line_number":41,"context_line":"            segmentation_id\u003dsegment.get(api.SEGMENTATION_ID),"},{"line_number":42,"context_line":"            dynamic_segment\u003dsegment.get(api.DYNAMIC_SEGMENT),"},{"line_number":43,"context_line":"            multicast_group\u003dsegment.get(api.MULTICAST_GROUP)"},{"line_number":44,"context_line":"        )"},{"line_number":45,"context_line":"        session.add(record)"},{"line_number":46,"context_line":"    LOG.info(_(\"Added segment %(id)s of type %(network_type)s for network\""}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_96f9c882","line":43,"updated":"2014-08-15 23:35:24.000000000","message":"What is this multicast group for?","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":53,"context_line":"def get_network_segments(session, network_id):"},{"line_number":54,"context_line":"    with session.begin(subtransactions\u003dTrue):"},{"line_number":55,"context_line":"        records \u003d (session.query(models.NetworkSegment)."},{"line_number":56,"context_line":"                   filter_by(network_id\u003dnetwork_id))"},{"line_number":57,"context_line":"        return [{api.ID: record.id,"},{"line_number":58,"context_line":"                 api.NETWORK_TYPE: record.network_type,"},{"line_number":59,"context_line":"                 api.PHYSICAL_NETWORK: record.physical_network,"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_f3e21900","line":56,"updated":"2014-08-15 17:24:55.000000000","message":"Doesn\u0027t this need a filter_by that ensures only the static segments are returned?","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"2fd4c07d1d9cc3f3a42cddbe05d32f2a625937ff","unresolved":false,"context_lines":[{"line_number":59,"context_line":"                 api.PHYSICAL_NETWORK: record.physical_network,"},{"line_number":60,"context_line":"                 api.SEGMENTATION_ID: record.segmentation_id,"},{"line_number":61,"context_line":"                 api.DYNAMIC_SEGMENT: record.dynamic_segment,"},{"line_number":62,"context_line":"                 api.MULTICAST_GROUP: record.multicast_group}"},{"line_number":63,"context_line":"                for record in records]"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_56001067","line":62,"updated":"2014-08-15 23:35:24.000000000","message":"ditto","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"7a9eef598966daf3d12ee9810b4ed791ceea1f50","unresolved":false,"context_lines":[{"line_number":80,"context_line":"def delete_network_segment(session, segment_id):"},{"line_number":81,"context_line":"    with session.begin(subtransactions\u003dTrue):"},{"line_number":82,"context_line":"        (session.query(models.NetworkSegment)."},{"line_number":83,"context_line":"         filter_by(id\u003dsegment_id)).delete"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"def add_port_binding(session, port_id):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_711721ee","line":83,"updated":"2014-08-18 11:58:57.000000000","message":"it should be:\n\n  filter_by(id\u003dsegment_id).delete())","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"}],"neutron/plugins/ml2/driver_api.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":25,"context_line":"NETWORK_TYPE \u003d \u0027network_type\u0027"},{"line_number":26,"context_line":"PHYSICAL_NETWORK \u003d \u0027physical_network\u0027"},{"line_number":27,"context_line":"SEGMENTATION_ID \u003d \u0027segmentation_id\u0027"},{"line_number":28,"context_line":"MULTICAST_GROUP \u003d \u0027multicast_group\u0027"},{"line_number":29,"context_line":"DYNAMIC_SEGMENT \u003d \u0027dynamic_segment\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_53066dcf","line":28,"updated":"2014-08-15 17:24:55.000000000","message":"What does \u0027multicast_group\u0027 have to do with this patch?","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"2fd4c07d1d9cc3f3a42cddbe05d32f2a625937ff","unresolved":false,"context_lines":[{"line_number":25,"context_line":"NETWORK_TYPE \u003d \u0027network_type\u0027"},{"line_number":26,"context_line":"PHYSICAL_NETWORK \u003d \u0027physical_network\u0027"},{"line_number":27,"context_line":"SEGMENTATION_ID \u003d \u0027segmentation_id\u0027"},{"line_number":28,"context_line":"MULTICAST_GROUP \u003d \u0027multicast_group\u0027"},{"line_number":29,"context_line":"DYNAMIC_SEGMENT \u003d \u0027dynamic_segment\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_76118cab","line":28,"in_reply_to":"7ac7a964_53066dcf","updated":"2014-08-15 23:35:24.000000000","message":"I just wrote the same comment in other file about multicast group. I did not believe it was part of this feature","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":26,"context_line":"PHYSICAL_NETWORK \u003d \u0027physical_network\u0027"},{"line_number":27,"context_line":"SEGMENTATION_ID \u003d \u0027segmentation_id\u0027"},{"line_number":28,"context_line":"MULTICAST_GROUP \u003d \u0027multicast_group\u0027"},{"line_number":29,"context_line":"DYNAMIC_SEGMENT \u003d \u0027dynamic_segment\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"@six.add_metaclass(abc.ABCMeta)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_f31bf919","line":29,"updated":"2014-08-15 17:24:55.000000000","message":"Does this imply that this is a property of the segment visible via the multiprovidernet API? My thinking is that only static segments would be exposed through that API.","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        \"\"\""},{"line_number":139,"context_line":"        pass"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def allocate_dynamic_segment(self, network_id, physnet):"},{"line_number":142,"context_line":"        \"\"\"Allocate a dynamic segment."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        :param network_id: UUID of the network"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_f36db99a","line":141,"updated":"2014-08-15 17:24:55.000000000","message":"Please don\u0027t hard-wire this for a specific network type. I think it should look and work a lot like the existing reserve_provider_segment() call, and maybe that same API would work. Why do the type drivers need to know that the segment is dynamic?","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":354,"context_line":"        \"\"\""},{"line_number":355,"context_line":"        pass"},{"line_number":356,"context_line":""},{"line_number":357,"context_line":"    def allocate_dynamic_segment(self):"},{"line_number":358,"context_line":"        \"\"\"Allocate a dynamic segment for the port.\"\"\""},{"line_number":359,"context_line":"        pass"},{"line_number":360,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_93f485f3","line":357,"updated":"2014-08-15 17:24:55.000000000","message":"Seems to me that the network_type always needs to be specified and, at least for VLAN segments, the physical_network need to be passed in as well. Maybe a dictionary should be passed in that contains any needed segment attributes, just like when creating a fully or partially specified provider network.","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"2fd4c07d1d9cc3f3a42cddbe05d32f2a625937ff","unresolved":false,"context_lines":[{"line_number":354,"context_line":"        \"\"\""},{"line_number":355,"context_line":"        pass"},{"line_number":356,"context_line":""},{"line_number":357,"context_line":"    def allocate_dynamic_segment(self):"},{"line_number":358,"context_line":"        \"\"\"Allocate a dynamic segment for the port.\"\"\""},{"line_number":359,"context_line":"        pass"},{"line_number":360,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_96dc68e6","line":357,"in_reply_to":"7ac7a964_93f485f3","updated":"2014-08-15 23:35:24.000000000","message":"I think we should pass the dict to which this newly allocated segment is added","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"}],"neutron/plugins/ml2/driver_context.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        for agent in self.agents:"},{"line_number":159,"context_line":"            physnet \u003d agent[\u0027configurations\u0027][\u0027bridge_mappings\u0027].keys()[0]"},{"line_number":160,"context_line":"            self._plugin.type_manager.allocate_dynamic_segment("},{"line_number":161,"context_line":"                self._plugin_context, network_id, physnet)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"        self._network_context._segments \u003d db.get_network_segments("},{"line_number":164,"context_line":"            self._plugin_context.session, network_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_f33a1933","line":161,"updated":"2014-08-15 17:24:55.000000000","message":"You cannot assume that the host-level mechanism driver is openvswitch. This logic does not belong here.","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"}],"neutron/plugins/ml2/drivers/type_driver_common.py":[{"author":{"_account_id":5892,"name":"pritesh","email":"pritesh@romana.io","username":"pritkoth"},"change_message_id":"9ee150b97d052caa42afc6fc1b177990dfa705e1","unresolved":false,"context_lines":[{"line_number":1,"context_line":"from neutron.api.v2 import attributes"},{"line_number":2,"context_line":"from neutron.extensions import multiprovidernet as mpnet"},{"line_number":3,"context_line":"from neutron.extensions import providernet as provider"},{"line_number":4,"context_line":"from neutron.plugins.ml2 import driver_api as api"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_77162ef4","line":1,"updated":"2014-07-29 18:40:59.000000000","message":"no apache license here ?","commit_id":"87de5e41481b15b202ec531680f5958a9a2cb0f6"}],"neutron/plugins/ml2/drivers/type_gre.py":[{"author":{"_account_id":5892,"name":"pritesh","email":"pritesh@romana.io","username":"pritkoth"},"change_message_id":"9ee150b97d052caa42afc6fc1b177990dfa705e1","unresolved":false,"context_lines":[{"line_number":126,"context_line":"            return [self.allocate_tenant_segment(session, net_id)]"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    def get_segment(self, context, network_id):"},{"line_number":129,"context_line":"        LOG.debug(_(\"Returning segments for network %s\") % network_id)"},{"line_number":130,"context_line":"        alloc \u003d (context.session.query(GreAllocation)."},{"line_number":131,"context_line":"                 filter_by(network_id\u003dnetwork_id).one())"},{"line_number":132,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_57e04af8","line":129,"updated":"2014-07-29 18:40:59.000000000","message":"no debug log translations.","commit_id":"87de5e41481b15b202ec531680f5958a9a2cb0f6"},{"author":{"_account_id":5892,"name":"pritesh","email":"pritesh@romana.io","username":"pritkoth"},"change_message_id":"9ee150b97d052caa42afc6fc1b177990dfa705e1","unresolved":false,"context_lines":[{"line_number":145,"context_line":"                gre_id \u003d alloc[\u0027gre_id\u0027]"},{"line_number":146,"context_line":"                for lo, hi in self.gre_id_ranges:"},{"line_number":147,"context_line":"                    if lo \u003c\u003d gre_id \u003c\u003d hi:"},{"line_number":148,"context_line":"                        LOG.debug(_(\"Releasing gre tunnel %s to pool\"),"},{"line_number":149,"context_line":"                                  gre_id)"},{"line_number":150,"context_line":"                        break"},{"line_number":151,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_b7b606fb","line":148,"updated":"2014-07-29 18:40:59.000000000","message":"same here.","commit_id":"87de5e41481b15b202ec531680f5958a9a2cb0f6"},{"author":{"_account_id":5892,"name":"pritesh","email":"pritesh@romana.io","username":"pritkoth"},"change_message_id":"9ee150b97d052caa42afc6fc1b177990dfa705e1","unresolved":false,"context_lines":[{"line_number":150,"context_line":"                        break"},{"line_number":151,"context_line":"                else:"},{"line_number":152,"context_line":"                    session.delete(alloc)"},{"line_number":153,"context_line":"                    LOG.debug(_(\"Releasing gre tunnel %s outside pool\"),"},{"line_number":154,"context_line":"                              gre_id)"},{"line_number":155,"context_line":"            except sa_exc.NoResultFound:"},{"line_number":156,"context_line":"                LOG.warning(_(\"gre_id %s not found\"), gre_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_17b6d2f9","line":153,"updated":"2014-07-29 18:40:59.000000000","message":"here.","commit_id":"87de5e41481b15b202ec531680f5958a9a2cb0f6"}],"neutron/plugins/ml2/drivers/type_vlan.py":[{"author":{"_account_id":5892,"name":"pritesh","email":"pritesh@romana.io","username":"pritkoth"},"change_message_id":"9ee150b97d052caa42afc6fc1b177990dfa705e1","unresolved":false,"context_lines":[{"line_number":185,"context_line":"            return [self.allocate_tenant_segment(session, net_id)]"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def get_segment(self, context, network_id):"},{"line_number":188,"context_line":"        LOG.debug(_(\"Returning segments for network %s\") % network_id)"},{"line_number":189,"context_line":"        alloc \u003d (context.session.query(VlanAllocation)."},{"line_number":190,"context_line":"                 filter_by(network_id\u003dnetwork_id).one())"},{"line_number":191,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_97982277","line":188,"updated":"2014-07-29 18:40:59.000000000","message":"here.","commit_id":"87de5e41481b15b202ec531680f5958a9a2cb0f6"},{"author":{"_account_id":5892,"name":"pritesh","email":"pritesh@romana.io","username":"pritkoth"},"change_message_id":"9ee150b97d052caa42afc6fc1b177990dfa705e1","unresolved":false,"context_lines":[{"line_number":192,"context_line":"        return {api.NETWORK_TYPE: p_const.TYPE_VLAN,"},{"line_number":193,"context_line":"                api.PHYSICAL_NETWORK: alloc.physical_network,"},{"line_number":194,"context_line":"                api.SEGMENTATION_ID: alloc.vlan_id}"},{"line_number":195,"context_line":"        "},{"line_number":196,"context_line":"    def validate_provider_segment(self, segment):"},{"line_number":197,"context_line":"        physical_network \u003d segment.get(api.PHYSICAL_NETWORK)"},{"line_number":198,"context_line":"        segmentation_id \u003d segment.get(api.SEGMENTATION_ID)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_7772ae4b","line":195,"updated":"2014-07-29 18:40:59.000000000","message":"spurious tab here.","commit_id":"87de5e41481b15b202ec531680f5958a9a2cb0f6"},{"author":{"_account_id":5892,"name":"pritesh","email":"pritesh@romana.io","username":"pritkoth"},"change_message_id":"9ee150b97d052caa42afc6fc1b177990dfa705e1","unresolved":false,"context_lines":[{"line_number":275,"context_line":"                    break"},{"line_number":276,"context_line":"            if not inside:"},{"line_number":277,"context_line":"                session.delete(alloc)"},{"line_number":278,"context_line":"                LOG.debug(_(\"Releasing vlan %(vlan_id)s on physical \""},{"line_number":279,"context_line":"                            \"network %(physical_network)s outside pool\"),"},{"line_number":280,"context_line":"                            {\u0027vlan_id\u0027: vlan_id,"},{"line_number":281,"context_line":"                             \u0027physical_network\u0027: physical_network})"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_d790da44","line":278,"updated":"2014-07-29 18:40:59.000000000","message":"no debug log translations.","commit_id":"87de5e41481b15b202ec531680f5958a9a2cb0f6"}],"neutron/plugins/ml2/managers.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                segments,"},{"line_number":115,"context_line":"                self.is_partial_segment)"},{"line_number":116,"context_line":"            return segments"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def initialize(self):"},{"line_number":119,"context_line":"        for network_type, driver in self.drivers.iteritems():"},{"line_number":120,"context_line":"            LOG.info(_(\"Initializing driver for type \u0027%s\u0027\"), network_type)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_13fdd53a","line":117,"updated":"2014-08-15 17:24:55.000000000","message":"Moving the above code here probably does make sense, and may or may not be necessary for this patch. But moving the code makes it very difficult for reviews to see what changes are being made in that same code.\n\nI\u0027d suggest that you split this refactoring into a separate patch, either before or after the patch adding dynamic segment support.","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":129,"context_line":"            msg \u003d _(\"network_type value \u0027%s\u0027 not supported\") % network_type"},{"line_number":130,"context_line":"            raise exc.InvalidInput(error_message\u003dmsg)"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    def create_network(self, context, network, tenant_id):"},{"line_number":133,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        session \u003d context.session"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_73c0c9e0","line":132,"updated":"2014-08-15 17:24:55.000000000","message":"Maybe call this create_network_segments() so its not confused with the create_network() in the plugin itself.","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"}],"neutron/plugins/ml2/models.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"46d696a123de1c871ff6cc4969353e82b913cc5b","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    network_id \u003d sa.Column(sa.String(36),"},{"line_number":37,"context_line":"                           sa.ForeignKey(\u0027networks.id\u0027, ondelete\u003d\"CASCADE\"),"},{"line_number":38,"context_line":"                           nullable\u003dFalse)"},{"line_number":39,"context_line":"    segment_type \u003d sa.Column(sa.String(255), nullable\u003dFalse)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class PortBinding(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_03de7f10","line":39,"updated":"2014-08-06 15:44:47.000000000","message":"I think we also need a boolean column to record whether the segment is static or dynamic.","commit_id":"87de5e41481b15b202ec531680f5958a9a2cb0f6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"25025c3c5b9dd98d71be81dbd390f56bf2a83b16","unresolved":false,"context_lines":[{"line_number":39,"context_line":"    network_type \u003d sa.Column(sa.String(32), nullable\u003dFalse)"},{"line_number":40,"context_line":"    physical_network \u003d sa.Column(sa.String(64))"},{"line_number":41,"context_line":"    segmentation_id \u003d sa.Column(sa.Integer)"},{"line_number":42,"context_line":"    dynamic_segment \u003d sa.Column(sa.Boolean, default\u003dFalse)"},{"line_number":43,"context_line":"    multicast_group \u003d sa.Column(sa.String(64), nullable\u003dTrue)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_f367b1e8","line":42,"updated":"2014-08-18 13:52:12.000000000","message":"Add server_default\u003dsa.sql.false()","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    physical_network \u003d sa.Column(sa.String(64))"},{"line_number":41,"context_line":"    segmentation_id \u003d sa.Column(sa.Integer)"},{"line_number":42,"context_line":"    dynamic_segment \u003d sa.Column(sa.Boolean, default\u003dFalse)"},{"line_number":43,"context_line":"    multicast_group \u003d sa.Column(sa.String(64), nullable\u003dTrue)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"class PortBinding(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_61b71287","line":43,"updated":"2014-08-15 17:24:55.000000000","message":"What does multicast_group have to do with adding support for dynamic segments? Shouldn\u0027t that be a separate patch, probably with its own DB?","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e7975b542e912a37c2cd6d9aa14cced5b9c9eba7","unresolved":false,"context_lines":[{"line_number":475,"context_line":"            self._ensure_default_security_group(context, tenant_id)"},{"line_number":476,"context_line":"            result \u003d super(Ml2Plugin, self).create_network(context, network)"},{"line_number":477,"context_line":"            self._process_l3_create(context, result, net_data)"},{"line_number":478,"context_line":"            self.type_manager.create_network(context, result, tenant_id)"},{"line_number":479,"context_line":"            self._extend_network_dict_provider(context, result)"},{"line_number":480,"context_line":"            mech_context \u003d driver_context.NetworkContext(self, context,"},{"line_number":481,"context_line":"                                                         result)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_93456572","line":478,"updated":"2014-08-15 17:24:55.000000000","message":"Since you are calling this within a transaction, why not pass that session into this function rather than have the function start its own transaction.","commit_id":"9d637381c5d007a0d45b229ab988cb57742a11fb"}]}
