Class: Y2Network::ConnectionConfig::Vlan
- Defined in:
- src/lib/y2network/connection_config/vlan.rb
Overview
Configuration for vlan connections
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#parent_device ⇒ String
FIXME: By now it will be just the interface name although in NM it could be a ifname, UUID or even a MAC address.
- #vlan_id ⇒ Integer?
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, #initialize, #propose, #propose_startmode, #type
Constructor Details
This class inherits a constructor from Y2Network::ConnectionConfig::Base
Instance Attribute Details
#parent_device ⇒ String
FIXME: By now it will be just the interface name although in NM it
could be a ifname, UUID or even a MAC address.
TODO: consider using Interface instead of plain string?
31 32 33 |
# File 'src/lib/y2network/connection_config/vlan.rb', line 31 def parent_device @parent_device end |
#vlan_id ⇒ Integer?
33 34 35 |
# File 'src/lib/y2network/connection_config/vlan.rb', line 33 def vlan_id @vlan_id end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 |
# File 'src/lib/y2network/connection_config/vlan.rb', line 40 def ==(other) return false unless super [:parent_device, :vlan_id].all? do |method| public_send(method) == other.public_send(method) end end |
#virtual? ⇒ Boolean
36 37 38 |
# File 'src/lib/y2network/connection_config/vlan.rb', line 36 def virtual? true end |