Use Port list type in the NSX configuration
Use ListOpt of type port for metadata_service_allowed_ports for extra validation on the ports values Change-Id: I8594a68b0e1a8dc56d09286f97ffae7c660d3f73
This commit is contained in:
parent
56ec659f40
commit
ccee769536
@ -15,6 +15,7 @@
|
||||
import logging
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_config import types
|
||||
|
||||
from vmware_nsx._i18n import _, _LW
|
||||
from vmware_nsx.common import exceptions as nsx_exc
|
||||
@ -562,6 +563,7 @@ nsxv_opts = [
|
||||
help=_("If True, the server instance will attempt to "
|
||||
"initialize the metadata infrastructure")),
|
||||
cfg.ListOpt('metadata_service_allowed_ports',
|
||||
item_type=types.Port(),
|
||||
default=[],
|
||||
help=_('List of tcp ports, to be allowed access to the '
|
||||
'metadata proxy, in addition to the default '
|
||||
|
Loading…
x
Reference in New Issue
Block a user