mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
401 B
Ruby
21 lines
401 B
Ruby
require 'fog/core/collection'
|
|
require 'fog/opennebula/models/compute/network'
|
|
|
|
module Fog
|
|
module Compute
|
|
class OpenNebula
|
|
class Networks < Fog::Collection
|
|
model Fog::Compute::OpenNebula::Network
|
|
|
|
def all(filter={})
|
|
load(service.list_networks(filter))
|
|
end
|
|
|
|
def get(id)
|
|
self.all({:id => id}).first
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|