Class: Y2Network::Wicked::ConnectionConfigWriters::Bridge
- Defined in:
- src/lib/y2network/wicked/connection_config_writers/bridge.rb
Overview
This class is responsible for writing the information from a ConnectionConfig::Bridge 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::Wicked::ConnectionConfigWriters::Base
Instance Method Details
#update_file(conn) ⇒ Object
31 32 33 34 35 36 |
# File 'src/lib/y2network/wicked/connection_config_writers/bridge.rb', line 31 def update_file(conn) file.bridge = "yes" file.bridge_ports = conn.ports.join(" ") file.bridge_forwarddelay = conn.forward_delay file.bridge_stp = conn.stp ? "on" : "off" end |