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, #vrrp, #vrrp=
Constructor Details
Returns a new instance of IpsecDelegate.
334
335
336
|
# File 'lib/construqt/flavour/delegates.rb', line 334
def initialize(ipsec)
self.delegate = ipsec
end
|
Instance Method Details
#_ident ⇒ Object
374
375
376
|
# File 'lib/construqt/flavour/delegates.rb', line 374
def _ident
"Ipsec_#{cfg.left.interface.name}_#{cfg.right.interface.name}"
end
|
#cfg ⇒ Object
362
363
364
|
# File 'lib/construqt/flavour/delegates.rb', line 362
def cfg
self.delegate.cfg
end
|
#cfg=(a) ⇒ Object
358
359
360
|
# File 'lib/construqt/flavour/delegates.rb', line 358
def cfg=(a)
self.delegate.cfg = a
end
|
#host ⇒ Object
338
339
340
|
# File 'lib/construqt/flavour/delegates.rb', line 338
def host
self.delegate.host
end
|
#interface ⇒ Object
370
371
372
|
# File 'lib/construqt/flavour/delegates.rb', line 370
def interface
self.delegate.interface
end
|
#interface=(a) ⇒ Object
366
367
368
|
# File 'lib/construqt/flavour/delegates.rb', line 366
def interface=(a)
self.delegate.interface = a
end
|
#my ⇒ Object
342
343
344
|
# File 'lib/construqt/flavour/delegates.rb', line 342
def my
self.delegate.my
end
|
#other ⇒ Object
354
355
356
|
# File 'lib/construqt/flavour/delegates.rb', line 354
def other
self.delegate.other
end
|
#other=(a) ⇒ Object
350
351
352
|
# File 'lib/construqt/flavour/delegates.rb', line 350
def other=(a)
self.delegate.other = a
end
|
#remote ⇒ Object
346
347
348
|
# File 'lib/construqt/flavour/delegates.rb', line 346
def remote
self.delegate.remote
end
|