Mailinglist Archive: yast-commit (396 mails)

< Previous Next >
[yast-commit] r65285 - /branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp
Author: gs
Date: Tue Aug 9 12:29:52 2011
New Revision: 65285

URL: http://svn.opensuse.org/viewcvs/yast?rev=65285&view=rev
Log:
call 'dcbtool sc %1 app:0 e:1 a:1 w:1' if dcb
required = yes

Modified:
branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp

Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp?rev=65285&r1=65284&r2=65285&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp (original)
+++ branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp Tue Aug 9
12:29:52 2011
@@ -710,6 +710,9 @@
{
list <map> netcards = GetNetworkCards();
boolean success = true;
+ string command = "";
+ map output = $[];
+
y2milestone( "Writing /etc/fcoe/cfg-ethx files" );

foreach ( map card, (list<map>)netcards, {
@@ -753,6 +756,20 @@
{
y2milestone( "%1 written", card["cfg_file"]:"" );
}
+ // enable DCB app fcoe (app:0)
+ if ( card["dcb_required"]:"no" == "yes" )
+ {
+ command = sformat( "dcbtool sc %1 app:0 e:1 a:1 w:1",
card["dev_name"]:"" );
+ y2milestone( "Executing command: %1", command );
+
+ output = (map)SCR::Execute( .target.bash_output, command );
+ y2milestone( "Output: %1", output );
+ if ( output["exit"]:255 != 0 )
+ {
+ Popup::Error( sformat( _("Command: %1 failed"), command
) );
+ y2error( "Command: %1 failed", command);
+ }
+ }
}
} );


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

< Previous Next >
This Thread
  • No further messages