Class: Y2Network::ConnectionConfig::Vlan

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

Overview

Configuration for vlan connections

Constant Summary

Constants inherited from Base

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, #initialize, #propose, #propose_startmode, #type

Constructor Details

This class inherits a constructor from Y2Network::ConnectionConfig::Base

Instance Attribute Details

#parent_deviceString

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_idInteger?


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

See Also:


36
37
38
# File 'src/lib/y2network/connection_config/vlan.rb', line 36

def virtual?
  true
end