def handle(self, request, data):
        try:
            LOG.info('Releasing Floating IP "%s"' % data['floating_ip_id'])
            api.tenant_floating_ip_release(request, data['floating_ip_id'])
            messages.info(request, 'Successfully released Floating IP: %s' \
                                    % data['floating_ip_id'])
        except novaclient_exceptions.ClientException, e:
            LOG.error("ClientException in ReleaseFloatingIp", exc_info=True)
            messages.error(request, 'Error releasing Floating IP from tenant: \
%s' % e.message)
예제 #2
0
 def action(self, request, obj_id):
     api.tenant_floating_ip_release(request, obj_id)
예제 #3
0
 def action(self, request, obj_id):
     api.tenant_floating_ip_release(request, obj_id)