Class: Y2Network::ConnectionConfig::Lcs

Inherits:
Base
  • Object
show all
Defined in:
src/lib/y2network/connection_config/lcs.rb

Overview

Configuration for lcs connections

Constant Summary

Constants inherited from Base

Base::PROPOSED_PPPOE_MTU

Instance Attribute Summary collapse

Attributes inherited from Base

#bootproto, #description, #ethtool_options, #firewall_zone, #hostname, #id, #interface, #ip, #ip_aliases, #lladdress, #mtu, #name, #startmode

Instance Method Summary collapse

Methods inherited from Base

#all_ips, #find_master, #propose, #propose_startmode, #type, #virtual?

Constructor Details

#initializeLcs

Constructor


53
54
55
56
# File 'src/lib/y2network/connection_config/lcs.rb', line 53

def initialize
  super()
  @timeout = 5
end

Instance Attribute Details

#read_channelString

Most I/O devices on a s390 system are typically driven through the channel I/O mechanism.

The s390-tools provides a set of commands for working with CCW devices and CCW group devices, these commands use a device ID which is the device bus-ID

The device bus-ID is of the format 0.., for example, 0.0.8000.

The LCS devices drivers requires two I/O subchannels for each interface, a read subchannel and a write subchannel and is very similar to the S390 CTC interface.


43
44
45
# File 'src/lib/y2network/connection_config/lcs.rb', line 43

def read_channel
  @read_channel
end

#timeoutInteger

The time the driver wait for a reply issuing a LAN command.


50
51
52
# File 'src/lib/y2network/connection_config/lcs.rb', line 50

def timeout
  @timeout
end

#write_channelString


45
46
47
# File 'src/lib/y2network/connection_config/lcs.rb', line 45

def write_channel
  @write_channel
end

Instance Method Details

#==(other) ⇒ Object


58
59
60
61
62
63
64
# File 'src/lib/y2network/connection_config/lcs.rb', line 58

def ==(other)
  return false unless super

  [:read_channel, :write_channel, :protocol, :timeout].all? do |method|
    public_send(method) == other.public_send(method)
  end
end

#device_idString?

Returns the complete device id which contains the read ad write channels joined by ':'


70
71
72
73
74
# File 'src/lib/y2network/connection_config/lcs.rb', line 70

def device_id
  return if read_channel.to_s.empty?

  [read_channel, write_channel].join(":")
end