"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "octavia/common/constants.py" between
octavia-7.1.1.tar.gz and octavia-8.0.0.tar.gz

About: OpenStack Octavia is an operator-grade reference implementation for Load Balancing as a Service (LBaaS).
The "Wallaby" series (latest release).

constants.py  (octavia-7.1.1):constants.py  (octavia-8.0.0)
skipping to change at line 732 skipping to change at line 732
PAGINATION_HELPER = 'pagination_helper' PAGINATION_HELPER = 'pagination_helper'
ASC = 'asc' ASC = 'asc'
DESC = 'desc' DESC = 'desc'
ALLOWED_SORT_DIR = (ASC, DESC) ALLOWED_SORT_DIR = (ASC, DESC)
DEFAULT_SORT_DIR = ASC DEFAULT_SORT_DIR = ASC
DEFAULT_SORT_KEYS = ['created_at', 'id'] DEFAULT_SORT_KEYS = ['created_at', 'id']
DEFAULT_PAGE_SIZE = 1000 DEFAULT_PAGE_SIZE = 1000
# RBAC # RBAC
LOADBALANCER_API = 'os_load-balancer_api' LOADBALANCER_API = 'os_load-balancer_api'
RULE_API_ADMIN = 'rule:load-balancer:admin' RULE_API_ADMIN = 'rule:load-balancer:admin'
RULE_API_READ = 'rule:load-balancer:read' RULE_API_READ = 'rule:load-balancer:read'
RULE_API_READ_GLOBAL = 'rule:load-balancer:read-global' RULE_API_READ_GLOBAL = 'rule:load-balancer:read-global'
RULE_API_WRITE = 'rule:load-balancer:write' RULE_API_WRITE = 'rule:load-balancer:write'
RULE_API_READ_QUOTA = 'rule:load-balancer:read-quota' RULE_API_READ_QUOTA = 'rule:load-balancer:read-quota'
RULE_API_READ_QUOTA_GLOBAL = 'rule:load-balancer:read-quota-global' RULE_API_READ_QUOTA_GLOBAL = 'rule:load-balancer:read-quota-global'
RULE_API_WRITE_QUOTA = 'rule:load-balancer:write-quota' RULE_API_WRITE_QUOTA = 'rule:load-balancer:write-quota'
RBAC_LOADBALANCER = '{}:loadbalancer:'.format(LOADBALANCER_API) RBAC_LOADBALANCER = '{}:loadbalancer:'.format(LOADBALANCER_API)
RBAC_LISTENER = '{}:listener:'.format(LOADBALANCER_API) RBAC_LISTENER = '{}:listener:'.format(LOADBALANCER_API)
RBAC_POOL = '{}:pool:'.format(LOADBALANCER_API) RBAC_POOL = '{}:pool:'.format(LOADBALANCER_API)
RBAC_MEMBER = '{}:member:'.format(LOADBALANCER_API) RBAC_MEMBER = '{}:member:'.format(LOADBALANCER_API)
RBAC_HEALTHMONITOR = '{}:healthmonitor:'.format(LOADBALANCER_API) RBAC_HEALTHMONITOR = '{}:healthmonitor:'.format(LOADBALANCER_API)
RBAC_L7POLICY = '{}:l7policy:'.format(LOADBALANCER_API) RBAC_L7POLICY = '{}:l7policy:'.format(LOADBALANCER_API)
RBAC_L7RULE = '{}:l7rule:'.format(LOADBALANCER_API) RBAC_L7RULE = '{}:l7rule:'.format(LOADBALANCER_API)
RBAC_QUOTA = '{}:quota:'.format(LOADBALANCER_API) RBAC_QUOTA = '{}:quota:'.format(LOADBALANCER_API)
RBAC_AMPHORA = '{}:amphora:'.format(LOADBALANCER_API) RBAC_AMPHORA = '{}:amphora:'.format(LOADBALANCER_API)
RBAC_PROVIDER = '{}:provider:'.format(LOADBALANCER_API) RBAC_PROVIDER = '{}:provider:'.format(LOADBALANCER_API)
RBAC_PROVIDER_FLAVOR = '{}:provider-flavor:'.format(LOADBALANCER_API) RBAC_PROVIDER_FLAVOR = '{}:provider-flavor:'.format(LOADBALANCER_API)
RBAC_PROVIDER_AVAILABILITY_ZONE = '{}:provider-availability-zone:'.format( RBAC_PROVIDER_AVAILABILITY_ZONE = '{}:provider-availability-zone:'.format(
LOADBALANCER_API) LOADBALANCER_API)
RBAC_FLAVOR = '{}:flavor:'.format(LOADBALANCER_API) RBAC_FLAVOR = '{}:flavor:'.format(LOADBALANCER_API)
RBAC_FLAVOR_PROFILE = '{}:flavor-profile:'.format(LOADBALANCER_API) RBAC_FLAVOR_PROFILE = '{}:flavor-profile:'.format(LOADBALANCER_API)
RBAC_AVAILABILITY_ZONE = '{}:availability-zone:'.format(LOADBALANCER_API) RBAC_AVAILABILITY_ZONE = '{}:availability-zone:'.format(LOADBALANCER_API)
RBAC_AVAILABILITY_ZONE_PROFILE = '{}:availability-zone-profile:'.format( RBAC_AVAILABILITY_ZONE_PROFILE = '{}:availability-zone-profile:'.format(
LOADBALANCER_API) LOADBALANCER_API)
RBAC_POST = 'post' RBAC_POST = 'post'
RBAC_PUT = 'put' RBAC_PUT = 'put'
RBAC_PUT_CONFIG = 'put_config' RBAC_PUT_CONFIG = 'put_config'
RBAC_PUT_FAILOVER = 'put_failover' RBAC_PUT_FAILOVER = 'put_failover'
RBAC_DELETE = 'delete' RBAC_DELETE = 'delete'
RBAC_GET_ONE = 'get_one' RBAC_GET_ONE = 'get_one'
RBAC_GET_ALL = 'get_all' RBAC_GET_ALL = 'get_all'
RBAC_GET_ALL_GLOBAL = 'get_all-global' RBAC_GET_ALL_GLOBAL = 'get_all-global'
RBAC_GET_DEFAULTS = 'get_defaults' RBAC_GET_DEFAULTS = 'get_defaults'
RBAC_GET_STATS = 'get_stats' RBAC_GET_STATS = 'get_stats'
RBAC_GET_STATUS = 'get_status' RBAC_GET_STATUS = 'get_status'
RBAC_SCOPE_PROJECT = 'project'
RBAC_SCOPE_SYSTEM = 'system'
RBAC_ROLES_DEPRECATED_REASON = (
'The Octavia API now requires the OpenStack default roles and scoped '
'tokens. '
'See https://docs.openstack.org/octavia/latest/configuration/policy.html '
'and https://docs.openstack.org/keystone/latest/contributor/'
'services.html#reusable-default-roles for more information.')
# PROVIDERS # PROVIDERS
OCTAVIA = 'octavia' OCTAVIA = 'octavia'
AMPHORAV2 = 'amphorav2' AMPHORAV2 = 'amphorav2'
# systemctl commands # systemctl commands
DISABLE = 'disable' DISABLE = 'disable'
ENABLE = 'enable' ENABLE = 'enable'
# systemd amphora netns service prefix # systemd amphora netns service prefix
AMP_NETNS_SVC_PREFIX = 'amphora-netns' AMP_NETNS_SVC_PREFIX = 'amphora-netns'
# Amphora Feature Compatibility # Amphora Feature Compatibility
HTTP_REUSE = 'has_http_reuse' HTTP_REUSE = 'has_http_reuse'
POOL_ALPN = 'has_pool_alpn'
# TODO(johnsom) convert these to octavia_lib constants # TODO(johnsom) convert these to octavia_lib constants
# once octavia is transitioned to use octavia_lib # once octavia is transitioned to use octavia_lib
FLAVOR = 'flavor' FLAVOR = 'flavor'
FLAVOR_DATA = 'flavor_data' FLAVOR_DATA = 'flavor_data'
AVAILABILITY_ZONE = 'availability_zone' AVAILABILITY_ZONE = 'availability_zone'
AVAILABILITY_ZONE_DATA = 'availability_zone_data' AVAILABILITY_ZONE_DATA = 'availability_zone_data'
# Flavor metadata # Flavor metadata
LOADBALANCER_TOPOLOGY = 'loadbalancer_topology' LOADBALANCER_TOPOLOGY = 'loadbalancer_topology'
skipping to change at line 808 skipping to change at line 822
CLIENT_AUTH_OPTIONAL = 'OPTIONAL' CLIENT_AUTH_OPTIONAL = 'OPTIONAL'
CLIENT_AUTH_MANDATORY = 'MANDATORY' CLIENT_AUTH_MANDATORY = 'MANDATORY'
SUPPORTED_CLIENT_AUTH_MODES = [CLIENT_AUTH_NONE, CLIENT_AUTH_OPTIONAL, SUPPORTED_CLIENT_AUTH_MODES = [CLIENT_AUTH_NONE, CLIENT_AUTH_OPTIONAL,
CLIENT_AUTH_MANDATORY] CLIENT_AUTH_MANDATORY]
TOPIC_AMPHORA_V2 = 'octavia_provisioning_v2' TOPIC_AMPHORA_V2 = 'octavia_provisioning_v2'
HAPROXY_HTTP_PROTOCOLS = [lib_consts.PROTOCOL_HTTP, HAPROXY_HTTP_PROTOCOLS = [lib_consts.PROTOCOL_HTTP,
lib_consts.PROTOCOL_TERMINATED_HTTPS] lib_consts.PROTOCOL_TERMINATED_HTTPS]
LVS_PROTOCOLS = [PROTOCOL_UDP,
lib_consts.PROTOCOL_SCTP]
HAPROXY_BACKEND = 'HAPROXY'
LVS_BACKEND = 'LVS'
# Map each supported protocol to its L4 protocol # Map each supported protocol to its L4 protocol
L4_PROTOCOL_MAP = { L4_PROTOCOL_MAP = {
PROTOCOL_TCP: PROTOCOL_TCP, PROTOCOL_TCP: PROTOCOL_TCP,
PROTOCOL_HTTP: PROTOCOL_TCP, PROTOCOL_HTTP: PROTOCOL_TCP,
PROTOCOL_HTTPS: PROTOCOL_TCP, PROTOCOL_HTTPS: PROTOCOL_TCP,
PROTOCOL_TERMINATED_HTTPS: PROTOCOL_TCP, PROTOCOL_TERMINATED_HTTPS: PROTOCOL_TCP,
PROTOCOL_PROXY: PROTOCOL_TCP, PROTOCOL_PROXY: PROTOCOL_TCP,
lib_consts.PROTOCOL_PROXYV2: PROTOCOL_TCP, lib_consts.PROTOCOL_PROXYV2: PROTOCOL_TCP,
PROTOCOL_UDP: PROTOCOL_UDP, PROTOCOL_UDP: PROTOCOL_UDP,
lib_consts.PROTOCOL_SCTP: lib_consts.PROTOCOL_SCTP, lib_consts.PROTOCOL_SCTP: lib_consts.PROTOCOL_SCTP,
 End of changes. 6 change blocks. 
0 lines changed or deleted 20 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)