Class: Y2Network::Widgets::S390IPAddressTakeover

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

Overview

Checkbox for enabling IPA Takeover in the configured interface

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ S390IPAddressTakeover

Constructor


184
185
186
187
# File 'src/lib/y2network/widgets/s390_common.rb', line 184

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

Instance Method Details

#helpObject

See Also:

  • CWM::AbstractWidget

200
201
202
203
# File 'src/lib/y2network/widgets/s390_common.rb', line 200

def help
  _("<p>Select <b>Enable IPA Takeover</b> if IP address takeover should be enabled " \
    "for this interface.</p>")
end

#initObject

See Also:

  • CWM::AbstractWidget

190
191
192
# File 'src/lib/y2network/widgets/s390_common.rb', line 190

def init
  self.value = !!@settings.ipa_takeover
end

#labelObject

See Also:

  • CWM::AbstractWidget

195
196
197
# File 'src/lib/y2network/widgets/s390_common.rb', line 195

def label
  _("Enable IPA takeover")
end

#storeObject

See Also:

  • CWM::AbstractWidget

206
207
208
# File 'src/lib/y2network/widgets/s390_common.rb', line 206

def store
  @settings.ipa_takeover = value
end