From b262314b751ee44f38acab3002ea501318258031 Mon Sep 17 00:00:00 2001 From: Satish Patel Date: Sat, 27 Feb 2021 03:36:18 +0000 Subject: [PATCH] Adding PERSISTENCE_TYPES option NONE It will allow to define PERSISTENCE_TYPES = NONE for octavia LB Change-Id: Id7c6c6e50c2b95751d1d87cbf41ce117bdfa3927 --- examples/policies/lb_policy.yaml | 2 +- senlin/policies/lb_policy.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/policies/lb_policy.yaml b/examples/policies/lb_policy.yaml index 1d74f7b05..06e1bcfbb 100644 --- a/examples/policies/lb_policy.yaml +++ b/examples/policies/lb_policy.yaml @@ -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 diff --git a/senlin/policies/lb_policy.py b/senlin/policies/lb_policy.py index b95ac69cb..edf43876d 100755 --- a/senlin/policies/lb_policy.py +++ b/senlin/policies/lb_policy.py @@ -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 = {