Merge "Update Neutron client"
This commit is contained in:
commit
90cbc8a162
@ -31,6 +31,7 @@ list_ports = _client.list_ports
|
||||
list_subnets = _client.list_subnets
|
||||
list_subnet_cidrs = _client.list_subnet_cidrs
|
||||
list_agents = _client.list_agents
|
||||
get_floating_ip = _client.get_floating_ip
|
||||
get_network = _client.get_network
|
||||
get_router = _client.get_router
|
||||
get_port = _client.get_port
|
||||
|
@ -130,6 +130,11 @@ def list_subnet_cidrs(client=None, **params):
|
||||
for subnet in list_subnets(client=client, **params))
|
||||
|
||||
|
||||
def get_floating_ip(floating_ip, client=None, **params):
|
||||
floating_ip = neutron_client(client).show_floatingip(floating_ip, **params)
|
||||
return floating_ip['floatingip']
|
||||
|
||||
|
||||
def get_network(network, client=None, **params):
|
||||
return neutron_client(client).show_network(network, **params)['network']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user