Class: Y2Network::ConnectionConfig::Tun

Inherits:
Base
  • Object
show all
Defined in:
src/lib/y2network/connection_config/tun.rb

Overview

Configuration for TUN connections

Constant Summary

Constants inherited from Base

Base::PROPOSED_PPPOE_MTU

Instance Attribute Summary collapse

Attributes inherited from Base

#bootproto, #description, #ethtool_options, #firewall_zone, #hostname, #id, #interface, #ip, #ip_aliases, #lladdress, #mtu, #name, #startmode

Instance Method Summary collapse

Methods inherited from Base

#all_ips, #find_master, #propose, #propose_startmode, #type

Constructor Details

#initializeTun

Returns a new instance of Tun


31
32
33
34
35
# File 'src/lib/y2network/connection_config/tun.rb', line 31

def initialize
  super()
  @owner = ""
  @group = ""
end

Instance Attribute Details

#groupString

Returns tunnel group (name or GID)

Returns:

  • (String)

    tunnel group (name or GID)


29
30
31
# File 'src/lib/y2network/connection_config/tun.rb', line 29

def group
  @group
end

#ownerString

Returns tunnel owner (name or UID)

Returns:

  • (String)

    tunnel owner (name or UID)


27
28
29
# File 'src/lib/y2network/connection_config/tun.rb', line 27

def owner
  @owner
end

Instance Method Details

#==(other) ⇒ Object


41
42
43
44
45
46
47
# File 'src/lib/y2network/connection_config/tun.rb', line 41

def ==(other)
  return false unless super

  [:owner, :group].all? do |method|
    public_send(method) == other.public_send(method)
  end
end

#virtual?Boolean

Returns:

  • (Boolean)

37
38
39
# File 'src/lib/y2network/connection_config/tun.rb', line 37

def virtual?
  true
end