Implement check_vlan_transparency to return True in SR-IOV mech driver

As the SR-IOV mechanism driver does not impact VLAN transparency
support, this patch overrides the check_vlan_transparency method
from the MechanismDriver base class and returns 'True'.  In this
way, inclusion of the SR-IOV mechanism driver in the list of
configured mechanism_drivers does not prevent the creation of
VLAN transparent networks.

Change-Id: Ie35ce63102e59891d040c01c847936f918e0d6ea
Closes-Bug: #1616480
This commit is contained in:
Erik Colnick 2016-08-24 01:55:49 -06:00
parent 96a371bf50
commit ee1a058855
1 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,10 @@ class SriovNicSwitchMechanismDriver(mech_agent.SimpleAgentMechanismDriverBase):
return True
return False
def check_vlan_transparency(self, context):
"""SR-IOV driver vlan transparency support."""
return True
def _check_supported_pci_vendor_device(self, context):
if self.pci_vendor_info is None:
return True