Merge "fix port_profile"
This commit is contained in:
commit
48ee0fec72
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
Patch https://review.openstack.org/#/c/499575/ introduced
|
||||
support creating Neutron port with certain capabilities.
|
||||
Currently capabilities list interpreted as string this change
|
||||
fix it.
|
||||
|
||||
tempest.conf
|
||||
[network]
|
||||
port_profile = capabilities:[switchdev]
|
||||
|
||||
result:
|
||||
{'capabilities':'[switchdev]'}
|
||||
|
||||
expected:
|
||||
{'capabilities': ['switchdev']}
|
|
@ -20,6 +20,7 @@ import tempfile
|
|||
|
||||
from oslo_concurrency import lockutils
|
||||
from oslo_config import cfg
|
||||
from oslo_config import types
|
||||
from oslo_log import log as logging
|
||||
|
||||
from tempest.lib import exceptions
|
||||
|
@ -627,6 +628,7 @@ ImageFeaturesGroup = [
|
|||
network_group = cfg.OptGroup(name='network',
|
||||
title='Network Service Options')
|
||||
|
||||
ProfileType = types.Dict(types.List(types.String(), bounds=True))
|
||||
NetworkGroup = [
|
||||
cfg.StrOpt('catalog_type',
|
||||
default='network',
|
||||
|
@ -690,10 +692,11 @@ NetworkGroup = [
|
|||
" with pre-configured ports."
|
||||
" Supported ports are:"
|
||||
" ['normal','direct','macvtap']"),
|
||||
cfg.DictOpt('port_profile',
|
||||
default={},
|
||||
help="port profile to use when launching instances"
|
||||
" with pre-configured ports."),
|
||||
cfg.Opt('port_profile',
|
||||
type=ProfileType,
|
||||
default={},
|
||||
help="port profile to use when launching instances"
|
||||
" with pre-configured ports."),
|
||||
cfg.ListOpt('default_network',
|
||||
default=["1.0.0.0/16", "2.0.0.0/16"],
|
||||
help="List of ip pools"
|
||||
|
|
Loading…
Reference in New Issue