Add minimum and maximum on port option
oslo.config can use minimum and maximum to support the ability to set valid range on port option values Change-Id: Idd182617cd500a7ed91ff18933bc989764c310db
This commit is contained in:
parent
5e93b59ac1
commit
5c9076b5b1
@ -23,6 +23,7 @@ API_SERVICE_OPTS = [
|
|||||||
help=_('The IP address on which ironic-api listens.')),
|
help=_('The IP address on which ironic-api listens.')),
|
||||||
cfg.IntOpt('port',
|
cfg.IntOpt('port',
|
||||||
default=6385,
|
default=6385,
|
||||||
|
min=1, max=65535,
|
||||||
help=_('The TCP port on which ironic-api listens.')),
|
help=_('The TCP port on which ironic-api listens.')),
|
||||||
cfg.IntOpt('max_limit',
|
cfg.IntOpt('max_limit',
|
||||||
default=1000,
|
default=1000,
|
||||||
|
@ -50,6 +50,7 @@ glance_opts = [
|
|||||||
help=_('Default glance hostname or IP address.')),
|
help=_('Default glance hostname or IP address.')),
|
||||||
cfg.IntOpt('glance_port',
|
cfg.IntOpt('glance_port',
|
||||||
default=9292,
|
default=9292,
|
||||||
|
min=1, max=65535,
|
||||||
help=_('Default glance port.')),
|
help=_('Default glance port.')),
|
||||||
cfg.StrOpt('glance_protocol',
|
cfg.StrOpt('glance_protocol',
|
||||||
default='http',
|
default='http',
|
||||||
|
@ -45,6 +45,7 @@ opts = [
|
|||||||
help=_('Timeout (in seconds) for iLO operations')),
|
help=_('Timeout (in seconds) for iLO operations')),
|
||||||
cfg.IntOpt('client_port',
|
cfg.IntOpt('client_port',
|
||||||
default=443,
|
default=443,
|
||||||
|
min=1, max=65535,
|
||||||
help=_('Port to be used for iLO operations')),
|
help=_('Port to be used for iLO operations')),
|
||||||
cfg.StrOpt('swift_ilo_container',
|
cfg.StrOpt('swift_ilo_container',
|
||||||
default='ironic_ilo_container',
|
default='ironic_ilo_container',
|
||||||
|
@ -48,6 +48,7 @@ VIRTUALBOX_TO_IRONIC_POWER_MAPPING = {
|
|||||||
opts = [
|
opts = [
|
||||||
cfg.IntOpt('port',
|
cfg.IntOpt('port',
|
||||||
default=18083,
|
default=18083,
|
||||||
|
min=1, max=65535,
|
||||||
help=_('Port on which VirtualBox web service is listening.')),
|
help=_('Port on which VirtualBox web service is listening.')),
|
||||||
]
|
]
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
Loading…
Reference in New Issue
Block a user