Class: Y2Network::S390DeviceActivators::Qeth
- Inherits:
-
Y2Network::S390DeviceActivator
- Object
- Y2Network::S390DeviceActivator
- Y2Network::S390DeviceActivators::Qeth
- Defined in:
- src/lib/y2network/s390_device_activators/qeth.rb
Overview
This class is responsible of activating OSA-Express (QDIO) and HiperSockets group devices (qeth driver).
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
Return a list of the options to be set when activating the device.
- #propose! ⇒ Object
-
#propose_channels ⇒ Object
Modifies the read, write and data channel from the the device id.
Methods inherited from Y2Network::S390DeviceActivator
#configure, #configured_interface, for, #initialize
Constructor Details
This class inherits a constructor from Y2Network::S390DeviceActivator
Instance Method Details
#configure_attributes ⇒ Object
Return a list of the options to be set when activating the device. The list is composed by the attributes configured and the attributes that have their own variable (layer2, port_number and ipa_takeover).
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'src/lib/y2network/s390_device_activators/qeth.rb', line 47 def configure_attributes extra_attributes = [] extra_attributes.concat(attributes.split(" ")) if attributes # Only set if enable extra_attributes << ipa_takeover_attribute if ipa_takeover # By default the activation command uses layer2 autodetection but as # this option is not exposed in the activation dialog we have to add it # always (bsc#1183639) extra_attributes << layer2_attribute extra_attributes << port_attribute if port_number.to_s != "0" extra_attributes end |
#propose! ⇒ Object
68 69 70 |
# File 'src/lib/y2network/s390_device_activators/qeth.rb', line 68 def propose! propose_channels unless device_id end |
#propose_channels ⇒ Object
Modifies the read, write and data channel from the the device id
61 62 63 64 65 66 |
# File 'src/lib/y2network/s390_device_activators/qeth.rb', line 61 def propose_channels id = builder.name return unless id self.read_channel, self.write_channel, self.data_channel = id.split(":") end |