[yast-commit] r65038 - /branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp
Author: gs Date: Wed Jul 27 14:43:21 2011 New Revision: 65038 URL: http://svn.opensuse.org/viewcvs/yast?rev=65038&view=rev Log: call 'ifconfig <interface> up' in first stage of installation 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=65038&r1=65037&r2=65038&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 Wed Jul 27 14:43:21 2011 @@ -286,11 +286,27 @@ global string GetVlanInterface( string interface ) { string vlan_interface = ""; - + map output = $[]; + + if ( Stage::initial() ) + { + // call 'ifconfig <interface> up' in first stage of installation because it's not yet + // clear who configures the interfaces here, (fipvlan command itself?) -> see bnc #705171 + string cmd_ifup = sformat( "ifconfig %1 up", interface ); + y2milestone( "Executing command: %1", cmd_ifup ); + output = (map)SCR::Execute( .target.bash_output, cmd_ifup ); + y2milestone( "Output: %1", output ); + if ( output["exit"]:255 != 0 ) + { + Popup::Error( sformat( _("Interface %1 not up"), interface ) ); + y2error( "Interface %1 not up", interface ); + } + } + // check whether there is a VLAN interface which is configured for FCoE string cmd_fcoe = sformat( "LANG=POSIX fipvlan %1", interface ); y2milestone( "Executing command: %1", cmd_fcoe ); - map output = (map)SCR::Execute( .target.bash_output, cmd_fcoe ); + output = (map)SCR::Execute( .target.bash_output, cmd_fcoe ); y2milestone( "Output: %1", output ); list <string> lines = splitstring( output["stdout"]:"", "\n" ); @@ -646,7 +662,7 @@ string syslog_val = (string)SCR::Read(add(.fcoe, "USE_SYSLOG")); fcoe_general_config = add( fcoe_general_config, "USE_SYSLOG", syslog_val ); - y2milestone( "/etc/fcoe/config read - DEBUG: %1, USE_SYSLOG: %2", debug_val, syslog_val ); + y2milestone( "/etc/fcoe/config read: DEBUG: %1, USE_SYSLOG: %2", debug_val, syslog_val ); return true; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn2.opensuse.org