neutron/neutron
Nate Johnston 96b0b90b89 Add enforcer logic for neutron policy
The oslopolicy-policy-generator command line tool does not run
currently, throwing a KeyError.  This is because a policy enforcer needs
to be added to Neutron for the command to run.

This change is a limited backport of "Convert policy.json into
policy-in-code" [1]. The feature of policy-in-code is not backported;
all that is backported is the changes needed for the
oslopolicy-policy-generator command line tool to function properly,
which were bundled in with the rest of the policy-in-code feature.

For reference, an analogous change was merged in keystone to solve the
same problem [2].

[1] https://review.openstack.org/585037
[2] https://review.openstack.org/530828

Change-Id: I912f23e9c6800b71672507c548cfab3f094de9c7
Closes-Bug: #1817953
2019-03-25 16:07:51 -04:00
..
agent Merge "Do not release DHCP lease when no client ID is set on port" into stable/rocky 2019-03-22 23:23:52 +00:00
api Block port update from unbound DHCP agent 2018-12-18 11:11:35 +00:00
cmd Secure dnsmasq process against external abuse 2019-02-01 09:07:14 +00:00
common Always fill UDP checksums in DHCPv6 replies 2019-02-01 23:23:06 +00:00
conf Implement filter validation 2018-07-19 04:13:43 +00:00
core_extensions Refactor duplicated implementation of _get_policy_obj 2018-06-20 09:51:02 +08:00
db Fix notification about arp entries for dvr routers 2019-02-15 16:03:28 +00:00
debug Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00
extensions [server side] Expose port forwardings in FIP API 2018-07-27 17:25:10 +08:00
hacking use sqla functions from neutron-lib 2018-07-25 21:04:20 +00:00
ipam Fetch specific columns rather than full ORM entities 2018-09-27 16:28:37 +00:00
locale Imported Translations from Zanata 2018-11-30 09:16:33 +00:00
notifiers Fix W503 pep8 warnings 2018-04-17 14:22:58 +00:00
objects Merge "Fix performance regression adding rules to security groups" into stable/rocky 2019-02-09 10:38:17 +00:00
pecan_wsgi Implement filter validation 2018-07-19 04:13:43 +00:00
plugins Delete port binding level for deleted bindings 2019-03-06 14:37:08 +00:00
privileged Remove a bare raise noticed by the linter 2019-01-30 20:14:58 +03:00
quota Fetch specific columns rather than full ORM entities 2018-09-27 16:28:37 +00:00
scheduler Fetch specific columns rather than full ORM entities 2018-09-27 16:28:37 +00:00
server Allow neutron-api load config from WSGI process 2018-07-25 15:22:14 +07:00
services Do not delete trunk bridges if service port attached 2018-12-17 12:18:44 +00:00
tests Add enforcer logic for neutron policy 2019-03-25 16:07:51 -04:00
__init__.py
_i18n.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Implement filter validation 2018-07-19 04:13:43 +00:00
neutron_plugin_base_v2.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
opts.py Merge "Remove deprecated cache_url" 2018-01-03 06:35:59 +00:00
policy.py Add enforcer logic for neutron policy 2019-03-25 16:07:51 -04:00
service.py Allow neutron-api load config from WSGI process 2018-07-25 15:22:14 +07:00
version.py
worker.py replace WorkerSupportServiceMixin with neutron-lib's WorkerBase 2017-06-14 06:56:48 -06:00
wsgi.py Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00