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, #firewalls, #host, #ident, #ipsec, #mtu, #name, #priority, #simple_name, #tags, #tags=, #template, #vrrp, #vrrp=

Constructor Details

#initialize(vlan) ⇒ VlanDelegate

Returns a new instance of VlanDelegate.



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

def initialize(vlan)
  self.delegate = vlan
end

Instance Method Details

#_identObject



281
282
283
# File 'lib/construqt/flavour/delegates.rb', line 281

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

#interfacesObject



273
274
275
# File 'lib/construqt/flavour/delegates.rb', line 273

def interfaces
  self.delegate.interfaces
end

#vlan_idObject



277
278
279
# File 'lib/construqt/flavour/delegates.rb', line 277

def vlan_id
  self.delegate.vlan_id
end