Mailinglist Archive: yast-commit (502 mails)

< Previous Next >
[yast-commit] r64524 - /trunk/fcoe-client/src/FcoeClient.ycp
Author: gs
Date: Wed Jun 22 09:38:56 2011
New Revision: 64524

URL: http://svn.opensuse.org/viewcvs/yast?rev=64524&view=rev
Log:
fill Import/Export/AutoPackages (used for AutoYaST)

Modified:
trunk/fcoe-client/src/FcoeClient.ycp

Modified: trunk/fcoe-client/src/FcoeClient.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/src/FcoeClient.ycp?rev=64524&r1=64523&r2=64524&view=diff
==============================================================================
--- trunk/fcoe-client/src/FcoeClient.ycp (original)
+++ trunk/fcoe-client/src/FcoeClient.ycp Wed Jun 22 09:38:56 2011
@@ -900,7 +900,13 @@
*/
global boolean Import (map settings)
{
- // TODO FIXME: your code here (fill the above mentioned variables)...
+ // fill variables
+ fcoe_general_config = (map <string, string>)settings["fcoe_cfg"]:$[
"DEBUG":"no", "USE_SYSLOG":"yes" ];
+ network_interfaces = (list <map>)settings["interfaces"]:[];
+
+ SetModified( true );
+ y2milestone ("Configuration has been imported");
+
return true;
}

@@ -911,8 +917,11 @@
*/
global map Export ()
{
- // TODO FIXME: your code here (return the above mentioned variables)...
- return $[];
+ // return map containing current settings
+ return $[
+ "fcoe_cfg" : fcoe_general_config,
+ "interfaces" : network_interfaces
+ ];
}

/**
@@ -943,8 +952,8 @@
*/
global map AutoPackages()
{
- // TODO FIXME: your code here...
- return $[ "install":[], "remove":[] ];
+ // installation of open-fcoe required
+ return $[ "install":["open-fcoe"], "remove":[] ];
}

/* EOF */

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages