Merge "Update Neutron client"

This commit is contained in:
Zuul 2019-11-12 21:38:19 +00:00 committed by Gerrit Code Review
commit 90cbc8a162
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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']