Use PortOpt type for port options

Change-Id: Icdc27af7a10ff249235e927431a41ec0874bd154
This commit is contained in:
Zhenguo Niu 2016-05-04 17:36:09 +08:00
parent 746adc3eb3
commit 3505a8e932
2 changed files with 9 additions and 7 deletions

View File

@ -8,7 +8,9 @@
# Deprecated group/name - [discoverd]/listen_address
#listen_address = 0.0.0.0
# Port to listen on. (integer value)
# Port to listen on. (port value)
# Minimum value: 0
# Maximum value: 65535
# Deprecated group/name - [discoverd]/listen_port
#listen_port = 5050
@ -528,7 +530,7 @@
#user_id = <None>
# Username (unknown value)
# Deprecated group/name - [DEFAULT]/username
# Deprecated group/name - [DEFAULT]/user-name
#username = <None>
@ -873,5 +875,5 @@
#user_id = <None>
# Username (unknown value)
# Deprecated group/name - [DEFAULT]/username
# Deprecated group/name - [DEFAULT]/user-name
#username = <None>

View File

@ -146,10 +146,10 @@ SERVICE_OPTS = [
default='0.0.0.0',
help='IP to listen on.',
deprecated_group='discoverd'),
cfg.IntOpt('listen_port',
default=5050,
help='Port to listen on.',
deprecated_group='discoverd'),
cfg.PortOpt('listen_port',
default=5050,
help='Port to listen on.',
deprecated_group='discoverd'),
cfg.StrOpt('auth_strategy',
default='keystone',
choices=('keystone', 'noauth'),