Browse Source

LB support UDP - Client part

As current Octavia client design is good for this feature. So this patch
just add the UDP fields into the support list.

Story: 1657091
Task: 23204
Change-Id: I9cb88a3402da8ea8a8394b38c4354cb6391eec0a
changes/90/539390/3
ZhaoBo 3 years ago
committed by Michael Johnson
parent
commit
4764dd36b1
4 changed files with 9 additions and 3 deletions
  1. +2
    -1
      octaviaclient/osc/v2/health_monitor.py
  2. +1
    -1
      octaviaclient/osc/v2/listener.py
  3. +2
    -1
      octaviaclient/osc/v2/pool.py
  4. +4
    -0
      releasenotes/notes/Add-support-for-UDP-5476caa65b1253a6.yaml

+ 2
- 1
octaviaclient/osc/v2/health_monitor.py View File

@ -24,7 +24,8 @@ from octaviaclient.osc.v2 import utils as v2_utils
HTTP_METHODS = ['GET', 'POST', 'DELETE', 'PUT', 'HEAD', 'OPTIONS', 'PATCH',
'CONNECT', 'TRACE']
TYPE_CHOICES = ['PING', 'HTTP', 'TCP', 'HTTPS', 'TLS-HELLO']
TYPE_CHOICES = ['PING', 'HTTP', 'TCP', 'HTTPS', 'TLS-HELLO',
'UDP-CONNECT']
class CreateHealthMonitor(command.ShowOne):


+ 1
- 1
octaviaclient/osc/v2/listener.py View File

@ -22,7 +22,7 @@ from osc_lib import utils
from octaviaclient.osc.v2 import constants as const
from octaviaclient.osc.v2 import utils as v2_utils
PROTOCOL_CHOICES = ['TCP', 'HTTP', 'HTTPS', 'TERMINATED_HTTPS']
PROTOCOL_CHOICES = ['TCP', 'HTTP', 'HTTPS', 'TERMINATED_HTTPS', 'UDP']
class CreateListener(command.ShowOne):


+ 2
- 1
octaviaclient/osc/v2/pool.py View File

@ -21,7 +21,8 @@ from osc_lib import utils
from octaviaclient.osc.v2 import constants as const
from octaviaclient.osc.v2 import utils as v2_utils
PROTOCOL_CHOICES = ['TCP', 'HTTP', 'HTTPS', 'TERMINATED_HTTPS', 'PROXY']
PROTOCOL_CHOICES = ['TCP', 'HTTP', 'HTTPS', 'TERMINATED_HTTPS', 'PROXY',
'UDP']
ALGORITHM_CHOICES = ['SOURCE_IP', 'ROUND_ROBIN', 'LEAST_CONNECTIONS']


+ 4
- 0
releasenotes/notes/Add-support-for-UDP-5476caa65b1253a6.yaml View File

@ -0,0 +1,4 @@
---
features:
- |
Adds client support for UDP protocol load balancers.

Loading…
Cancel
Save