module Construqt::Flavour::Unknown

Public Class Methods

bgp() click to toggle source
# File lib/construqt/flavour/unknown/unknown.rb, line 118
def self.bgp
  Bgp
end
clazz(name) click to toggle source
# File lib/construqt/flavour/unknown/unknown.rb, line 135
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/unknown/unknown.rb, line 121
def self.clazzes
  {
    "opvn" => Opvn,
    "gre" => Gre,
    "host" => Host,
    "device"=> Device,
    "vrrp" => Vrrp,
    "bridge" => Bridge,
    "template" => Template,
    "bond" => Bond,
    "vlan" => Vlan,
  }
end
create_bgp(cfg) click to toggle source
# File lib/construqt/flavour/unknown/unknown.rb, line 163
def self.create_bgp(cfg)
  Bgp.new(cfg)
end
create_host(name, cfg) click to toggle source
# File lib/construqt/flavour/unknown/unknown.rb, line 141
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/unknown/unknown.rb, line 149
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/unknown/unknown.rb, line 176
def self.create_ipsec(cfg)
  Ipsec.new(cfg)
end
ipsec() click to toggle source

end

# File lib/construqt/flavour/unknown/unknown.rb, line 115
def self.ipsec
  Ipsec
end
name() click to toggle source
# File lib/construqt/flavour/unknown/unknown.rb, line 5
def self.name
  'unknown'
end