Class: Y2Network::FcoeConnGenerator

Inherits:
Object
  • Object
show all
Includes:
Yast::Logger
Defined in:
src/lib/y2network/fcoe_conn_generator.rb

Overview

This class is responsible for creating the connection configuration for a given FCoE storage only device

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ FcoeConnGenerator

Returns a new instance of FcoeConnGenerator.



31
32
33
# File 'src/lib/y2network/fcoe_conn_generator.rb', line 31

def initialize(config)
  @config = config
end

Instance Attribute Details

#configY2Network::Config (readonly)

Returns:



29
30
31
# File 'src/lib/y2network/fcoe_conn_generator.rb', line 29

def config
  @config
end

Instance Method Details

#update_connections_for(card) ⇒ Object

Parameters:

  • card (Hash)

    a hash with all the information about a network interface



36
37
38
39
# File 'src/lib/y2network/fcoe_conn_generator.rb', line 36

def update_connections_for(card)
  update_parent_connection_for(card)
  update_vlan_connection_for(card)
end