Browse Source

Merge "Adding PERSISTENCE_TYPES option NONE"

changes/97/783897/1
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
fcd3c58527
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      examples/policies/lb_policy.yaml
  2. +2
    -1
      senlin/policies/lb_policy.py

+ 1
- 1
examples/policies/lb_policy.yaml View File

@ -19,7 +19,7 @@ properties:
session_persistence:
# type of session persistence, valid values include:
# SOURCE_IP, HTTP_COOKIE, APP_COOKIE
# SOURCE_IP, HTTP_COOKIE, APP_COOKIE, NONE
type: SOURCE_IP
# Name of cookie if type set to APP_COOKIE
cookie_name: whatever


+ 2
- 1
senlin/policies/lb_policy.py View File

@ -142,8 +142,9 @@ class LoadBalancingPolicy(base.Policy):
PERSISTENCE_TYPES = (
PERSIST_SOURCE_IP, PERSIST_HTTP_COOKIE, PERSIST_APP_COOKIE,
PERSIST_NONE,
) = (
'SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE',
'SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE', 'NONE',
)
properties_schema = {


Loading…
Cancel
Save