diff options
author | elajkat <lajos.katona@est.tech> | 2022-10-21 13:58:12 +0200 |
---|---|---|
committer | elajkat <lajos.katona@est.tech> | 2022-10-21 16:40:38 +0200 |
commit | f67af3d9be8cb289a78ccc1dceb324abc4767fde (patch) | |
tree | e6a23b58f8e1f135e97d657e4792cc8c0d957057 /neutronclient | |
parent | ec84aff516d89817e1434da79579b7fdb03b27ce (diff) | |
download | python-neutronclient-f67af3d9be8cb289a78ccc1dceb324abc4767fde.tar.gz |
Add warning and reno for SDK8.2.0
On the 2023.1 (Antelope) PTG we discussed the status of the python
binding (SDK) code in python-neutronclient and decided to not allow new
features to this repo (see [1]), and make users to use openstacksdk.
Let's add a warning log message and a releasenote to make it visible.
[1]: https://etherpad.opendev.org/p/neutron-antelope-ptg#L163
Change-Id: I03317179bd0d30a69b91eef6e451b8e40eb28191
Diffstat (limited to 'neutronclient')
-rw-r--r-- | neutronclient/v2_0/client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/neutronclient/v2_0/client.py b/neutronclient/v2_0/client.py index de05291..e670e3f 100644 --- a/neutronclient/v2_0/client.py +++ b/neutronclient/v2_0/client.py @@ -250,6 +250,9 @@ class ClientBase(object): def __init__(self, **kwargs): """Initialize a new client for the Neutron v2.0 API.""" super(ClientBase, self).__init__() + _logger.warning("The python binding code in neutronclient will be " + "deprecated in favor of OpenstackSDK, please use " + "that!") self.retries = kwargs.pop('retries', 0) self.raise_errors = kwargs.pop('raise_errors', True) self.httpclient = client.construct_http_client(**kwargs) |