Class: Construqt::Flavour::VrrpDelegate
- Inherits:
-
Object
- Object
- Construqt::Flavour::VrrpDelegate
- Includes:
- Delegate
- Defined in:
- lib/construqt/flavour/delegates.rb
Instance Method Summary collapse
- #_ident ⇒ Object
-
#initialize(vrrp) ⇒ VrrpDelegate
constructor
A new instance of VrrpDelegate.
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(vrrp) ⇒ VrrpDelegate
Returns a new instance of VrrpDelegate.
214 215 216 217 |
# File 'lib/construqt/flavour/delegates.rb', line 214 def initialize(vrrp) #binding.pry self.delegate = vrrp end |
Instance Method Details
#_ident ⇒ Object
219 220 221 |
# File 'lib/construqt/flavour/delegates.rb', line 219 def _ident "Vrrp_#{self.name}_#{self.delegate.interfaces.map{|i| "#{i.host.name}_#{i.name}"}.join("_")}" end |