Extensible port attribute for plugin to provide details to VIF driver
Currently, the binding:vif_type and binding:
The fix for bug 1112912 should be able to use this binding:vif_details attribute for its key/value pairs rather than introduce a new similar binding:
The binding:vif_details attribute will be read-only from the REST API. Core plugins that support it will include the value in the dictionaries returned from create port, update port, and get port(s) operations, subject to access control. The default access control policy will be admin_only, as for binding:vif_type and binding:
The implementation of binding:vif_details in the ML2 plugin will return a value obtained from the bound MechanismDriver when the port is bound, and will return a value of None when there is no binding. The current value of the binding:vif_details attribute will be available to all MechanismDriver port methods via PortContext.
Two approaches are being considered for handling vif_details in the ML2 MechanismDriver API. One approach is for the MechanismDriver that binds the port to pass it as a parameter to PortContext.
Note that this blueprint can either be implemented independently or as part of the fix for bug 1112912. If binding:vif_details is implemented independently, initially for the ML2 plugin, then the bug fix will cover replacing binding:
It may also be worth considering simply keeping the existing binding:
Blueprint information
- Status:
- Complete
- Approver:
- Kyle Mestery
- Priority:
- High
- Drafter:
- Robert Kukura
- Direction:
- Approved
- Assignee:
- Robert Kukura
- Definition:
- Approved
- Series goal:
- Accepted for icehouse
- Implementation:
-
Implemented
- Milestone target:
-
2014.1
- Started by
- Robert Kukura
- Completed by
- Robert Kukura
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Replace binding: