Use oslo_config PortOpt support
The IntOpt modified to be PortOpt.Because oslo_config library provides PortOpt type to validate the port of range now. Change-Id: I45f3469e96e2a660c6dd000cd6a94ee323eedb31
This commit is contained in:
parent
cd1a61e3d7
commit
a9407f61c3
|
@ -62,9 +62,9 @@ api_opts = [
|
|||
help=_('Address to bind the server. Useful when '
|
||||
'selecting a particular network interface.'),
|
||||
deprecated_group='DEFAULT'),
|
||||
cfg.IntOpt('bind_port', default=8004, min=1, max=65535,
|
||||
help=_('The port on which the server will listen.'),
|
||||
deprecated_group='DEFAULT'),
|
||||
cfg.PortOpt('bind_port', default=8004,
|
||||
help=_('The port on which the server will listen.'),
|
||||
deprecated_group='DEFAULT'),
|
||||
cfg.IntOpt('backlog', default=4096,
|
||||
help=_("Number of backlog requests "
|
||||
"to configure the socket with."),
|
||||
|
@ -100,9 +100,9 @@ api_cfn_opts = [
|
|||
help=_('Address to bind the server. Useful when '
|
||||
'selecting a particular network interface.'),
|
||||
deprecated_group='DEFAULT'),
|
||||
cfg.IntOpt('bind_port', default=8000, min=1, max=65535,
|
||||
help=_('The port on which the server will listen.'),
|
||||
deprecated_group='DEFAULT'),
|
||||
cfg.PortOpt('bind_port', default=8000,
|
||||
help=_('The port on which the server will listen.'),
|
||||
deprecated_group='DEFAULT'),
|
||||
cfg.IntOpt('backlog', default=4096,
|
||||
help=_("Number of backlog requests "
|
||||
"to configure the socket with."),
|
||||
|
@ -138,9 +138,9 @@ api_cw_opts = [
|
|||
help=_('Address to bind the server. Useful when '
|
||||
'selecting a particular network interface.'),
|
||||
deprecated_group='DEFAULT'),
|
||||
cfg.IntOpt('bind_port', default=8003, min=1, max=65535,
|
||||
help=_('The port on which the server will listen.'),
|
||||
deprecated_group='DEFAULT'),
|
||||
cfg.PortOpt('bind_port', default=8003,
|
||||
help=_('The port on which the server will listen.'),
|
||||
deprecated_group='DEFAULT'),
|
||||
cfg.IntOpt('backlog', default=4096,
|
||||
help=_("Number of backlog requests "
|
||||
"to configure the socket with."),
|
||||
|
|
Loading…
Reference in New Issue