Module: OsCtld::NetInterface

Defined in:
lib/osctld/net_interface.rb

Defined Under Namespace

Classes: Base, Bridge, Manager, Routed, Veth

Class Method Summary collapse

Class Method Details

.for(type) ⇒ Object



8
9
10
# File 'lib/osctld/net_interface.rb', line 8

def self.for(type)
  @types[type]
end

.register(type, klass) ⇒ Object



3
4
5
6
# File 'lib/osctld/net_interface.rb', line 3

def self.register(type, klass)
  @types ||= {}
  @types[type] = klass
end

.setupObject



12
13
14
# File 'lib/osctld/net_interface.rb', line 12

def self.setup
  @types.each_value(&:setup)
end