def list_floating_ips(call=None):
 if (call == 'action'):
  raise SaltCloudSystemExit('The list_floating_ips function must be called with -f or --function, or with the --list-floating-ips option')
 fetch = True
 page = 1
 ret = {}
 while fetch:
  items = query(method='floating_ips', command=(('?page=' + str(page)) + '&per_page=200'))
  for floating_ip in items['floating_ips']:
   ret[floating_ip['ip']] = {}
   for item in six.iterkeys(floating_ip):
    ret[floating_ip['ip']][item] = floating_ip[item]
  page += 1
  try:
   fetch = ('next' in items['links']['pages'])
  except KeyError:
   fetch = False
 return ret

def list_floating_ips ( call = None ) : if ( call == 'action' ) : raise SaltCloudSystemExit ( 'The list_floating_ips function must be called with -f or --function, or with the --list-floating-ips option' ) fetch = True page = 1 ret = { } while fetch : items = query ( method = 'floating_ips' , command = ( ( '?page=' + str ( page ) ) + '&per_page=200' ) ) for floating_ip in items [ 'floating_ips' ] : ret [ floating_ip [ 'ip' ] ] = { } for item in six . iterkeys ( floating_ip ) : ret [ floating_ip [ 'ip' ] ] [ item ] = floating_ip [ item ] page += 1 try : fetch = ( 'next' in items [ 'links' ] [ 'pages' ] ) except KeyError : fetch = False return ret
return a list of the floating ips that are on the provider .