diff --git a/ceilometer/network/statistics/opencontrail/driver.py b/ceilometer/network/statistics/opencontrail/driver.py index bf67351be9..3776db1ffb 100644 --- a/ceilometer/network/statistics/opencontrail/driver.py +++ b/ceilometer/network/statistics/opencontrail/driver.py @@ -13,6 +13,7 @@ # under the License. import re +import warnings from urllib import parse as urlparse @@ -57,6 +58,11 @@ class OpencontrailDriver(driver.Driver): opencontrail://localhost:8081/?resource=fip_stats_list& virtual_network=default-domain:openstack:public """ + def __init__(self, conf): + warnings.warn('Support for OpenContrail is deprecated.', + category=DeprecationWarning, stacklevel=3) + super(OpencontrailDriver, self).__init__(conf) + def _prepare_cache(self, endpoint, params, cache): if 'network.statistics.opencontrail' in cache: diff --git a/releasenotes/notes/deprecate-contrail-256177299deb6926.yaml b/releasenotes/notes/deprecate-contrail-256177299deb6926.yaml new file mode 100644 index 0000000000..9a890c6386 --- /dev/null +++ b/releasenotes/notes/deprecate-contrail-256177299deb6926.yaml @@ -0,0 +1,5 @@ +--- +deprecations: + - | + Support for OpenContrail, which is currently known as Tungsten Fabric, has + been deprecated and will be removed in a future release.