diff options
| author | Trey Morris <trey.morris@rackspace.com> | 2011-02-10 14:18:16 -0600 |
|---|---|---|
| committer | Trey Morris <trey.morris@rackspace.com> | 2011-02-10 14:18:16 -0600 |
| commit | b0c6190e0b098af4d808d993c6dcd0796cc80e83 (patch) | |
| tree | 2a029f49da31584242dda3e20e6f7085a0cea6b6 /nova | |
| parent | b6022c1f7d7dc9294f6b1b613c7e99bd9437a72e (diff) | |
| download | nova-b0c6190e0b098af4d808d993c6dcd0796cc80e83.tar.gz nova-b0c6190e0b098af4d808d993c6dcd0796cc80e83.tar.xz nova-b0c6190e0b098af4d808d993c6dcd0796cc80e83.zip | |
forgot to add network_get_all_by_instance to db.api
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/db/api.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/db/api.py b/nova/db/api.py index f22cd5615..a38f187a8 100644 --- a/nova/db/api.py +++ b/nova/db/api.py @@ -522,6 +522,11 @@ def network_get_by_instance(context, instance_id): return IMPL.network_get_by_instance(context, instance_id) +def network_get_all_by_instance(context, instance_id): + """Get all networks by instance id or raise if it does not exist.""" + return IMPL.network_get_all_by_instance(context, instance_id) + + def network_get_index(context, network_id): """Get non-conflicting index for network.""" return IMPL.network_get_index(context, network_id) |
