Add SOURCE_IP_PORT to LB_ALGORITHM allowed values

This change adds SOURCE_IP_PORT to lb_algorithm property of
OS::Octavia::Pool resource which is missing from the available options
and required when using the OVN provider driver.

[0] https://docs.openstack.org/ovn-octavia-provider/latest/admin/driver.html#limitations-of-the-ovn-provider-driver
[1] https://docs.openstack.org/releasenotes/octavia/train.html

Change-Id: Ibed37eea817a5125c5751b2bc9f44acf3c016fe1
Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
Kevin Carter 2020-10-22 10:07:23 -05:00 committed by Rabi Mishra
parent f419923a0d
commit 20b599cdf8
2 changed files with 6 additions and 2 deletions

View File

@ -99,8 +99,8 @@ class Pool(octavia_base.OctaviaBase):
'the pool.'),
required=True,
constraints=[
constraints.AllowedValues(['ROUND_ROBIN',
'LEAST_CONNECTIONS', 'SOURCE_IP']),
constraints.AllowedValues(['ROUND_ROBIN', 'LEAST_CONNECTIONS',
'SOURCE_IP', 'SOURCE_IP_PORT']),
],
update_allowed=True,
),

View File

@ -0,0 +1,4 @@
---
features:
- The ``lb_algorithm`` property of ``OS::Octavia::Pool`` resource now supports
SOURCE_IP_PORT option required for Octavia OVN provider driver.