Class: Construqt::Flavour::IpsecDelegate
- Inherits:
-
Object
- Object
- Construqt::Flavour::IpsecDelegate
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
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
#_ident ⇒ Object
355
356
357
|
# File 'lib/construqt/flavour/delegates.rb', line 355
def _ident
"Ipsec_#{cfg.left.interface.name}_#{cfg.right.interface.name}"
end
|
#cfg ⇒ Object
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
|
#host ⇒ Object
319
320
321
|
# File 'lib/construqt/flavour/delegates.rb', line 319
def host
self.delegate.host
end
|
#interface ⇒ Object
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
|
#my ⇒ Object
323
324
325
|
# File 'lib/construqt/flavour/delegates.rb', line 323
def my
self.delegate.my
end
|
#other ⇒ Object
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
|
#remote ⇒ Object
327
328
329
|
# File 'lib/construqt/flavour/delegates.rb', line 327
def remote
self.delegate.remote
end
|