From d368afbc74924bb865c90c984a7c5e978fb9473e Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 13 Nov 2012 09:51:10 +0100 Subject: added getter methods for quantumv2 api Change-Id: Ie2b7ba698c232f55e112b978d7a548b48462fca3 --- nova/network/quantumv2/api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nova') diff --git a/nova/network/quantumv2/api.py b/nova/network/quantumv2/api.py index 8c2438669..a0b323a8a 100644 --- a/nova/network/quantumv2/api.py +++ b/nova/network/quantumv2/api.py @@ -321,10 +321,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() -- cgit