)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"8b3ad96491c6270b6849386cdcaf9e85daf15e6f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Nader Lahouti \u003cnlahouti@cisco.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-07-18 12:13:14 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Support for extensions in ML2 Mechanism Drivers"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I462cb92e69198aedf868029874338688fd7d422a"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"baada198_baf8344b","line":7,"updated":"2014-07-18 20:39:06.000000000","message":"Nit - should fix title here as well.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"b925b1ee29dc81935c4f2ac350520f5586802443","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Nader Lahouti \u003cnlahouti@cisco.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-07-18 12:13:14 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Support for extensions in ML2 Mechanism Drivers"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I462cb92e69198aedf868029874338688fd7d422a"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"baada198_f04d6b73","line":7,"in_reply_to":"baada198_baf8344b","updated":"2014-07-18 21:31:35.000000000","message":"Done","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"}],"specs/juno/neutron-ml2-mechanismdriver-extensions.rst":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"3ea0399b563fd9373537c121c6e444bbcac42224","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    This new method should go through the order_mech_drivers  and if there is"},{"line_number":33,"context_line":"    any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"    that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. Add new optional method to NeutronPluginBaseV2 (i.e. is_ml2_plugin(self)) for"},{"line_number":36,"context_line":"   letting user know if the plugin is ML2 or not."},{"line_number":37,"context_line":"   Also new extension API should be supported by mechanism driver"},{"line_number":38,"context_line":"   (i.e. GET/CREATE/UPDATE) as most of the mandatory API are listed in"}],"source_content_type":"text/x-rst","patch_set":1,"id":"AAAAXH%2F%2FhwQ%3D","line":35,"updated":"2014-04-20 10:37:07.000000000","message":"That would be a wrong dependency. Base class should not depend in anyway on a subclass","commit_id":"bc1c43959780983a1dcd7fbec111d1c7a56a47c4"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"3ea0399b563fd9373537c121c6e444bbcac42224","unresolved":false,"context_lines":[{"line_number":158,"context_line":""},{"line_number":159,"context_line":"- Add new method in Ml2Plugin class for adding extensions from mechanism driver"},{"line_number":160,"context_line":"  to supported extension in the class."},{"line_number":161,"context_line":"- Modify _itemis method (class Controller) to search for attributes in"},{"line_number":162,"context_line":"  mechanism driver object."},{"line_number":163,"context_line":"- Add new attributes to network, port and subnet resources to save prime data"},{"line_number":164,"context_line":"  for the resources."}],"source_content_type":"text/x-rst","patch_set":1,"id":"AAAAXH%2F%2FhwA%3D","line":161,"updated":"2014-04-20 10:37:07.000000000","message":"same comment as above, this would introduce plugin-specific dependency into API layer, which would be incorrect from design stand point","commit_id":"bc1c43959780983a1dcd7fbec111d1c7a56a47c4"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"96f62fc02d9fa6decdcfd3b3c016a0c02555ca6c","unresolved":false,"context_lines":[{"line_number":18,"context_line":"In current Ml2Plugin implementation, only extensions defined in Ml2Plugin is"},{"line_number":19,"context_line":"loaded and there is no support for mechanism driver to have their own"},{"line_number":20,"context_line":"extensions and load them when needed."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Proposed change"},{"line_number":23,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"AAAAXH%2F%2FTgQ%3D","line":21,"updated":"2014-04-22 16:25:38.000000000","message":"It would be nice if mechanism drivers did not *have to* support the current (or any ML2 plugin wide) list of extensions. Could this work possibly lead to providing such a capability? In reference to the etherpad from the previous summit, this means that there are no predefined \"common\" extensions. Based on the current use of mixin classes this does not seem to be easily possible.","commit_id":"0478e0eb29bac00816049d9e72d07c8c0df20bb8"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"fa8d59be3be8787ab2983c7bd963594438549212","unresolved":false,"context_lines":[{"line_number":18,"context_line":"In current Ml2Plugin implementation, only extensions defined in Ml2Plugin is"},{"line_number":19,"context_line":"loaded and there is no support for mechanism driver to have their own"},{"line_number":20,"context_line":"extensions and load them when needed."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Proposed change"},{"line_number":23,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9ad9bd40_4a1250b2","line":21,"in_reply_to":"9ad9bd40_7a7e26b0","updated":"2014-05-28 23:38:34.000000000","message":"As you mentioned in your previous comment, based on the use of mixin classes in the plugin and also the way extension controller using the plugin (to call the API), it may not be easily possible.\nI tried to capture proposals in https://etherpad.openstack.org/p/ML2_mechanismdriver_extensions_support. It should be discussed and implemented with a better solution than what we have now.","commit_id":"0478e0eb29bac00816049d9e72d07c8c0df20bb8"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"cb4486c3da0455abfb501f580d6df472272850fe","unresolved":false,"context_lines":[{"line_number":18,"context_line":"In current Ml2Plugin implementation, only extensions defined in Ml2Plugin is"},{"line_number":19,"context_line":"loaded and there is no support for mechanism driver to have their own"},{"line_number":20,"context_line":"extensions and load them when needed."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Proposed change"},{"line_number":23,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9ad9bd40_7a7e26b0","line":21,"in_reply_to":"AAAAXH%2F%2FAcY%3D","updated":"2014-04-30 16:00:26.000000000","message":"Yeah that is what I was referring to. Why have the list of supported extensions hardcoded. Would what you are proposing lend itself to making that list configurable?","commit_id":"0478e0eb29bac00816049d9e72d07c8c0df20bb8"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3f0d27382b06330c1cde04a7c577b8dfdf876fe0","unresolved":false,"context_lines":[{"line_number":18,"context_line":"In current Ml2Plugin implementation, only extensions defined in Ml2Plugin is"},{"line_number":19,"context_line":"loaded and there is no support for mechanism driver to have their own"},{"line_number":20,"context_line":"extensions and load them when needed."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Proposed change"},{"line_number":23,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"AAAAXH%2F%2FAcY%3D","line":21,"in_reply_to":"AAAAXH%2F%2FTgQ%3D","updated":"2014-04-24 17:48:10.000000000","message":"Are you saying that existing ML2 plugin extension (the commons) that are loaded by default, not to be loaded selectively? Can you elaborate on that.","commit_id":"0478e0eb29bac00816049d9e72d07c8c0df20bb8"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"0d42557f90e52599d5c51311415d33346a97b8e3","unresolved":false,"context_lines":[{"line_number":164,"context_line":"Documentation Impact"},{"line_number":165,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"What is the impact on the docs team of this change? Some changes might require"},{"line_number":168,"context_line":"donating resources to the docs team to have the documentation updated. Don\u0027t"},{"line_number":169,"context_line":"repeat details discussed above, but please reference them here."},{"line_number":170,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"AAAAXH%2F%2FVPo%3D","line":167,"updated":"2014-04-22 13:20:50.000000000","message":"The section not updated.","commit_id":"0478e0eb29bac00816049d9e72d07c8c0df20bb8"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3f0d27382b06330c1cde04a7c577b8dfdf876fe0","unresolved":false,"context_lines":[{"line_number":164,"context_line":"Documentation Impact"},{"line_number":165,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"What is the impact on the docs team of this change? Some changes might require"},{"line_number":168,"context_line":"donating resources to the docs team to have the documentation updated. Don\u0027t"},{"line_number":169,"context_line":"repeat details discussed above, but please reference them here."},{"line_number":170,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"AAAAXH%2F%2FLD0%3D","line":167,"in_reply_to":"AAAAXH%2F%2FVPo%3D","updated":"2014-04-24 17:48:10.000000000","message":"Done","commit_id":"0478e0eb29bac00816049d9e72d07c8c0df20bb8"},{"author":{"_account_id":2888,"name":"Mathieu Rohon","email":"mathieu.rohon@gmail.com","username":"mathieu-rohon"},"change_message_id":"919813c5953b1aea47bc3284c3169f90c07ac06d","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"    that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. In resource\u0027s post/pre_commit method (i.e. network, port, subnet) there is no"},{"line_number":36,"context_line":"   way for mechanism driver to know the original data passed to the plaugin"},{"line_number":37,"context_line":"   (for creating the resources). For instance for network resource, when a"},{"line_number":38,"context_line":"   network is created with an extension attribute in the network parameters,"},{"line_number":39,"context_line":"   according to the code below, the \u0027result\u0027 and \u0027mech_context\u0027 do not include"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_5047671f","line":36,"updated":"2014-05-09 12:41:03.000000000","message":"nit : s/plaugin/plugin","commit_id":"22138b02d9c37947097ec04502aa3c895178e6b8"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5e468907299c9f28eedc7e001b1f6ac9fe79eab5","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"    that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. In resource\u0027s post/pre_commit method (i.e. network, port, subnet) there is no"},{"line_number":36,"context_line":"   way for mechanism driver to know the original data passed to the plaugin"},{"line_number":37,"context_line":"   (for creating the resources). For instance for network resource, when a"},{"line_number":38,"context_line":"   network is created with an extension attribute in the network parameters,"},{"line_number":39,"context_line":"   according to the code below, the \u0027result\u0027 and \u0027mech_context\u0027 do not include"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_7ca0bc90","line":36,"in_reply_to":"7adec928_5047671f","updated":"2014-05-09 16:01:19.000000000","message":"Done","commit_id":"22138b02d9c37947097ec04502aa3c895178e6b8"},{"author":{"_account_id":2888,"name":"Mathieu Rohon","email":"mathieu.rohon@gmail.com","username":"mathieu-rohon"},"change_message_id":"919813c5953b1aea47bc3284c3169f90c07ac06d","unresolved":false,"context_lines":[{"line_number":146,"context_line":"- Add new attributes to network, port and subnet resources to save prime data"},{"line_number":147,"context_line":"  for the resources."},{"line_number":148,"context_line":"- In create_\u003cresourcename\u003e pass the resource parameter to the"},{"line_number":149,"context_line":"  \u003cresourcename\u003eContext to set prime_\u003cresourcename\u003e attribute."},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"Dependencies"},{"line_number":152,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_d073774b","line":149,"updated":"2014-05-09 12:41:03.000000000","message":"you will also need to pass the resource parameter in the update_\u003cresourcename\u003e. I don\u0027t know if this parameter is relevant for deletion?","commit_id":"22138b02d9c37947097ec04502aa3c895178e6b8"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5e468907299c9f28eedc7e001b1f6ac9fe79eab5","unresolved":false,"context_lines":[{"line_number":146,"context_line":"- Add new attributes to network, port and subnet resources to save prime data"},{"line_number":147,"context_line":"  for the resources."},{"line_number":148,"context_line":"- In create_\u003cresourcename\u003e pass the resource parameter to the"},{"line_number":149,"context_line":"  \u003cresourcename\u003eContext to set prime_\u003cresourcename\u003e attribute."},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"Dependencies"},{"line_number":152,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_3c3b943b","line":149,"in_reply_to":"7adec928_d073774b","updated":"2014-05-09 16:01:19.000000000","message":"Sure. Will add it for update as well. \nHaven\u0027t found case that the parameter is needed for delete case.","commit_id":"22138b02d9c37947097ec04502aa3c895178e6b8"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"7b3688253351e86782d1f5ad4287f9e7e178ef6a","unresolved":false,"context_lines":[{"line_number":84,"context_line":"Alternatives"},{"line_number":85,"context_line":"------------"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"None"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Data model impact"},{"line_number":90,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7adec928_88aef183","line":87,"updated":"2014-05-13 22:23:03.000000000","message":"Really? How about we can add extended attributes for result?","commit_id":"9d2b9a0ca42501bec484bfbb2524a0a8e54ad184"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"b60dba9d3d6d8d51835eb9d63ed7d5e3a12917f0","unresolved":false,"context_lines":[{"line_number":84,"context_line":"Alternatives"},{"line_number":85,"context_line":"------------"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"None"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Data model impact"},{"line_number":90,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7adec928_0e7029a4","line":87,"in_reply_to":"7adec928_88aef183","updated":"2014-05-14 04:45:49.000000000","message":"I\u0027ll add the other option, which is extension manager can request plugin or mechanism driver for extension or extended attribute that they support.\n\nIs that what you are referring to?","commit_id":"9d2b9a0ca42501bec484bfbb2524a0a8e54ad184"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"7b3688253351e86782d1f5ad4287f9e7e178ef6a","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"Developer impact"},{"line_number":125,"context_line":"----------------"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"None"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7adec928_e893f54c","line":126,"updated":"2014-05-13 22:23:03.000000000","message":"please describe ml2 developer impact here.\nHow he can support new extensions?","commit_id":"9d2b9a0ca42501bec484bfbb2524a0a8e54ad184"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"b60dba9d3d6d8d51835eb9d63ed7d5e3a12917f0","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"Developer impact"},{"line_number":125,"context_line":"----------------"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"None"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7adec928_2e7325b2","line":126,"in_reply_to":"7adec928_e893f54c","updated":"2014-05-14 04:45:49.000000000","message":"Sure. I\u0027ll add the details.","commit_id":"9d2b9a0ca42501bec484bfbb2524a0a8e54ad184"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"a3648b7d61f9ff2ff959e9ae814ee7899a5cdec9","unresolved":false,"context_lines":[{"line_number":31,"context_line":"2. Add new method in Ml2Plugin:"},{"line_number":32,"context_line":"    This new method should go through the order_mech_drivers  and if there is"},{"line_number":33,"context_line":"    any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"    that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. In resource\u0027s post/pre_commit method (i.e. network, port, subnet) there is no"},{"line_number":36,"context_line":"   way for mechanism driver to know the original data passed to the plugin"},{"line_number":37,"context_line":"   (for creating the resources). For instance for network resource, when a"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_53315aeb","line":34,"updated":"2014-05-30 09:21:20.000000000","message":"I\u0027m interested in what happens when the set of support extensions is different for actively installed drivers. What is the expected behavior?  Are we exporting the intersection of all sets?","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9df59d8e03354d4f141cd4b385439fdd1806df10","unresolved":false,"context_lines":[{"line_number":31,"context_line":"2. Add new method in Ml2Plugin:"},{"line_number":32,"context_line":"    This new method should go through the order_mech_drivers  and if there is"},{"line_number":33,"context_line":"    any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"    that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. In resource\u0027s post/pre_commit method (i.e. network, port, subnet) there is no"},{"line_number":36,"context_line":"   way for mechanism driver to know the original data passed to the plugin"},{"line_number":37,"context_line":"   (for creating the resources). For instance for network resource, when a"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3ae8d1ca_931b801a","line":34,"updated":"2014-05-29 18:06:47.000000000","message":"If multiple mechanism drivers supports one extension, how  does a new plugin-level method handles extension-specific resources? or doesn\u0027t it matter for resource extension?","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c32e7cb9d9918513e788bb5329541301f12073d","unresolved":false,"context_lines":[{"line_number":31,"context_line":"2. Add new method in Ml2Plugin:"},{"line_number":32,"context_line":"    This new method should go through the order_mech_drivers  and if there is"},{"line_number":33,"context_line":"    any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"    that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. In resource\u0027s post/pre_commit method (i.e. network, port, subnet) there is no"},{"line_number":36,"context_line":"   way for mechanism driver to know the original data passed to the plugin"},{"line_number":37,"context_line":"   (for creating the resources). For instance for network resource, when a"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_f2e8857e","line":34,"in_reply_to":"1ae5cdf2_53315aeb","updated":"2014-05-30 22:26:58.000000000","message":"Can you please elaborate on \u0027...actively installed drivers\u0027 and give an example?\nThe way it works is that, plugin collects all the aliases from mechanism driver (exist in the order_mech_drivers list) and add them to the plugin\u0027s aliases list.\nAlso each mechanism driver need to update the extension path as well.","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"a78ce66e6299fac52960a88fc954c5efe7f937b4","unresolved":false,"context_lines":[{"line_number":31,"context_line":"2. Add new method in Ml2Plugin:"},{"line_number":32,"context_line":"    This new method should go through the order_mech_drivers  and if there is"},{"line_number":33,"context_line":"    any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"    that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. In resource\u0027s post/pre_commit method (i.e. network, port, subnet) there is no"},{"line_number":36,"context_line":"   way for mechanism driver to know the original data passed to the plugin"},{"line_number":37,"context_line":"   (for creating the resources). For instance for network resource, when a"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_93b4c7f3","line":34,"in_reply_to":"3ae8d1ca_931b801a","updated":"2014-05-30 07:05:31.000000000","message":"If you mean multiple mechanism drivers are adding the same extension, only one will be added to the aliases\u0027s list.","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9df59d8e03354d4f141cd4b385439fdd1806df10","unresolved":false,"context_lines":[{"line_number":40,"context_line":"   the extension\u0027s attribute. So mechanism driver cannot use the required info"},{"line_number":41,"context_line":"   passed to the create_network."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def create_network(self, context, network):"},{"line_number":44,"context_line":"    ..."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    net_data \u003d network[\u0027network\u0027]   \u003c\u003d net_data includes extension"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3ae8d1ca_33b9cce9","line":43,"updated":"2014-05-29 18:06:47.000000000","message":"Could you use a sphinx code block? It makes much easier read the converted html document.","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"a78ce66e6299fac52960a88fc954c5efe7f937b4","unresolved":false,"context_lines":[{"line_number":40,"context_line":"   the extension\u0027s attribute. So mechanism driver cannot use the required info"},{"line_number":41,"context_line":"   passed to the create_network."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def create_network(self, context, network):"},{"line_number":44,"context_line":"    ..."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    net_data \u003d network[\u0027network\u0027]   \u003c\u003d net_data includes extension"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_3369338c","line":43,"in_reply_to":"3ae8d1ca_33b9cce9","updated":"2014-05-30 07:05:31.000000000","message":"Will work on it.","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9df59d8e03354d4f141cd4b385439fdd1806df10","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  To avoid the issue, a new attribute can be added to NetworkContext (and also"},{"line_number":73,"context_line":"  for PortContext and SubnetContext) such as prime_network (prime_port and"},{"line_number":74,"context_line":"  prime_subnet). And it can be set when calling:"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"  driver_context.NetworkContext(self, context, result, prime_network\u003dnet_data),"},{"line_number":77,"context_line":"  so that it can be passed to the mechanism driver when call to:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3ae8d1ca_139bf067","line":74,"updated":"2014-05-29 18:06:47.000000000","message":"I am not sure \"prime_\" is an appropriate prefix. I don\u0027t have a good idea. Does anyone have an idea?","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"a78ce66e6299fac52960a88fc954c5efe7f937b4","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  To avoid the issue, a new attribute can be added to NetworkContext (and also"},{"line_number":73,"context_line":"  for PortContext and SubnetContext) such as prime_network (prime_port and"},{"line_number":74,"context_line":"  prime_subnet). And it can be set when calling:"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"  driver_context.NetworkContext(self, context, result, prime_network\u003dnet_data),"},{"line_number":77,"context_line":"  so that it can be passed to the mechanism driver when call to:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_134997d0","line":74,"in_reply_to":"1ae5cdf2_9b94eb45","updated":"2014-05-30 07:05:31.000000000","message":"Thanks for the suggestion. \u0027primordial_\u0027 sounds good to me. I can use it if there is no objection.","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"a78ce66e6299fac52960a88fc954c5efe7f937b4","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  To avoid the issue, a new attribute can be added to NetworkContext (and also"},{"line_number":73,"context_line":"  for PortContext and SubnetContext) such as prime_network (prime_port and"},{"line_number":74,"context_line":"  prime_subnet). And it can be set when calling:"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"  driver_context.NetworkContext(self, context, result, prime_network\u003dnet_data),"},{"line_number":77,"context_line":"  so that it can be passed to the mechanism driver when call to:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_f39fcb4e","line":74,"in_reply_to":"3ae8d1ca_139bf067","updated":"2014-05-30 07:05:31.000000000","message":"\u0027original\u0027 already being used, and haven\u0027t found a good name so far to replace \u0027prime\u0027 :(  appreciate any good suggestion.","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"950c4d32b2e09f614f71fcfc3a376d382efa6972","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  To avoid the issue, a new attribute can be added to NetworkContext (and also"},{"line_number":73,"context_line":"  for PortContext and SubnetContext) such as prime_network (prime_port and"},{"line_number":74,"context_line":"  prime_subnet). And it can be set when calling:"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"  driver_context.NetworkContext(self, context, result, prime_network\u003dnet_data),"},{"line_number":77,"context_line":"  so that it can be passed to the mechanism driver when call to:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_9b94eb45","line":74,"in_reply_to":"3ae8d1ca_139bf067","updated":"2014-05-29 20:40:35.000000000","message":"I don\u0027t like \"prime_\" either. A better prefix would be \"original_\" but that is already taken. Maybe \"primordial_\"? Doesn\u0027t exactly roll off the tongue.","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9df59d8e03354d4f141cd4b385439fdd1806df10","unresolved":false,"context_lines":[{"line_number":130,"context_line":""},{"line_number":131,"context_line":"Each mechanism driver should add extensions in _supported_extension_aliases"},{"line_number":132,"context_line":"and also add the extension path to api_extensions_path parameter in"},{"line_number":133,"context_line":"neutron.conf."},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Implementation"},{"line_number":136,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3ae8d1ca_3381cc4a","line":133,"updated":"2014-05-29 18:06:47.000000000","message":"I think api_extensions_path is no longer necessarily required.\n\n\n  from neutron.plugins.ml2 import extensions\n\n  class Ml2Plugin()\n    def __init__():\n      neutron_extensions.append_api_extensions_path(extensions.__path__)","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"a78ce66e6299fac52960a88fc954c5efe7f937b4","unresolved":false,"context_lines":[{"line_number":130,"context_line":""},{"line_number":131,"context_line":"Each mechanism driver should add extensions in _supported_extension_aliases"},{"line_number":132,"context_line":"and also add the extension path to api_extensions_path parameter in"},{"line_number":133,"context_line":"neutron.conf."},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Implementation"},{"line_number":136,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_cec30689","line":133,"in_reply_to":"3ae8d1ca_3381cc4a","updated":"2014-05-30 07:05:31.000000000","message":"Sure. The append_api_extensions_path() should be used from neutron/api/extensions.py to append extension\u0027s path.\n\nI\u0027ll update it to make it clear.","commit_id":"1f4d9c120f0b11e83d8b280ce3ecb6157e3f6ea4"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"1d92fcbd2b57e7f1d07641556e47a90beba3297b","unresolved":false,"context_lines":[{"line_number":23,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"The following changes can be considered as a solution to support extensions in"},{"line_number":26,"context_line":"mechanism driver:"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"1. If mechanism driver needs to support any extension, it should add:"},{"line_number":29,"context_line":"     a) _supported_extension_aliases attribute to its class."}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_5c800246","line":26,"updated":"2014-06-04 03:02:38.000000000","message":"I understand how the proposal works for extensions that add new attributes to the existing resources. This spec won\u0027t support adding new resources. Is this correct?","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"a3aa44e43d1ae971d84945fb29f005c1c511c5d9","unresolved":false,"context_lines":[{"line_number":23,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"The following changes can be considered as a solution to support extensions in"},{"line_number":26,"context_line":"mechanism driver:"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"1. If mechanism driver needs to support any extension, it should add:"},{"line_number":29,"context_line":"     a) _supported_extension_aliases attribute to its class."}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_eaf649f8","line":26,"in_reply_to":"1ae5cdf2_5c800246","updated":"2014-06-04 15:16:03.000000000","message":"That\u0027s correct. As extension manager can update and extend existing resource map.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":2888,"name":"Mathieu Rohon","email":"mathieu.rohon@gmail.com","username":"mathieu-rohon"},"change_message_id":"62f8a5f1119e39750d1e831892d615c148337c57","unresolved":false,"context_lines":[{"line_number":31,"context_line":"2. Add new method in Ml2Plugin:"},{"line_number":32,"context_line":"   This new method should go through the order_mech_drivers and if there is"},{"line_number":33,"context_line":"   any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"   that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. In resource\u0027s post/pre_commit method (i.e. network, port, subnet) there is no"},{"line_number":36,"context_line":"   way for mechanism driver to know the original data passed to the plugin"},{"line_number":37,"context_line":"   (for creating the resources). For instance for network resource, when a"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_c8cc9964","line":34,"updated":"2014-06-02 09:37:24.000000000","message":"I thinks what mark means during its review is how do we manage extensions that depends on the binding of a port. For example, if one port is bound to a MD which exposes an extension that is not supported by another MD which can also bind the port, what happens when the port gets bound by the second MD? How do we manage that fact that this this port will not take benefits of this extension?","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":2888,"name":"Mathieu Rohon","email":"mathieu.rohon@gmail.com","username":"mathieu-rohon"},"change_message_id":"ac413cb625119f3312e3ac95a7eb9d48ec59390b","unresolved":false,"context_lines":[{"line_number":31,"context_line":"2. Add new method in Ml2Plugin:"},{"line_number":32,"context_line":"   This new method should go through the order_mech_drivers and if there is"},{"line_number":33,"context_line":"   any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"   that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. In resource\u0027s post/pre_commit method (i.e. network, port, subnet) there is no"},{"line_number":36,"context_line":"   way for mechanism driver to know the original data passed to the plugin"},{"line_number":37,"context_line":"   (for creating the resources). For instance for network resource, when a"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_1572c810","line":34,"in_reply_to":"1ae5cdf2_9e18cc76","updated":"2014-06-04 08:07:22.000000000","message":"I agree with the fact that this is an issue of dependency between MD. We should probably document those dependencies, untill we have a framework to manage those dependencies.\nFor instance, using l2pop MD with a ODL MD which binds every port, will have no effect. Moreover, User/Cloud admin could consider that he has activated partial mesh by using l2pop MD, which won\u0027t be true in this case.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"a59990d235cb865af57fffd0e531f97f021e3dfa","unresolved":false,"context_lines":[{"line_number":31,"context_line":"2. Add new method in Ml2Plugin:"},{"line_number":32,"context_line":"   This new method should go through the order_mech_drivers and if there is"},{"line_number":33,"context_line":"   any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"   that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. In resource\u0027s post/pre_commit method (i.e. network, port, subnet) there is no"},{"line_number":36,"context_line":"   way for mechanism driver to know the original data passed to the plugin"},{"line_number":37,"context_line":"   (for creating the resources). For instance for network resource, when a"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_d320bdb2","line":34,"in_reply_to":"1ae5cdf2_c8cc9964","updated":"2014-06-02 16:42:54.000000000","message":"(This is not an answer. Just my thought.)\n\nI thought the similar topic when I commented before. It is a very interesting and complicated thing. In my understanding vendor/MD-specific extension affects only related MD behavior. If a MD does not support a specific extension, the MD doesn\u0027t need the feature or additional information. It is not specific to MD which binds the port.\n\nOn the other hand, I am afraid it is beyond the scope of this blueprint. I also need to consider a case with a single MDs with vendor-specific extension. Do we always need to consider multiple MDs? All MDs cannot co-exist.\n\nSome MDs can co-exist and some MDs have dependencies among them. We need to explore how to deal with the dependencies among MDs.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"df09de1684453d76165bcedf9838a374fbadafb9","unresolved":false,"context_lines":[{"line_number":31,"context_line":"2. Add new method in Ml2Plugin:"},{"line_number":32,"context_line":"   This new method should go through the order_mech_drivers and if there is"},{"line_number":33,"context_line":"   any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":34,"context_line":"   that is _supported_extension_aliases."},{"line_number":35,"context_line":"3. In resource\u0027s post/pre_commit method (i.e. network, port, subnet) there is no"},{"line_number":36,"context_line":"   way for mechanism driver to know the original data passed to the plugin"},{"line_number":37,"context_line":"   (for creating the resources). For instance for network resource, when a"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_9e18cc76","line":34,"in_reply_to":"1ae5cdf2_c8cc9964","updated":"2014-06-03 19:29:28.000000000","message":"I think Akihiro already clarified and answered the question. \n\nI just wanted to add that  this BP does not change existing behavior of extension manager framework. \nWhen a MD adds new extension to a resource map, it is common and I don\u0027t think with the existing framework you can tight it to a specific MD. A MD that defines the extension, will use it in its resource\u0027s method and there is no need for a MD that is not supporting the same feature use the extension.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"6a803c3f38a35b802a8222c1ba041a13159ab783","unresolved":false,"context_lines":[{"line_number":38,"context_line":"   network is created with an extension attribute in the network parameters,"},{"line_number":39,"context_line":"   according to the code below the \u0027result\u0027 and \u0027mech_context\u0027 do not include"},{"line_number":40,"context_line":"   the extension\u0027s attribute. So mechanism driver cannot use the required info"},{"line_number":41,"context_line":"   passed to the create_network."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def create_network(self, context, network):"},{"line_number":44,"context_line":"    ..."}],"source_content_type":"text/x-rst","patch_set":6,"id":"baada198_3d3a85cd","line":41,"updated":"2014-07-11 16:43:21.000000000","message":"Mechanism drivers are not intended to see the original data passed with the request. The semantics are that the mechanism drivers see the new (and previous in the case of updates) state of the resource.\n\nMechanism drivers are not supposed to modify the dictionaries containing the resource state. These dictionaries should be considered read-only, and the driver API provides no guarantee that any modifications made to these dictionaries will be returned as part of the response to the request. Also, if modifications of the dictionaries were allowed, then all drivers would not be seeing the entire new state of the resource.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"d504e0616ce4c9f8dee2ca5fd09b0abac8ff9bfa","unresolved":false,"context_lines":[{"line_number":38,"context_line":"   network is created with an extension attribute in the network parameters,"},{"line_number":39,"context_line":"   according to the code below the \u0027result\u0027 and \u0027mech_context\u0027 do not include"},{"line_number":40,"context_line":"   the extension\u0027s attribute. So mechanism driver cannot use the required info"},{"line_number":41,"context_line":"   passed to the create_network."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def create_network(self, context, network):"},{"line_number":44,"context_line":"    ..."}],"source_content_type":"text/x-rst","patch_set":6,"id":"baada198_e4476e4a","line":41,"in_reply_to":"baada198_3d3a85cd","updated":"2014-07-11 22:27:43.000000000","message":"With this proposal, mechanism driver *does not modify* dictionaries containing the resource state.\n\nThe intention is to pass the attribute information of a resource (e.g. network)  to the same mechanism driver that defines the extension. The mechanism driver reads the info and acts upon it. For example save it in a database for future references. Again there is no changes/modifications to the resource occurs here.\n\nA mechanism driver that defines the extension for a resource should be able to see the attribute, when the resource is created. That\u0027s why it is needed to pass the *original data* to the mechanism driver. There is no way,  with current implementation to pass the information to the mechanism driver.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"27cf20d83f4e0dd5fc613f09fbdd15c26ea86d92","unresolved":false,"context_lines":[{"line_number":38,"context_line":"   network is created with an extension attribute in the network parameters,"},{"line_number":39,"context_line":"   according to the code below the \u0027result\u0027 and \u0027mech_context\u0027 do not include"},{"line_number":40,"context_line":"   the extension\u0027s attribute. So mechanism driver cannot use the required info"},{"line_number":41,"context_line":"   passed to the create_network."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def create_network(self, context, network):"},{"line_number":44,"context_line":"    ..."}],"source_content_type":"text/x-rst","patch_set":6,"id":"baada198_76718ca7","line":41,"in_reply_to":"baada198_54fceb71","updated":"2014-07-17 16:21:43.000000000","message":"I updated the BP (patch 7) for using the extension driver per our discussion which addresses your comment.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"28acf5a191e6ec325103ea90e829c0e4aaacfb4c","unresolved":false,"context_lines":[{"line_number":38,"context_line":"   network is created with an extension attribute in the network parameters,"},{"line_number":39,"context_line":"   according to the code below the \u0027result\u0027 and \u0027mech_context\u0027 do not include"},{"line_number":40,"context_line":"   the extension\u0027s attribute. So mechanism driver cannot use the required info"},{"line_number":41,"context_line":"   passed to the create_network."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def create_network(self, context, network):"},{"line_number":44,"context_line":"    ..."}],"source_content_type":"text/x-rst","patch_set":6,"id":"baada198_54fceb71","line":41,"in_reply_to":"baada198_e4476e4a","updated":"2014-07-16 15:32:11.000000000","message":"The value of a well-behaved extended attribute needs to be persisted in create operations, can potentially be modified in update operations, and must appear in the result dictionary from create, update, and get operations. I\u0027m not seeing how your proposal returns the extended attribute in the results dictionaries without the driver modifying the resource\u0027s current dictionary. Am I missing something? Is the driver expected to register a dict_extend function for this?","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"fa02aa59fbf4f247e128e10dc568cb4ed44b6103","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_b59d820c","line":83,"updated":"2014-06-04 15:53:43.000000000","message":"I\u0027m not sure why the driver APIs need to treat extension attributes on core resources differently than the core attributes or even the attributes from extensions supported directly by the plugin. Maybe we just need for dict_extend() functions to be registered for each driver-specific extension so that the existing dictionaries are populated with these attributes. Has this been considered?","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"e9966e429e46837581a3a123622704c66b2b2bc1","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_ef85bb59","line":83,"in_reply_to":"1ae5cdf2_66a81b78","updated":"2014-06-10 19:15:44.000000000","message":"As I documented in https://etherpad.openstack.org/p/ML2_MD_extensions [line 43-60]\neven if process_extensions is set to True, the \u0027network\u0027 object that is passed to _make_network_dict() does not include the extensions.\n\nModification has to be made in create_network() (in db_base_plugin_v2.py) to make it possible. That means not only we have to add new parameter to create_network(..., process_extensions\u003dFalse), but also _make_network_dict should be called with this parameters:  _make_network_dict(n, process_extensions).\n\nThere will be additional changes in the Ml2Plugin to support this as well.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"0c3a93dff0c7721030eeff542ed86623afc3dcbb","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_ed5f3e3f","line":83,"in_reply_to":"1ae5cdf2_b59d820c","updated":"2014-06-04 19:16:59.000000000","message":"Yes. Registering a callback function (using register_dict_extend_funcs) was considered and it does not work.\nIn brief the issues are:\n\n1. When create_network is called (through super(ML2Pluging, self).create_network - in neutron/db/db_base_plugin_v2.py), it does not include extensions in network object (or populating args). So when _make_network_dict() is invoked it does not have the extensions information.\n\n2. In create_network, the callback function for extension never get processed. Because process_extension\u003dFalse. As a result no callback is invoked even if it is registered.\nIt set to False, when fix for bug 1201957 was committed.\n\nMD should be able to access the extension attribute when pre/post_commit is invoked.\n\nI captured more details in https://etherpad.openstack.org/p/ML2_MD_extensions","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"6a803c3f38a35b802a8222c1ba041a13159ab783","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":6,"id":"baada198_2eaeb198","line":83,"in_reply_to":"1ae5cdf2_c002370b","updated":"2014-07-11 16:43:21.000000000","message":"Since the mechanism drivers are supposed to see the entire state of the resource when it is created, it seems to me that process_extensions being False here is a bug, and this would need to be fixed for extensions to be supported.\n\nFor dict extend functions to work, DB models need to be setup with foreign key relationships to the core models, so that the dict_extend function can copy the value from the extensions model to the resource dictionary.\n\nWhen resources are created, the initial value needs to be stored in the DB model before the _make_network_dict() is called to populate the dictionary. An extension driver API would be needed to enable this.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":2888,"name":"Mathieu Rohon","email":"mathieu.rohon@gmail.com","username":"mathieu-rohon"},"change_message_id":"ea3fa05c94c517fefbc76b256474f8145d75ba4d","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_be66234f","line":83,"in_reply_to":"1ae5cdf2_ed5f3e3f","updated":"2014-06-05 13:44:56.000000000","message":"bob, do you propose to register a dict_extend function for each MD which implement an extension and that would be called by the plugin when it receives net/port/subnet_create/update?\n\nthen, once the dict of the context has been populated by the MD, this dict is sent to the same MD during pre_commit so that it can extend its own resources to the db, based on info it has previously populated in the dict?","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"1911670c2aa84372adb3057dae922410dd17b9cb","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_66a81b78","line":83,"in_reply_to":"1ae5cdf2_ed5f3e3f","updated":"2014-06-10 02:55:04.000000000","message":"can\u0027t we add optional process_extension\u003dFalse optional argument to super().create_network?","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d118a38b87b0e0dbbd3331877874632b13a9789c","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_c002370b","line":83,"in_reply_to":"1ae5cdf2_ef85bb59","updated":"2014-06-27 17:31:10.000000000","message":"ok, thanks for clarification.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"d504e0616ce4c9f8dee2ca5fd09b0abac8ff9bfa","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":6,"id":"baada198_87287434","line":83,"in_reply_to":"baada198_2eaeb198","updated":"2014-07-11 22:27:43.000000000","message":"That is correct, as I documented it in [1] that the fix for Bug# 1201957 sets the flag to False and with that there is no way to call _apply_dict_extend_functions, then registered callback method and hence process the extensions.\n\nEven if the process_extension flag is set to true which will cause _apply_dict_extend_function to be called, we still encounter problem here. Because the parameter that is passed to the function *is the network object* that contains common attributes. The original data is not getting passed. Basically three parameters are passed:\n\n1. resource\u0027s name, 2. res dictionary, and 3. network object.  (2) and (3) do not contain the extension attribute that a mechanism driver adds to the resource.\n\nPer your comment \u0027... When resources are created, the initial value needs to be store  in the DB model before ....\u0027, this is what I\u0027m trying to do by passing the original data to the mechanism driver.\n\nAgain,  as I documented in [1] per our discussion, the long term solution is to design a new extension driver to take care of storing the extension attribute in the data base.\n\n[1] https://etherpad.openstack.org/p/ML2_MD_extensions","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"fa02aa59fbf4f247e128e10dc568cb4ed44b6103","unresolved":false,"context_lines":[{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"},{"line_number":87,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_f0b0f844","line":84,"updated":"2014-06-04 15:53:43.000000000","message":"Another concern with allowing drivers to extend core resources is that the semantics of these extension will not necessarily be enforced if a driver not supporting that extension is bound for a port. I think we may need some way for these sorts of extensions, based on their attribute values, to cause mechanism drivers that do not support that extension to be skipped when attempting to bind. Has any thought gone into this? This also might require support for sharing extensions across groups of drivers.\n\nIf all the the sharing and semantics issues for extending core resources cannot be addressed in this BP, would it be sufficient to address drivers adding new (unshared) resources, but not extending core resources?","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"6a803c3f38a35b802a8222c1ba041a13159ab783","unresolved":false,"context_lines":[{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"},{"line_number":87,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"baada198_ce2c5505","line":84,"in_reply_to":"1ae5cdf2_037b5b28","updated":"2014-07-11 16:43:21.000000000","message":"What concerns me most is that this proposed approach to supporting extensions does not seem like a foundation for a longer term approach that can allow multiple mechanism drivers make use of the same extension, and that can enforce semantics required by the extension even in the presence of mechanism drivers that are not aware of the extension. If we do need to add ML2 support for extensions, I\u0027d much rather it be done in a way that can evolve over time into a complete solution.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"0c3a93dff0c7721030eeff542ed86623afc3dcbb","unresolved":false,"context_lines":[{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"},{"line_number":87,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_037b5b28","line":84,"in_reply_to":"1ae5cdf2_f0b0f844","updated":"2014-06-04 19:16:59.000000000","message":"I believe these concerns can be addressed in another BP to enhance the existing extension manager framework with respect to handling a common/shared/private extension for a plugin/MD. There were related discussion which was captured in here: https://etherpad.openstack.org/p/icehouse-neutron-vendor-extension\n\nThis BP makes a MD to add extensions attributes to the resources within current extension manager framework.","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"d504e0616ce4c9f8dee2ca5fd09b0abac8ff9bfa","unresolved":false,"context_lines":[{"line_number":81,"context_line":"  self.mechanism_manager.create_network_post/pre_commit(mech_context)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"  is made."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Alternatives"},{"line_number":87,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"baada198_e44a0eac","line":84,"in_reply_to":"baada198_ce2c5505","updated":"2014-07-11 22:27:43.000000000","message":"This proposal may not address all the cases that a mechanism driver can support an extension or share extension(s) with other mechanism driver, but it addresses the basic support of an extension in the mechanism driver. Basically it addresses the immediate need of ours and other folks that may need for such a support for Juno-2.\n\nA generic/long term solution will take more time to discuss and converge to an acceptable solution and we will definitely follow up with it.\n\nOnce this piece is available, we can revisit the extension support for mechanism drivers and implement the generic and long term solution, as I documented the discussion [1] regarding alternative solution (e.g. extension driver) that we had on IRC.\n\n[1] https://etherpad.openstack.org/p/ML2_MD_extensions","commit_id":"1998b6fc77a199d5496c5fe2774ae701919c39d4"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Support for extensions in ML2 Mechanism Drivers"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/neutron/+spec/neutron-ml2-mechanismdriver-extensions"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_095567c1","line":8,"updated":"2014-07-18 18:08:01.000000000","message":"Please rename this to \"Support for Extensions in ML2\", since the extension are no longer proposed to be supported by the mechanism drivers.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Support for extensions in ML2 Mechanism Drivers"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/neutron/+spec/neutron-ml2-mechanismdriver-extensions"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_af471ba2","line":8,"in_reply_to":"baada198_095567c1","updated":"2014-07-18 19:18:41.000000000","message":"Done","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":8,"context_line":"Support for extensions in ML2 Mechanism Drivers"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/neutron/+spec/neutron-ml2-mechanismdriver-extensions"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Need to include extensions defined by mechanism driver in Ml2Plugin."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_e90af3d0","line":11,"updated":"2014-07-18 18:08:01.000000000","message":"I think you should be able to rename the BP as well.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":8,"context_line":"Support for extensions in ML2 Mechanism Drivers"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/neutron/+spec/neutron-ml2-mechanismdriver-extensions"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Need to include extensions defined by mechanism driver in Ml2Plugin."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_af7abbb7","line":11,"in_reply_to":"baada198_e90af3d0","updated":"2014-07-18 19:18:41.000000000","message":"Changed it to .../extensions-in-ml2","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/neutron/+spec/neutron-ml2-mechanismdriver-extensions"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Need to include extensions defined by mechanism driver in Ml2Plugin."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Problem description"},{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_2984eb09","line":13,"updated":"2014-07-18 18:08:01.000000000","message":"I suggest replacing the line above with:\n\nThis blueprint defines a pluggable framework for extending core resource attributes in ML2.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/neutron/+spec/neutron-ml2-mechanismdriver-extensions"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Need to include extensions defined by mechanism driver in Ml2Plugin."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Problem description"},{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_af51db31","line":13,"in_reply_to":"baada198_2984eb09","updated":"2014-07-18 19:18:41.000000000","message":"Done","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"In current Ml2Plugin implementation, only extensions defined in Ml2Plugin is"},{"line_number":19,"context_line":"loaded and there is no support for mechanism driver to have their own"},{"line_number":20,"context_line":"extensions and load them when needed."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Proposed change"},{"line_number":23,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_f42ba67f","line":20,"updated":"2014-07-18 18:08:01.000000000","message":"How about replacing the above with the following:\n\nIn the current ML2 plugin implementation, only the extensions defined in the Ml2Plugin class itself are available, and there is no way for core resources to be extended with attributes needed by specific mechanism drivers. When such extensions are needed, whether for new general purpose features that might be incorporated in future core API versions, or to better support specific networking technologies, the only current option is to implement a new monolithic plugin.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"In current Ml2Plugin implementation, only extensions defined in Ml2Plugin is"},{"line_number":19,"context_line":"loaded and there is no support for mechanism driver to have their own"},{"line_number":20,"context_line":"extensions and load them when needed."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Proposed change"},{"line_number":23,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_4f259fc0","line":20,"in_reply_to":"baada198_f42ba67f","updated":"2014-07-18 19:18:41.000000000","message":"sounds good. Done.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":26,"context_line":"mechanism driver:"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"1. Introduce ExtensionDriver API and ExtensionManager (similar to TypeDrier and"},{"line_number":29,"context_line":"MechanismDriver)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"2. Define new configuration parameter which contains list of extension drivers"},{"line_number":32,"context_line":"supported by a mechanism driver (i.e. extension_drivers)"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_9447ca4b","line":29,"updated":"2014-07-18 18:08:01.000000000","message":"Do you mean \"(similar to MechanismDriver and MechanismManager)\"?","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":26,"context_line":"mechanism driver:"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"1. Introduce ExtensionDriver API and ExtensionManager (similar to TypeDrier and"},{"line_number":29,"context_line":"MechanismDriver)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"2. Define new configuration parameter which contains list of extension drivers"},{"line_number":32,"context_line":"supported by a mechanism driver (i.e. extension_drivers)"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_0f0f273a","line":29,"in_reply_to":"baada198_9447ca4b","updated":"2014-07-18 19:18:41.000000000","message":"Yes. Corrected it.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":29,"context_line":"MechanismDriver)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"2. Define new configuration parameter which contains list of extension drivers"},{"line_number":32,"context_line":"supported by a mechanism driver (i.e. extension_drivers)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"3. ExtensionDriver - Abstract class that provides the following interfaces for"},{"line_number":35,"context_line":"ML2 extesnsion drivers:"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_b45bee20","line":32,"updated":"2014-07-18 18:08:01.000000000","message":"I don\u0027t think the configuration parameter associates the extension drivers with specific mechanism drivers. How about \"...list of extension drivers to load (i.e. extension_drivers).\"?","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":29,"context_line":"MechanismDriver)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"2. Define new configuration parameter which contains list of extension drivers"},{"line_number":32,"context_line":"supported by a mechanism driver (i.e. extension_drivers)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"3. ExtensionDriver - Abstract class that provides the following interfaces for"},{"line_number":35,"context_line":"ML2 extesnsion drivers:"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_212cff98","line":32,"in_reply_to":"baada198_b45bee20","updated":"2014-07-18 19:18:41.000000000","message":"Done.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":32,"context_line":"supported by a mechanism driver (i.e. extension_drivers)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"3. ExtensionDriver - Abstract class that provides the following interfaces for"},{"line_number":35,"context_line":"ML2 extesnsion drivers:"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"- initialize: Abstract method - Perform extension driver initialization"},{"line_number":38,"context_line":"- extension_alias: Abstract property - Return supported extension aliases"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_74acf6ed","line":35,"updated":"2014-07-18 18:08:01.000000000","message":"provides -\u003e defines, \nextensnsion -\u003e extension","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":32,"context_line":"supported by a mechanism driver (i.e. extension_drivers)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"3. ExtensionDriver - Abstract class that provides the following interfaces for"},{"line_number":35,"context_line":"ML2 extesnsion drivers:"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"- initialize: Abstract method - Perform extension driver initialization"},{"line_number":38,"context_line":"- extension_alias: Abstract property - Return supported extension aliases"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_019c5bbf","line":35,"in_reply_to":"baada198_74acf6ed","updated":"2014-07-18 19:18:41.000000000","message":"Done.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":51,"context_line":"- ext_drivers: Contains registered extension drivers, keyed by name"},{"line_number":52,"context_line":"- ordered_ext_drivers: Contains ordered list of extension drivers"},{"line_number":53,"context_line":"- initialize: Perform initialization for extension drivers"},{"line_number":54,"context_line":"- _register_extension_drivers: Register all extension driver"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"5. Ml2Plugin will load the ExtensionDriver during initialization"},{"line_number":57,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_9416eaf0","line":54,"updated":"2014-07-18 18:08:01.000000000","message":"I don\u0027t think the detail in the above four lines is needed. Maybe just say:\n\n4. ExtensionManager\n\nManages loading and initializing extension drivers similarly to the existing TypeManager and MechanismManager classes. Provides methods that dispatch to the the ordered list of registered extension drivers for each of the process_create_\u003cresource\u003e, process_update_\u003cresource\u003e, and extend_\u003cresource\u003e_dict abstract operations defined on ExtensionDriver.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":51,"context_line":"- ext_drivers: Contains registered extension drivers, keyed by name"},{"line_number":52,"context_line":"- ordered_ext_drivers: Contains ordered list of extension drivers"},{"line_number":53,"context_line":"- initialize: Perform initialization for extension drivers"},{"line_number":54,"context_line":"- _register_extension_drivers: Register all extension driver"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"5. Ml2Plugin will load the ExtensionDriver during initialization"},{"line_number":57,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_21887f70","line":54,"in_reply_to":"baada198_9416eaf0","updated":"2014-07-18 19:18:41.000000000","message":"Done.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- initialize: Perform initialization for extension drivers"},{"line_number":54,"context_line":"- _register_extension_drivers: Register all extension driver"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"5. Ml2Plugin will load the ExtensionDriver during initialization"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"6. Add new method in Ml2Plugin:"},{"line_number":59,"context_line":"   This new method should go through the order_ext_drivers and if there is"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_94450ab6","line":56,"updated":"2014-07-18 18:08:01.000000000","message":"Ml2Plugin will initialize the ExtensionManager at startup, which will load and initialize the configured ExtensionDrivers.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- initialize: Perform initialization for extension drivers"},{"line_number":54,"context_line":"- _register_extension_drivers: Register all extension driver"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"5. Ml2Plugin will load the ExtensionDriver during initialization"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"6. Add new method in Ml2Plugin:"},{"line_number":59,"context_line":"   This new method should go through the order_ext_drivers and if there is"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_0138db9e","line":56,"in_reply_to":"baada198_94450ab6","updated":"2014-07-18 19:18:41.000000000","message":"Done","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":58,"context_line":"6. Add new method in Ml2Plugin:"},{"line_number":59,"context_line":"   This new method should go through the order_ext_drivers and if there is"},{"line_number":60,"context_line":"   any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":61,"context_line":"   _supported_extension_aliases."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"7. In resource\u0027s create, update and delete (i.e. network, port, subnet in"},{"line_number":64,"context_line":"   Ml2Plugin) before calling the pre/post_commit, process_create/update/delete"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_546d3231","line":61,"updated":"2014-07-18 18:08:01.000000000","message":"6. Change Ml2Plugin\u0027s supported_extension_aliases abstract property to include the extension_alias property of each registered ExtensionDriver.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":58,"context_line":"6. Add new method in Ml2Plugin:"},{"line_number":59,"context_line":"   This new method should go through the order_ext_drivers and if there is"},{"line_number":60,"context_line":"   any aliases supported, add it to existing list of aliases in the Ml2Plugin"},{"line_number":61,"context_line":"   _supported_extension_aliases."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"7. In resource\u0027s create, update and delete (i.e. network, port, subnet in"},{"line_number":64,"context_line":"   Ml2Plugin) before calling the pre/post_commit, process_create/update/delete"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_61435713","line":61,"in_reply_to":"baada198_546d3231","updated":"2014-07-18 19:18:41.000000000","message":"Done","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":61,"context_line":"   _supported_extension_aliases."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"7. In resource\u0027s create, update and delete (i.e. network, port, subnet in"},{"line_number":64,"context_line":"   Ml2Plugin) before calling the pre/post_commit, process_create/update/delete"},{"line_number":65,"context_line":"   in extension driver should be called to validate and persist any extended"},{"line_number":66,"context_line":"   resource\u0027s attributes defined by driver. Extended attribute must also be"},{"line_number":67,"context_line":"   returned."}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_94f8aa4b","line":64,"updated":"2014-07-18 18:08:01.000000000","message":"No need to call the ExtensionDrivers for delete. For create and updates, they will be called prior to the MechanismDriver pre_commit methods being called.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":61,"context_line":"   _supported_extension_aliases."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"7. In resource\u0027s create, update and delete (i.e. network, port, subnet in"},{"line_number":64,"context_line":"   Ml2Plugin) before calling the pre/post_commit, process_create/update/delete"},{"line_number":65,"context_line":"   in extension driver should be called to validate and persist any extended"},{"line_number":66,"context_line":"   resource\u0027s attributes defined by driver. Extended attribute must also be"},{"line_number":67,"context_line":"   returned."}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_615a77f3","line":64,"in_reply_to":"baada198_94f8aa4b","updated":"2014-07-18 19:18:41.000000000","message":"Done","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    ..."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    self.mechanism_manager.create_network_postcommit(mech_context)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_14b3ba9a","line":95,"updated":"2014-07-18 18:08:01.000000000","message":"I don\u0027t think the code above needs to included in the spec.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    ..."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    self.mechanism_manager.create_network_postcommit(mech_context)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_21323fa7","line":95,"in_reply_to":"baada198_14b3ba9a","updated":"2014-07-18 19:18:41.000000000","message":"Removed it.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    self.mechanism_manager.create_network_postcommit(mech_context)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"Alternatives"},{"line_number":99,"context_line":"------------"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_b47a0eb8","line":97,"updated":"2014-07-18 18:08:01.000000000","message":"8. In each case where dictionaries are built by Ml2Plugin for network, subnet, and port resources, the ExtensionManager\u0027s extend_\u003cresource\u003e_dict function will be called so that the registered ExtensionDrivers can add their extended attributes.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":99,"context_line":"------------"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"Instead of using aliases list for extensions, plugin or mechanism driver"},{"line_number":102,"context_line":"return extensions."},{"line_number":103,"context_line":"Link below contains discussion on this subject in icehouse summit:"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"https://etherpad.openstack.org/p/icehouse-neutron-vendor-extension"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_b4512e32","line":102,"updated":"2014-07-18 18:08:01.000000000","message":"Not sure if the above is worth mentioning, unless you feel it is important.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":99,"context_line":"------------"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"Instead of using aliases list for extensions, plugin or mechanism driver"},{"line_number":102,"context_line":"return extensions."},{"line_number":103,"context_line":"Link below contains discussion on this subject in icehouse summit:"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"https://etherpad.openstack.org/p/icehouse-neutron-vendor-extension"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_a1e48f0d","line":102,"in_reply_to":"baada198_b4512e32","updated":"2014-07-18 19:18:41.000000000","message":"Removed it.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":103,"context_line":"Link below contains discussion on this subject in icehouse summit:"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"https://etherpad.openstack.org/p/icehouse-neutron-vendor-extension"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"Data model impact"},{"line_number":108,"context_line":"-----------------"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_cf260fba","line":106,"updated":"2014-07-18 18:08:01.000000000","message":"Might mention here that the alternative of implementing extensions directly in mechanism drivers was considered, but was rejected for various reasons, including no way to return extended attributes from get operations.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":103,"context_line":"Link below contains discussion on this subject in icehouse summit:"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"https://etherpad.openstack.org/p/icehouse-neutron-vendor-extension"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"Data model impact"},{"line_number":108,"context_line":"-----------------"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_e1984777","line":106,"in_reply_to":"baada198_cf260fba","updated":"2014-07-18 19:18:41.000000000","message":"Added to this section","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":107,"context_line":"Data model impact"},{"line_number":108,"context_line":"-----------------"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"None"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"REST API impact"},{"line_number":113,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_4f3affcd","line":110,"updated":"2014-07-18 18:08:01.000000000","message":"ExtensionDriver implementations will add tables to store their extended attributes, but no ExtensionDrivers are included in the BP.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":107,"context_line":"Data model impact"},{"line_number":108,"context_line":"-----------------"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"None"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"REST API impact"},{"line_number":113,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_e1a687aa","line":110,"in_reply_to":"baada198_4f3affcd","updated":"2014-07-18 19:18:41.000000000","message":"Done","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":112,"context_line":"REST API impact"},{"line_number":113,"context_line":"---------------"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"None"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"Security impact"},{"line_number":118,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_0f6ba7b9","line":115,"updated":"2014-07-18 18:08:01.000000000","message":"Core resource extensions will now be possible with ML2, similar to what has previously been possible with monolithic plugins.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":112,"context_line":"REST API impact"},{"line_number":113,"context_line":"---------------"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"None"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"Security impact"},{"line_number":118,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_01b7fbd8","line":115,"in_reply_to":"baada198_0f6ba7b9","updated":"2014-07-18 19:18:41.000000000","message":"Done","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":182,"context_line":"The regular test for plugin still applies here. But to test extension on"},{"line_number":183,"context_line":"on mechanism driver, the test case should include ML2 mechanism driver with"},{"line_number":184,"context_line":"extensions and also resources such as network, port and subnet include"},{"line_number":185,"context_line":"extension attribute."},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"Documentation Impact"},{"line_number":188,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_0f0c87eb","line":185,"updated":"2014-07-18 18:08:01.000000000","message":"The regular test for plugin still applies here. But new unit tests will be added with a test ExtensionDriver that verifies that extended attributes are properly processed in create and update operations, returned from create, update, and get operations, and available from within MechanismDriver methods.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":182,"context_line":"The regular test for plugin still applies here. But to test extension on"},{"line_number":183,"context_line":"on mechanism driver, the test case should include ML2 mechanism driver with"},{"line_number":184,"context_line":"extensions and also resources such as network, port and subnet include"},{"line_number":185,"context_line":"extension attribute."},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"Documentation Impact"},{"line_number":188,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_21e31fda","line":185,"in_reply_to":"baada198_0f0c87eb","updated":"2014-07-18 19:18:41.000000000","message":"Done","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"b45b08c900ba054a636c943c4dfcca7b3b0acca7","unresolved":false,"context_lines":[{"line_number":187,"context_line":"Documentation Impact"},{"line_number":188,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"Update document on how the ML2 mechanism driver supports extensions."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"References"},{"line_number":193,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_8fba5709","line":190,"updated":"2014-07-18 18:08:01.000000000","message":"Not sure if there is any ML2 developer document that would need to be manually updated. The ExtensionDriver API will include docstrings describing the new API, so generated documentation will cover it. Will need to update deployment docs for the new config variable. Will mainly be covered by vendor docs whose mechanism drivers require extension drivers.","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"049be72bd16c8d316919ab54715bbeeb9e838bf1","unresolved":false,"context_lines":[{"line_number":187,"context_line":"Documentation Impact"},{"line_number":188,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"Update document on how the ML2 mechanism driver supports extensions."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"References"},{"line_number":193,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"baada198_210a3f8a","line":190,"in_reply_to":"baada198_8fba5709","updated":"2014-07-18 19:18:41.000000000","message":"Done","commit_id":"86a8355096414ff2d4e356623ea39e1517f772bc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"8b3ad96491c6270b6849386cdcaf9e85daf15e6f","unresolved":false,"context_lines":[{"line_number":8,"context_line":"Support for Extensions in ML2"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/neutron/+spec/extensions-in-ml2"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This blueprint defines a pluggable framework for extending core resource"},{"line_number":14,"context_line":"attributes in ML2"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_7a893cc9","line":11,"updated":"2014-07-18 20:39:06.000000000","message":"Nit - I think this file\u0027s name should match the blueprint name.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"0ab1bffaca1fb3b4609bcd08d8571b0fe243fc08","unresolved":false,"context_lines":[{"line_number":8,"context_line":"Support for Extensions in ML2"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/neutron/+spec/extensions-in-ml2"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This blueprint defines a pluggable framework for extending core resource"},{"line_number":14,"context_line":"attributes in ML2"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_95da6176","line":11,"in_reply_to":"baada198_7a893cc9","updated":"2014-07-18 21:11:45.000000000","message":"If I change the file name does it cause any issue when running \u0027git review\u0027.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"8b3ad96491c6270b6849386cdcaf9e85daf15e6f","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://blueprints.launchpad.net/neutron/+spec/extensions-in-ml2"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This blueprint defines a pluggable framework for extending core resource"},{"line_number":14,"context_line":"attributes in ML2"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_1a64c0b7","line":14,"updated":"2014-07-18 20:39:06.000000000","message":"Nit - missing period.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"0ab1bffaca1fb3b4609bcd08d8571b0fe243fc08","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://blueprints.launchpad.net/neutron/+spec/extensions-in-ml2"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This blueprint defines a pluggable framework for extending core resource"},{"line_number":14,"context_line":"attributes in ML2"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_f582bd50","line":14,"in_reply_to":"baada198_1a64c0b7","updated":"2014-07-18 21:11:45.000000000","message":"Done","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"8b3ad96491c6270b6849386cdcaf9e85daf15e6f","unresolved":false,"context_lines":[{"line_number":30,"context_line":"The following changes can be considered as a solution to support extensions in"},{"line_number":31,"context_line":"mechanism driver:"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"1. Introduce ExtensionDriver API and ExtensionManager (similar to TypeDrier and"},{"line_number":34,"context_line":"MechanismManager)."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"2. Define new configuration parameter which contains list of extension drivers"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_daea48d7","line":33,"updated":"2014-07-18 20:39:06.000000000","message":"misspelled, and should site the matching classes:\n\nTypeDrier -\u003e MechanismDriver","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"378a9420494a53028e2d55bf57afcf22d16e35a5","unresolved":false,"context_lines":[{"line_number":30,"context_line":"The following changes can be considered as a solution to support extensions in"},{"line_number":31,"context_line":"mechanism driver:"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"1. Introduce ExtensionDriver API and ExtensionManager (similar to TypeDrier and"},{"line_number":34,"context_line":"MechanismManager)."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"2. Define new configuration parameter which contains list of extension drivers"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_ba9bd471","line":33,"updated":"2014-07-18 20:33:42.000000000","message":"typo: TypeDriver","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"0ab1bffaca1fb3b4609bcd08d8571b0fe243fc08","unresolved":false,"context_lines":[{"line_number":30,"context_line":"The following changes can be considered as a solution to support extensions in"},{"line_number":31,"context_line":"mechanism driver:"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"1. Introduce ExtensionDriver API and ExtensionManager (similar to TypeDrier and"},{"line_number":34,"context_line":"MechanismManager)."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"2. Define new configuration parameter which contains list of extension drivers"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_7a0cdc42","line":33,"in_reply_to":"baada198_ba9bd471","updated":"2014-07-18 21:11:45.000000000","message":"Done","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"0ab1bffaca1fb3b4609bcd08d8571b0fe243fc08","unresolved":false,"context_lines":[{"line_number":30,"context_line":"The following changes can be considered as a solution to support extensions in"},{"line_number":31,"context_line":"mechanism driver:"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"1. Introduce ExtensionDriver API and ExtensionManager (similar to TypeDrier and"},{"line_number":34,"context_line":"MechanismManager)."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"2. Define new configuration parameter which contains list of extension drivers"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_3506f51c","line":33,"in_reply_to":"baada198_daea48d7","updated":"2014-07-18 21:11:45.000000000","message":"Done","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"378a9420494a53028e2d55bf57afcf22d16e35a5","unresolved":false,"context_lines":[{"line_number":33,"context_line":"1. Introduce ExtensionDriver API and ExtensionManager (similar to TypeDrier and"},{"line_number":34,"context_line":"MechanismManager)."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"2. Define new configuration parameter which contains list of extension drivers"},{"line_number":37,"context_line":"to load (i.e. extension_drivers)."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"3. ExtensionDriver - Abstract class that defines the following interfaces for"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_1a95a032","line":36,"updated":"2014-07-18 20:33:42.000000000","message":"Why config parameter?\n\nI think that was discussed at Icehouse summit already.\nAt that point we were talking about API layer (specifically, extension manager) to ask ml2 plugin (or any core plugin) about additional extensions that might be loaded and load them directly from plugin, which in turn, get those extensions from the driver.\n\nHowever it\u0027s still not quite clear how dispatching would work for such extensions.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"c8fcbd958a7d5a6fa9d528724eb2e6e4c1b51811","unresolved":false,"context_lines":[{"line_number":33,"context_line":"1. Introduce ExtensionDriver API and ExtensionManager (similar to TypeDrier and"},{"line_number":34,"context_line":"MechanismManager)."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"2. Define new configuration parameter which contains list of extension drivers"},{"line_number":37,"context_line":"to load (i.e. extension_drivers)."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"3. ExtensionDriver - Abstract class that defines the following interfaces for"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_f5263db9","line":36,"in_reply_to":"baada198_1a95a032","updated":"2014-07-18 20:56:07.000000000","message":"In working with Nader on this, we\u0027ve tried to keep it as simple as possible, and therefore followed the same configuration pattern used for other ML2 drivers.\n\nWe think the approach proposed is a good basis for future enhancement, and also lets the same extension be used by multiple mechanism drivers. In the future, I\u0027d like to add a mechanism whereby ML2 port binding would take extensions into account, and an extension could indicate whether the semantics implied by the value of its attribute\u0027s on the relevant port, subnet, or network resource require support from the mechanism driver that binds. Maybe automating the loading of needed extension drivers would best be handled in conjunction with this sort of enhancement.\n\nDispatching works just like in the ML2 MechanismManager, where each registered driver is called in order.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"378a9420494a53028e2d55bf57afcf22d16e35a5","unresolved":false,"context_lines":[{"line_number":51,"context_line":"- extend_subnet_dict: Add extended attributes to subnet dictionary"},{"line_number":52,"context_line":"- extend_port_dict: Add extended attributes to port dictionary"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"4. ExtensionManager - Manages loading and initializing extension drivers"},{"line_number":55,"context_line":"similarly to the existing TypeManager and MechanismManager classes."},{"line_number":56,"context_line":"Provides methods that dispatch to the ordered list of registered extension"},{"line_number":57,"context_line":"drivers for each of the process_create_\u003cresource\u003e, process_update_\u003cresource\u003e,"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_7aa3fc9d","line":54,"updated":"2014-07-18 20:33:42.000000000","message":"How does it relate to REST extension?","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"c8fcbd958a7d5a6fa9d528724eb2e6e4c1b51811","unresolved":false,"context_lines":[{"line_number":51,"context_line":"- extend_subnet_dict: Add extended attributes to subnet dictionary"},{"line_number":52,"context_line":"- extend_port_dict: Add extended attributes to port dictionary"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"4. ExtensionManager - Manages loading and initializing extension drivers"},{"line_number":55,"context_line":"similarly to the existing TypeManager and MechanismManager classes."},{"line_number":56,"context_line":"Provides methods that dispatch to the ordered list of registered extension"},{"line_number":57,"context_line":"drivers for each of the process_create_\u003cresource\u003e, process_update_\u003cresource\u003e,"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_d54e9937","line":54,"in_reply_to":"baada198_7aa3fc9d","updated":"2014-07-18 20:56:07.000000000","message":"The actual extension supported by the driver still needs to be described by an ExtensionDescriptor class that implements get_extended_resources(). The neutron core\u0027s loading of these extensions based on the plugin\u0027s supported_extension_aliases property is not changed by this proposal.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"0ab1bffaca1fb3b4609bcd08d8571b0fe243fc08","unresolved":false,"context_lines":[{"line_number":51,"context_line":"- extend_subnet_dict: Add extended attributes to subnet dictionary"},{"line_number":52,"context_line":"- extend_port_dict: Add extended attributes to port dictionary"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"4. ExtensionManager - Manages loading and initializing extension drivers"},{"line_number":55,"context_line":"similarly to the existing TypeManager and MechanismManager classes."},{"line_number":56,"context_line":"Provides methods that dispatch to the ordered list of registered extension"},{"line_number":57,"context_line":"drivers for each of the process_create_\u003cresource\u003e, process_update_\u003cresource\u003e,"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_f55e3de8","line":54,"in_reply_to":"baada198_7aa3fc9d","updated":"2014-07-18 21:11:45.000000000","message":"The extension can be loaded as it is loaded with existing framework and the API should be implemented by the mechanism driver that supports the extension.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"378a9420494a53028e2d55bf57afcf22d16e35a5","unresolved":false,"context_lines":[{"line_number":58,"context_line":"and extend_\u003cresource\u003e_dict abstract operations defined on ExtensionDriver."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"5. Ml2Plugin will initialize the ExtensionManager at startup, which will load"},{"line_number":61,"context_line":"and initialize the configured ExtensionDrivers."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"6. Change Ml2Plugin\u0027s supported_extension_aliases abstract property to include"},{"line_number":64,"context_line":"the extension_alias property of each registered ExtensionDriver."}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_3a098484","line":61,"updated":"2014-07-18 20:33:42.000000000","message":"I\u0027m not sure we want additional drivers besides mechanism drivers, why separate them?","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"c8fcbd958a7d5a6fa9d528724eb2e6e4c1b51811","unresolved":false,"context_lines":[{"line_number":58,"context_line":"and extend_\u003cresource\u003e_dict abstract operations defined on ExtensionDriver."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"5. Ml2Plugin will initialize the ExtensionManager at startup, which will load"},{"line_number":61,"context_line":"and initialize the configured ExtensionDrivers."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"6. Change Ml2Plugin\u0027s supported_extension_aliases abstract property to include"},{"line_number":64,"context_line":"the extension_alias property of each registered ExtensionDriver."}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_b547654b","line":61,"in_reply_to":"baada198_3a098484","updated":"2014-07-18 20:56:07.000000000","message":"This approach allows the same extension to be shared by multiple mechanism drivers. Also, mechanism drivers are not currently called in the right places to do whats needed for extensions. Finally, having a separate extension driver class allows future enhancements such as what I described above regarding port binding.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"602733c422038572b3c944f35ecee29b6dbd3293","unresolved":false,"context_lines":[{"line_number":58,"context_line":"and extend_\u003cresource\u003e_dict abstract operations defined on ExtensionDriver."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"5. Ml2Plugin will initialize the ExtensionManager at startup, which will load"},{"line_number":61,"context_line":"and initialize the configured ExtensionDrivers."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"6. Change Ml2Plugin\u0027s supported_extension_aliases abstract property to include"},{"line_number":64,"context_line":"the extension_alias property of each registered ExtensionDriver."}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_066469b7","line":61,"in_reply_to":"baada198_90ceef58","updated":"2014-07-18 22:37:29.000000000","message":"Last comment first - no changes to the REST layer are being proposed in this BP. The REST layer loads ExtensionDescriptors (found on the extension path) based on whether their aliases are listed in the core plugin\u0027s supported_extension_aliases property. This proposal does describe how the alias identifying the extension supported by the extension driver will be included in Ml2Plugin\u0027s supported_extension_aliases value. The existing REST layer handles the extension once the alias is there and the ExtensionDescriptor is found on the path. Given that this all works and the REST layer is allowing the extension\u0027s attributes through to/from the plugin, this proposal defines how an ExtensionDriver can validate incoming extended attribute values, persist them, put their values in outgoing response messages, and make their values available to mechanism drivers.\n\nNext, I think there is a lot more to a mechanism driver \"supporting an extension\" than just causing it to be loaded into the REST layer and persisted by the extension driver. Eventually, we\u0027ll need port binding to take the extended attributes into account and make sure that the required semantics are satisfied. For example, an empty/default value for an extended attribute might allow any mechanism driver to bind, while some specific value would require a mechanism driver to bind that understands and can enforce the semantics of the extension. But getting this right will probably require some experience with ML2 extensions, and it seems simple use cases with a single binding mechanism driver can be supported in Juno without any changes to port binding.\n\nFinally, given that we\u0027re deferring trying to define this formal relationship between mechanism drivers and extension drivers until later, its seems sufficient for now to use the existing driver configuration pattern to load extension drivers. This could be considered an advantage, in that it makes the extensions enabled in the API explicit, rather than a side effect of the configured mechanism driver(s). If a vendor\u0027s mechanism driver requires a corresponding extension driver, it will be up to that vendor to document this, and/or automate the deployment configuration in some way. Even if we do implement the extension_drivers config variable as described here, we could later add another mechanism such as you have proposed to cause extension drivers to be loaded.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"4be8248ed459b6e75732f3fa19627bbe747aa8e2","unresolved":false,"context_lines":[{"line_number":58,"context_line":"and extend_\u003cresource\u003e_dict abstract operations defined on ExtensionDriver."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"5. Ml2Plugin will initialize the ExtensionManager at startup, which will load"},{"line_number":61,"context_line":"and initialize the configured ExtensionDrivers."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"6. Change Ml2Plugin\u0027s supported_extension_aliases abstract property to include"},{"line_number":64,"context_line":"the extension_alias property of each registered ExtensionDriver."}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_90ceef58","line":61,"in_reply_to":"baada198_b547654b","updated":"2014-07-18 21:39:46.000000000","message":"Well, I\u0027m not against separate extension class, I\u0027m more concerned about additional configuration that is needed.\n\nCan\u0027t mech drivers just implement something like\n\n def get_supported_exts(self):\n      return [ExtX(), ExtY(), ExtZ()]\n\nThat will then be used by extension manager to embed into REST layer (plus resolve the cases where different extensions are supported by different mech driver - i\u0027m trying to understand how dispatching will work in this case)\n\nI don\u0027t see this proposal explaining REST-layer changes","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"378a9420494a53028e2d55bf57afcf22d16e35a5","unresolved":false,"context_lines":[{"line_number":61,"context_line":"and initialize the configured ExtensionDrivers."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"6. Change Ml2Plugin\u0027s supported_extension_aliases abstract property to include"},{"line_number":64,"context_line":"the extension_alias property of each registered ExtensionDriver."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"7. In resource\u0027s create and update (i.e. network, port, subnet in Ml2Plugin)"},{"line_number":67,"context_line":"before calling the pre/post_commit, process_create/update in extension"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_3ae424df","line":64,"updated":"2014-07-18 20:33:42.000000000","message":"I would propose another way of loading extensions for this case.\nInstead of exposing ext aliases, plugin should explicitly return REST resources or methods, that extension manager could call to create REST resources.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"c8fcbd958a7d5a6fa9d528724eb2e6e4c1b51811","unresolved":false,"context_lines":[{"line_number":61,"context_line":"and initialize the configured ExtensionDrivers."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"6. Change Ml2Plugin\u0027s supported_extension_aliases abstract property to include"},{"line_number":64,"context_line":"the extension_alias property of each registered ExtensionDriver."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"7. In resource\u0027s create and update (i.e. network, port, subnet in Ml2Plugin)"},{"line_number":67,"context_line":"before calling the pre/post_commit, process_create/update in extension"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_95ac21ef","line":64,"in_reply_to":"baada198_3ae424df","updated":"2014-07-18 20:56:07.000000000","message":"I\u0027m not sure I understand this comment, but this proposal\u0027s scope is limited to the ML2 plugin, and as not making any changes outside ML2. Any changes to the REST framework and how extensions are defined and loaded by the neutron core should be made through a separate BP. I think the proposal here can evolve along with any changes made in those areas.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"602733c422038572b3c944f35ecee29b6dbd3293","unresolved":false,"context_lines":[{"line_number":61,"context_line":"and initialize the configured ExtensionDrivers."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"6. Change Ml2Plugin\u0027s supported_extension_aliases abstract property to include"},{"line_number":64,"context_line":"the extension_alias property of each registered ExtensionDriver."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"7. In resource\u0027s create and update (i.e. network, port, subnet in Ml2Plugin)"},{"line_number":67,"context_line":"before calling the pre/post_commit, process_create/update in extension"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_26da4d4b","line":64,"in_reply_to":"baada198_6bca5050","updated":"2014-07-18 22:37:29.000000000","message":"I think I addressed that in the 1st part of my reply to your line 61 comment above.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"9323fd20b3b6257062cf2058cc30b854f5c9385c","unresolved":false,"context_lines":[{"line_number":61,"context_line":"and initialize the configured ExtensionDrivers."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"6. Change Ml2Plugin\u0027s supported_extension_aliases abstract property to include"},{"line_number":64,"context_line":"the extension_alias property of each registered ExtensionDriver."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"7. In resource\u0027s create and update (i.e. network, port, subnet in Ml2Plugin)"},{"line_number":67,"context_line":"before calling the pre/post_commit, process_create/update in extension"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_6bca5050","line":64,"in_reply_to":"baada198_95ac21ef","updated":"2014-07-18 22:06:40.000000000","message":"Well, the problem description says:\n\"...and there is no way for core resources to\tbe extended with attributes needed by specific mechanism drivers.\"\nHow additional attributes could be passed if there\u0027s no changes in REST layer to support it?","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"378a9420494a53028e2d55bf57afcf22d16e35a5","unresolved":false,"context_lines":[{"line_number":81,"context_line":"https://etherpad.openstack.org/p/icehouse-neutron-vendor-extension"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"Also, alternative of implementing extensions directly in mechanism drivers was"},{"line_number":84,"context_line":"considered, but was rejected for various reasons, including no way to return"},{"line_number":85,"context_line":"extended attributes from get operations"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_7a3f7c25","line":84,"updated":"2014-07-18 20:33:42.000000000","message":"It actually was not rejected, it\u0027s just we didn\u0027t have enough resources to work on the proposal","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"0ab1bffaca1fb3b4609bcd08d8571b0fe243fc08","unresolved":false,"context_lines":[{"line_number":81,"context_line":"https://etherpad.openstack.org/p/icehouse-neutron-vendor-extension"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"Also, alternative of implementing extensions directly in mechanism drivers was"},{"line_number":84,"context_line":"considered, but was rejected for various reasons, including no way to return"},{"line_number":85,"context_line":"extended attributes from get operations"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_f5d0fd54","line":84,"in_reply_to":"baada198_7a3f7c25","updated":"2014-07-18 21:11:45.000000000","message":"If you mean proposal in the above link, it does not refer to that proposal. I was referring to the proposal in patch 1.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"c8fcbd958a7d5a6fa9d528724eb2e6e4c1b51811","unresolved":false,"context_lines":[{"line_number":81,"context_line":"https://etherpad.openstack.org/p/icehouse-neutron-vendor-extension"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"Also, alternative of implementing extensions directly in mechanism drivers was"},{"line_number":84,"context_line":"considered, but was rejected for various reasons, including no way to return"},{"line_number":85,"context_line":"extended attributes from get operations"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_b58cc581","line":84,"in_reply_to":"baada198_7a3f7c25","updated":"2014-07-18 20:56:07.000000000","message":"The initial draft of the proposal tried to do this with modifications to the mechanism driver API and its semantics, but turned out in review to not be a good basis for a complete solution.","commit_id":"8dcf318f69362ceb284a8781640c92a4b6a27d45"}]}
