Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 1 | # Copyright 2018 Rackspace US Inc. All rights reserved. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | # API field names |
| 16 | ACTIVE_CONNECTIONS = 'active_connections' |
Carlos Goncalves | bb23855 | 2020-01-15 10:10:55 +0000 | [diff] [blame] | 17 | ALLOWED_CIDRS = 'allowed_cidrs' |
Adam Harwell | c2aa20c | 2019-11-20 11:15:07 -0800 | [diff] [blame] | 18 | AVAILABILITY_ZONE = 'availability_zone' |
| 19 | AVAILABILITY_ZONE_DATA = 'availability_zone_data' |
| 20 | AVAILABILITY_ZONE_PROFILE_ID = 'availability_zone_profile_id' |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 21 | ADMIN_STATE_UP = 'admin_state_up' |
| 22 | BYTES_IN = 'bytes_in' |
| 23 | BYTES_OUT = 'bytes_out' |
Michael Johnson | 74b6f2f | 2020-10-29 15:11:39 -0700 | [diff] [blame] | 24 | CA_TLS_CONTAINER_REF = 'ca_tls_container_ref' |
Michael Johnson | 6378663 | 2019-11-08 23:22:13 -0800 | [diff] [blame] | 25 | CLIENT_AUTHENTICATION = 'client_authentication' |
| 26 | CLIENT_AUTH_NONE = 'NONE' |
| 27 | CLIENT_AUTH_OPTIONAL = 'OPTIONAL' |
| 28 | CLIENT_AUTH_MANDATORY = 'MANDATORY' |
| 29 | CLIENT_CA_TLS_CONTAINER_REF = 'client_ca_tls_container_ref' |
| 30 | CLIENT_CRL_CONTAINER_REF = 'client_crl_container_ref' |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 31 | CREATED_AT = 'created_at' |
Michael Johnson | 74b6f2f | 2020-10-29 15:11:39 -0700 | [diff] [blame] | 32 | CRL_CONTAINER_REF = 'crl_container_ref' |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 33 | DESCRIPTION = 'description' |
Adam Harwell | c2aa20c | 2019-11-20 11:15:07 -0800 | [diff] [blame] | 34 | FLAVOR_DATA = 'flavor_data' |
Adam Harwell | a795ae6 | 2018-04-23 12:11:19 -0700 | [diff] [blame] | 35 | FLAVOR_ID = 'flavor_id' |
Adam Harwell | c2aa20c | 2019-11-20 11:15:07 -0800 | [diff] [blame] | 36 | FLAVOR_PROFILE_ID = 'flavor_profile_id' |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 37 | ID = 'id' |
| 38 | LISTENERS = 'listeners' |
| 39 | LOADBALANCER = 'loadbalancer' |
| 40 | NAME = 'name' |
| 41 | OPERATING_STATUS = 'operating_status' |
| 42 | POOLS = 'pools' |
| 43 | PROJECT_ID = 'project_id' |
| 44 | PROVIDER = 'provider' |
Michael Johnson | aff2e86 | 2019-01-11 16:38:00 -0800 | [diff] [blame] | 45 | PROVIDER_NAME = 'provider_name' |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 46 | PROVISIONING_STATUS = 'provisioning_status' |
| 47 | REQUEST_ERRORS = 'request_errors' |
Michael Johnson | 031ecca | 2020-10-29 16:45:32 -0700 | [diff] [blame] | 48 | TLS_CONTAINER_REF = 'tls_container_ref' |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 49 | TOTAL_CONNECTIONS = 'total_connections' |
| 50 | UPDATED_AT = 'updated_at' |
| 51 | VIP_ADDRESS = 'vip_address' |
| 52 | VIP_NETWORK_ID = 'vip_network_id' |
| 53 | VIP_PORT_ID = 'vip_port_id' |
| 54 | VIP_SUBNET_ID = 'vip_subnet_id' |
| 55 | VIP_QOS_POLICY_ID = 'vip_qos_policy_id' |
Jude Cross | fbbd2b4 | 2017-08-09 15:21:04 -0700 | [diff] [blame] | 56 | PROTOCOL = 'protocol' |
| 57 | PROTOCOL_PORT = 'protocol_port' |
| 58 | LOADBALANCER_ID = 'loadbalancer_id' |
| 59 | CONNECTION_LIMIT = 'connection_limit' |
| 60 | INSERT_HEADERS = 'insert_headers' |
| 61 | X_FORWARDED_FOR = 'X-Forwarded-For' |
| 62 | X_FORWARDED_PORT = 'X-Forwarded-Port' |
Michael Johnson | 6a9236a | 2020-08-04 23:54:54 +0000 | [diff] [blame] | 63 | X_FORWARDED_PROTO = 'X-Forwarded-Proto' |
oschwart | 540bb3b | 2020-06-16 18:23:53 +0300 | [diff] [blame] | 64 | TAGS = 'tags' |
Jude Cross | fbbd2b4 | 2017-08-09 15:21:04 -0700 | [diff] [blame] | 65 | TIMEOUT_CLIENT_DATA = 'timeout_client_data' |
| 66 | TIMEOUT_MEMBER_CONNECT = 'timeout_member_connect' |
| 67 | TIMEOUT_MEMBER_DATA = 'timeout_member_data' |
| 68 | TIMEOUT_TCP_INSPECT = 'timeout_tcp_inspect' |
Michael Johnson | 74b6f2f | 2020-10-29 15:11:39 -0700 | [diff] [blame] | 69 | TLS_ENABLED = 'tls_enabled' |
Jude Cross | fbbd2b4 | 2017-08-09 15:21:04 -0700 | [diff] [blame] | 70 | DEFAULT_TLS_CONTAINER_REF = 'default_tls_container_ref' |
| 71 | SNI_CONTAINER_REFS = 'sni_container_refs' |
| 72 | DEFAULT_POOL_ID = 'default_pool_id' |
| 73 | L7_POLICIES = 'l7_policies' |
Carlos Goncalves | f7718ef | 2020-08-18 14:21:36 +0000 | [diff] [blame] | 74 | ALPN_PROTOCOLS = 'alpn_protocols' |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 75 | |
Adam Harwell | 8ffce3e | 2018-05-01 21:18:44 -0700 | [diff] [blame] | 76 | LB_ALGORITHM = 'lb_algorithm' |
| 77 | LB_ALGORITHM_ROUND_ROBIN = 'ROUND_ROBIN' |
| 78 | LB_ALGORITHM_LEAST_CONNECTIONS = 'LEAST_CONNECTIONS' |
| 79 | LB_ALGORITHM_SOURCE_IP = 'SOURCE_IP' |
Maciej Józefczyk | b6df5f8 | 2019-12-10 10:12:30 +0000 | [diff] [blame] | 80 | LB_ALGORITHM_SOURCE_IP_PORT = 'SOURCE_IP_PORT' |
| 81 | SUPPORTED_LB_ALGORITHMS_AMPHORA = [ |
| 82 | LB_ALGORITHM_ROUND_ROBIN, |
| 83 | LB_ALGORITHM_LEAST_CONNECTIONS, |
| 84 | LB_ALGORITHM_SOURCE_IP] |
| 85 | SUPPORTED_LB_ALGORITHMS = { |
| 86 | 'default': SUPPORTED_LB_ALGORITHMS_AMPHORA, |
| 87 | 'octavia': SUPPORTED_LB_ALGORITHMS_AMPHORA, |
| 88 | 'amphorav2': SUPPORTED_LB_ALGORITHMS_AMPHORA, |
| 89 | 'amphora': SUPPORTED_LB_ALGORITHMS_AMPHORA, |
| 90 | 'ovn': [LB_ALGORITHM_SOURCE_IP_PORT]} |
Adam Harwell | 8ffce3e | 2018-05-01 21:18:44 -0700 | [diff] [blame] | 91 | SESSION_PERSISTENCE = 'session_persistence' |
| 92 | LISTENER_ID = 'listener_id' |
| 93 | LOADBALANCERS = 'loadbalancers' |
| 94 | |
Adam Harwell | de3e054 | 2018-05-03 18:21:06 -0700 | [diff] [blame] | 95 | POOL_ID = 'pool_id' |
| 96 | ADDRESS = 'address' |
| 97 | WEIGHT = 'weight' |
| 98 | BACKUP = 'backup' |
| 99 | SUBNET_ID = 'subnet_id' |
| 100 | MONITOR_ADDRESS = 'monitor_address' |
| 101 | MONITOR_PORT = 'monitor_port' |
| 102 | |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 103 | DELAY = 'delay' |
| 104 | TIMEOUT = 'timeout' |
| 105 | MAX_RETRIES = 'max_retries' |
| 106 | MAX_RETRIES_DOWN = 'max_retries_down' |
| 107 | HTTP_METHOD = 'http_method' |
| 108 | URL_PATH = 'url_path' |
| 109 | EXPECTED_CODES = 'expected_codes' |
| 110 | |
Michael Johnson | a2d0307 | 2019-01-14 17:18:21 -0800 | [diff] [blame] | 111 | ENABLED = 'enabled' |
Michael Johnson | aff2e86 | 2019-01-11 16:38:00 -0800 | [diff] [blame] | 112 | |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 113 | # Other constants |
| 114 | ACTIVE = 'ACTIVE' |
Carlos Goncalves | c2e1216 | 2019-02-14 23:57:44 +0100 | [diff] [blame] | 115 | PENDING_UPDATE = 'PENDING_UPDATE' |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 116 | ADMIN_STATE_UP_TRUE = 'true' |
| 117 | ASC = 'asc' |
| 118 | DELETED = 'DELETED' |
| 119 | DESC = 'desc' |
| 120 | FIELDS = 'fields' |
| 121 | OFFLINE = 'OFFLINE' |
| 122 | ONLINE = 'ONLINE' |
| 123 | NO_MONITOR = 'NO_MONITOR' |
| 124 | ERROR = 'ERROR' |
| 125 | SORT = 'sort' |
Michael Johnson | aff2e86 | 2019-01-11 16:38:00 -0800 | [diff] [blame] | 126 | SINGLE = 'SINGLE' |
| 127 | ACTIVE_STANDBY = 'ACTIVE_STANDBY' |
Carlos Goncalves | ee09a1b | 2019-07-22 11:45:04 +0200 | [diff] [blame] | 128 | SUPPORTED_LB_TOPOLOGIES = (SINGLE, ACTIVE_STANDBY) |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 129 | |
| 130 | # Protocols |
| 131 | HTTP = 'HTTP' |
| 132 | HTTPS = 'HTTPS' |
Michael Johnson | 89bdbcd | 2020-03-19 15:59:19 -0700 | [diff] [blame] | 133 | PROXY = 'PROXY' |
Michael Johnson | 8646e5a | 2021-10-02 19:58:34 +0000 | [diff] [blame^] | 134 | PROMETHEUS = 'PROMETHEUS' |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 135 | TCP = 'TCP' |
Carlos Goncalves | 9777f11 | 2019-05-02 12:22:45 -0600 | [diff] [blame] | 136 | TERMINATED_HTTPS = 'TERMINATED_HTTPS' |
Gregory Thiemonge | 26853ac | 2019-07-02 08:56:41 +0200 | [diff] [blame] | 137 | UDP = 'UDP' |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 138 | |
| 139 | # HTTP Methods |
| 140 | GET = 'GET' |
| 141 | POST = 'POST' |
| 142 | PUT = 'PUT' |
| 143 | DELETE = 'DELETE' |
Arkady Shtempler | a186f06 | 2020-09-30 18:20:03 +0300 | [diff] [blame] | 144 | HEAD = 'HEAD' |
| 145 | OPTIONS = 'OPTIONS' |
| 146 | PATCH = 'PATCH' |
| 147 | CONNECT = 'CONNECT' |
| 148 | TRACE = 'TRACE' |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 149 | |
| 150 | # HM Types |
| 151 | HEALTH_MONITOR_PING = 'PING' |
| 152 | HEALTH_MONITOR_TCP = 'TCP' |
| 153 | HEALTH_MONITOR_HTTP = 'HTTP' |
| 154 | HEALTH_MONITOR_HTTPS = 'HTTPS' |
| 155 | HEALTH_MONITOR_TLS_HELLO = 'TLS-HELLO' |
Gregory Thiemonge | 29d1790 | 2019-04-30 15:06:17 +0200 | [diff] [blame] | 156 | HEALTH_MONITOR_UDP_CONNECT = 'UDP-CONNECT' |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 157 | |
| 158 | # Session Persistence |
| 159 | TYPE = 'type' |
| 160 | COOKIE_NAME = 'cookie_name' |
| 161 | SESSION_PERSISTENCE_SOURCE_IP = 'SOURCE_IP' |
| 162 | SESSION_PERSISTENCE_HTTP_COOKIE = 'HTTP_COOKIE' |
| 163 | SESSION_PERSISTENCE_APP_COOKIE = 'APP_COOKIE' |
| 164 | |
Adam Harwell | 446f8be | 2018-05-24 16:51:03 -0700 | [diff] [blame] | 165 | # L7Policy options |
| 166 | POSITION = 'position' |
| 167 | REDIRECT_URL = 'redirect_url' |
| 168 | REDIRECT_POOL_ID = 'redirect_pool_id' |
| 169 | |
| 170 | ACTION = 'action' |
| 171 | REDIRECT_TO_POOL = 'REDIRECT_TO_POOL' |
| 172 | REDIRECT_TO_URL = 'REDIRECT_TO_URL' |
| 173 | REJECT = 'REJECT' |
| 174 | |
Adam Harwell | e029af2 | 2018-05-24 17:13:28 -0700 | [diff] [blame] | 175 | # L7Rule options |
| 176 | L7POLICY_ID = 'l7policy_id' |
| 177 | VALUE = 'value' |
| 178 | COMPARE_TYPE = 'compare_type' |
| 179 | KEY = 'key' |
| 180 | INVERT = 'invert' |
| 181 | # Compare types |
| 182 | EQUAL_TO = 'EQUAL_TO' |
| 183 | STARTS_WITH = 'STARTS_WITH' |
| 184 | ENDS_WITH = 'ENDS_WITH' |
| 185 | CONTAINS = 'CONTAINS' |
| 186 | REGEX = 'REGEX' |
| 187 | # Types |
| 188 | COOKIE = 'COOKIE' |
| 189 | FILE_TYPE = 'FILE_TYPE' |
| 190 | HEADER = 'HEADER' |
| 191 | HOST_NAME = 'HOST_NAME' |
| 192 | PATH = 'PATH' |
| 193 | |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 194 | # RBAC options |
| 195 | ADVANCED = 'advanced' |
Michael Johnson | 6006de7 | 2021-02-21 01:42:39 +0000 | [diff] [blame] | 196 | KEYSTONE_DEFAULT_ROLES = 'keystone_default_roles' |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 197 | OWNERADMIN = 'owner_or_admin' |
| 198 | NONE = 'none' |
| 199 | |
Adam Harwell | dfc11ee | 2018-05-30 09:38:55 -0700 | [diff] [blame] | 200 | # Amphora fields |
| 201 | COMPUTE_ID = 'compute_id' |
| 202 | LB_NETWORK_IP = 'lb_network_ip' |
| 203 | VRRP_IP = 'vrrp_ip' |
| 204 | HA_IP = 'ha_ip' |
| 205 | VRRP_PORT_ID = 'vrrp_port_id' |
| 206 | HA_PORT_ID = 'ha_port_id' |
| 207 | CERT_EXPIRATION = 'cert_expiration' |
| 208 | CERT_BUSY = 'cert_busy' |
| 209 | ROLE = 'role' |
| 210 | STATUS = 'status' |
| 211 | VRRP_INTERFACE = 'vrrp_interface' |
| 212 | VRRP_ID = 'vrrp_id' |
| 213 | VRRP_PRIORITY = 'vrrp_priority' |
| 214 | CACHED_ZONE = 'cached_zone' |
| 215 | IMAGE_ID = 'image_id' |
| 216 | |
| 217 | # Amphora roles |
| 218 | ROLE_STANDALONE = 'STANDALONE' |
| 219 | ROLE_MASTER = 'MASTER' |
| 220 | ROLE_BACKUP = 'BACKUP' |
| 221 | AMPHORA_ROLES = (ROLE_STANDALONE, ROLE_MASTER, ROLE_BACKUP) |
| 222 | |
| 223 | # Amphora statuses |
| 224 | STATUS_BOOTING = 'BOOTING' |
| 225 | STATUS_ALLOCATED = 'ALLOCATED' |
| 226 | STATUS_READY = 'READY' |
| 227 | STATUS_PENDING_CREATE = 'PENDING_CREATE' |
| 228 | STATUS_PENDING_DELETE = 'PENDING_DELETE' |
| 229 | STATUS_DELETED = 'DELETED' |
| 230 | STATUS_ERROR = 'ERROR' |
| 231 | AMPHORA_STATUSES = ( |
| 232 | STATUS_BOOTING, STATUS_ALLOCATED, STATUS_READY, STATUS_PENDING_CREATE, |
| 233 | STATUS_PENDING_DELETE, STATUS_DELETED, STATUS_ERROR |
| 234 | ) |
| 235 | |
Ann Taraday | 7d0b582 | 2019-10-17 15:28:30 +0400 | [diff] [blame] | 236 | # Amphora providers list |
| 237 | AMPHORA_PROVIDERS = ['amphora', 'amphorav2', 'octavia'] |
| 238 | |
Michael Johnson | aff2e86 | 2019-01-11 16:38:00 -0800 | [diff] [blame] | 239 | # Flavor capabilities |
| 240 | LOADBALANCER_TOPOLOGY = 'loadbalancer_topology' |
| 241 | |
Adam Harwell | c2aa20c | 2019-11-20 11:15:07 -0800 | [diff] [blame] | 242 | # Availability zone capabilities |
| 243 | COMPUTE_ZONE = 'compute_zone' |
| 244 | MANAGEMENT_NETWORK = 'management_network' |
| 245 | |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 246 | # API valid fields |
| 247 | SHOW_LOAD_BALANCER_RESPONSE_FIELDS = ( |
Adam Harwell | a795ae6 | 2018-04-23 12:11:19 -0700 | [diff] [blame] | 248 | ADMIN_STATE_UP, CREATED_AT, DESCRIPTION, FLAVOR_ID, ID, LISTENERS, NAME, |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 249 | OPERATING_STATUS, POOLS, PROJECT_ID, PROVIDER, PROVISIONING_STATUS, |
| 250 | UPDATED_AT, VIP_ADDRESS, VIP_NETWORK_ID, VIP_PORT_ID, VIP_SUBNET_ID, |
| 251 | VIP_QOS_POLICY_ID) |
| 252 | |
Michael Johnson | dfd818a | 2018-08-21 20:54:54 -0700 | [diff] [blame] | 253 | SHOW_LISTENER_RESPONSE_FIELDS = [ |
Jude Cross | fbbd2b4 | 2017-08-09 15:21:04 -0700 | [diff] [blame] | 254 | ID, NAME, DESCRIPTION, PROVISIONING_STATUS, OPERATING_STATUS, |
| 255 | ADMIN_STATE_UP, PROTOCOL, PROTOCOL_PORT, CONNECTION_LIMIT, |
| 256 | DEFAULT_TLS_CONTAINER_REF, SNI_CONTAINER_REFS, PROJECT_ID, |
Michael Johnson | dfd818a | 2018-08-21 20:54:54 -0700 | [diff] [blame] | 257 | DEFAULT_POOL_ID, L7_POLICIES, INSERT_HEADERS, CREATED_AT, UPDATED_AT |
| 258 | ] |
Jude Cross | fbbd2b4 | 2017-08-09 15:21:04 -0700 | [diff] [blame] | 259 | |
Adam Harwell | 8ffce3e | 2018-05-01 21:18:44 -0700 | [diff] [blame] | 260 | SHOW_POOL_RESPONSE_FIELDS = ( |
| 261 | ID, NAME, DESCRIPTION, PROVISIONING_STATUS, OPERATING_STATUS, |
| 262 | ADMIN_STATE_UP, PROTOCOL, LB_ALGORITHM, SESSION_PERSISTENCE, |
| 263 | CREATED_AT, UPDATED_AT |
| 264 | ) |
| 265 | |
Michael Johnson | dfd818a | 2018-08-21 20:54:54 -0700 | [diff] [blame] | 266 | SHOW_MEMBER_RESPONSE_FIELDS = [ |
Adam Harwell | de3e054 | 2018-05-03 18:21:06 -0700 | [diff] [blame] | 267 | ID, NAME, PROVISIONING_STATUS, OPERATING_STATUS, ADMIN_STATE_UP, |
Michael Johnson | dfd818a | 2018-08-21 20:54:54 -0700 | [diff] [blame] | 268 | ADDRESS, PROTOCOL_PORT, WEIGHT, MONITOR_PORT, MONITOR_ADDRESS |
| 269 | ] |
Adam Harwell | de3e054 | 2018-05-03 18:21:06 -0700 | [diff] [blame] | 270 | |
Adam Harwell | 60ed9d9 | 2018-05-10 13:23:13 -0700 | [diff] [blame] | 271 | SHOW_HEALTHMONITOR_RESPONSE_FIELDS = ( |
| 272 | ID, NAME, PROVISIONING_STATUS, OPERATING_STATUS, ADMIN_STATE_UP, |
| 273 | TYPE, DELAY, TIMEOUT, MAX_RETRIES, MAX_RETRIES_DOWN, HTTP_METHOD, |
| 274 | URL_PATH, EXPECTED_CODES, CREATED_AT, UPDATED_AT |
| 275 | ) |
Adam Harwell | 446f8be | 2018-05-24 16:51:03 -0700 | [diff] [blame] | 276 | |
| 277 | SHOW_L7POLICY_RESPONSE_FIELDS = ( |
| 278 | ID, NAME, DESCRIPTION, PROVISIONING_STATUS, OPERATING_STATUS, |
| 279 | ADMIN_STATE_UP, LISTENER_ID, POSITION, ACTION, REDIRECT_URL, |
| 280 | REDIRECT_POOL_ID, CREATED_AT, UPDATED_AT |
| 281 | ) |
Adam Harwell | e029af2 | 2018-05-24 17:13:28 -0700 | [diff] [blame] | 282 | |
| 283 | SHOW_L7RULE_RESPONSE_FIELDS = ( |
| 284 | ID, ADMIN_STATE_UP, CREATED_AT, UPDATED_AT, TYPE, VALUE, COMPARE_TYPE, |
| 285 | KEY, INVERT |
| 286 | ) |
Adam Harwell | dfc11ee | 2018-05-30 09:38:55 -0700 | [diff] [blame] | 287 | |
Michael Johnson | dfd818a | 2018-08-21 20:54:54 -0700 | [diff] [blame] | 288 | SHOW_AMPHORA_RESPONSE_FIELDS = [ |
Adam Harwell | dfc11ee | 2018-05-30 09:38:55 -0700 | [diff] [blame] | 289 | ID, LOADBALANCER_ID, COMPUTE_ID, LB_NETWORK_IP, VRRP_IP, HA_IP, |
| 290 | VRRP_PORT_ID, HA_PORT_ID, CERT_EXPIRATION, CERT_BUSY, ROLE, STATUS, |
Michael Johnson | dfd818a | 2018-08-21 20:54:54 -0700 | [diff] [blame] | 291 | VRRP_INTERFACE, VRRP_ID, VRRP_PRIORITY, CACHED_ZONE |
| 292 | ] |
Michael Johnson | aff2e86 | 2019-01-11 16:38:00 -0800 | [diff] [blame] | 293 | |
| 294 | SHOW_FLAVOR_PROFILE_FIELDS = [ID, NAME, PROVIDER_NAME, FLAVOR_DATA] |
Michael Johnson | a2d0307 | 2019-01-14 17:18:21 -0800 | [diff] [blame] | 295 | |
| 296 | SHOW_FLAVOR_FIELDS = [ID, NAME, DESCRIPTION, ENABLED, FLAVOR_PROFILE_ID] |
Adam Harwell | c2aa20c | 2019-11-20 11:15:07 -0800 | [diff] [blame] | 297 | |
| 298 | SHOW_AVAILABILITY_ZONE_PROFILE_FIELDS = [ |
| 299 | ID, NAME, PROVIDER_NAME, AVAILABILITY_ZONE_DATA] |
| 300 | |
| 301 | SHOW_AVAILABILITY_ZONE_FIELDS = [ |
| 302 | NAME, DESCRIPTION, ENABLED, AVAILABILITY_ZONE_PROFILE_ID] |
Michael Johnson | baf12e0 | 2020-10-27 16:10:28 -0700 | [diff] [blame] | 303 | |
| 304 | # Paths inside the test webservers |
| 305 | CERT_PEM = 'cert.pem' |
| 306 | KEY_PEM = 'key.pem' |
| 307 | CLIENT_CA_PEM = 'client_ca.pem' |
| 308 | DEV_SHM_PATH = '/dev/shm/' |
| 309 | TEST_SERVER_BINARY = DEV_SHM_PATH + 'test_server.bin' |
| 310 | TEST_SERVER_CERT = DEV_SHM_PATH + CERT_PEM |
| 311 | TEST_SERVER_KEY = DEV_SHM_PATH + KEY_PEM |
| 312 | TEST_SERVER_CLIENT_CA = DEV_SHM_PATH + CLIENT_CA_PEM |