Use consistent regex to validate ovsdb_connection

Import the regex used to validate ovsdb_connection from core neutron,
to handle the ovsdb_connection option consistently.

Change-Id: Id58f6e0f649a5dfd147139b3856e33c17df91e5a
This commit is contained in:
Takashi Kajinami
2025-02-24 23:28:09 +09:00
parent 57c118f8de
commit 980dd08060

View File

@@ -41,6 +41,7 @@ VPN_AGENT_OPTS = [
OVS_OPTS = [
cfg.StrOpt('ovsdb_connection',
default='unix:/usr/local/var/run/openvswitch/db.sock',
regex=r'^(tcp|ssl|unix):.+',
help=_('The connection string for the native OVSDB backend.\n'
'Use tcp:IP:PORT for TCP connection.\n'
'Use unix:FILE for unix domain socket connection.')),