From 1b8929ee9130e8540776952a6d02ff92aaa7c250 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 24 Nov 2021 17:58:58 +0000 Subject: [PATCH] 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 --- .../services/load_balancer/v2/pool_client.py | 7 +++++-- ...pools-service-client-alpn-support-7de3bcd3c901ff1a.yaml | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/pools-service-client-alpn-support-7de3bcd3c901ff1a.yaml diff --git a/octavia_tempest_plugin/services/load_balancer/v2/pool_client.py b/octavia_tempest_plugin/services/load_balancer/v2/pool_client.py index c19d97c3..e93f33c5 100644 --- a/octavia_tempest_plugin/services/load_balancer/v2/pool_client.py +++ b/octavia_tempest_plugin/services/load_balancer/v2/pool_client.py @@ -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. diff --git a/releasenotes/notes/pools-service-client-alpn-support-7de3bcd3c901ff1a.yaml b/releasenotes/notes/pools-service-client-alpn-support-7de3bcd3c901ff1a.yaml new file mode 100644 index 00000000..e7554e27 --- /dev/null +++ b/releasenotes/notes/pools-service-client-alpn-support-7de3bcd3c901ff1a.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Added support for ALPN selection in the pools service client.