[yast-commit] r65890 - /branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp
Author: gs Date: Wed Sep 21 13:11:27 2011 New Revision: 65890 URL: http://svn.opensuse.org/viewcvs/yast?rev=65890&view=rev Log: don't write INTERFACETYPE=\"vlan\" (bnc #705610) remove also /etc/sysconfig/network/ifcfg-ethx file when removing VLAN interface Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp?rev=65890&r1=65889&r2=65890&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp Wed Sep 21 13:11:27 2011 @@ -389,7 +389,7 @@ if ( create_ifcfg ) { string config = sformat( "BOOTPROTO=\"static\"\nSTARTMODE=\"nfsroot\" -ETHERDEVICE=\"%1\"\nUSERCONTROL=\"no\"\nINTERFACETYPE=\"vlan\"\n", dev_name ); +ETHERDEVICE=\"%1\"\nUSERCONTROL=\"no\"\n", dev_name ); FcoeClient::ifcfg_file = sformat( "/etc/sysconfig/network/ifcfg-%1", fcoe_vlan_interface ); SCR::Write(.target.string, FcoeClient::ifcfg_file, config); y2milestone( "Writing config: %1 to %2", config, FcoeClient::ifcfg_file ); @@ -454,7 +454,11 @@ y2milestone( "Calling %1", command ); output = (map)SCR::Execute( .target.bash_output, command ); y2milestone( "Output: %1", output ); - + command = sformat( "rm /etc/sysconfig/network/ifcfg-%1", card["fcoe_vlan"]:"" ); + y2milestone( "Calling %1", command ); + output = (map)SCR::Execute( .target.bash_output, command ); + y2milestone( "Output: %1", output ); + // set new values in global map network_interfaces card["fcoe_vlan"] = FcoeClient::NOT_CONFIGURED; card["fcoe_enable"] = ""; -- 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