From c05865849fd6bf3d7ba169159335b9dd42410c5a Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Fri, 10 Jan 2020 16:56:46 -0500 Subject: [PATCH] Re-home constants here from octavia octavia/common/constants.py has a few constants that can be moved to octavia-lib Change-Id: If05956d0ddd261576c80c1416e49128c09affc76 --- octavia_lib/common/constants.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/octavia_lib/common/constants.py b/octavia_lib/common/constants.py index c9e437a..dd4880a 100644 --- a/octavia_lib/common/constants.py +++ b/octavia_lib/common/constants.py @@ -173,6 +173,13 @@ SUPPORTED_SSL_HEADERS = ['X-SSL-Client-Verify', 'X-SSL-Client-Has-Cert', 'X-SSL-Issuer', 'X-SSL-Client-SHA1', 'X-SSL-Client-Not-Before', 'X-SSL-Client-Not-After'] +# Client certification authorization options +CLIENT_AUTH_NONE = 'NONE' +CLIENT_AUTH_OPTIONAL = 'OPTIONAL' +CLIENT_AUTH_MANDATORY = 'MANDATORY' +SUPPORTED_CLIENT_AUTH_MODES = [CLIENT_AUTH_NONE, CLIENT_AUTH_OPTIONAL, + CLIENT_AUTH_MANDATORY] + # Constants from the provider driver API ACTION = 'action' ADDITIONAL_VIPS = 'additional_vips' @@ -183,6 +190,7 @@ AVAILABILITY_ZONE = 'availability_zone' BACKUP = 'backup' CA_TLS_CONTAINER_DATA = 'ca_tls_container_data' CA_TLS_CONTAINER_REF = 'ca_tls_container_ref' +CASCADE = 'cascade' CERTIFICATE = 'certificate' CLIENT_AUTHENTICATION = 'client_authentication' CLIENT_CA_TLS_CONTAINER_DATA = 'client_ca_tls_container_data' @@ -222,6 +230,7 @@ MEMBER_ID = 'member_id' MONITOR_ADDRESS = 'monitor_address' MONITOR_PORT = 'monitor_port' NAME = 'name' +NETWORK_ID = 'network_id' PASSPHRASE = 'passphrase' PERSISTENCE_GRANULARITY = 'persistence_granularity' PERSISTENCE_TIMEOUT = 'persistence_timeout'