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