Switch to constant for 'tap' VIF_TYPE
With neutron-lib 1.7.0 release we have the constant available in the portbindings definition. TrivialFix Change-Id: I5ddd7d5a57e783955430bd69d26464172c94b717
This commit is contained in:
parent
e4557a7793
commit
b2195bcf96
|
@ -36,7 +36,7 @@ class LinuxbridgeMechanismDriver(mech_agent.SimpleAgentMechanismDriverBase):
|
|||
sg_enabled = securitygroups_rpc.is_firewall_enabled()
|
||||
super(LinuxbridgeMechanismDriver, self).__init__(
|
||||
constants.AGENT_TYPE_LINUXBRIDGE,
|
||||
'tap', # const merge in I718f514e1673544114063af5e1a14ec29bf3274d
|
||||
portbindings.VIF_TYPE_TAP,
|
||||
{portbindings.CAP_PORT_FILTER: sg_enabled})
|
||||
lb_qos_driver.register()
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ from neutron.tests.unit.plugins.ml2 import _test_mech_agent as base
|
|||
|
||||
|
||||
class LinuxbridgeMechanismBaseTestCase(base.AgentMechanismBaseTestCase):
|
||||
VIF_TYPE = 'tap'
|
||||
VIF_TYPE = portbindings.VIF_TYPE_TAP
|
||||
CAP_PORT_FILTER = True
|
||||
AGENT_TYPE = constants.AGENT_TYPE_LINUXBRIDGE
|
||||
|
||||
|
|
Loading…
Reference in New Issue