Skip to content

Commit

Permalink
LanItems documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jul 25, 2014
1 parent 5d0a32b commit 54e1c07
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/modules/LanItems.rb
Expand Up @@ -26,9 +26,17 @@
module Yast
# Does way too many things.
#
# 1. Provides direct access to individual items of ifcfg files.
# 1. Aggregates data about network interfaces, both configured
# and unconfigured, in {#Items}, which see.
#
# 2. Provides direct access to individual items of ifcfg files.
# For example BOOTPROTO and STARTMODE are accessible in
# {#bootproto} and {#startmode}
# {#bootproto} and {#startmode} (set via {#SetDeviceVars}
# via {#Select} or {#SetItem}).
#
# 3. ...
#

class LanItemsClass < Module
attr_reader :ipoib_modes
attr_accessor :ipoib_mode
Expand Down Expand Up @@ -2569,6 +2577,14 @@ def self.publish_variable(name, type)
public

# @attribute Items
# @return [Hash<Integer, Hash<String, Object> >]
# Each item, indexed by an Integer in a Hash, aggregates several aspects
# of a network interface. These aspects are in the inner Hash
# which mostly has other hashes as values:
#
# - ifcfg: String, just a foreign key for NetworkInterfaces#Select
# - hwinfo: Hash, detected hardware information
# - udev: Hash, udev naming rules
publish_variable :Items , "map <integer, any>"
# @attribute Hardware
publish_variable :Hardware , "list <map>"
Expand Down

0 comments on commit 54e1c07

Please sign in to comment.