def list_public_ips(kwargs=None, call=None):
 if (kwargs is None):
  kwargs = {}
 args = {}
 if ('state' in kwargs):
  if (kwargs['state'] == 'assigned'):
   args['ip.state'] = 'Assigned'
  else:
   args['ip.state'] = 'Unassigned'
 else:
  args['ip.state'] = 'Unassigned'
 args['ip.type'] = 'Public'
 response = _query('grid', 'ip/list', args=args)
 ret = {}
 for item in response['list']:
  name = item['ip']
  ret[name] = item
 return ret

def list_public_ips ( kwargs = None , call = None ) : if ( kwargs is None ) : kwargs = { } args = { } if ( 'state' in kwargs ) : if ( kwargs [ 'state' ] == 'assigned' ) : args [ 'ip.state' ] = 'Assigned' else : args [ 'ip.state' ] = 'Unassigned' else : args [ 'ip.state' ] = 'Unassigned' args [ 'ip.type' ] = 'Public' response = _query ( 'grid' , 'ip/list' , args = args ) ret = { } for item in response [ 'list' ] : name = item [ 'ip' ] ret [ name ] = item return ret
list all available public ips .