Class: Y2Network::InterfaceConfigBuilders::Infiniband

Inherits:
Y2Network::InterfaceConfigBuilder show all
Defined in:
src/lib/y2network/interface_config_builders/infiniband.rb

Constant Summary

Constants inherited from Y2Network::InterfaceConfigBuilder

Y2Network::InterfaceConfigBuilder::NEW_DEVICES_COUNT

Instance Attribute Summary

Attributes inherited from Y2Network::InterfaceConfigBuilder

#connection_config, #firewall_zone, #interface, #name, #renaming_mechanism, #type

Instance Method Summary collapse

Methods inherited from Y2Network::InterfaceConfigBuilder

#aliases, #aliases=, #boot_protocol, #boot_protocol=, #configure_as_slave, #driver, #driver=, #drivers, for, #hostname, #hostname=, #hwinfo, #hwinfo_from, #ifplugd_priority, #ifplugd_priority=, #ip_address, #ip_address=, #mtu, #mtu=, #name_exists?, #name_valid_characters, #newly_added?, #proposed_names, #remote_ip, #remote_ip=, #rename_interface, #renamed_interface?, #save, #startmode=, #subnet_prefix, #subnet_prefix=, #valid_name?

Constructor Details

#initialize(config: nil) ⇒ Infiniband


27
28
29
# File 'src/lib/y2network/interface_config_builders/infiniband.rb', line 27

def initialize(config: nil)
  super(type: InterfaceType::INFINIBAND, config: config)
end

Instance Method Details

#ipoib_modeString

Returns current value of infiniband mode


40
41
42
43
44
# File 'src/lib/y2network/interface_config_builders/infiniband.rb', line 40

def ipoib_mode
  return "default" if connection_config.ipoib_mode.name == ""

  connection_config.ipoib_mode.name
end

#ipoib_mode=(value) ⇒ Object


32
33
34
35
# File 'src/lib/y2network/interface_config_builders/infiniband.rb', line 32

def ipoib_mode=(value)
  value = "" if value == "default"
  connection_config.ipoib_mode = IpoibMode.from_name(value)
end