diff options
author | Eric Brown <browne@vmware.com> | 2015-08-13 00:06:31 -0700 |
---|---|---|
committer | Eric Brown <browne@vmware.com> | 2015-08-14 04:37:21 +0000 |
commit | ec59ea8db7cc4aa6f4751a12483b179677369a7a (patch) | |
tree | 9df8581bc1e046ca05990ef551811f9d978a5ae5 /nova/console | |
parent | b91f3f60997dddb2f7c2fc007fe02b7dff1e0224 (diff) | |
download | nova-ec59ea8db7cc4aa6f4751a12483b179677369a7a.tar.gz |
Use min and max on IntOpt option types
The latest oslo.config supports a minimum and maximum value for
IntOpt options. This patch utilizes this for a number of options
with well known ranges.
Change-Id: I897d8870fdf67a095915c8fcdf239024b092e9e3
Diffstat (limited to 'nova/console')
-rw-r--r-- | nova/console/xvp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/console/xvp.py b/nova/console/xvp.py index f58cf8cf22..46e9853781 100644 --- a/nova/console/xvp.py +++ b/nova/console/xvp.py @@ -46,6 +46,8 @@ xvp_opts = [ help='XVP log file'), cfg.IntOpt('console_xvp_multiplex_port', default=5900, + min=1, + max=65535, help='Port for XVP to multiplex VNC connections on'), ] |