Class: Y2Network::NetworkManager::ConnectionConfigWriters::Qeth

Inherits:
Ethernet
  • Object
show all
Defined in:
src/lib/y2network/network_manager/connection_config_writers/qeth.rb

Overview

This class is responsible for writing the information from a ConnectionConfig::Qeth object to the underlying system.

Direct Known Subclasses

Hsi

Instance Attribute Summary

Attributes inherited from Base

#file

Instance Method Summary collapse

Methods inherited from Base

#initialize, #write

Constructor Details

This class inherits a constructor from Y2Network::NetworkManager::ConnectionConfigWriters::Base

Instance Method Details

#update_file(conn) ⇒ Object

Parameters:

See Also:

  • ConnectionConfigWriters::Ethernet#update_file


30
31
32
33
34
35
36
# File 'src/lib/y2network/network_manager/connection_config_writers/qeth.rb', line 30

def update_file(conn)
  super
  file.ethernet["s390-nettype"] = "qeth"
  file.ethernet["s390-subchannels"] = conn.device_id.gsub(":", ";") if conn.device_id
  file.ethernet_s390_options["layer2"] = conn.layer2 ? "1" : "0"
  file.ethernet_s390_options["portno"] = conn.port_number.to_i.to_s
end