diff --git a/neutron/agent/common/ip_lib.py b/neutron/agent/common/ip_lib.py index 8aaa58288e8..df9ca9fd946 100644 --- a/neutron/agent/common/ip_lib.py +++ b/neutron/agent/common/ip_lib.py @@ -15,6 +15,9 @@ import os +from oslo_log import log as logging + + if os.name == 'nt': from neutron.agent.windows import ip_lib from neutron.conf.agent import windows @@ -25,6 +28,12 @@ else: OPTS = linux.IP_LIB_OPTS_LINUX +if os.name == 'nt': + LOG = logging.getLogger(__name__) + LOG.warning("Support for Neutron on Windows operating systems " + "is deprecated since 2023.2 release and will be removed in " + "2024.2 OpenStack release.") + IPWrapper = ip_lib.IPWrapper IPDevice = ip_lib.IPDevice diff --git a/releasenotes/notes/Deprecate-support-for-Windows-OS-80e32ef7e5e05b44.yaml b/releasenotes/notes/Deprecate-support-for-Windows-OS-80e32ef7e5e05b44.yaml new file mode 100644 index 00000000000..d5a627e8fec --- /dev/null +++ b/releasenotes/notes/Deprecate-support-for-Windows-OS-80e32ef7e5e05b44.yaml @@ -0,0 +1,5 @@ +--- +deprecations: + - | + Support for Neutron on Windows operating systems is deprecated since 2023.2 + release and will be removed in 2024.2.