summaryrefslogtreecommitdiff
path: root/designate/backend/agent_backend/impl_fake.py
diff options
context:
space:
mode:
Diffstat (limited to 'designate/backend/agent_backend/impl_fake.py')
-rw-r--r--designate/backend/agent_backend/impl_fake.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/designate/backend/agent_backend/impl_fake.py b/designate/backend/agent_backend/impl_fake.py
index b8ff7899..7eaee686 100644
--- a/designate/backend/agent_backend/impl_fake.py
+++ b/designate/backend/agent_backend/impl_fake.py
@@ -13,6 +13,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
+import warnings
+
from oslo_log import log as logging
from designate.backend.agent_backend import base
@@ -23,6 +25,14 @@ LOG = logging.getLogger(__name__)
class FakeBackend(base.AgentBackend):
__plugin_name__ = 'fake'
+ def __init__(self, agent_service):
+ super(FakeBackend, self).__init__(agent_service)
+ 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)
+
def start(self):
LOG.info("Started fake backend, Pool Manager will not work!")