Class: Y2Network::ConnectionConfig::Ctc
- Defined in:
- src/lib/y2network/connection_config/ctc.rb
Overview
The use of this connection is deprecated or not recommended as it will not be officially supported in future SLE versions.
Configuration for ctc connections.
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#protocol ⇒ Integer
Connection protocol (0, 1, 3, or 4) 0 Compatibility with peers other than OS/390®.
-
#read_channel ⇒ String
Most I/O devices on a s390 system are typically driven through the channel I/O mechanism.
-
#write_channel ⇒ String
Write device bus id.
Attributes inherited from Base
#bootproto, #description, #ethtool_options, #firewall_zone, #hostname, #id, #interface, #ip, #ip_aliases, #lladdress, #mtu, #name, #startmode
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#device_id ⇒ String?
Returns the complete device id which contains the read ad write channels joined by ':'.
-
#initialize ⇒ Ctc
constructor
A new instance of Ctc.
Methods inherited from Base
#all_ips, #find_master, #propose, #propose_startmode, #type, #virtual?
Constructor Details
#initialize ⇒ Ctc
57 58 59 60 |
# File 'src/lib/y2network/connection_config/ctc.rb', line 57 def initialize super() @protocol = 0 end |
Instance Attribute Details
#protocol ⇒ Integer
Returns connection protocol (0, 1, 3, or 4) 0 Compatibility with peers other than OS/390®. (default) 1 Enhanced package checking for Linux peers. 3 For compatibility with OS/390 or z/OS peers. 4 For MPC connections to VTAM on traditional mainframe operating systems.
55 56 57 |
# File 'src/lib/y2network/connection_config/ctc.rb', line 55 def protocol @protocol end |
#read_channel ⇒ String
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.
The CTCM device driver requires two I/O subchannels for each interface, a read subchannel and a write subchannel
45 46 47 |
# File 'src/lib/y2network/connection_config/ctc.rb', line 45 def read_channel @read_channel end |
#write_channel ⇒ String
47 48 49 |
# File 'src/lib/y2network/connection_config/ctc.rb', line 47 def write_channel @write_channel end |
Instance Method Details
#==(other) ⇒ Object
62 63 64 65 66 67 68 |
# File 'src/lib/y2network/connection_config/ctc.rb', line 62 def ==(other) return false unless super [:read_channel, :write_channel, :protocol].all? do |method| public_send(method) == other.public_send(method) end end |
#device_id ⇒ String?
Returns the complete device id which contains the read ad write channels joined by ':'
74 75 76 77 78 |
# File 'src/lib/y2network/connection_config/ctc.rb', line 74 def device_id return if read_channel.to_s.empty? [read_channel, write_channel].join(":") end |