Class: Y2Network::Wicked::TypeDetector
- Inherits:
-
TypeDetector
- Object
- TypeDetector
- Y2Network::Wicked::TypeDetector
- Defined in:
- src/lib/y2network/wicked/type_detector.rb
Overview
Detects type of given interface. New implementation of what was in
Class Method Summary collapse
-
.type_by_config(iface) ⇒ Object
Checks wheter iface type can be recognized by interface configuration.
Methods inherited from TypeDetector
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 |