summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorAaron Rosen <arosen@nicira.com>2013-02-28 14:47:11 -0800
committerAaron Rosen <arosen@nicira.com>2013-03-01 10:34:58 -0800
commit5a2b9d7e95cde85d58a35a73030fc8eea88f3386 (patch)
tree6c6d2e90047708a3a43e9087e4e8fdefd8c85333 /nova/utils.py
parent35b2b2c5c456c3138e0e31085c71d852320b9ce4 (diff)
downloadnova-5a2b9d7e95cde85d58a35a73030fc8eea88f3386.tar.gz
nova-5a2b9d7e95cde85d58a35a73030fc8eea88f3386.tar.xz
nova-5a2b9d7e95cde85d58a35a73030fc8eea88f3386.zip
Implement rules_exist method for quantum security group driver
Originally I thought the quantum security group driver should not enforce rules exist on the nova-api side and instead it should just forward the request to quantum which would return the error. That said there is no extra cost to doing this on the nova-api side as nova-api already queries for the group before adding the rule. In addition, rules_exists() is used in revoke_security_group_ingress() for the ec2 compat APIs so this needs to be implemented. This patch moves create_security_group_rule() and rule_exists() from nova/compute/api.py to nova/network/security_group/security_group_base.py as the same code can be leveraged in both places. Fixes bug 1136345 Change-Id: I444ffc2b53b30ed496b6e3250433d14f316e594d
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions