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:
Kaitlin Farr
2017-09-11 16:24:08 -04:00
parent 2a4732af4d
commit 5745f4a1c3
+4 -4
View File
@@ -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'),