Class: Construqt::Flavour::VlanDelegate
- Inherits:
-
Object
- Object
- Construqt::Flavour::VlanDelegate
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
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
#_ident ⇒ Object
268
269
270
|
# File 'lib/construqt/flavour/delegates.rb', line 268
def _ident
"Vlan_#{self.host.name}_#{self.name}"
end
|
#interfaces ⇒ Object
260
261
262
|
# File 'lib/construqt/flavour/delegates.rb', line 260
def interfaces
self.delegate.interfaces
end
|
#vlan_id ⇒ Object
264
265
266
|
# File 'lib/construqt/flavour/delegates.rb', line 264
def vlan_id
self.delegate.vlan_id
end
|