Class: Y2Network::NetworkManager::ConnectionConfigWriters::Bonding
- Defined in:
- src/lib/y2network/network_manager/connection_config_writers/bonding.rb
Overview
This class is responsible for writing the information from a ConnectionConfig::Bonding object to the underlying system.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Y2Network::NetworkManager::ConnectionConfigWriters::Base
Instance Method Details
#update_file(conn) ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'src/lib/y2network/network_manager/connection_config_writers/bonding.rb', line 30 def update_file(conn) file.connection["type"] = "bond" conn..to_s.split.each do |option| k, v = option.split("=") next if [k, v].any? { |o| o.to_s.empty? } file.bond[k] = v end end |