Class: Fog::Rackspace::Networking::VirtualInterfaces
- Inherits:
-
Collection
- Object
- Collection
- Fog::Rackspace::Networking::VirtualInterfaces
- Defined in:
- lib/fog/rackspace/models/networking/virtual_interfaces.rb
Instance Method Summary collapse
-
#all(options = {}) ⇒ Fog::Rackspace::Networking::Servers
Returns list of virtual interfaces for a server.
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
21 22 23 24 25 26 27 |
# File 'lib/fog/rackspace/models/networking/virtual_interfaces.rb', line 21 def all(={}) server = server([:server]) data = service.list_virtual_interfaces(server.id).body['virtual_interfaces'] objects = load(data) objects.each{ |obj| obj.attributes[:server] = server } objects end |