fixing the allocate floating ip method
This commit is contained in:
parent
5915d2b35c
commit
a5ecd8bbc7
|
@ -388,7 +388,7 @@ def tenant_floating_ip_get(request, floating_ip_id):
|
|||
return novaclient(request).floating_ips.get(floating_ip_id)
|
||||
|
||||
|
||||
def tenant_floating_ip_associate(request, floating_ip_id, instance_id):
|
||||
def tenant_floating_ip_allocate(request):
|
||||
"""
|
||||
Allocates a floating ip to tenant.
|
||||
"""
|
||||
|
|
|
@ -113,7 +113,7 @@ class FloatingIpAllocate(forms.SelfHandlingForm):
|
|||
|
||||
def handle(self, request, data):
|
||||
try:
|
||||
ip = api.tenant_floating_ip_attach(request, data['tenant_id'])
|
||||
ip = api.tenant_floating_ip_allocate(request)
|
||||
LOG.info('Allocating Floating IP "%s" to tenant "%s"'
|
||||
% (ip.floating_ip, data['tenant_id']))
|
||||
|
||||
|
|
Loading…
Reference in New Issue