summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-11-29 16:46:29 +0000
committerGerrit Code Review <review@openstack.org>2012-11-29 16:46:29 +0000
commitf64b3baf041017fa8104f45f28a4a76fe07cb74f (patch)
tree1eb8487f33aaabdda59f86abe175a77292222be0
parentbdca36efe00df2da9441d037cb970ded118b9225 (diff)
parentd368afbc74924bb865c90c984a7c5e978fb9473e (diff)
downloadnova-f64b3baf041017fa8104f45f28a4a76fe07cb74f.tar.gz
nova-f64b3baf041017fa8104f45f28a4a76fe07cb74f.tar.xz
nova-f64b3baf041017fa8104f45f28a4a76fe07cb74f.zip
Merge "added getter methods for quantumv2 api"
-rw-r--r--nova/network/quantumv2/api.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/network/quantumv2/api.py b/nova/network/quantumv2/api.py
index 00186974d..8c802b9fc 100644
--- a/nova/network/quantumv2/api.py
+++ b/nova/network/quantumv2/api.py
@@ -320,10 +320,12 @@ class API(base.Base):
client.update_floatingip(fip['id'], {'floatingip': param})
def get_all(self, context):
- raise NotImplementedError()
+ client = quantumv2.get_client(context)
+ return client.list_networks()
def get(self, context, network_uuid):
- raise NotImplementedError()
+ client = quantumv2.get_client(context)
+ return client.show_network(network_uuid)
def delete(self, context, network_uuid):
raise NotImplementedError()