Class: Xen::Bridge

Inherits:
Object
  • Object
show all
Defined in:
lib/xen/host.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Bridge

Returns a new instance of Bridge.



55
56
57
58
59
60
61
# File 'lib/xen/host.rb', line 55

def initialize(*args)
  options = args.extract_options!
  @netdev = options[:netdev]
  @bridge = options[:bridge]
  @vifnum = options[:vifnum]
  @antispoof = options[:antispoof]
end

Instance Attribute Details

#antispoofObject

Returns the value of attribute antispoof.



53
54
55
# File 'lib/xen/host.rb', line 53

def antispoof
  @antispoof
end

#bridgeObject

Returns the value of attribute bridge.



53
54
55
# File 'lib/xen/host.rb', line 53

def bridge
  @bridge
end

#netdevObject

Returns the value of attribute netdev.



53
54
55
# File 'lib/xen/host.rb', line 53

def netdev
  @netdev
end

#vifnumObject

Returns the value of attribute vifnum.



53
54
55
# File 'lib/xen/host.rb', line 53

def vifnum
  @vifnum
end