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, #firewalls, #ident, #ipsec, #mtu, #name, #priority, #simple_name, #tags, #tags=, #template, #vrrp, #vrrp=
Constructor Details
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
#_ident ⇒ Object
387
388
389
|
# File 'lib/construqt/flavour/delegates.rb', line 387
def _ident
"Ipsec_#{cfg.left.interface.name}_#{cfg.right.interface.name}"
end
|
#cfg ⇒ Object
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
|
#host ⇒ Object
351
352
353
|
# File 'lib/construqt/flavour/delegates.rb', line 351
def host
self.delegate.host
end
|
#interface ⇒ Object
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
|
#my ⇒ Object
355
356
357
|
# File 'lib/construqt/flavour/delegates.rb', line 355
def my
self.delegate.my
end
|
#other ⇒ Object
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
|
#remote ⇒ Object
359
360
361
|
# File 'lib/construqt/flavour/delegates.rb', line 359
def remote
self.delegate.remote
end
|