Class: Y2Network::ConnectionConfig::Bonding
- 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
-
#options ⇒ String
Bond driver options.
-
#ports ⇒ Array<String>
Bonding doesn't have children but can have many ports.
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
-
#initialize ⇒ Bonding
constructor
A new instance of Bonding.
- #virtual? ⇒ Boolean
Methods inherited from Base
#all_ips, #dhcp?, #find_parent, #hostname, #hostname=, #propose, #propose_startmode, #static?, #type
Constructor Details
#initialize ⇒ Bonding
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
#options ⇒ String
Returns bond driver options.
32 33 34 |
# File 'src/lib/y2network/connection_config/bonding.rb', line 32 def @options end |
#ports ⇒ Array<String>
Bonding doesn't have children but can have many ports
30 31 32 |
# File 'src/lib/y2network/connection_config/bonding.rb', line 30 def ports @ports end |
Instance Method Details
#virtual? ⇒ Boolean
42 43 44 |
# File 'src/lib/y2network/connection_config/bonding.rb', line 42 def virtual? true end |