neutron-lib/neutron_lib
Slawek Kaplonski 8ccdecc7d1 Add is_service_role property to the context class
As we are moving to the new S-RBAC policies, we want to use "service"
role for all service to service communication. See [1] for details.

This require from Context class property similar to old "is_advsvc" but
with new naming convention and using new policy rule.

This patch adds this new property together with all required policies
and rules.
For now "ContextBase.is_advsvc" property will return True if one of the
advsvc OR service_role will be True to make it working in the same way
with both old and new policies but once we will get rid of the old
policies we should also remove is_advsvc property from the ContextBase
class.

[1] https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html#phase-2

Change-Id: Ic401db8b4e2745234e61fe2c05afd5b4ab719a03
2023-06-30 15:56:20 +02:00
..
agent Rehome ovsfw constants and utils modules 2022-06-01 22:15:43 +02:00
api Merge "Add port hardware offload extension" 2023-06-28 09:01:27 +00:00
callbacks Fix pep8 job issues with pylint==2.15.0 2022-08-31 15:29:48 +02:00
db Add is_service_role property to the context class 2023-06-30 15:56:20 +02:00
exceptions Add FirewallGroupPortNotSupported exception 2023-06-02 10:20:46 +08:00
hacking Switch to hacking 2.0 2020-03-17 15:31:31 +09:00
locale/zh_CN/LC_MESSAGES Imported Translations from Zanata 2018-03-01 06:47:27 +00:00
objects Rehome ``NumaAffinityPoliciesEnumField`` 2022-03-04 22:31:39 +00:00
placement Remove unused placement constants 2022-07-04 16:29:56 +03:00
plugins DPDK datapath type added 2023-05-04 17:08:36 +03:00
policy Add is_service_role property to the context class 2023-06-30 15:56:20 +02:00
services Add "network" to the EXT_PARENT_RESOURCE_MAPPING 2023-06-26 10:58:41 +00:00
tests Add is_service_role property to the context class 2023-06-30 15:56:20 +02:00
utils Replace deprecated import of ABCs from collections 2021-07-17 12:22:34 +09:00
__init__.py Remove library "six" 2020-01-22 13:16:45 +00:00
_i18n.py Update the documentation link for doc migration 2017-07-20 15:46:41 +00:00
constants.py Add port hardware offload extension 2023-06-21 18:01:35 +00:00
context.py Add is_service_role property to the context class 2023-06-30 15:56:20 +02:00
fixture.py [sqlalchemy-20] Use Connection.execute() instead of Engine.execute() 2023-02-23 14:57:37 +00:00
rpc.py Use new get_rpc_client API from oslo.messaging 2023-02-02 22:44:00 +01:00
version.py Setup for devref documentation 2015-12-07 18:50:07 +00:00
worker.py Remove deprecated method registry.notify 2021-09-20 09:26:07 +00:00