Class: Construqt::Flavour::VlanDelegate

Inherits:
Object
  • Object
show all
Includes:
Delegate
Defined in:
lib/construqt/flavour/delegates.rb

Instance Method Summary collapse

Methods included from Delegate

#address, #build_config, #cable, #cable=, #clazz, #default_name, #delegate, #delegate=, #description, #host, #ident, #name, #priority, #simple_name, #tags, #tags=, #template, #vrrp, #vrrp=

Constructor Details

#initialize(vlan) ⇒ VlanDelegate

Returns a new instance of VlanDelegate.



256
257
258
# File 'lib/construqt/flavour/delegates.rb', line 256

def initialize(vlan)
  self.delegate = vlan
end

Instance Method Details

#_identObject



268
269
270
# File 'lib/construqt/flavour/delegates.rb', line 268

def _ident
  "Vlan_#{self.host.name}_#{self.name}"
end

#interfacesObject



260
261
262
# File 'lib/construqt/flavour/delegates.rb', line 260

def interfaces
  self.delegate.interfaces
end

#vlan_idObject



264
265
266
# File 'lib/construqt/flavour/delegates.rb', line 264

def vlan_id
  self.delegate.vlan_id
end