]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Stop admin using other tenants unshared rules
authorPreeti Mirji <preeti.mirji@hp.com>
Wed, 23 Jul 2014 10:22:30 +0000 (03:22 -0700)
committerKoteswara Rao Kelam <koteswara.kelam@hp.com>
Tue, 23 Sep 2014 05:14:51 +0000 (22:14 -0700)
commit2f5aca31b508da9c673c0209ad40efc2b5b2d16d
treec5d08d3f03a6f3ff3fa0dc48f325490872880588
parent496ab8481f2700bd91809870834ea9f051f6896c
Stop admin using other tenants unshared rules

If the firewall rules are not shared and if they belong to different
tenants, then admin should not be able to create a policy using
these rules and he should not be able to insert such rules into
policies. An exception should be raised in such case. Added new
exception “FirewallRuleConflict” to handle such conditions.

Co-Authored-By: Koteswara Rao Kelam<koteswara.kelam@hp.com>
Change-Id: I984eb76069bd1493a77bf523bec2bd81abb14abb
Closes-bug: 1327057
neutron/db/firewall/firewall_db.py
neutron/extensions/firewall.py
neutron/tests/unit/db/firewall/test_db_firewall.py