Class: Y2Network::ConnectionConfig::Infiniband

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

Overview

Configuration for infiniband 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

#initializeInfiniband


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

def initialize
  super

  self.ipoib_mode = IpoibMode::DEFAULT
end

Instance Attribute Details

#ipoib_modeIpoibMode


30
31
32
# File 'src/lib/y2network/connection_config/infiniband.rb', line 30

def ipoib_mode
  @ipoib_mode
end

Instance Method Details

#==(other) ⇒ Object


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

def ==(other)
  return false unless super

  [:ipoib_mode].all? do |method|
    public_send(method) == other.public_send(method)
  end
end