1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/libvirt/models/compute/interfaces.rb

25 lines
410 B
Ruby
Raw Normal View History

require 'fog/core/collection'
require 'fog/libvirt/models/compute/interface'
module Fog
module Compute
class Libvirt
class Interfaces < Fog::Collection
model Fog::Compute::Libvirt::Interface
def all(filter={})
load(connection.list_interfaces(filter))
end
2011-08-08 17:22:55 -04:00
2012-04-04 11:32:09 -04:00
def get(name)
self.all(:name => name).first
2011-08-08 17:22:55 -04:00
end
end
end
end
end