summaryrefslogtreecommitdiff
path: root/etc/oslo-policy-generator
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2018-07-24 04:31:00 +0900
committerSlawek Kaplonski <skaplons@redhat.com>2018-12-13 20:37:53 +0000
commitf8984c66996c876d5bbd0cc0c4c47f567e515511 (patch)
treebc0d0059b3070a59821775eeff61199a1ab78f10 /etc/oslo-policy-generator
parent7a2b4dcff10090edbadd6a7a4eaa9c24d72c674d (diff)
downloadneutron-f8984c66996c876d5bbd0cc0c4c47f567e515511.tar.gz
Convert policy.json into policy-in-code
This commit introduces a framework for policy-in-code support in the neutron stadium and converts the existing policy.json in the neutron repository into the policy-in-code style. NOTES: 1) This commit tries not to change the existing policy behavior provided by the neutron repository even if there are some stale policies or policies to be defined in a neutron-related project. They should be clean up later in Stein release. 2) 'default' policy should be dropped from the default policies as all default policies should be defined in the code (as many projects which already completed policy-in-code do). However, dropping 'default' policy potentially affects policy behavior in neutron-related projects, so it needs to be visit carefully. Considering this, this commit decides to keep the 'default' policy. Partially Implements: blueprint neutron-policy-in-code Change-Id: I6a61079da4d4f5080ee32d640144e6bdb14735fa
Diffstat (limited to 'etc/oslo-policy-generator')
-rw-r--r--etc/oslo-policy-generator/policy.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/oslo-policy-generator/policy.conf b/etc/oslo-policy-generator/policy.conf
new file mode 100644
index 0000000000..1212ed81d2
--- /dev/null
+++ b/etc/oslo-policy-generator/policy.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+output_file = etc/policy.yaml.sample
+namespace = neutron