]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add config for visibility of cisco-policy-profile
authorSteven Hillman <sthillma@cisco.com>
Thu, 7 Aug 2014 18:52:19 +0000 (11:52 -0700)
committerSteven Hillman <sthillma@cisco.com>
Tue, 19 Aug 2014 21:14:47 +0000 (14:14 -0700)
commit35ab880e0fccfd05df012dadb49f97a7ccf73e73
tree3c446988c255b5f6affa1e32d6d1a32cbd94d6a6
parentcada146fe3862c0a7001e4e1a115e54845ce97cd
Add config for visibility of cisco-policy-profile

This change adds a configuration option to cisco_plugin.ini to control the
visibility of cisco-policy-profile among tenants. The default is false or
unrestricted, so all tenants can view all policy profiles. If the option
is set to true, tenants can only view policy profiles that are assigned
to that tenant. The admin user can always view all policy profiles. This
was implemented by adding a check of the configuration option in
get_policy_profiles().

Change-Id: I5d77544d75366d39714def971eb949cfdc40023e
Implements: blueprint cisco-policy-profile-visibility
etc/neutron/plugins/cisco/cisco_plugins.ini
neutron/plugins/cisco/common/config.py
neutron/plugins/cisco/db/n1kv_db_v2.py
neutron/tests/unit/cisco/n1kv/test_n1kv_plugin.py