Add Port Profile info to VIF objects Linux Bridge plugin

Added the Port Profile information to each VIF type in
``vif_plug_linux_bridge``. This information will be populated to
Nova trough os_vif.host_info function.

Change-Id: Ib693388f7a7eb9aa359976a1d0aba35e5b325ddb
Blueprint: vif-port-profile
This commit is contained in:
Rodolfo Alonso Hernandez 2017-08-04 11:20:29 +01:00
parent b5a5b45104
commit 0805101573
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,8 @@
---
features:
- |
In ``vif_plug_linux_bridge``, a new field called
``supported_port_profiles`` is added to ``HostVIFInfo`` objects. This
field is a list of ``HostPortProfileInfo`` objects describing the
supported port profiles for each specific VIF type.
Currently this field is only being used in ``vif_plug_ovs``.

View File

@ -88,7 +88,10 @@ class LinuxBridgePlugin(plugin.PluginBase):
objects.host_info.HostVIFInfo(
vif_object_name=objects.vif.VIFBridge.__name__,
min_version="1.0",
max_version="1.0")
max_version="1.0",
# NOTE(ralonsoh): currently 'supported_port_profiles' is
# only being used with OVS HostVIFInfo objects.
supported_port_profiles=[]),
])
def plug(self, vif, instance_info):