Class: Y2Network::Sysconfig::ConnectionConfigReaders::Ctc

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

Overview

This class is able to build a ConnectionConfig::Ctc 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
# File 'src/lib/y2network/sysconfig/connection_config_readers/ctc.rb', line 30

def update_connection_config(conn)
  update_protocol(conn) if update_device_id(conn)
end