Sha256: f3bc2219f9c2b2c275857bbdee048a9e49bfa98cc51abae6de7863e38d706bce
Contents?: true
Size: 941 Bytes
Versions: 29
Compression:
Stored size: 941 Bytes
Contents
require 'fog/core/model' module Fog module Compute class OpenNebula class Network < Fog::Model identity :id attribute :name attribute :uname attribute :uid attribute :gid attribute :description attribute :vlan def description attributes[:description] || "" end def vlan attributes[:vlan] || "" end def save raise Fog::Errors::Error.new('Creating a new network is not yet implemented. Contributions welcome!') end def shutdown raise Fog::Errors::Error.new('Shutting down a new network is not yet implemented. Contributions welcome!') end def to_label ret = "" ret += "#{description} - " unless description.empty? ret += "VLAN #{vlan} - " unless vlan.empty? ret += "#{name}" end end end end end
Version data entries
29 entries across 27 versions & 4 rubygems