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
This commit is contained in:
Slawek Kaplonski 2023-06-22 14:42:06 +02:00
parent 95b6a4bb47
commit a014720912
2 changed files with 7 additions and 0 deletions

View File

@ -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,
}

View File

@ -0,0 +1,5 @@
---
other:
- |
Resource ``network`` was added to the ``EXT_PARENT_RESOURCE_MAPPING in
``neutron_lib.services.constants``.