From 89dc650220244628ea78f58ea2771a2ca0c63a73 Mon Sep 17 00:00:00 2001 From: Nurmatov Mamatisa Date: Fri, 1 Jul 2022 16:17:08 +0300 Subject: [PATCH] Remove unused placement constants Neutron now uses os-resources-classes lib constants [1], neutron-lib constants can be removed. 1) https://review.opendev.org/c/openstack/neutron/+/799676/ Change-Id: I940cb6b66a9d79b45fb29db1afdfea1aea621f76 --- neutron_lib/placement/constants.py | 8 -------- ...emove-resource-classes-constants-81f01eaed9ac463d.yaml | 6 ++++++ 2 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 releasenotes/notes/remove-resource-classes-constants-81f01eaed9ac463d.yaml diff --git a/neutron_lib/placement/constants.py b/neutron_lib/placement/constants.py index ad4e7074d..bbf11c605 100644 --- a/neutron_lib/placement/constants.py +++ b/neutron_lib/placement/constants.py @@ -16,14 +16,6 @@ TRAIT_PREFIX_VNIC_TYPE = 'VNIC_TYPE_' TRAIT_PREFIX_PHYSNET = 'PHYSNET_' -# TODO(przszc): Remove resource classes constants with next major release of -# neutron-lib. There were only a few occurrences in neutron source code where -# those constants were used, and all of them were replaced with -# os-resource-classes lib. -# **DEPRECATED** resource classes -CLASS_NET_BW_EGRESS_KBPS = 'NET_BW_EGR_KILOBIT_PER_SEC' -CLASS_NET_BW_INGRESS_KBPS = 'NET_BW_IGR_KILOBIT_PER_SEC' - # Optionally reported inventory parameters. Mandatory parameters like 'total' # are left out intentionally. See also: # https://docs.openstack.org/api-ref/placement diff --git a/releasenotes/notes/remove-resource-classes-constants-81f01eaed9ac463d.yaml b/releasenotes/notes/remove-resource-classes-constants-81f01eaed9ac463d.yaml new file mode 100644 index 000000000..f3be1793f --- /dev/null +++ b/releasenotes/notes/remove-resource-classes-constants-81f01eaed9ac463d.yaml @@ -0,0 +1,6 @@ +--- +other: + - | + From '799676 change _ + neutron uses os-resource-classes lib constants. Neutron-lib copy constants + ``CLASS_NET_BW_EGRESS_KBPS`` and ``CLASS_NET_BW_INGRESS_KBPS`` are removed