Class: Y2Network::ConnectionConfig::Tap

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

Overview

Configuration for TAP 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

#initializeTap


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

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

Instance Attribute Details

#groupString


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

def group
  @group
end

#ownerString


27
28
29
# File 'src/lib/y2network/connection_config/tap.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/tap.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


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

def virtual?
  true
end