Пример #1
0
 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.exception("ClientException in ReleaseFloatingIp")
         messages.error(request, _('Error releasing Floating IP '
                                   'from tenant: %s') % e.message)
Пример #2
0
 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.exception("ClientException in ReleaseFloatingIp")
         messages.error(
             request,
             _('Error releasing Floating IP '
               'from tenant: %s') % e.message)
Пример #3
0
 def action(self, request, obj_id):
     api.tenant_floating_ip_release(request, obj_id)
Пример #4
0
 def action(self, request, obj_id):
     api.tenant_floating_ip_release(request, obj_id)