Class: Construqt::Flavour::IpsecDelegate

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

Constructor Details

#initialize(ipsec) ⇒ IpsecDelegate

Returns a new instance of IpsecDelegate.



347
348
349
# File 'lib/construqt/flavour/delegates.rb', line 347

def initialize(ipsec)
  self.delegate = ipsec
end

Instance Method Details

#_identObject



387
388
389
# File 'lib/construqt/flavour/delegates.rb', line 387

def _ident
  "Ipsec_#{cfg.left.interface.name}_#{cfg.right.interface.name}"
end

#cfgObject



375
376
377
# File 'lib/construqt/flavour/delegates.rb', line 375

def cfg
  self.delegate.cfg
end

#cfg=(a) ⇒ Object



371
372
373
# File 'lib/construqt/flavour/delegates.rb', line 371

def cfg=(a)
  self.delegate.cfg = a
end

#hostObject



351
352
353
# File 'lib/construqt/flavour/delegates.rb', line 351

def host
  self.delegate.host
end

#interfaceObject



383
384
385
# File 'lib/construqt/flavour/delegates.rb', line 383

def interface
  self.delegate.interface
end

#interface=(a) ⇒ Object



379
380
381
# File 'lib/construqt/flavour/delegates.rb', line 379

def interface=(a)
  self.delegate.interface = a
end

#myObject



355
356
357
# File 'lib/construqt/flavour/delegates.rb', line 355

def my
  self.delegate.my
end

#otherObject



367
368
369
# File 'lib/construqt/flavour/delegates.rb', line 367

def other
  self.delegate.other
end

#other=(a) ⇒ Object



363
364
365
# File 'lib/construqt/flavour/delegates.rb', line 363

def other=(a)
  self.delegate.other = a
end

#remoteObject



359
360
361
# File 'lib/construqt/flavour/delegates.rb', line 359

def remote
  self.delegate.remote
end