YaST2 Developers Documentation: Configuration of controller

Configuration of controller

modules/ZFCPController.ycp
Controller settings, input and output functions
  • Jiri Srain

This module has an unstable interface.

Representation of the configuration of controller. Input and output routines.

Imports

  • Arch
  • Mode
  • Popup
  • Progress
  • Report
  • Stage
  • Summary

Global Variables

Global Functions

Local Functions

global HexNumSize (string hex, integer digits) -> string

Update the size of hexa number via adding leading zeros

Parameters:
hex string a hexa number (withou or without leading 0x)
digits the count of digits (excluding leading 0x)
Return value:
hex string with specified length
global Modified () -> boolean

Prototypes

global modified -> boolean

Data was modified?

global proposal_valid -> boolean

global write_only -> boolean

Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.

Info:

Abort function return boolean return true if abort

global Abort () -> boolean

Abort function

Return value:
blah blah lahjk
global Modified () -> boolean

Data was modified?

Return value:
true if modified
global Available () -> boolean

Is this kind of disk controller available?

Return value:
true if it is
global Read () -> boolean

Read all controller settings

Return value:
true on success
global Write () -> boolean

Write all controller settings

Return value:
true on success
global Import (map settings) -> boolean

Get all controller settings from the first parameter (For use by autoinstallation.)

Parameters:
settings The YCP structure to be imported.
Return value:
True on success
global Export () -> map

Dump the controller settings to a single map (For use by autoinstallation.)

Return value:
Dumped settings (later acceptable by Import ())
global Summary () -> list<string>

Create a textual summary and a list of unconfigured cards

Return value:
summary of the current configuration
global AutoPackages () -> map

Return packages needed to be installed and removed during Autoinstallation to insure module has all needed software installed.

Return value:
with 2 lists.
global IsAvailable () -> boolean

Check if ZFCP subsystem is available

Return value:
whether the ZFCP-System is availble at all
global GetControllers () -> list<map<string,any> >

Get available zfcp controllers

Return value:
of availabel Controllers
global ProbeDisks () -> void

Get available disks

local ReportActivationError (any id, integer ret) -> void

Report error occured during device activation

Parameters:
id integer chanel id of the device
ret integer exit code of the operation
local ReportControllerActivationError (any id, integer ret) -> void

Report error occured during device activation

Parameters:
id integer chanel id of the device
ret integer exit code of the operation
global ActivateDisk (string channel, string wwpn, string lun) -> void

Activate a disk

Parameters:
channel string channel id
wwpn string wwpn (hexa number)
lun string lun (hexa number)
global DeactivateDisk (string channel, string wwpn, string lun) -> void

Activate a disk

Parameters:
channel string channel id
wwpn string wwpn (hexa number)
lun string lun (hexa number)