Class: Y2Network::ConnectionConfig::Tap
- Defined in:
- src/lib/y2network/connection_config/tap.rb
Overview
Configuration for TAP connections
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#group ⇒ String
Tunnel group (name or GID).
-
#owner ⇒ String
Tunnel owner (name or UID).
Attributes inherited from Base
#bootproto, #description, #ethtool_options, #firewall_zone, #hostname, #id, #interface, #ip, #ip_aliases, #lladdress, #mtu, #name, #startmode
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize ⇒ Tap
constructor
A new instance of Tap.
- #virtual? ⇒ Boolean
Methods inherited from Base
#all_ips, #find_master, #propose, #propose_startmode, #type
Constructor Details
#initialize ⇒ Tap
Returns a new instance of Tap.
31 32 33 34 35 |
# File 'src/lib/y2network/connection_config/tap.rb', line 31 def initialize super() @owner = "" @group = "" end |
Instance Attribute Details
#group ⇒ String
Returns tunnel group (name or GID).
29 30 31 |
# File 'src/lib/y2network/connection_config/tap.rb', line 29 def group @group end |
#owner ⇒ String
Returns tunnel owner (name or UID).
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 |