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

Constructor Details

#initialize(ipsec) ⇒ IpsecDelegate

Returns a new instance of IpsecDelegate.



315
316
317
# File 'lib/construqt/flavour/delegates.rb', line 315

def initialize(ipsec)
  self.delegate = ipsec
end

Instance Method Details

#_identObject



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

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

#cfgObject



343
344
345
# File 'lib/construqt/flavour/delegates.rb', line 343

def cfg
  self.delegate.cfg
end

#cfg=(a) ⇒ Object



339
340
341
# File 'lib/construqt/flavour/delegates.rb', line 339

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

#hostObject



319
320
321
# File 'lib/construqt/flavour/delegates.rb', line 319

def host
  self.delegate.host
end

#interfaceObject



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

def interface
  self.delegate.interface
end

#interface=(a) ⇒ Object



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

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

#myObject



323
324
325
# File 'lib/construqt/flavour/delegates.rb', line 323

def my
  self.delegate.my
end

#otherObject



335
336
337
# File 'lib/construqt/flavour/delegates.rb', line 335

def other
  self.delegate.other
end

#other=(a) ⇒ Object



331
332
333
# File 'lib/construqt/flavour/delegates.rb', line 331

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

#remoteObject



327
328
329
# File 'lib/construqt/flavour/delegates.rb', line 327

def remote
  self.delegate.remote
end