Skip to content

Commit

Permalink
added getter methods for quantumv2 api
Browse files Browse the repository at this point in the history
Change-Id: Ie2b7ba698c232f55e112b978d7a548b48462fca3
  • Loading branch information
berendt committed Nov 13, 2012
1 parent 4c7bef9 commit d368afb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nova/network/quantumv2/api.py
Expand Up @@ -321,10 +321,12 @@ def associate_floating_ip(self, context, instance,
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()
Expand Down

0 comments on commit d368afb

Please sign in to comment.