diff options
author | lei-zhang-99cloud <zhang.lei@99cloud.net> | 2015-08-26 16:01:49 +0800 |
---|---|---|
committer | lei-zhang-99cloud <zhang.lei@99cloud.net> | 2015-08-28 09:22:22 +0800 |
commit | 5c9076b5b10980b61c57a1b3dcd4b966dca5b6de (patch) | |
tree | 38b0ca82501fae9497c9e4df41da32ad5e708f45 /ironic/api | |
parent | 5e93b59ac1e24264006879df2056e363e3fe212c (diff) | |
download | ironic-5c9076b5b10980b61c57a1b3dcd4b966dca5b6de.tar.gz |
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
Diffstat (limited to 'ironic/api')
-rw-r--r-- | ironic/api/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic/api/__init__.py b/ironic/api/__init__.py index f1fedc534..ff738fce7 100644 --- a/ironic/api/__init__.py +++ b/ironic/api/__init__.py @@ -23,6 +23,7 @@ API_SERVICE_OPTS = [ help=_('The IP address on which ironic-api listens.')), cfg.IntOpt('port', default=6385, + min=1, max=65535, help=_('The TCP port on which ironic-api listens.')), cfg.IntOpt('max_limit', default=1000, |