Class: Y2Network::InterfaceConfigBuilders::Tap

Inherits:
Y2Network::InterfaceConfigBuilder show all
Defined in:
src/lib/y2network/interface_config_builders/tap.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, #renaming_mechanism, #type

Instance Method Summary collapse

Methods inherited from Y2Network::InterfaceConfigBuilder

#aliases, #aliases=, #boot_protocol, #boot_protocol=, #configure_as_slave, #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?, #save, #startmode=, #subnet_prefix, #subnet_prefix=, #valid_name?

Constructor Details

#initialize(config: nil) ⇒ Tap


26
27
28
# File 'src/lib/y2network/interface_config_builders/tap.rb', line 26

def initialize(config: nil)
  super(type: InterfaceType::TAP, config: config)
end

Instance Method Details

#assign_tunnel_user_group(user, group) ⇒ Object


37
38
39
40
# File 'src/lib/y2network/interface_config_builders/tap.rb', line 37

def assign_tunnel_user_group(user, group)
  connection_config.owner = user
  connection_config.group = group
end

#tunnel_user_groupArray(2)<String,String>


31
32
33
# File 'src/lib/y2network/interface_config_builders/tap.rb', line 31

def tunnel_user_group
  [connection_config.owner, connection_config.group]
end