summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvladimir.p <vladimir@zadarastorage.com>2011-07-15 18:11:13 -0700
committervladimir.p <vladimir@zadarastorage.com>2011-07-15 18:11:13 -0700
commitf6844960dd062154244c706283cf1916ee7194ff (patch)
tree4740b5377e3609da55e20646e9dc1bd6a331db6b
parentf21dad5a5ad8e06a4c86510bfa3bc430442328f4 (diff)
downloadnova-f6844960dd062154244c706283cf1916ee7194ff.tar.gz
nova-f6844960dd062154244c706283cf1916ee7194ff.tar.xz
nova-f6844960dd062154244c706283cf1916ee7194ff.zip
added missing instance_get_all_by_vsa
-rw-r--r--nova/db/api.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/db/api.py b/nova/db/api.py
index 9147f136b..fde229099 100644
--- a/nova/db/api.py
+++ b/nova/db/api.py
@@ -522,6 +522,11 @@ def instance_get_all_by_host(context, host):
return IMPL.instance_get_all_by_host(context, host)
+def instance_get_all_by_vsa(context, vsa_id):
+ """Get all instance belonging to a VSA."""
+ return IMPL.instance_get_all_by_vsa(context, vsa_id)
+
+
def instance_get_all_by_reservation(context, reservation_id):
"""Get all instance belonging to a reservation."""
return IMPL.instance_get_all_by_reservation(context, reservation_id)