Declare that the arista plugin provides L2 connectivity

This allows the arista mech driver to bind ports without
a fixed IP (see https://review.opendev.org/#/c/678027/)

Change-Id: I0f0859da7311a22f878fa673ca67898d7e154313
changes/56/683256/1
Mitchell Jameson 2019-09-19 16:43:19 -07:00
parent d7d6ffa96e
commit 9c1cfc27a5
3 changed files with 7 additions and 1 deletions

View File

@ -71,6 +71,8 @@ class AristaDriver(driver_api.MechanismDriver):
self.provision_queue = Queue()
self.trunk_driver = None
self.vif_details = {portbindings.VIF_DETAILS_CONNECTIVITY:
portbindings.CONNECTIVITY_L2}
def initialize(self):
self.mlag_pairs = db_lib.get_mlag_physnets()

View File

@ -20,6 +20,10 @@ from neutron_lib.plugins.ml2 import api as driver_api
class TestFabricDriver(driver_api.MechanismDriver):
def __init__(self):
self.vif_details = {portbindings.VIF_DETAILS_CONNECTIVITY:
portbindings.CONNECTIVITY_L2}
def initialize(self):
pass

View File

@ -8,7 +8,7 @@ usedevelop = True
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
whitelist_externals =