Sha256: 63625648c448bb2fd7d48aa3453b09a556225b99427066d0b993516b1ec6c97a
Contents?: true
Size: 703 Bytes
Versions: 11
Compression:
Stored size: 703 Bytes
Contents
require 'fog/core/model' require 'fog/libvirt/models/compute/util/util' module Fog module Libvirt class Compute class Network < Fog::Model include Fog::Libvirt::Util identity :uuid attribute :name attribute :bridge_name attribute :xml def initialize(attributes = {}) super end def dhcp_leases(mac, flags = 0) service.dhcp_leases(uuid, mac, flags) end def save raise Fog::Errors::Error.new('Creating a new network is not yet implemented. Contributions welcome!') end def shutdown service.destroy_network(uuid) end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems