Allow to disable networking extensions
Depends-On: https://review.opendev.org/c/x/devstack-plugin-tobiko/+/810833 Change-Id: Id081e586ccb776e618236a8febbdec33c5b28be0
This commit is contained in:
parent
c71ab91558
commit
c70f5813c6
@ -37,7 +37,11 @@ class NetworkingExtensionsFixture(tobiko.SharedFixture):
|
||||
extensions = self.client.list_extensions()
|
||||
if isinstance(extensions, collections.Mapping):
|
||||
extensions = extensions['extensions']
|
||||
self.extensions = frozenset(e['alias'] for e in extensions)
|
||||
ignore_extensions = set(
|
||||
tobiko.tobiko_config().neutron.ignore_extensions)
|
||||
self.extensions = frozenset(e['alias']
|
||||
for e in extensions
|
||||
if e['alias'] not in ignore_extensions)
|
||||
|
||||
|
||||
def get_networking_extensions():
|
||||
|
@ -68,6 +68,10 @@ OPTIONS = [
|
||||
cfg.IntOpt('vlan_id',
|
||||
default=101,
|
||||
help="VLAN trunk subport segmentation ID"),
|
||||
cfg.ListOpt('ignore_extensions',
|
||||
default=[],
|
||||
help="Behave as these networking extensions are not available"
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user