From ac6c9b8f16f74db97a3cbe4e3eb18647e824fa24 Mon Sep 17 00:00:00 2001 From: Benjamin Ludwig Date: Wed, 31 Jul 2024 17:55:24 +0200 Subject: [PATCH] Fix: AS3 unchecked mode called 'unsafe' instead of 'unchecked' --- octavia_f5/common/config.py | 6 ++++-- octavia_f5/restclient/as3restclient.py | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/octavia_f5/common/config.py b/octavia_f5/common/config.py index c10f8a64..4a0614c0 100644 --- a/octavia_f5/common/config.py +++ b/octavia_f5/common/config.py @@ -122,8 +122,10 @@ def setup_logging(conf): "Set persist_every < 0, leave the working " "configuration in memory only (if targetHost restart, you may " "lose the configuration from memory")), - cfg.BoolOpt('unsafe_mode', default=False, - help=_("Use unsafe mode for posting AS3 declarations.")), + cfg.BoolOpt('unchecked_mode', default=False, + help=_("Use unchecked mode for posting AS3 declarations. The " + "current BigIP state won't be checked when AS3 applies a " + "declaration.")), cfg.StrOpt('availability_zone', default=None, help=_("Name of the availability zone the F5 device of this worker is assigned to.")), cfg.StrOpt('irule_allowed_cidrs', default='cc_allowed_cidrs', diff --git a/octavia_f5/restclient/as3restclient.py b/octavia_f5/restclient/as3restclient.py index 62e0bb5d..29741658 100644 --- a/octavia_f5/restclient/as3restclient.py +++ b/octavia_f5/restclient/as3restclient.py @@ -156,8 +156,8 @@ def post(self, tenants, payload): params = {} if CONF.f5_agent.async_mode: params['async'] = 'true' - if CONF.f5_agent.unsafe_mode: - params['unsafe'] = 'true' + if CONF.f5_agent.unchecked_mode: + params['unchecked'] = 'true' return super(AS3RestClient, self).post(url, json=payload.to_dict(), params=params) @_metric_patch_exceptions.count_exceptions()