From a0147209123542c4b237b3e3dddea880be27a5af Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Thu, 22 Jun 2023 14:42:06 +0200 Subject: [PATCH] Add "network" to the EXT_PARENT_RESOURCE_MAPPING It's needed so network can be used as ext_parent for e.g. subnets in the API policy rules. Related-bug: #2023679 Change-Id: Ib446dffcd60e18b578a4d816ab5881e2fabc3e51 --- neutron_lib/services/constants.py | 2 ++ .../network-in-parent-resource-mapping-0bc57f9bb54d1dc9.yaml | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/network-in-parent-resource-mapping-0bc57f9bb54d1dc9.yaml diff --git a/neutron_lib/services/constants.py b/neutron_lib/services/constants.py index 7620d8df8..78de39cad 100644 --- a/neutron_lib/services/constants.py +++ b/neutron_lib/services/constants.py @@ -14,6 +14,7 @@ from neutron_lib.api.definitions import l3 from neutron_lib.api.definitions import local_ip +from neutron_lib.api.definitions import network from neutron_lib.api.definitions import qos from neutron_lib.plugins import constants as plugin_const @@ -31,4 +32,5 @@ EXT_PARENT_RESOURCE_MAPPING = { l3.ROUTER: plugin_const.CONNTRACKHELPER, local_ip.RESOURCE_NAME: plugin_const.LOCAL_IP, qos.POLICY: plugin_const.QOS, + network.RESOURCE_NAME: plugin_const.CORE, } diff --git a/releasenotes/notes/network-in-parent-resource-mapping-0bc57f9bb54d1dc9.yaml b/releasenotes/notes/network-in-parent-resource-mapping-0bc57f9bb54d1dc9.yaml new file mode 100644 index 000000000..18613ed73 --- /dev/null +++ b/releasenotes/notes/network-in-parent-resource-mapping-0bc57f9bb54d1dc9.yaml @@ -0,0 +1,5 @@ +--- +other: + - | + Resource ``network`` was added to the ``EXT_PARENT_RESOURCE_MAPPING in + ``neutron_lib.services.constants``.