Class: Y2Network::Sysconfig::InterfacesWriter

Inherits:
Object
  • Object
show all
Defined in:
src/lib/y2network/sysconfig/interfaces_writer.rb

Overview

This class writes interfaces specific configuration

Although it might be confusing, this class is only responsible for writing hardware specific configuration through udev rules.

Instance Method Summary collapse

Instance Method Details

#write(interfaces) ⇒ Object

Writes interfaces hardware configuration and refreshes udev

Parameters:


40
41
42
43
# File 'src/lib/y2network/sysconfig/interfaces_writer.rb', line 40

def write(interfaces)
  set_old_interfaces_down(interfaces)
  update_udevd(interfaces)
end