Use PortOpt for KMIP port
oslo.config provides PortOpt to validate the range of port [1]. [1] https://github.com/openstack/oslo.config/blob/2.6.0/oslo_config/cfg.py#L1114 Change-Id: I1c72ce468f588df70fecfb704c97fa25627447fa
This commit is contained in:
@@ -56,10 +56,10 @@ kmip_opts = [
|
||||
default='localhost',
|
||||
help=u._('Address of the KMIP server')
|
||||
),
|
||||
cfg.IntOpt('port',
|
||||
default=5696,
|
||||
help=u._('Port for the KMIP server'),
|
||||
),
|
||||
cfg.PortOpt('port',
|
||||
default=5696,
|
||||
help=u._('Port for the KMIP server'),
|
||||
),
|
||||
cfg.StrOpt('ssl_version',
|
||||
default='PROTOCOL_TLSv1_2',
|
||||
help=u._('SSL version, maps to the module ssl\'s constants'),
|
||||
|
||||
Reference in New Issue
Block a user