Class: Construqt::Flavour::VrrpDelegate

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(vrrp) ⇒ VrrpDelegate

Returns a new instance of VrrpDelegate.



227
228
229
230
# File 'lib/construqt/flavour/delegates.rb', line 227

def initialize(vrrp)
  #binding.pry
  self.delegate = vrrp
end

Instance Method Details

#_identObject



232
233
234
# File 'lib/construqt/flavour/delegates.rb', line 232

def _ident
  "Vrrp_#{self.name}_#{self.delegate.interfaces.map{|i| "#{i.host.name}_#{i.name}"}.join("_")}"
end