From 676770ba759c9ab41461b337847d1b47e2319fae Mon Sep 17 00:00:00 2001 From: Erik Colnick Date: Wed, 10 Aug 2016 06:58:59 -0600 Subject: [PATCH] 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 --- neutron/plugins/ml2/drivers/l2pop/mech_driver.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neutron/plugins/ml2/drivers/l2pop/mech_driver.py b/neutron/plugins/ml2/drivers/l2pop/mech_driver.py index 3b7b9acb8cc..2148cc4a85a 100644 --- a/neutron/plugins/ml2/drivers/l2pop/mech_driver.py +++ b/neutron/plugins/ml2/drivers/l2pop/mech_driver.py @@ -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