Update Neutron client
Change-Id: I0fc20a86a5abbaf8a5bbc26a4689edc442ee9def
This commit is contained in:
parent
1df6547155
commit
ac81035e50
|
@ -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