Sha256: bcc9c412f64453bae9987157841c14534ece476121d1e6ce06af884136ed1f3d
Contents?: true
Size: 1.38 KB
Versions: 13
Compression:
Stored size: 1.38 KB
Contents
require 'fog/core/model' module Fog module Compute class XenServer class Network < Fog::Model # API Reference here: # http://docs.vmd.citrix.com/XenServer/5.6.0/1.0/en_gb/api/?c=network identity :reference attribute :uuid attribute :__vifs, :aliases => :VIFs attribute :tags attribute :mtu, :aliases => :MTU attribute :bridge attribute :description, :aliases => :name_description attribute :name, :aliases => :name_label attribute :other_config attribute :__pifs, :aliases => :PIFs attribute :allowed_operations attribute :current_operations attribute :blobs def refresh data = connection.get_record( reference, 'network' ) merge_attributes( data ) true end # # Return the list of network related PIFs # def pifs p = [] __pifs.each do |pif| p << connection.pifs.get(pif) end p end # # Return the list of network related VIFs # def vifs v = [] __vifs.each do |vif| v << connection.vifs.get(vif) end v end end end end end
Version data entries
13 entries across 13 versions & 7 rubygems