Add ALPN support to the pools service client

This patch adds ALPN protocol selection support to the pools service
client allowing you to limit the ALPN protocols negotiated when connecting
to member servers.

A follow on patch should include test coverage for this.

Change-Id: Id0b93446dbfdde479fd573eed3e9a5c1e9400609
This commit is contained in:
Michael Johnson 2021-11-24 17:58:58 +00:00
parent 7de0490e79
commit 1b8929ee91
2 changed files with 9 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class PoolClient(base_client.BaseLBaaSClient):
admin_state_up=Unset, session_persistence=Unset,
ca_tls_container_ref=Unset, crl_container_ref=Unset,
tls_enabled=Unset, tls_container_ref=Unset,
return_object_only=True):
alpn_protocols=Unset, return_object_only=True):
"""Create a pool.
:param protocol: The protocol for the resource.
@ -61,6 +61,7 @@ class PoolClient(base_client.BaseLBaaSClient):
a PKCS12 bundle with the client
authentication certificate and key used
when connecting to pool members over TLS.
:param alpn_protocols: A list of ALPN protocols for TLS enabled pools.
:param return_object_only: If True, the response returns the object
inside the root tag. False returns the full
response from the API.
@ -180,7 +181,8 @@ class PoolClient(base_client.BaseLBaaSClient):
description=Unset, tags=Unset, admin_state_up=Unset,
session_persistence=Unset, ca_tls_container_ref=Unset,
crl_container_ref=Unset, tls_enabled=Unset,
tls_container_ref=Unset, return_object_only=True):
tls_container_ref=Unset, alpn_protocols=Unset,
return_object_only=True):
"""Update a pool.
:param pool_id: The pool ID to update.
@ -205,6 +207,7 @@ class PoolClient(base_client.BaseLBaaSClient):
a PKCS12 bundle with the client
authentication certificate and key used
when connecting to pool members over TLS.
:param alpn_protocols: A list of ALPN protocols for TLS enabled pools.
:param return_object_only: If True, the response returns the object
inside the root tag. False returns the full
response from the API.

View File

@ -0,0 +1,4 @@
---
features:
- |
Added support for ALPN selection in the pools service client.