Class: Y2Network::TypeDetector

Inherits:
Object
  • Object
show all
Extended by:
Yast::Logger
Defined in:
src/lib/y2network/type_detector.rb

Overview

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

See Also:

  • Yast::NetworkInterfaces.GetType

Class Method Summary collapse

Class Method Details

.type_of(iface) ⇒ Y2Network::InterfaceType?

Finds type of given interface


33
34
35
# File 'src/lib/y2network/type_detector.rb', line 33

def type_of(iface)
  type_by_sys(iface) || type_by_config(iface) || nil
end