Use "regex" of StrOpt to check option "port_range"

Since we have oslo.config 2.7, let's use "regex" of StrOpt to check the
config option "port_range".

Change-Id: I23d22d0ae77e6e440054f273b4b742dd4473eb1a
This commit is contained in:
Javeme 2016-01-18 16:14:55 +08:00
parent f1da349a4f
commit dd66464106
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ Interdependencies to other options:
port_range_opt = cfg.StrOpt('port_range',
default=DEFAULT_PORT_RANGE,
# TODO(markus_z): regex="\d+:\d+", As soon as we have oslo.config 2.7
regex="\d+:\d+",
help="""
A range of TCP ports a guest can use for its backend.