module Construqt::Flavour::Ubuntu
Public Class Methods
bgp()
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu.rb, line 355 def self.bgp Bgp end
clazz(name)
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu.rb, line 376 def self.clazz(name) ret = self.clazzes[name] throw "class not found #{name}" unless ret ret end
clazzes()
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu.rb, line 359 def self.clazzes { "opvn" => Opvn, "gre" => Gre, "host" => Host, "device"=> Device, "vrrp" => Vrrp, "bridge" => Bridge, "bond" => Bond, "vlan" => Vlan, #"result" => Result, #"ipsec" => Ipsec, #"bgp" => Bgp, "template" => Template } end
create_bgp(cfg)
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu.rb, line 395 def self.create_bgp(cfg) Bgp.new(cfg) end
create_host(name, cfg)
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu.rb, line 382 def self.create_host(name, cfg) cfg['name'] = name cfg['result'] = nil host = Host.new(cfg) host.result = Result.new(host) host end
create_interface(name, cfg)
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu.rb, line 390 def self.create_interface(name, cfg) cfg['name'] = name clazz(cfg['clazz']).new(cfg) end
create_ipsec(cfg)
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu.rb, line 399 def self.create_ipsec(cfg) Ipsec.new(cfg) end
ipsec()
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu.rb, line 352 def self.ipsec Ipsec end
name()
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu.rb, line 14 def self.name 'ubuntu' end