Class: Y2Network::NetworkManager::ConnectionConfigWriters::Vlan

Inherits:
Base
  • Object
show all
Defined in:
src/lib/y2network/network_manager/connection_config_writers/vlan.rb

Overview

This class is responsible for writing the information from a ConnectionConfig::Vlan object to the underlying system.

Instance Attribute Summary

Attributes inherited from Base

#file

Instance Method Summary collapse

Methods inherited from Base

#initialize, #write

Constructor Details

This class inherits a constructor from Y2Network::NetworkManager::ConnectionConfigWriters::Base

Instance Method Details

#update_file(conn) ⇒ Object

Parameters:

See Also:

  • ConnectionConfigWriters::Base#update_file


30
31
32
33
34
# File 'src/lib/y2network/network_manager/connection_config_writers/vlan.rb', line 30

def update_file(conn)
  file.vlan["id"] = conn.vlan_id.to_s
  file.vlan["parent"] = conn.parent_device
  file.vlan["type"] = "vlan"
end