Class: Y2Network::InterfaceConfigBuilders::Ctc
- Inherits:
-
Y2Network::InterfaceConfigBuilder
- Object
- Y2Network::InterfaceConfigBuilder
- Y2Network::InterfaceConfigBuilders::Ctc
- Extended by:
- Forwardable
- Defined in:
- src/lib/y2network/interface_config_builders/ctc.rb
Constant Summary
Constants inherited from Y2Network::InterfaceConfigBuilder
Y2Network::InterfaceConfigBuilder::NEW_DEVICES_COUNT
Instance Attribute Summary
Attributes inherited from Y2Network::InterfaceConfigBuilder
#connection_config, #firewall_zone, #interface, #name, #newly_added, #renaming_mechanism, #type
Instance Method Summary collapse
-
#initialize(config: nil) ⇒ Ctc
constructor
A new instance of Ctc.
- #save ⇒ Object
Methods inherited from Y2Network::InterfaceConfigBuilder
#alias_for, #aliases, #aliases=, #boot_protocol, #boot_protocol=, #configure_as_port, #driver, #driver=, #drivers, for, #hostname, #hostname=, #hwinfo, #hwinfo_from, #ifplugd_priority, #ifplugd_priority=, #ip_address, #ip_address=, #mtu, #mtu=, #name_exists?, #name_valid_characters, #newly_added?, #proposed_names, #remote_ip, #remote_ip=, #rename_interface, #renamed_interface?, #startmode=, #subnet_prefix, #subnet_prefix=, #valid_name?
Constructor Details
#initialize(config: nil) ⇒ Ctc
Returns a new instance of Ctc.
30 31 32 |
# File 'src/lib/y2network/interface_config_builders/ctc.rb', line 30 def initialize(config: nil) super(type: InterfaceType::CTC, config: config) end |
Instance Method Details
#save ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'src/lib/y2network/interface_config_builders/ctc.rb', line 34 def save # TODO: no one knows whether this ctc specific thing is still needed wfi = Yast::NetworkConfig.Config["WAIT_FOR_INTERFACES"].to_i Yast::NetworkConfig.Config["WAIT_FOR_INTERFACES"] = [wfi, WAIT_FOR_INTERFACES].max super end |