We exuberantly announce the release of: neutron-lib 1.20.0: Neutron shared routines and utilities This release is part of the stein release series. The source is available from: https://git.openstack.org/cgit/openstack/neutron-lib Download the package from: https://pypi.org/project/neutron-lib Please report issues through launchpad: https://bugs.launchpad.net/neutron For more details, please see below. 1.20.0 ^^^^^^ Prelude ******* This release adds support for custom filtering in versioned object. New Features ************ * The "qos-rules-alias" API extension is introduced to enable users to perform "GET", "PUT" and "DELETE" operations on "bandwidth_limit_rules", "dscp_marking_rules" and "minimum_bandwidth_rules" as though they are first level resources. In other words, the user will not have to specify the QoS policy ID. * The "neutron.db._resource_extend" is now available as "neutron_lib.db.resource_extend" along with a new "DBResourceExtendFixture" that allows tests to modify the map of registered resource functions. * A class called "FilterObj" is introduced. This is the base class from which the custom filter class should inherit. This release also implements two filter class: "NotIn" and "NotEqual". The class "StringMatchingFilterObj" is now a subclass of "FilterObj". Bug Fixes ********* * Bug 1796854 (https://bugs.launchpad.net/neutron/+bug/1796854) is fixed by validating if advsvc context is used. * Neutron API should not allow user to set zero for floating IP port forwarding internal or external port number. Directly modify the floating-ip-port-forwarding extension to change external_port and internal_port minimum value to 1. Then API and port forwarding object will make consistent for these attributes. * Change API to enforce policy rules for subnet entities with specified segment_ids, to fix a broken implementation of that policy enforcement. Bug: 1784259 (https://bugs.launchpad.net/neutron/+bug/1784259) Changes in neutron-lib 1.19.0..1.20.0 ------------------------------------- 8dc31ec Disable port number 0 for floating IP port_forwarding dafbd30 Support custom filters in OVO e5afd0b rehome the resource_extend db module 0ecceac Fix random_mac_generator to make proper EUI64s 00147a7 Allow advsvc role to create port in foreign tenant 0c47606 Add api-ref for qos-rules-alias extension 3e44497 Use QoS constants definitions eb2e5c9 Define qos-rules-alias extension f27064f Use authorize instead of enforce in policy fe62f2e build universal wheels 691cd28 PlacementAPIClient.update_resource_class client call missing argument d14b379 Let Neutron enforce rule on create_subnet with segment_id [neutron-lib part] Diffstat (except docs and test files) ------------------------------------- api-ref/source/v2/parameters.yaml | 6 +- api-ref/source/v2/qos.inc | 91 +++++++++++++ neutron_lib/_policy.py | 5 +- neutron_lib/api/attributes.py | 5 +- neutron_lib/api/definitions/__init__.py | 4 + neutron_lib/api/definitions/base.py | 3 + .../api/definitions/floating_ip_port_forwarding.py | 6 +- neutron_lib/api/definitions/metering.py | 5 +- neutron_lib/api/definitions/qos.py | 10 +- .../api/definitions/qos_bw_limit_direction.py | 5 +- neutron_lib/api/definitions/qos_rules_alias.py | 117 +++++++++++++++++ .../api/definitions/subnet_segmentid_enforce.py | 79 +++++++++++ neutron_lib/db/model_query.py | 12 +- neutron_lib/db/resource_extend.py | 146 +++++++++++++++++++++ neutron_lib/fixture.py | 16 +++ neutron_lib/objects/utils.py | 42 +++++- neutron_lib/placement/client.py | 2 +- .../api/definitions/test_qos_bw_limit_direction.py | 3 +- .../unit/api/definitions/test_qos_rules_alias.py | 28 ++++ .../definitions/test_subnet_segmentid_enforce.py | 23 ++++ neutron_lib/utils/net.py | 2 +- .../advsvc-role-support-d4f1c532264b729a.yaml | 4 + .../disable-port-number-zero-2fb484a802f099a7.yaml | 8 ++ .../qos-rules-alias-ext-c13417dcb3d81130.yaml | 8 ++ .../rehome-resource-extend-7eee483ec4146801.yaml | 6 + ...segment_id_policy_enforce-cd8053c51417d373.yaml | 7 + .../support-custom-filter-f4a15bb5b38b7d3e.yaml | 9 ++ setup.cfg | 3 + 38 files changed, 836 insertions(+), 41 deletions(-)
participants (1)
-
no-reply@openstack.org