Class: Construqt::Flavour::InterfaceDelegate

Inherits:
Object
  • Object
show all
Includes:
Delegate
Defined in:
lib/construqt/flavour/delegates.rb

Instance Method Summary collapse

Methods included from Delegate

#build_config, #default_name, #delegate, #delegate=, #description, #firewalls, #ident, #ipsec, #mtu, #simple_name, #tags, #tags=, #vrrp, #vrrp=

Constructor Details

#initialize(interface) ⇒ InterfaceDelegate

Returns a new instance of InterfaceDelegate.



295
296
297
# File 'lib/construqt/flavour/delegates.rb', line 295

def initialize(interface)
  self.delegate = interface
end

Instance Method Details

#_identObject



303
304
305
306
# File 'lib/construqt/flavour/delegates.rb', line 303

def _ident
  self.clazz.ident
  #        "#{self.delegate.clazz.name}_#{self.name}"
end

#addressObject



312
313
314
# File 'lib/construqt/flavour/delegates.rb', line 312

def address
  self.delegate.address
end

#cableObject



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

def cable
  self.delegate.cable
end

#cable=(a) ⇒ Object



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

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

#clazzObject



299
300
301
# File 'lib/construqt/flavour/delegates.rb', line 299

def clazz
  self.delegate.clazz
end

#hostObject



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

def host
  self.delegate.host
end

#interfacesObject



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

def interfaces
  self.delegate.interfaces
end

#nameObject



308
309
310
# File 'lib/construqt/flavour/delegates.rb', line 308

def name
  self.delegate.name
end

#networkObject



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

def network
  self.delegate.network
end

#priorityObject



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

def priority
  self.delegate.priority
end

#templateObject



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

def template
  self.delegate.template
end