Class: Y2Network::Sysconfig::ConnectionConfigReaders::Qeth

Inherits:
Base
  • Object
show all
Defined in:
src/lib/y2network/sysconfig/connection_config_readers/qeth.rb

Overview

This class is able to build a ConnectionConfig::Qeth object given a Sysconfig::InterfaceFile object.

Constant Summary collapse

LIST_CMD =
"/sbin/lszdev".freeze

Instance Attribute Summary

Attributes inherited from Base

#file

Instance Method Summary collapse

Methods inherited from Base

#connection_config, #initialize

Constructor Details

This class inherits a constructor from Y2Network::Sysconfig::ConnectionConfigReaders::Base

Instance Method Details

#update_connection_config(conn) ⇒ Object


30
31
32
33
34
35
# File 'src/lib/y2network/sysconfig/connection_config_readers/qeth.rb', line 30

def update_connection_config(conn)
  return unless update_device_id(conn)
  update_layer2(conn)
  update_portno(conn)
  update_ipa_takeover(conn)
end