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, #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=, #initialize, #propose, #propose_startmode, #static?, #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?

Returns:

  • (String)

    the real interface associated with the vlan



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

def parent_device
  @parent_device
end

#vlan_idInteger?

Returns:

  • (Integer, nil)


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

def vlan_id
  @vlan_id
end

Instance Method Details

#virtual?Boolean

Returns:

  • (Boolean)

See Also:



38
39
40
# File 'src/lib/y2network/connection_config/vlan.rb', line 38

def virtual?
  true
end