Class: Y2Network::Wicked::ConnectionConfigReaders::Infiniband

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

Overview

This class is able to build a ConnectionConfig::Infiniband object given a SysconfigInterfaceFile object.

Instance Attribute Summary

Attributes inherited from Base

#file

Instance Method Summary collapse

Methods inherited from Base

#connection_config, #initialize

Constructor Details

This class inherits a constructor from Y2Network::Wicked::ConnectionConfigReaders::Base

Instance Method Details

#update_connection_config(conn) ⇒ Object

Parameters:

See Also:

  • Base#update_connection_config


31
32
33
# File 'src/lib/y2network/wicked/connection_config_readers/infiniband.rb', line 31

def update_connection_config(conn)
  conn.ipoib_mode = IpoibMode.from_name(file.ipoib_mode.to_s)
end