Class: Y2Network::ConnectionConfig::Bonding

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

Overview

Configuration for bonding connections

Constant Summary

Constants inherited from Base

Y2Network::ConnectionConfig::Base::PROPOSED_PPPOE_MTU

Instance Attribute Summary collapse

Attributes inherited from Base

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

Instance Method Summary collapse

Methods inherited from Base

#all_ips, #dhcp?, #find_parent, #hostname, #hostname=, #propose, #propose_startmode, #static?, #type

Constructor Details

#initializeBonding

Returns a new instance of Bonding.



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

def initialize
  super()
  @ports = []
  @options = "mode=active-backup miimon=100"
end

Instance Attribute Details

#optionsString

Returns bond driver options.

Returns:

  • (String)

    bond driver options



32
33
34
# File 'src/lib/y2network/connection_config/bonding.rb', line 32

def options
  @options
end

#portsArray<String>

Bonding doesn't have children but can have many ports

Returns:

  • (Array<String>)


30
31
32
# File 'src/lib/y2network/connection_config/bonding.rb', line 30

def ports
  @ports
end

Instance Method Details

#virtual?Boolean

Returns:

  • (Boolean)


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

def virtual?
  true
end