Replace bare Opt by PortOpt

The placement_port option in fullstack tests can be implemented by
the native PortOpt instead of defining a specific type.

Change-Id: Iedf50249080d3f631942febb1f5e089f06f43db0
This commit is contained in:
Takashi Kajinami 2024-04-22 14:03:06 +09:00
parent 2db8620523
commit 9148c20b66
1 changed files with 1 additions and 3 deletions

View File

@ -20,7 +20,6 @@ import uuid
from wsgiref import simple_server as wsgi_simple_server
from oslo_config import cfg
from oslo_config import types
from oslo_log import log as logging
from oslo_serialization import jsonutils
@ -29,9 +28,8 @@ from neutron.common import config as common_config
LOG = logging.getLogger(__name__)
PortType = types.Integer(1, 65535)
placement_opts = [
cfg.Opt('placement_port', type=PortType)
cfg.PortOpt('placement_port', min=1)
]
cfg.CONF.register_opts(placement_opts)