]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix callback registry notification for security group rule
authorOleg Bondarev <obondarev@mirantis.com>
Tue, 2 Jun 2015 13:14:40 +0000 (16:14 +0300)
committerOleg Bondarev <obondarev@mirantis.com>
Mon, 22 Jun 2015 14:19:44 +0000 (17:19 +0300)
commit76b4803530c0d5f47659aa519585178cc33cba46
tree1f84eb1866d0f83280b0dcd65950b23e90ee70dc
parent1b1d07823d86d74efa77eb01c3369a3df00c9822
Fix callback registry notification for security group rule

Some housekeeping was done in
 - SecurityGroupDbMixin:
   - create_rule_bulk() calls to create_rule();
   - registry notification is in create_rule();
   - separate validation for a single rule and for a group of rules
 - SecurityGroupServerRpcMixin:
   - overriden methods call to corresponding super class methods;

Hopefully code is now self-documented enough

Closes-Bug: #1461024
Change-Id: Ia75d7e206716bbe74aae89e4cebd0c2c40af68a8
neutron/db/securitygroups_db.py
neutron/db/securitygroups_rpc_base.py
neutron/tests/unit/db/test_securitygroups_db.py