Class: Y2Network::ConnectionConfig::Bridge

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

Overview

Configuration for bridge connections

Constant Summary

Constants inherited from Base

Y2Network::ConnectionConfig::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

#initializeBridge


35
36
37
38
39
40
# File 'src/lib/y2network/connection_config/bridge.rb', line 35

def initialize
  super()
  @ports = []
  @stp = false
  @forward_delay = 15
end

Instance Attribute Details

#forward_delayInteger


33
34
35
# File 'src/lib/y2network/connection_config/bridge.rb', line 33

def forward_delay
  @forward_delay
end

#portsArray<String>


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

def ports
  @ports
end

#stpBoolean


31
32
33
# File 'src/lib/y2network/connection_config/bridge.rb', line 31

def stp
  @stp
end

Instance Method Details

#==(other) ⇒ Object


46
47
48
49
50
# File 'src/lib/y2network/connection_config/bridge.rb', line 46

def ==(other)
  return false unless super

  stp == other.stp && forward_delay == other.forward_delay && ((ports - other.ports) + (other.ports - ports)).empty?
end

#virtual?Boolean


42
43
44
# File 'src/lib/y2network/connection_config/bridge.rb', line 42

def virtual?
  true
end