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)
Exemple #2
0
 def action(self, request, obj_id):
     api.tenant_floating_ip_release(request, obj_id)
Exemple #3
0
 def action(self, request, obj_id):
     api.tenant_floating_ip_release(request, obj_id)