Class: Fog::Rackspace::Networking::VirtualInterfaces

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/rackspace/models/networking/virtual_interfaces.rb

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Fog::Rackspace::Networking::Servers

Note:

Fog’s current implementation only returns 1000 servers

Note:

The filter parameter on the method is just to maintain compatability with other providers that support filtering.

Returns list of virtual interfaces for a server

Returns:

  • (Fog::Rackspace::Networking::Servers)

    Retrieves a list virtual interfaces for server.

Raises:

See Also:



21
22
23
24
25
26
27
# File 'lib/fog/rackspace/models/networking/virtual_interfaces.rb', line 21

def all(options={})
  server  = server(options[:server])
  data    = service.list_virtual_interfaces(server.id).body['virtual_interfaces']
  objects = load(data)
  objects.each{ |obj| obj.attributes[:server] = server }
  objects
end