Skip to content

Commit 5f7d102

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add warning for using the python bindings"
2 parents 905be91 + 857b4b2 commit 5f7d102

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ provides a Python API (the ``neutronclient`` module).
2020
.. note:: This project has been deprecated. The CLI code has been deleted
2121
and is not accessible anymore. The Python bindings are still in use by
2222
other projects but no new features will be added to this project.
23+
All projects under Openstack governance migrating to use OpenstackSDK.
2324
Any new feature should be proposed to OpenStack SDK and OpenStack
2425
Client.
2526

neutronclient/v2_0/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ class ClientBase(object):
250250
def __init__(self, **kwargs):
251251
"""Initialize a new client for the Neutron v2.0 API."""
252252
super(ClientBase, self).__init__()
253+
_logger.warning("The python binding code in neutronclient is "
254+
"deprecated in favor of OpenstackSDK, please use "
255+
"that as this will be removed in a future release.")
253256
self.retries = kwargs.pop('retries', 0)
254257
self.raise_errors = kwargs.pop('raise_errors', True)
255258
self.httpclient = client.construct_http_client(**kwargs)

0 commit comments

Comments
 (0)