Add Octavia OVN provider support

So far Octavia had only support for one provider: amphora.

This patch adds support for OVN provider.

Change-Id: I048cb34dc6db729e9277183d3697931a4901e1c7
This commit is contained in:
Omer 2021-10-14 18:10:36 +02:00 committed by Federico Ressi
parent 2ea9eb45f6
commit a37a8ad47c
2 changed files with 51 additions and 2 deletions

View File

@ -90,6 +90,18 @@ OctaviaClientServerStackFixture = _octavia.OctaviaClientServerStackFixture
OctaviaOtherServerStackFixture = _octavia.OctaviaOtherServerStackFixture
OctaviaOtherMemberServerStackFixture = (
_octavia.OctaviaOtherMemberServerStackFixture)
# Ovn Provider resources
OctaviaOvnProviderLoadbalancerStackFixture = (
_octavia.OctaviaOvnProviderLoadbalancerStackFixture)
OctaviaOvnProviderListenerStackFixture = (
_octavia.OctaviaOvnProviderListenerStackFixture)
OctaviaOvnProviderPoolStackFixture = (
_octavia.OctaviaOvnProviderPoolStackFixture)
OctaviaOvnProviderMemberServerStackFixture = (
_octavia.OctaviaOvnProviderMemberServerStackFixture)
OctaviaOvnProviderOtherMemberServerStackFixture = (
_octavia.OctaviaOvnProviderOtherMemberServerStackFixture)
OctaviaVipNetworkStackFixture = _octavia.OctaviaVipNetworkStackFixture
QosNetworkStackFixture = _qos.QosNetworkStackFixture
QosPolicyStackFixture = _qos.QosPolicyStackFixture

View File

@ -143,8 +143,6 @@ class OctaviaPoolStackFixture(heat.HeatStackFixture):
hm_timeout = 3
hm_type = 'HTTP'
@property
def listener_id(self):
return self.listener.listener_id
@ -198,3 +196,42 @@ class OctaviaOtherMemberServerStackFixture(
OctaviaMemberServerStackFixture):
server_stack = tobiko.required_setup_fixture(
OctaviaOtherServerStackFixture)
# OVN provider stack fixtures
class OctaviaOvnProviderLoadbalancerStackFixture(
OctaviaLoadbalancerStackFixture):
provider = 'ovn'
class OctaviaOvnProviderListenerStackFixture(OctaviaListenerStackFixture):
loadbalancer = tobiko.required_setup_fixture(
OctaviaOvnProviderLoadbalancerStackFixture)
lb_port = 22
lb_protocol = 'TCP'
class OctaviaOvnProviderPoolStackFixture(OctaviaPoolStackFixture):
listener = tobiko.required_setup_fixture(
OctaviaOvnProviderListenerStackFixture)
pool_protocol = 'TCP'
lb_algorithm = 'SOURCE_IP_PORT'
class OctaviaOvnProviderMemberServerStackFixture(
OctaviaMemberServerStackFixture):
pool = tobiko.required_setup_fixture(OctaviaOvnProviderPoolStackFixture)
application_port = 22
class OctaviaOvnProviderOtherMemberServerStackFixture(
OctaviaOvnProviderMemberServerStackFixture):
server_stack = tobiko.required_setup_fixture(
OctaviaOtherServerStackFixture)