Class: Y2Network::S390DeviceActivators::Ctc
- Inherits:
-
Y2Network::S390DeviceActivator
- Object
- Y2Network::S390DeviceActivator
- Y2Network::S390DeviceActivators::Ctc
- Defined in:
- src/lib/y2network/s390_device_activators/ctc.rb
Overview
This class is responsible of activating CTC group devices.
Direct Known Subclasses
Constant Summary
Constants inherited from Y2Network::S390DeviceActivator
Y2Network::S390DeviceActivator::CONFIGURE_CMD, Y2Network::S390DeviceActivator::LIST_CMD
Instance Attribute Summary
Attributes inherited from Y2Network::S390DeviceActivator
Instance Method Summary collapse
- #configure_attributes ⇒ Object
- #device_id ⇒ Object
- #propose! ⇒ Object
-
#propose_channels ⇒ Object
Modifies the read and write channel from the the device id.
Methods inherited from Y2Network::S390DeviceActivator
#configure, #configured_interface, #device_id_from, for, #initialize
Constructor Details
This class inherits a constructor from Y2Network::S390DeviceActivator
Instance Method Details
#configure_attributes ⇒ Object
37 38 39 40 41 |
# File 'src/lib/y2network/s390_device_activators/ctc.rb', line 37 def configure_attributes return [] unless builder.protocol ["protocol=#{builder.protocol}"] end |
#device_id ⇒ Object
31 32 33 34 35 |
# File 'src/lib/y2network/s390_device_activators/ctc.rb', line 31 def device_id return if read_channel.to_s.empty? [read_channel, write_channel].join(":") end |
#propose! ⇒ Object
50 51 52 |
# File 'src/lib/y2network/s390_device_activators/ctc.rb', line 50 def propose! propose_channels unless device_id end |
#propose_channels ⇒ Object
Modifies the read and write channel from the the device id
44 45 46 47 48 |
# File 'src/lib/y2network/s390_device_activators/ctc.rb', line 44 def propose_channels id = device_id_from(hwinfo.busid) return unless id self.read_channel, self.write_channel = id.split(":") end |