Class: Y2Network::Widgets::S390Layer2Address

Inherits:
CWM::InputField
  • Object
show all
Defined in:
src/lib/y2network/widgets/s390_common.rb

Overview

Widget for setting the mac address to be used in case of layer2 supported

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ S390Layer2Address

Constructor


340
341
342
343
# File 'src/lib/y2network/widgets/s390_common.rb', line 340

def initialize(settings)
  textdomain "network"
  @settings = settings
end

Instance Method Details

#helpObject

See Also:

  • CWM::AbstractWidget

356
357
358
359
# File 'src/lib/y2network/widgets/s390_common.rb', line 356

def help
  _("<p>Enter the <b>Layer 2 MAC Address</b> if this card has been " \
    "configured with layer 2 support.</p>")
end

#initObject

See Also:

  • CWM::AbstractWidget

346
347
348
# File 'src/lib/y2network/widgets/s390_common.rb', line 346

def init
  self.value = @settings.lladdress
end

#labelObject

See Also:

  • CWM::AbstractWidget

351
352
353
# File 'src/lib/y2network/widgets/s390_common.rb', line 351

def label
  _("Layer2 MAC Address")
end

#storeObject

See Also:

  • CWM::AbstractWidget

362
363
364
# File 'src/lib/y2network/widgets/s390_common.rb', line 362

def store
  @settings.lladdress = value
end