)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f8db6dffe830d19d0b79103c1ade9ad6e7ff3a3f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Robert Kukura \u003ckukura@noironetworks.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-09-02 12:09:15 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"ML2: Driver API changes for hierarchical port binding"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The following ML2 driver API changes are required to support"},{"line_number":10,"context_line":"hierarchical port binding:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"fa98f980_5c402534","line":7,"updated":"2014-09-03 02:28:24.000000000","message":"I found that most of the concepts expressed in the blueprint lacking here in this series of patches. For instance, I could not see how:\n\nport_binding_drivers\n\nHas been introduced. Also the blueprint mentioned that documentation will follow, but I have seen no DocImpact flag anywhere.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"7c91b8ce40c073f072897bb7ba4df16d0d665a7c","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Robert Kukura \u003ckukura@noironetworks.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-09-02 12:09:15 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"ML2: Driver API changes for hierarchical port binding"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The following ML2 driver API changes are required to support"},{"line_number":10,"context_line":"hierarchical port binding:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"fa98f980_f7dbb24c","line":7,"in_reply_to":"fa98f980_5c402534","updated":"2014-09-03 03:38:14.000000000","message":"The commit message for the third patch mentions that it turned out the port_binding_drivers config variable was not necessary.\n\nWith no new config variable, there is really no need for a DocImpact flag.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c4892543cc754fabf74f409ba66c49a1c38b6e4c","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Robert Kukura \u003ckukura@noironetworks.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-09-02 12:09:15 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"ML2: Driver API changes for hierarchical port binding"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The following ML2 driver API changes are required to support"},{"line_number":10,"context_line":"hierarchical port binding:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"fa98f980_d26940bf","line":7,"in_reply_to":"fa98f980_f7dbb24c","updated":"2014-09-03 17:55:06.000000000","message":"Ok, we need to rectify the blueprint then.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"}],"neutron/plugins/ml2/driver_api.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"2f23a18269bd3c3f9f71ff950cee7e29b16921d2","unresolved":false,"context_lines":[{"line_number":335,"context_line":""},{"line_number":336,"context_line":"    @abc.abstractmethod"},{"line_number":337,"context_line":"    def host_agents(self, agent_type):"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"        \"\"\"Get agents of the specified type on port\u0027s host."},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"        :param agent_type: Agent type identifier"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_cf811791","line":338,"updated":"2014-08-18 21:34:32.000000000","message":"I\u0027ve removed this extraneous empty line.","commit_id":"9006df65ee9b8e7c46d64c222b18881f0477abf9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f8db6dffe830d19d0b79103c1ade9ad6e7ff3a3f","unresolved":false,"context_lines":[{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        Return the currently bound segment dictionaries, or None if"},{"line_number":267,"context_line":"        the port is unbound. In the case of a hierarchical binding,"},{"line_number":268,"context_line":"        the bound static segment is returned first, followed by"},{"line_number":269,"context_line":"        dynamic segments, with the lowest-level bound segment last."},{"line_number":270,"context_line":"        \"\"\""},{"line_number":271,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_b133fa12","line":268,"updated":"2014-09-03 02:28:24.000000000","message":"can we exemplify here what static vs dynamic mean and also what do you mean by lowest-level? I think it would be a very useful for other developers.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"0f11039237171fb3ac86023b0eaeaca03ec29f5d","unresolved":false,"context_lines":[{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        Return the currently bound segment dictionaries, or None if"},{"line_number":267,"context_line":"        the port is unbound. In the case of a hierarchical binding,"},{"line_number":268,"context_line":"        the bound static segment is returned first, followed by"},{"line_number":269,"context_line":"        dynamic segments, with the lowest-level bound segment last."},{"line_number":270,"context_line":"        \"\"\""},{"line_number":271,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_edae652d","line":268,"in_reply_to":"fa98f980_126028ce","updated":"2014-09-04 17:57:49.000000000","message":"Static vs. dynamic is related to the hierarchy levels, but is not exactly the same distinction. The highest-level/top-level/first/initial binding always uses a static segment. Any additional levels of the binding will use dynamic segments. \n\nWe had originally sometime been using \"global\" and \"local\" but settled on the terms \"static\" and \"dynamic\" instead to describe the segments. The static segments aren\u0027t really necessarily global (multi-segment networks can have different static segments in different places), and \"local\" is hard to define precisely here. The static/dynamic segment terminology is already used in the TypeDriver API, the TypeManager, and the PortContext, so I don\u0027t think its realistic to change this now. \n\nI would be happy to adopt some better terminology for the directions in the binding hierarchy if anyone has any ideas. To me, \"low\" or \"bottom\" signifies host level, but has to be more general than \"host\" to cover things like agents\u0027 ports and external attachment points. And \"high\" or \"top\" seems intuitive for things like top-of-rack switches. Again, any standard data center architecture terminology that could be applied here would be welcome. Otherwise I think we are OK sticking with \"high\", \"higher\", \"top\", and \"low\", \"lower\", and \"bottom\" for the levels of the hierarchy, and make sure this is clearly explained in docstrings and any other developer documentation.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c4892543cc754fabf74f409ba66c49a1c38b6e4c","unresolved":false,"context_lines":[{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        Return the currently bound segment dictionaries, or None if"},{"line_number":267,"context_line":"        the port is unbound. In the case of a hierarchical binding,"},{"line_number":268,"context_line":"        the bound static segment is returned first, followed by"},{"line_number":269,"context_line":"        dynamic segments, with the lowest-level bound segment last."},{"line_number":270,"context_line":"        \"\"\""},{"line_number":271,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_126028ce","line":268,"in_reply_to":"fa98f980_1f868c13","updated":"2014-09-03 17:55:06.000000000","message":"That\u0027s why I am confused.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d87c0004b050eb871c1a418038cad9de4f7254b8","unresolved":false,"context_lines":[{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        Return the currently bound segment dictionaries, or None if"},{"line_number":267,"context_line":"        the port is unbound. In the case of a hierarchical binding,"},{"line_number":268,"context_line":"        the bound static segment is returned first, followed by"},{"line_number":269,"context_line":"        dynamic segments, with the lowest-level bound segment last."},{"line_number":270,"context_line":"        \"\"\""},{"line_number":271,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_1f868c13","line":268,"in_reply_to":"fa98f980_b133fa12","updated":"2014-09-03 06:29:19.000000000","message":"It seems static/dynamic is not a very appropriate wording. In my understanding, the segments are listed in the order of the hierarchy, from highest level segment to lowest-level segment. static/dynamic just comes from usecases.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f8db6dffe830d19d0b79103c1ade9ad6e7ff3a3f","unresolved":false,"context_lines":[{"line_number":324,"context_line":"        pass"},{"line_number":325,"context_line":""},{"line_number":326,"context_line":"    @abc.abstractproperty"},{"line_number":327,"context_line":"    def segments_to_bind(self):"},{"line_number":328,"context_line":"        \"\"\"Return the list of segments to which to bind the port."},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"        Return the list of segments dictionaries to which the"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_5c1f4508","line":327,"updated":"2014-09-03 02:28:24.000000000","message":"I would be OK with these API changes, if not for the fact that they are kind of awkward; let me explain: initially when all these properties where scalars, it kind of made sense to keep them separate, you had a segment and a driver for a segment; however now we turned these into lists, it\u0027s clear that they are related to each other, i.e. the first element of bound_segments relates to the first element of bound_drivers and so forth. This leads me to think that these instead of representing these concepts with two list of positional elements we should strive to represent these with a single list of named attributes. This representation is a lot more usable, readable and less error prone from a development standpoint.\n\nSo what about we keep the existing API where the scalar methods return just the static one and introduce a new method that capture the hierarchy/list? Each element of the list will be an object that captures the driver and the segment.\n\nWhat I prefer about this approach is that is also less prone to regressions that the changes to the API you propose might cause. As much as we strive to be careful, UT+3rd Pary CI\u0027s can only cover so much and the odd issue out can always creep in.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"0f11039237171fb3ac86023b0eaeaca03ec29f5d","unresolved":false,"context_lines":[{"line_number":324,"context_line":"        pass"},{"line_number":325,"context_line":""},{"line_number":326,"context_line":"    @abc.abstractproperty"},{"line_number":327,"context_line":"    def segments_to_bind(self):"},{"line_number":328,"context_line":"        \"\"\"Return the list of segments to which to bind the port."},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"        Return the list of segments dictionaries to which the"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_1853e9e2","line":327,"in_reply_to":"fa98f980_328b6c69","updated":"2014-09-04 17:57:49.000000000","message":"My comment about likelihood was based mainly on what I see in the existing drivers, not any specific undocumented knowledge. I\u0027ve tried to put the essential information in the docstrings in driver_api.py. Beyond that, I\u0027ve suggested several times that we start an \"ML2 Driver Writers\u0027 Guide\" document, or something like that, but there has never been much interest. I was thinking a workshop (not a design session, but on the more free-form Friday of the summit) might be a good incentive for a couple of us to generate slides that could form the basis for a more formal document.\n\nI could easily rework these patches to make the old bound_segment and bound_driver properties return the top-level (static segment) binding info. That would allow the existing ToR switch drivers to work without change when there is only a single level of binding.\n\nI could also expose the levels of binding info as a single list of dicts instead of separate lists of strings.\n\nI\u0027ll go ahead and make these changes if there is quick consensus among reviewers that they are worthwhile improvements.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c4892543cc754fabf74f409ba66c49a1c38b6e4c","unresolved":false,"context_lines":[{"line_number":324,"context_line":"        pass"},{"line_number":325,"context_line":""},{"line_number":326,"context_line":"    @abc.abstractproperty"},{"line_number":327,"context_line":"    def segments_to_bind(self):"},{"line_number":328,"context_line":"        \"\"\"Return the list of segments to which to bind the port."},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"        Return the list of segments dictionaries to which the"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_328b6c69","line":327,"in_reply_to":"fa98f980_57a2be99","updated":"2014-09-03 17:55:06.000000000","message":"Your comment worries me even more: this is knowledge that\u0027s in your brain. How is one expected to pick this up and use this API in a way that makes sense to you?","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"7c91b8ce40c073f072897bb7ba4df16d0d665a7c","unresolved":false,"context_lines":[{"line_number":324,"context_line":"        pass"},{"line_number":325,"context_line":""},{"line_number":326,"context_line":"    @abc.abstractproperty"},{"line_number":327,"context_line":"    def segments_to_bind(self):"},{"line_number":328,"context_line":"        \"\"\"Return the list of segments to which to bind the port."},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"        Return the list of segments dictionaries to which the"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_57a2be99","line":327,"in_reply_to":"fa98f980_5c1f4508","updated":"2014-09-03 03:38:14.000000000","message":"Its much more likely that drivers would need to look at bound_segments than bound_drivers. In fact, no existing drivers pay attention to bound_driver. So combining these into a list of tuples or dicts or something would make the common use case (only caring about segments) more complicated.\n\nThe reason the current scalar API methods were not kept is that, with hierarchical bindings, there is no one level of the bindings that is going to make sense for every driver to use. I felt it was better to encourage driver writers to explicitly deal with hierarchical bindings, rather than hide them.\n\nI could easily add helper properties that provide the bottom-level (host usually) bound driver and segment and maybe the top-level bound driver and (static) segment, as had been suggested in an earlier review comment. But this just adds clutter and doesn\u0027t really save much code.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":27,"context_line":"SEGMENTATION_ID \u003d \u0027segmentation_id\u0027"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# The following keys are used in the binding level dictionaries"},{"line_number":30,"context_line":"# available via the binding_level and original_binding_level"},{"line_number":31,"context_line":"# PortContext properties."},{"line_number":32,"context_line":"BOUND_DRIVER \u003d \u0027bound_driver\u0027"},{"line_number":33,"context_line":"BOUND_SEGMENT \u003d \u0027bound_segment\u0027"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_616dcbcb","line":30,"updated":"2014-09-08 20:21:30.000000000","message":"These need to be plural.\n\nDone.","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":385,"context_line":"        which the mechanism driver may bind the port. When"},{"line_number":386,"context_line":"        establishing a top-level binding, these will be the port\u0027s"},{"line_number":387,"context_line":"        network\u0027s static segments. For each subsequent level, these"},{"line_number":388,"context_line":"        will be the segments passed to continue binding by the"},{"line_number":389,"context_line":"        mechanism driver that bound the level above."},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"        This property is only valid within calls to"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_6411595c","line":388,"updated":"2014-09-08 20:21:30.000000000","message":"Change segments to segment. Should be continue_binding.\n\nDone.","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":405,"context_line":"    @abc.abstractmethod"},{"line_number":406,"context_line":"    def set_binding(self, segment_id, vif_type, vif_details,"},{"line_number":407,"context_line":"                    status\u003dNone):"},{"line_number":408,"context_line":"        \"\"\"Set the lowest-level binding for the port."},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"        :param segment_id: Network segment bound for the port."},{"line_number":411,"context_line":"        :param vif_type: The VIF type for the bound port."}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_e4046919","line":408,"updated":"2014-09-08 20:21:30.000000000","message":"Use bottom-level.\n\nDone.","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":433,"context_line":"        value of the segments_to_bind property. The list of segments"},{"line_number":434,"context_line":"        IDs passed as next_segments_to_bind identify dynamic (or"},{"line_number":435,"context_line":"        static) segments of the port\u0027s network that will be used to"},{"line_number":436,"context_line":"        populate segments_to_bind for the next stage of a hierarchical"},{"line_number":437,"context_line":"        binding."},{"line_number":438,"context_line":"        \"\"\""},{"line_number":439,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_1f29ba89","line":436,"updated":"2014-09-08 20:21:30.000000000","message":"Replace \"next stage\" with \"next lower level\".\n\nDone.","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":772,"context_line":"        must call context.set_binding() with the binding details. If"},{"line_number":773,"context_line":"        the binding results are committed after bind_port() returns,"},{"line_number":774,"context_line":"        they will be seen by all mechanism drivers as"},{"line_number":775,"context_line":"        update_port_precommit() and update_port_postcommit() calls."},{"line_number":776,"context_line":""},{"line_number":777,"context_line":"        Note that if some other thread or process concurrently binds"},{"line_number":778,"context_line":"        or updates the port, these binding results will not be"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_7f59e633","line":775,"updated":"2014-09-08 20:21:30.000000000","message":"Cover continue_binding.\n\nDone.","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"951ddcb9e13e773ecf6f8aeb162feb2d19403e1f","unresolved":false,"context_lines":[{"line_number":260,"context_line":"        pass"},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"    @abc.abstractproperty"},{"line_number":263,"context_line":"    def bound_segment(self):"},{"line_number":264,"context_line":"        \"\"\"Return the currently bound segment dictionary.\"\"\""},{"line_number":265,"context_line":"        pass"},{"line_number":266,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_248ded31","side":"PARENT","line":263,"updated":"2015-01-15 04:58:59.000000000","message":"This is clearly a breaking change. Would it make sense to provide bw compat by keeping this method so that if the bindings levels is \u003d\u003d 1 we return binding_levels[0][BOUND_SEGMENT]?\n\nThis way we don\u0027t have to disrupt drivers that cannot be dealt with in this patch, are in process of moving (like the ODL one), or won\u0027t need to support hierarchical bindings from the start.","commit_id":"a7b54d3c60ff6dd63273b573bcc5c572faab22a8"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"6bafc6fb656fe11f8735ca508739c57a9bf80c30","unresolved":false,"context_lines":[{"line_number":260,"context_line":"        pass"},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"    @abc.abstractproperty"},{"line_number":263,"context_line":"    def bound_segment(self):"},{"line_number":264,"context_line":"        \"\"\"Return the currently bound segment dictionary.\"\"\""},{"line_number":265,"context_line":"        pass"},{"line_number":266,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_4dbcc0b5","side":"PARENT","line":263,"in_reply_to":"3a961159_248ded31","updated":"2015-01-15 19:46:09.000000000","message":"We had gone through the existing drivers, and determined that some drivers would need bound_segment to return top_bound_segment, while other drivers would need this to return bottom_bound_segment. I\u0027m not sure it makes sense to keep this \"backward compatibility\" if its sometimes not going to do the right thing in the face of hierarchical bindings. I still feel its better to force the driver writer to decide which semantics are needed. \n\nThe ML2 driver API is not yet considered stable, so driver writers should expect to occasionally have to make these sorts of updates. This is why the recommended decomposition approach keeps the code that implements and uses driver APIs in-tree.","commit_id":"a7b54d3c60ff6dd63273b573bcc5c572faab22a8"}],"neutron/plugins/ml2/drivers/cisco/apic/mechanism_apic.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        tenant_id \u003d self.name_mapper.tenant(context, tenant_id)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        # Get segmentation id"},{"line_number":97,"context_line":"        if not context.bottom_bound_segment:"},{"line_number":98,"context_line":"            LOG.debug(\"Port %s is not bound to a segment\", port)"},{"line_number":99,"context_line":"            return"},{"line_number":100,"context_line":"        seg \u003d None"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_9fdf6a68","line":97,"updated":"2014-09-08 20:21:30.000000000","message":"Use top_bound_segment because this driver pays attention to networks.\n\nDone.","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"951ddcb9e13e773ecf6f8aeb162feb2d19403e1f","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        tenant_id \u003d self.name_mapper.tenant(context, tenant_id)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        # Get segmentation id"},{"line_number":96,"context_line":"        segment \u003d context.top_bound_segment"},{"line_number":97,"context_line":"        if not segment:"},{"line_number":98,"context_line":"            LOG.debug(\"Port %s is not bound to a segment\", port)"},{"line_number":99,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_c41509e7","line":96,"updated":"2015-01-15 04:58:59.000000000","message":"why did you use top_bound_segment here and bottom_bound_segment elsewhere? Just idle curiosity.","commit_id":"1ed3def0f6dbe5cc708c6b5236dc2190a1b7e9c5"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"6bafc6fb656fe11f8735ca508739c57a9bf80c30","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        tenant_id \u003d self.name_mapper.tenant(context, tenant_id)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        # Get segmentation id"},{"line_number":96,"context_line":"        segment \u003d context.top_bound_segment"},{"line_number":97,"context_line":"        if not segment:"},{"line_number":98,"context_line":"            LOG.debug(\"Port %s is not bound to a segment\", port)"},{"line_number":99,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_8d086892","line":96,"in_reply_to":"3a961159_c41509e7","updated":"2015-01-15 19:46:09.000000000","message":"This is because the APIC is dealing with the network\u0027s static segment that represents that network in the fabric.","commit_id":"1ed3def0f6dbe5cc708c6b5236dc2190a1b7e9c5"}],"neutron/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py":[{"author":{"_account_id":6694,"name":"rcurran","email":"rcurran@cisco.com","username":"rcurran"},"change_message_id":"bcc941abeefeba5fd5b0153e7a0b81abbb000768","unresolved":false,"context_lines":[{"line_number":51,"context_line":"                cfg.CONF.ml2_cisco.managed_physical_network \u003d\u003d"},{"line_number":52,"context_line":"                segment[api.PHYSICAL_NETWORK])"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def _get_vlanid(self, segments):"},{"line_number":55,"context_line":"        if segments:"},{"line_number":56,"context_line":"            # REVISIT(rkukura): Its not clear whether this non-binding"},{"line_number":57,"context_line":"            # mechanism driver should use the host-level segment as is"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_dae18bd1","line":54,"updated":"2014-09-02 16:46:49.000000000","message":"the changes to this module are fine. I\u0027m reworking to use multi-tiered segments, but this code won\u0027t be introduced until the K release.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f8db6dffe830d19d0b79103c1ade9ad6e7ff3a3f","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def _get_vlanid(self, segments):"},{"line_number":55,"context_line":"        if segments:"},{"line_number":56,"context_line":"            # REVISIT(rkukura): Its not clear whether this non-binding"},{"line_number":57,"context_line":"            # mechanism driver should use the host-level segment as is"},{"line_number":58,"context_line":"            # done here, should use the bound static segment"},{"line_number":59,"context_line":"            # (bound_segments[0]), or should search bound_segments for"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_5c94a542","line":56,"updated":"2014-09-03 02:28:24.000000000","message":"this should be a TODO instead.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"7c91b8ce40c073f072897bb7ba4df16d0d665a7c","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def _get_vlanid(self, segments):"},{"line_number":55,"context_line":"        if segments:"},{"line_number":56,"context_line":"            # REVISIT(rkukura): Its not clear whether this non-binding"},{"line_number":57,"context_line":"            # mechanism driver should use the host-level segment as is"},{"line_number":58,"context_line":"            # done here, should use the bound static segment"},{"line_number":59,"context_line":"            # (bound_segments[0]), or should search bound_segments for"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_f7e572dc","line":56,"in_reply_to":"fa98f980_5c94a542","updated":"2014-09-03 03:38:14.000000000","message":"I usually only add TODO comments when I intend to do the work myself. Regardless, the work will be done as this driver is updated to take part in hierarchical bindings.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"0f11039237171fb3ac86023b0eaeaca03ec29f5d","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def _get_vlanid(self, segments):"},{"line_number":55,"context_line":"        if segments:"},{"line_number":56,"context_line":"            # REVISIT(rkukura): Its not clear whether this non-binding"},{"line_number":57,"context_line":"            # mechanism driver should use the host-level segment as is"},{"line_number":58,"context_line":"            # done here, should use the bound static segment"},{"line_number":59,"context_line":"            # (bound_segments[0]), or should search bound_segments for"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_558353cb","line":56,"in_reply_to":"fa98f980_f249e431","updated":"2014-09-04 17:57:49.000000000","message":"I\u0027m not sure my interpretation is the most common one. REVISIT does imply a bit less certainty that change is needed than TODO. I just don\u0027t want to put in a TODO(rkukura) unless I plan to eventually do the work.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c4892543cc754fabf74f409ba66c49a1c38b6e4c","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def _get_vlanid(self, segments):"},{"line_number":55,"context_line":"        if segments:"},{"line_number":56,"context_line":"            # REVISIT(rkukura): Its not clear whether this non-binding"},{"line_number":57,"context_line":"            # mechanism driver should use the host-level segment as is"},{"line_number":58,"context_line":"            # done here, should use the bound static segment"},{"line_number":59,"context_line":"            # (bound_segments[0]), or should search bound_segments for"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_f249e431","line":56,"in_reply_to":"fa98f980_f7e572dc","updated":"2014-09-03 17:55:06.000000000","message":"I did not know this was the actual meaning of the REVISIT, that\u0027s worth knowing.","commit_id":"3ad7bdef821159de1a08dfe9dcc1507e6a94bcc0"}],"neutron/plugins/ml2/drivers/l2pop/mech_driver.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"8a9c251ee05b9fa9a1b5512dc24eaeda44feb4be","unresolved":false,"context_lines":[{"line_number":168,"context_line":"                          \"configuration.\"))"},{"line_number":169,"context_line":"            return"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        segment \u003d context.bound_segments and context.bound_segments[-1]"},{"line_number":172,"context_line":"        if not segment:"},{"line_number":173,"context_line":"            LOG.warning(_(\"Port %(port)s updated by agent %(agent)s \""},{"line_number":174,"context_line":"                          \"isn\u0027t bound to any segment\"),"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_d812be61","line":171,"updated":"2014-09-01 14:02:56.000000000","message":"how about having a short-cut method or property for this common pattern?","commit_id":"adc47b8a2a07de50a881f2ca19c9c64d579d0e2e"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"f8862f1abd89f871d9a8f94ab7425d7d597f255c","unresolved":false,"context_lines":[{"line_number":168,"context_line":"                          \"configuration.\"))"},{"line_number":169,"context_line":"            return"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        segment \u003d context.bound_segments and context.bound_segments[-1]"},{"line_number":172,"context_line":"        if not segment:"},{"line_number":173,"context_line":"            LOG.warning(_(\"Port %(port)s updated by agent %(agent)s \""},{"line_number":174,"context_line":"                          \"isn\u0027t bound to any segment\"),"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_a2f5bc84","line":171,"in_reply_to":"fa98f980_d812be61","updated":"2014-09-01 16:23:25.000000000","message":"I could define helper properties such as top_bound_segment, top_bound_driver, bottom_bound_segment, and bottom_bound_driver, but I am concerned doing so would discourage mechanism driver writers from really thinking about how they should handle multi-level bindings. Most should probably look for networks they manage at any level.","commit_id":"adc47b8a2a07de50a881f2ca19c9c64d579d0e2e"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"623663aaf255300e9da42000a62b084ee24b8386","unresolved":false,"context_lines":[{"line_number":168,"context_line":"                          \"configuration.\"))"},{"line_number":169,"context_line":"            return"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        segment \u003d context.bottom_bound_segment"},{"line_number":172,"context_line":"        if not segment:"},{"line_number":173,"context_line":"            LOG.warning(_(\"Port %(port)s updated by agent %(agent)s \""},{"line_number":174,"context_line":"                          \"isn\u0027t bound to any segment\"),"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa98f980_59016238","line":171,"updated":"2014-09-09 04:09:33.000000000","message":"with possibly dynamic segments, does it still make sense to propagate segment info via l2pop?","commit_id":"c2cd9bfb7752a5cd48509ddf758e685ad3ba9f53"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"fbe057ba04d3cce78858dd877a8d280274b5abef","unresolved":false,"context_lines":[{"line_number":168,"context_line":"                          \"configuration.\"))"},{"line_number":169,"context_line":"            return"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        segment \u003d context.bottom_bound_segment"},{"line_number":172,"context_line":"        if not segment:"},{"line_number":173,"context_line":"            LOG.warning(_(\"Port %(port)s updated by agent %(agent)s \""},{"line_number":174,"context_line":"                          \"isn\u0027t bound to any segment\"),"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a961159_d0550ac7","line":171,"in_reply_to":"fa98f980_59016238","updated":"2014-12-09 20:47:37.000000000","message":"My understanding is that l2pop is only applicable when the bottom level segment is a tunnel type (gre or vxlan) with endpoints managed by neutron. I cannot imagine use cases where segments of this type would be dynamic. In typical hierarchical topologies, tunneling would be managed within the fabric and networks would most likely by exposed to compute nodes as VLANs, in which case l2pop is not applicable.","commit_id":"c2cd9bfb7752a5cd48509ddf758e685ad3ba9f53"}],"neutron/plugins/ml2/drivers/mech_bigswitch/driver.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"cfb2f4a9e4844506b24aa8bd46939c8955344b88","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        net \u003d context.network.current"},{"line_number":116,"context_line":"        port[\u0027network\u0027] \u003d net"},{"line_number":117,"context_line":"        port[\u0027bound_segment\u0027] \u003d (context.bound_segments and"},{"line_number":118,"context_line":"                                 context.bound_segments[-1])"},{"line_number":119,"context_line":"        actx \u003d ctx.get_admin_context()"},{"line_number":120,"context_line":"        prepped_port \u003d self._extend_port_dict_binding(actx, port)"},{"line_number":121,"context_line":"        prepped_port \u003d self._map_state_and_status(prepped_port)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_2d7c8eeb","line":118,"updated":"2014-08-23 21:24:06.000000000","message":"Why is [-1] used rather than [0]? I think  at now one segment is bound and each mech driver binds a static segment.","commit_id":"56cb3aee897f18eb72dac3e6c3eb8a65f11df31a"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b6d1ff525a7a02c268d688994e9d1f9cd1426334","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        net \u003d context.network.current"},{"line_number":116,"context_line":"        port[\u0027network\u0027] \u003d net"},{"line_number":117,"context_line":"        port[\u0027bound_segment\u0027] \u003d (context.bound_segments and"},{"line_number":118,"context_line":"                                 context.bound_segments[-1])"},{"line_number":119,"context_line":"        actx \u003d ctx.get_admin_context()"},{"line_number":120,"context_line":"        prepped_port \u003d self._extend_port_dict_binding(actx, port)"},{"line_number":121,"context_line":"        prepped_port \u003d self._map_state_and_status(prepped_port)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_cfef8ae7","line":118,"in_reply_to":"1abeadc6_2d7c8eeb","updated":"2014-08-24 14:50:33.000000000","message":"Really good question, Akihiro! The bound_segments[0] value will always be a static segment of the network, while bound_segments[-1] can possibly be a dynamic segment. In a single-level binding, they will both return the same static segment, so either will work. But if it is to work with multi-level bindings, which level should a driver that doesn\u0027t participate in binding use?\n\nUntil a mechanism driver is updated to participate in hierarchical bindings, I thought it was most reasonable to assume that it would be controlling the switch to which the host is directly connected. In that case, it should operate on the lowest-level segment in the binding, using bound_segments[-1]. \n\nBut if the mechanism driver is processing network_create calls and expecting to see port bindings based on the static segments it has seen during those calls, it probably won\u0027t correctly handle bindings based on dynamic segments. In that case, using bound_segments[0] might be preferred. But that assumes that the switch being controlled by this non-binding mechanism driver really is at a higher level in the network hierarchy than the switch being controlled by the binding at level 0.\n\nThe proper long term solution is for all mechanism drivers that control switches in the network hierarchy to actually participate in port binding. Alternatively, non-binding mechanism drivers could be updated to search bound_segments for any segment they know/care about, and/or to properly handle dynamic segments.\n\nFor Juno, I think I need to look at each non-binding mechanism driver and determine whether or not it requires having processed the static segment in the port_create call. If so, it should use bound_segments[0] here. If not, it is probably best for it to use bound_segments[-1]. Either way, it will function correctly in Juno with single-level bindings, which is by far the most likely use case for those mechanism drivers.\n\nInput from mechanism driver maintainers would be welcome here!","commit_id":"56cb3aee897f18eb72dac3e6c3eb8a65f11df31a"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"5da3325e687490cbadef4c28e515a108e3b5b696","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        net \u003d context.network.current"},{"line_number":116,"context_line":"        port[\u0027network\u0027] \u003d net"},{"line_number":117,"context_line":"        port[\u0027bound_segment\u0027] \u003d (context.bound_segments and"},{"line_number":118,"context_line":"                                 context.bound_segments[-1])"},{"line_number":119,"context_line":"        actx \u003d ctx.get_admin_context()"},{"line_number":120,"context_line":"        prepped_port \u003d self._extend_port_dict_binding(actx, port)"},{"line_number":121,"context_line":"        prepped_port \u003d self._map_state_and_status(prepped_port)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_f6509ed6","line":118,"in_reply_to":"1abeadc6_cfef8ae7","updated":"2014-08-24 19:19:08.000000000","message":"For now, I\u0027ve added REVISIT comments in the bigswitch, nexis, and apic mechanism drivers.","commit_id":"56cb3aee897f18eb72dac3e6c3eb8a65f11df31a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"58d20fb2477c161e5725a5e23a8e6427c2b80858","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        net \u003d context.network.current"},{"line_number":116,"context_line":"        port[\u0027network\u0027] \u003d net"},{"line_number":117,"context_line":"        port[\u0027bound_segment\u0027] \u003d (context.bound_segments and"},{"line_number":118,"context_line":"                                 context.bound_segments[-1])"},{"line_number":119,"context_line":"        actx \u003d ctx.get_admin_context()"},{"line_number":120,"context_line":"        prepped_port \u003d self._extend_port_dict_binding(actx, port)"},{"line_number":121,"context_line":"        prepped_port \u003d self._map_state_and_status(prepped_port)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_6d34b94a","line":118,"in_reply_to":"1abeadc6_cfef8ae7","updated":"2014-08-25 04:54:02.000000000","message":"Thanks Bob for the detail explanation. It sounds reasonable to me to use bound_segments[-1] in existing binding mechanism driver for now. I review other patches in this series and it seems a reasonable solution.\n\nI am not sure what is better in existing non-binding mechanism drivers. Input from mechanism drivers especially non-binding mech driver like Arista.","commit_id":"56cb3aee897f18eb72dac3e6c3eb8a65f11df31a"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":114,"context_line":"        port \u003d copy.deepcopy(context.current)"},{"line_number":115,"context_line":"        net \u003d context.network.current"},{"line_number":116,"context_line":"        port[\u0027network\u0027] \u003d net"},{"line_number":117,"context_line":"        port[\u0027bound_segment\u0027] \u003d context.bottom_bound_segment"},{"line_number":118,"context_line":"        actx \u003d ctx.get_admin_context()"},{"line_number":119,"context_line":"        prepped_port \u003d self._extend_port_dict_binding(actx, port)"},{"line_number":120,"context_line":"        prepped_port \u003d self._map_state_and_status(prepped_port)"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_b7ed0e91","line":117,"updated":"2014-09-08 20:21:30.000000000","message":"Use top_bound_segment because this driver pays attention to networks.\n\nDone.","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"fbe057ba04d3cce78858dd877a8d280274b5abef","unresolved":false,"context_lines":[{"line_number":148,"context_line":"            # TODO(kevinbenton): check controller to see if the port exists"},{"line_number":149,"context_line":"            # so this driver can be run in parallel with others that add"},{"line_number":150,"context_line":"            # support for external port bindings"},{"line_number":151,"context_line":"            for segment in context.network.network_segments:"},{"line_number":152,"context_line":"                if segment[api.NETWORK_TYPE] \u003d\u003d pconst.TYPE_VLAN:"},{"line_number":153,"context_line":"                    context.set_binding("},{"line_number":154,"context_line":"                        segment[api.ID], portbindings.VIF_TYPE_BRIDGE,"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa98f980_650e7e36","line":151,"updated":"2014-12-09 20:47:37.000000000","message":"This should use context.segments_to_bind.","commit_id":"c2cd9bfb7752a5cd48509ddf758e685ad3ba9f53"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"d3662a63e5d7090c334985094f306db167a04663","unresolved":false,"context_lines":[{"line_number":148,"context_line":"            # TODO(kevinbenton): check controller to see if the port exists"},{"line_number":149,"context_line":"            # so this driver can be run in parallel with others that add"},{"line_number":150,"context_line":"            # support for external port bindings"},{"line_number":151,"context_line":"            for segment in context.network.network_segments:"},{"line_number":152,"context_line":"                if segment[api.NETWORK_TYPE] \u003d\u003d pconst.TYPE_VLAN:"},{"line_number":153,"context_line":"                    context.set_binding("},{"line_number":154,"context_line":"                        segment[api.ID], portbindings.VIF_TYPE_BRIDGE,"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a961159_503cbae2","line":151,"in_reply_to":"fa98f980_650e7e36","updated":"2014-12-10 20:25:16.000000000","message":"Done","commit_id":"c2cd9bfb7752a5cd48509ddf758e685ad3ba9f53"}],"neutron/plugins/ml2/drivers/mech_nuage/driver.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        LOG.debug(\"Attempting to bind port %(port)s on \""},{"line_number":82,"context_line":"                  \"network %(network)s\","},{"line_number":83,"context_line":"                  {\u0027port\u0027: context.current[\u0027id\u0027],"},{"line_number":84,"context_line":"                   \u0027network\u0027: context.network.current[\u0027id\u0027]})"},{"line_number":85,"context_line":"        for segment in context.network.network_segments:"},{"line_number":86,"context_line":"            if self._check_segment(segment):"},{"line_number":87,"context_line":"                context.set_binding(segment[api.ID],"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_61f22b07","line":84,"updated":"2014-09-08 20:21:30.000000000","message":"Use segments_to_bind.\n\nDone.","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"}],"neutron/plugins/ml2/drivers/mechanism_odl.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"951ddcb9e13e773ecf6f8aeb162feb2d19403e1f","unresolved":false,"context_lines":[{"line_number":303,"context_line":"                  \"network %(network)s\","},{"line_number":304,"context_line":"                  {\u0027port\u0027: context.current[\u0027id\u0027],"},{"line_number":305,"context_line":"                   \u0027network\u0027: context.network.current[\u0027id\u0027]})"},{"line_number":306,"context_line":"        for segment in context.segments_to_bind:"},{"line_number":307,"context_line":"            if self.check_segment(segment):"},{"line_number":308,"context_line":"                context.set_binding(segment[api.ID],"},{"line_number":309,"context_line":"                                    self.vif_type,"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_04bab1e0","line":306,"updated":"2015-01-15 04:58:59.000000000","message":"this is about to move in [1], I expect a merge conflict unless we make this change backward compatible which means this file is not going to be touched.\n\n[1] https://review.openstack.org/#/c/146217/","commit_id":"1ed3def0f6dbe5cc708c6b5236dc2190a1b7e9c5"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"6bafc6fb656fe11f8735ca508739c57a9bf80c30","unresolved":false,"context_lines":[{"line_number":303,"context_line":"                  \"network %(network)s\","},{"line_number":304,"context_line":"                  {\u0027port\u0027: context.current[\u0027id\u0027],"},{"line_number":305,"context_line":"                   \u0027network\u0027: context.network.current[\u0027id\u0027]})"},{"line_number":306,"context_line":"        for segment in context.segments_to_bind:"},{"line_number":307,"context_line":"            if self.check_segment(segment):"},{"line_number":308,"context_line":"                context.set_binding(segment[api.ID],"},{"line_number":309,"context_line":"                                    self.vif_type,"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_ed6bac1c","line":306,"in_reply_to":"3a961159_04bab1e0","updated":"2015-01-15 19:46:09.000000000","message":"There is no reasonable backwards-compatible approach here that will work for hierarchical bindings, but code that uses the old approach will continue to work for single-level bindings. \n\nIt looks like the ODL driver did the right thing in its decomposition, and kept the code that accesses this API in-tree. If there is a merge conflict, I can easily fix it in the next update of this patch.","commit_id":"1ed3def0f6dbe5cc708c6b5236dc2190a1b7e9c5"}],"neutron/tests/unit/ml2/_test_mech_agent.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @property"},{"line_number":87,"context_line":"    def top_bound_segment(self):"},{"line_number":88,"context_line":"        return self._bound_segment"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    @property"},{"line_number":91,"context_line":"    def original_top_bound_segment(self):"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_225c7a25","line":88,"updated":"2014-09-08 20:21:30.000000000","message":"These should be expanded.\n\nDone.","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"}],"neutron/tests/unit/ml2/drivers/mechanism_test.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        bottom_level \u003d levels[-1]"},{"line_number":141,"context_line":"        assert(isinstance(bottom_level, dict))"},{"line_number":142,"context_line":"        assert(isinstance(bottom_segment, dict))"},{"line_number":143,"context_line":"        assert(top_segment \u003d\u003d bottom_level[api.BOUND_SEGMENT])"},{"line_number":144,"context_line":"        assert(\u0027test\u0027 \u003d\u003d bottom_level[api.BOUND_DRIVER])"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    def create_port_precommit(self, context):"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_fa805248","line":143,"updated":"2014-09-08 20:21:30.000000000","message":"Should be bottom_segment.\n\nDone","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"5c21a940d9288437896597aeebc85289b2c719f1","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def update_port_precommit(self, context):"},{"line_number":153,"context_line":"        if (context.original_top_bound_segment and"},{"line_number":154,"context_line":"            (not context.top_bound_segment)):"},{"line_number":155,"context_line":"            self.bound_ports.remove(context.original[\u0027id\u0027])"},{"line_number":156,"context_line":"        self._check_port_context(context, True)"},{"line_number":157,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_a1496834","line":154,"updated":"2014-09-07 03:31:30.000000000","message":"Extra parens around \u0027not\u0027 statement not needed","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b23cb6cdf27112fbaf2cc53edbb0fd3279bb90ae","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def update_port_precommit(self, context):"},{"line_number":153,"context_line":"        if (context.original_top_bound_segment and"},{"line_number":154,"context_line":"            (not context.top_bound_segment)):"},{"line_number":155,"context_line":"            self.bound_ports.remove(context.original[\u0027id\u0027])"},{"line_number":156,"context_line":"        self._check_port_context(context, True)"},{"line_number":157,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_f10b267b","line":154,"in_reply_to":"fa98f980_a1496834","updated":"2014-09-08 20:21:30.000000000","message":"Done","commit_id":"0b1b175d1fa6f717885e03cd4d70ab382f7a33c3"}]}
