Class: Y2Network::Wicked::TypeDetector

Inherits:
TypeDetector show all
Defined in:
src/lib/y2network/wicked/type_detector.rb

Overview

Detects type of given interface. New implementation of what was in

See Also:

  • Yast::NetworkInterfaces.GetType

Class Method Summary collapse

Methods inherited from TypeDetector

type_of

Class Method Details

.type_by_config(iface) ⇒ Object

Checks wheter iface type can be recognized by interface configuration



32
33
34
35
36
37
38
# File 'src/lib/y2network/wicked/type_detector.rb', line 32

def type_by_config(iface)
  iface_file = CFA::InterfaceFile.find(iface)
  return unless iface_file

  iface_file.load
  iface_file.type
end