Merge "Use min and max on IntOpt option types"
This commit is contained in:
commit
20cb926bee
vmware_nsx/neutron/plugins/vmware
@ -248,8 +248,9 @@ nsxv_opts = [
|
||||
help=_('DVS ID for VLANs')),
|
||||
cfg.IntOpt('maximum_tunnels_per_vnic',
|
||||
default=DEFAULT_MAXIMUM_TUNNELS_PER_VNIC,
|
||||
min=1, max=110,
|
||||
help=_('Maximum number of sub interfaces supported '
|
||||
'per vnic in edge. The value should be in 1-110.')),
|
||||
'per vnic in edge.')),
|
||||
cfg.ListOpt('backup_edge_pool',
|
||||
default=['service:large:4:10',
|
||||
'service:compact:4:10',
|
||||
@ -275,6 +276,7 @@ nsxv_opts = [
|
||||
help=_('IP addresses used by Nova metadata service')),
|
||||
cfg.IntOpt('nova_metadata_port',
|
||||
default=8775,
|
||||
min=1, max=65535,
|
||||
help=_("TCP Port used by Nova metadata server")),
|
||||
cfg.StrOpt('metadata_shared_secret',
|
||||
secret=True,
|
||||
|
@ -57,6 +57,7 @@ metadata_opts = [
|
||||
cfg.IntOpt('metadata_server_port',
|
||||
deprecated_group='NVP_METADATA',
|
||||
default=8775,
|
||||
min=1, max=65535,
|
||||
help=_("TCP Port used by Metadata server.")),
|
||||
cfg.StrOpt('metadata_shared_secret',
|
||||
deprecated_group='NVP_METADATA',
|
||||
|
@ -19,7 +19,7 @@ dvs_opts = [
|
||||
cfg.StrOpt('host_ip',
|
||||
help='Hostname or IP address for connection to VMware vCenter '
|
||||
'host.'),
|
||||
cfg.IntOpt('host_port', default=443,
|
||||
cfg.IntOpt('host_port', default=443, min=1, max=65535,
|
||||
help='Port for connection to VMware vCenter host.'),
|
||||
cfg.StrOpt('host_username',
|
||||
help='Username for connection to VMware vCenter host.'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user