Add UDP to supported protocols for Octavia

Change-Id: I6da312a75f2d998c9dda4f874ab139022429ed2f
This commit is contained in:
Carlos Goncalves 2018-08-16 17:15:13 +02:00
parent d96b564fd4
commit 0776920232
4 changed files with 9 additions and 5 deletions

View File

@ -106,7 +106,8 @@ class HealthMonitor(octavia_base.OctaviaBase):
_('One of predefined health monitor types.'), _('One of predefined health monitor types.'),
required=True, required=True,
constraints=[ constraints=[
constraints.AllowedValues(['PING', 'TCP', 'HTTP', 'HTTPS']), constraints.AllowedValues(['PING', 'TCP', 'HTTP', 'HTTPS',
'UDP-CONNECT']),
] ]
), ),
URL_PATH: properties.Schema( URL_PATH: properties.Schema(

View File

@ -37,8 +37,8 @@ class Listener(octavia_base.OctaviaBase):
'sni_container_refs', 'connection_limit', 'tenant_id' 'sni_container_refs', 'connection_limit', 'tenant_id'
) )
SUPPORTED_PROTOCOLS = (TCP, HTTP, HTTPS, TERMINATED_HTTPS, PROXY) = ( SUPPORTED_PROTOCOLS = (TCP, HTTP, HTTPS, TERMINATED_HTTPS, PROXY, UDP) = (
'TCP', 'HTTP', 'HTTPS', 'TERMINATED_HTTPS', 'PROXY') 'TCP', 'HTTP', 'HTTPS', 'TERMINATED_HTTPS', 'PROXY', 'UDP')
ATTRIBUTES = ( ATTRIBUTES = (
LOADBALANCERS_ATTR, DEFAULT_POOL_ID_ATTR LOADBALANCERS_ATTR, DEFAULT_POOL_ID_ATTR

View File

@ -44,8 +44,8 @@ class Pool(octavia_base.OctaviaBase):
'SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE' 'SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE'
) )
SUPPORTED_PROTOCOLS = (TCP, HTTP, HTTPS, TERMINATED_HTTPS, PROXY) = ( SUPPORTED_PROTOCOLS = (TCP, HTTP, HTTPS, TERMINATED_HTTPS, PROXY, UDP) = (
'TCP', 'HTTP', 'HTTPS', 'TERMINATED_HTTPS', 'PROXY') 'TCP', 'HTTP', 'HTTPS', 'TERMINATED_HTTPS', 'PROXY', 'UDP')
ATTRIBUTES = ( ATTRIBUTES = (
HEALTHMONITOR_ID_ATTR, LISTENERS_ATTR, MEMBERS_ATTR HEALTHMONITOR_ID_ATTR, LISTENERS_ATTR, MEMBERS_ATTR

View File

@ -0,0 +1,3 @@
---
features:
- Add UDP to supported protocols for Octavia.