Implement check_vlan_transparency to return True in L2population mech driver

As the L2population 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 L2population mechanism driver in the list of configured
mechanism_drivers does not prevent the creation of VLAN transparent
networks.

Change-Id: I8b26e899180544e2ad49ef470b9624015fd4d5de
Closes-Bug: #1611920
This commit is contained in:
Erik Colnick 2016-08-10 06:58:59 -06:00
parent 7d182e599c
commit 676770ba75
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@ class L2populationMechanismDriver(api.MechanismDriver):
ip_address=ip['ip_address'])
for ip in port['fixed_ips']]
def check_vlan_transparency(self, context):
"""L2population driver vlan transparency support."""
return True
def delete_port_postcommit(self, context):
port = context.current
agent_host = context.host