diff options
Diffstat (limited to 'designate/backend/agent_backend/impl_knot2.py')
-rwxr-xr-x | designate/backend/agent_backend/impl_knot2.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/designate/backend/agent_backend/impl_knot2.py b/designate/backend/agent_backend/impl_knot2.py index ca9b6b15..9bbf0d44 100755 --- a/designate/backend/agent_backend/impl_knot2.py +++ b/designate/backend/agent_backend/impl_knot2.py @@ -37,6 +37,7 @@ Supported Knot versions: >= 2.1, < 3 Configured in [service:agent:knot2] """ +import warnings from oslo_concurrency import lockutils from oslo_concurrency.processutils import ProcessExecutionError @@ -66,6 +67,12 @@ class Knot2Backend(base.AgentBackend): """Configure the backend""" super(Knot2Backend, self).__init__(*a, **kw) + warning_msg = ('The designate agent framework and backend driver "{}" ' + 'are deprecated as of the Antelope (2023.1) release ' + 'and will be removed in the "C" ' + 'release.'.format(self.__plugin_name__)) + warnings.warn(warning_msg, DeprecationWarning) + self._knotc_cmd_name = cfg.CONF[CFG_GROUP_NAME].knotc_cmd_name def start(self): |